/* =====================================================
   DOLLAR BOUQUET BAKU — Shared Styles
   Applies to: all pages (index, catalog, customize, contact)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Inter:wght@300;400;500&display=swap');

/* --- Variables --- */
:root {
  --ink: #0a0a0a;
  --offwhite: #f7f5f2;
  --warm: #ede8e1;
  --gold: #b8973a;
  --gold2: #d4af5a;
  --mist: #8a8278;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--offwhite);
  color: var(--ink);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* =====================================================
   NAV
   ===================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background 0.5s, border-color 0.5s;
}

/* Index: starts transparent over dark hero */
.nav.light {
  background: transparent;
}

/* Index: becomes white on scroll; catalog/customize/contact: always solid */
.nav.solid,
.nav:not(.light) {
  background: var(--offwhite);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Logo — light state (transparent nav, dark bg behind) → white logo */
.nav-logo-light {
  display: block;
  height: 56px;
}

/* Logo — solid state (white nav) → dark logo */
.nav-logo-dark {
  display: none;
  height: 56px;
}

/* Swap logos when nav becomes solid */
.nav.solid .nav-logo-light {
  display: none;
}

.nav.solid .nav-logo-dark {
  display: block;
}

/* Pages with always-solid nav: only show dark logo */
.nav:not(.light) .nav-logo-light {
  display: none;
}

.nav:not(.light) .nav-logo-dark {
  display: block;
}

/* Mobile logo (visible on small screens instead of center logo) */
.nav-logo-mobile {
  display: none;
}

/* Center logo wrapper (between nav links) */
.nav-logo-center {
  display: block;
  padding: 0 16px;
  margin-top: -3px;
}

.nav-logo-center:hover::after {
  display: none !important;
}

/* Spacer to balance the right-side icons */
.nav-spacer {
  width: 50px;
  display: block;
}

/* Center nav links */
.nav-center {
  display: flex;
  gap: 40px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-center a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s;
  position: relative;
}

.nav-center a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold2);
  transform: scaleX(0);
  transition: transform 0.25s;
}

.nav-center a:hover::after,
.nav-center a.active::after {
  transform: scaleX(1);
}

.nav-center a:hover,
.nav-center a.active {
  color: white;
}

/* Solid-nav link colors (dark text on white bg) */
.nav.solid .nav-center a,
.nav:not(.light) .nav-center a {
  color: var(--ink);
}

.nav.solid .nav-center a:hover,
.nav.solid .nav-center a.active,
.nav:not(.light) .nav-center a:hover,
.nav:not(.light) .nav-center a.active {
  color: var(--gold);
}

/* Right icons */
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-right a {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

.nav-right a:hover {
  color: white;
}

.nav.solid .nav-right a,
.nav:not(.light) .nav-right a {
  color: var(--ink);
}

.nav.solid .nav-right a:hover,
.nav:not(.light) .nav-right a:hover {
  color: var(--gold);
}

/* Order pill button */
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--ink);
  padding: 9px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.nav-pill:hover {
  background: var(--gold2) !important;
  color: var(--ink) !important;
}

/* Hamburger button */
.ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.ham span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: white;
  transition: background 0.3s;
}

.nav.solid .ham span,
.nav:not(.light) .ham span {
  background: var(--ink);
}

/* =====================================================
   DRAWER
   ===================================================== */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}

.drawer.open {
  clip-path: inset(0 0 0% 0);
}

.drawer-close {
  position: absolute;
  top: 20px;
  right: 36px;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.drawer nav a {
  display: block;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: 30px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.2s, padding-left 0.25s;
}

.drawer nav a:hover {
  color: white;
  padding-left: 10px;
}

.drawer-wa {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: white;
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 500;
  width: fit-content;
}

.drawer-soc {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}

.drawer-soc a {
  color: rgba(255, 255, 255, 0.35);
  font-size: 18px;
  transition: color 0.2s;
}

.drawer-soc a:hover {
  color: white;
}

/* =====================================================
   PAGE HEADER (catalog, customize, contact)
   ===================================================== */
.page-header {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 320px;
  overflow: hidden;
}

.ph-content {
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 56px 48px;
  position: relative;
  z-index: 1;
}

.ph-tag {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ph-tag::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold);
}

.ph-content h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 700;
  color: white;
  line-height: 1.1;
}

.ph-content h1 em {
  font-style: italic;
  color: var(--gold2);
}

.ph-content p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 10px;
  line-height: 1.7;
}

.ph-image {
  overflow: hidden;
  position: relative;
}

.ph-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.ph-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, transparent 40%, rgba(10, 10, 10, 0.7) 100%);
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: #060606;
  padding: 72px 40px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ft-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ft-logo {
  height: 44px;
  margin-bottom: 20px;
}

.ft-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 24px;
}

.ft-soc {
  display: flex;
  gap: 12px;
}

.ft-soc a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}

.ft-soc a:hover {
  border-color: var(--gold2);
  color: var(--gold2);
}

.ft-col h5 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
}

.ft-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ft-col ul a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.ft-col ul a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.ft-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.ft-row i {
  color: var(--gold);
  font-size: 13px;
  margin-top: 1px;
}

.ft-row a,
.ft-row span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.ft-row a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.ft-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
}

.ft-bot p,
.ft-bot a {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.ft-bot a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* =====================================================
   FLOATING WHATSAPP BUTTON
   ===================================================== */
.float-wa {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 800;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s, box-shadow 0.25s;
}

.float-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.55);
}

/* =====================================================
   MOBILE ORDER BAR
   ===================================================== */
.mob-order {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: var(--ink);
  padding: 12px 16px;
}

.mob-order a {
  display: block;
  background: var(--gold);
  color: var(--ink);
  padding: 14px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.mob-order a:hover {
  background: var(--gold2);
}

/* =====================================================
   REVEAL ANIMATIONS
   ===================================================== */
.rv-anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s, transform 0.7s;
}

.rv-anim.in {
  opacity: 1;
  transform: translateY(0);
}

.rva {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.rva.in {
  opacity: 1;
  transform: translateY(0);
}

.d1 { transition-delay: 0.06s; }
.d2 { transition-delay: 0.12s; }
.d3 { transition-delay: 0.18s; }

/* =====================================================
   RESPONSIVE — SHARED
   ===================================================== */
@media (max-width: 768px) {
  .nav-spacer {
    display: none;
  }

  .nav-logo-mobile {
    display: block;
  }

  .nav-center,
  .nav-right .nav-pill {
    display: none;
  }

  .ham {
    display: flex;
  }

  .nav {
    padding: 0 20px;
  }

  /* Page header: hide decorative image on mobile */
  .page-header {
    grid-template-columns: 1fr;
    height: 240px;
  }

  .ph-image {
    display: none;
  }

  .ph-content {
    padding: 0 24px 36px;
  }

  footer {
    padding: 56px 24px 32px;
  }

  .ft-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .ft-bot {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .mob-order {
    display: block;
  }

  .float-wa {
    bottom: 80px;
  }
}

@media (max-width: 480px) {
  .ft-top {
    grid-template-columns: 1fr;
  }
}
