/* ========================================
   Blue Plumeria — Style Sheet
   Inspired by Becket & Quill aesthetic
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Montserrat:wght@300;400;500&display=swap');

/* ── Custom Properties ── */
:root {
  --header-bg: #FFFFFF;
  --page-bg: #FFFFFF;
  --alt-bg: #F9F9F9;
  --body-text: #1A1A1A;
  --body-text-light: #6B6B6B;
  --nav-bg: #000000;
  --nav-text: #FFFFFF;
  --footer-bg: #000000;
  --footer-text: #999999;
  --accent-gold: #C4A265;
  --accent-gold-hover: #A8883F;
  --accent-silver: #A8A8A8;
  --primary-link: #1A1A1A;
  --border: #E5E5E5;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
  --max-width: 1280px;
  --header-height: 160px;
  --nav-height: 44px;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--body-text);
  background: var(--page-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-gold);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--body-text);
}

.label-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--body-text);
}

/* ── Layout Utilities ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 36px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-gold);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--body-text);
  border: 1px solid var(--body-text);
}

.btn-outline:hover {
  background: var(--body-text);
  color: #fff;
}

.btn-link {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--body-text);
  border-bottom: 1px solid var(--body-text);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-link:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* ── Sticky Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.site-header .logo {
  height: 140px;
  width: auto;
}

/* ── Navigation Bar ── */
.site-nav {
  background: var(--nav-bg);
  height: var(--nav-height);
  position: sticky;
  top: var(--header-height);
  z-index: 99;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nav-text);
  transition: color 0.2s ease;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-gold);
}

.nav-cart {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--nav-text);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  font-family: var(--font-body);
  transition: color 0.2s ease;
}

.nav-cart:hover {
  color: var(--accent-gold);
}

.nav-cart svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.cart-count {
  background: var(--accent-gold);
  color: #fff;
  font-size: 0.6rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ── Hamburger Menu ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--nav-text);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ── Hero Section ── */
.hero {
  background: var(--alt-bg);
  text-align: center;
  padding: 6rem 2rem;
}

.hero .hero-logo {
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--body-text-light);
  margin-bottom: 2.5rem;
}

/* ── Category Tiles ── */
.category-tiles {
  background: var(--page-bg);
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.tile {
  text-align: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.tile:hover {
  opacity: 0.85;
}

.tile-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 1.2rem;
}

.tile-name {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--body-text);
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem 2.5rem;
}

.product-card {
  text-align: center;
}

.product-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.product-card-image:hover {
  opacity: 0.85;
}

.product-card-name {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--body-text);
  margin-bottom: 0.3rem;
}

.product-card-price {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--accent-gold);
  margin-bottom: 0.8rem;
}

.product-card .snipcart-add-item {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 24px;
  background: transparent;
  color: var(--body-text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
}

.product-card:hover .snipcart-add-item {
  opacity: 1;
}

.product-card .snipcart-add-item:hover {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
}

/* ── Product Showcase (Side-by-Side / Slider) ── */
.showcase-section {
  background: var(--page-bg);
  border-bottom: 1px solid var(--border);
}

.showcase-set {
  margin-bottom: 4rem;
}

.showcase-set:last-child {
  margin-bottom: 0;
}

.showcase-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--body-text-light);
  text-align: center;
  margin-bottom: 0.5rem;
}

.showcase-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 0.4rem;
}

.showcase-price {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--accent-gold);
  text-align: center;
  margin-bottom: 2rem;
}

.showcase-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.showcase-pair img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Slider variant */
.showcase-slider {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.showcase-slider img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: none;
}

.showcase-slider img.active {
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  color: var(--body-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 2;
}

.slider-btn:hover {
  background: rgba(255,255,255,1);
}

.slider-btn.prev {
  left: 0.75rem;
}

.slider-btn.next {
  right: 0.75rem;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.slider-dot.active {
  background: var(--body-text);
}

.showcase-cta {
  text-align: center;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .showcase-pair {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .showcase-name {
    font-size: 1.3rem;
  }
}

/* ── Featured Section ── */
.featured {
  background: var(--page-bg);
}

.view-all-wrap {
  text-align: center;
  margin-top: 3rem;
}

/* ── About Teaser ── */
.about-teaser {
  background: var(--alt-bg);
}

.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.teaser-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.teaser-content h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.teaser-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--body-text);
}

/* ── Shop Page ── */
.shop-header {
  background: var(--alt-bg);
  text-align: center;
  padding: 3.5rem 2rem 2.5rem;
}

.shop-header h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.product-count {
  font-size: 0.8rem;
  color: var(--body-text-light);
  letter-spacing: 0.05em;
}

/* ── Filter Bar ── */
.filter-bar {
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

.filter-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--body-text-light);
  background: none;
  border: none;
  padding: 1rem 0.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  color: var(--body-text);
}

.filter-tab.active {
  color: var(--body-text);
  border-bottom-color: var(--accent-gold);
}

/* Sort dropdown */
.sort-bar {
  display: flex;
  justify-content: flex-end;
  padding: 1.5rem 0 0;
}

.sort-select {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-text);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%231A1A1A' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2rem;
}

/* ── About Page ── */
.about-hero {
  background: var(--alt-bg);
  text-align: center;
  padding: 4rem 2rem;
}

.about-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.story-section {
  background: var(--page-bg);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.story-content h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.story-content p {
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

/* Materials */
.materials-section {
  background: var(--alt-bg);
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  text-align: center;
}

.material-item h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.material-item p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--body-text-light);
}

.material-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-gold);
}

/* ── Contact Page ── */
.contact-hero {
  background: var(--alt-bg);
  text-align: center;
  padding: 4rem 2rem;
}

.contact-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--body-text);
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  background: var(--page-bg);
  color: var(--body-text);
  margin-bottom: 1.5rem;
  transition: border-color 0.2s ease;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-gold);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.contact-info p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--accent-gold);
}

.social-links {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: var(--body-text);
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--accent-gold);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ── Footer ── */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.2rem;
}

.footer-col a {
  display: block;
  color: var(--footer-text);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col p {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #555;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .section-heading {
    font-size: 1.6rem;
  }

  .section-padding {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 4rem 1.5rem;
  }

  .hero .hero-logo {
    max-width: 380px;
  }

  .hero-tagline {
    font-size: 1.15rem;
  }

  /* Nav mobile */
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    padding: 1.5rem 0;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.8rem 2rem;
    width: 100%;
    text-align: center;
  }

  .nav-cart {
    right: 1rem;
  }

  /* Grids */
  .tiles-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }

  .product-card .snipcart-add-item {
    opacity: 1;
  }

  .teaser-grid,
  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .filter-bar .container {
    gap: 1.2rem;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 100px;
  }

  .site-header .logo {
    height: 80px;
  }

  .container {
    padding: 0 1.2rem;
  }

  .section-padding {
    padding: 2.5rem 0;
  }

  .hero {
    padding: 3rem 1.2rem;
  }

  .hero .hero-logo {
    max-width: 300px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .materials-grid {
    grid-template-columns: 1fr;
  }
}
