/* ═══════════════════════════════════════════════
   TAILOR HOUSE — Shared Stylesheet
   ═══════════════════════════════════════════════ */

@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=Cormorant+SC:wght@300;400;500&family=Jost:wght@200;300;400&display=swap');

:root {
  --ink: #1a1814;
  --parchment: #f5f0e8;
  --parchment-dark: #ede6d6;
  --gold: #b8963e;
  --gold-light: #d4af6a;
  --warm-grey: #8a8278;
  --deep-green: #1e2b1f;
  --cream-white: #faf7f2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream-white);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ── NAVIGATION ── */
nav#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 28px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

nav#navbar.scrolled {
  background: rgba(245, 240, 232, 0.97);
  padding: 18px 60px;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 150, 62, 0.2);
}

/* Dark hero pages: nav starts with light text */
nav#navbar.dark-hero .nav-logo,
nav#navbar.dark-hero .nav-links a { color: var(--parchment); }
nav#navbar.dark-hero .hamburger span { background: var(--parchment); }

/* Once scrolled, always dark text regardless of hero */
nav#navbar.scrolled .nav-logo,
nav#navbar.scrolled .nav-links a { color: var(--ink) !important; }
nav#navbar.scrolled .hamburger span { background: var(--ink) !important; }

/* Inner pages (no dark-hero class): white text until scrolled */
nav#navbar:not(.dark-hero) .nav-logo,
nav#navbar:not(.dark-hero) .nav-links a { color: var(--parchment); }
nav#navbar:not(.dark-hero) .hamburger span { background: var(--parchment); }

.nav-logo {
  font-family: 'Cormorant SC', serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--parchment);
  text-decoration: none;
  transition: color 0.4s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 201;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--parchment);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.4s ease;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ── HAMBURGER — hidden on desktop ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  position: relative;
  z-index: 201;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink);
  transition: background 0.4s ease;
}

/* ── MOBILE NAV DRAWER — hidden on desktop ── */
.nav-drawer {
  display: none; /* hidden entirely on desktop */
  position: fixed;
  top: 0; right: 0;
  width: 280px;
  height: 100vh;
  background: var(--ink);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-direction: column;
  padding: 80px 40px 48px;
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer .nav-close {
  position: absolute;
  top: 28px; right: 28px;
  background: none;
  border: none;
  color: var(--parchment);
  font-size: 1.8rem;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1;
  z-index: 10;
}

.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-drawer ul li a {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--parchment);
  text-decoration: none;
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(245,240,232,0.08);
  transition: color 0.2s ease;
  font-style: italic;
}

.nav-drawer ul li a:hover { color: var(--gold-light); }

.nav-overlay {
  display: none; /* hidden on desktop */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.active { opacity: 1; pointer-events: all; }

/* ── SHARED BUTTONS ── */
.btn-primary {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 14px 36px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-ghost {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--parchment);
  text-decoration: none;
  border-bottom: 1px solid rgba(245,240,232,0.3);
  padding-bottom: 2px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.btn-ghost:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* ── SHARED SECTION LABEL ── */
.section-label {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-label.centered { justify-content: center; }
.section-label.centered::before { display: none; }

/* ── MARQUEE ── */
.marquee-strip {
  background: var(--gold);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 35s linear infinite;
}

.marquee-item {
  font-family: 'Cormorant SC', serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--ink);
  padding: 0 50px;
}

/* ── INNER PAGE HERO ── */
.page-hero {
  background: var(--ink);
  padding: 130px 60px 72px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 40px,
    rgba(184,150,62,0.025) 40px, rgba(184,150,62,0.025) 41px
  );
}

.page-hero-inner { position: relative; z-index: 2; max-width: 700px; }

.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  color: var(--parchment);
  margin-bottom: 24px;
}

.page-hero h1 em { font-style: italic; color: var(--gold-light); }

.page-hero p {
  font-size: 0.88rem;
  line-height: 2;
  color: rgba(245,240,232,0.55);
  font-weight: 200;
  max-width: 500px;
}

/* ── PHOTO PLACEHOLDER ── */
.photo-placeholder {
  background: #2a2820;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.photo-placeholder::after {
  content: attr(data-label);
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(184,150,62,0.4);
  text-align: center;
  padding: 16px;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0; left: 0;
}

.photo-placeholder:has(img) {
  position: relative;
  padding: 0;
}

.photo-placeholder:has(img)::after {
  display: none;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── FOOTER ── */
footer {
  background: #0e0c0a;
  padding: 52px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-top: 1px solid rgba(184,150,62,0.15);
  gap: 24px;
}

.footer-logo {
  font-family: 'Cormorant SC', serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--parchment);
  text-decoration: none;
}

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--warm-grey);
  text-align: center;
}

.footer-right { text-align: right; }

.footer-copy {
  font-size: 0.62rem;
  font-weight: 200;
  letter-spacing: 0.1em;
  color: rgba(138,130,120,0.5);
  line-height: 1.8;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}

.footer-nav a {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(138,130,120,0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--gold); }

/* ── PRICING CARDS ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: rgba(184,150,62,0.15);
  margin-top: 60px;
}

.pricing-card {
  background: var(--cream-white);
  padding: 48px 40px;
}

.pricing-card.featured {
  background: var(--ink);
  color: var(--parchment);
}

.pricing-label {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}

.pricing-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.2;
}

.pricing-card.featured .pricing-title { color: var(--parchment); }

.pricing-from {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-grey);
  display: block;
  margin-bottom: 6px;
}

.pricing-amount {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 2.8rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-card.featured .pricing-amount { color: var(--parchment); }

.pricing-currency {
  font-size: 1.2rem;
  vertical-align: super;
  font-weight: 300;
}

.pricing-unit {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--warm-grey);
  display: block;
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}

.pricing-features li {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.5;
  color: #5a5650;
  padding-left: 16px;
  position: relative;
}

.pricing-card.featured .pricing-features li { color: rgba(245,240,232,0.65); }

.pricing-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
}

/* ── FORMS ── */
.form-group { margin-bottom: 28px; }

.form-group label {
  font-family: 'Jost', sans-serif;
  font-weight: 200;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--warm-grey);
  display: block;
  margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(245,240,232,0.15);
  color: var(--parchment);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23b8963e' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 20px;
}

.form-group select option { background: var(--ink); color: var(--parchment); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-bottom-color: var(--gold); }
.form-group textarea { resize: none; height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-note {
  font-size: 0.68rem;
  font-weight: 200;
  color: var(--warm-grey);
  margin-top: 16px;
  letter-spacing: 0.03em;
  line-height: 1.7;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══════════════════════════
   MOBILE  (≤ 900px)
   ═══════════════════════════ */
@media (max-width: 900px) {
  nav#navbar { padding: 20px 24px; }
  nav#navbar.scrolled { padding: 14px 24px; }

  .nav-links { display: none !important; }
  .hamburger { display: flex !important; }

  /* Show drawer elements only on mobile */
  .nav-drawer { display: flex; }
  .nav-overlay { display: block; }

  .page-hero { padding: 100px 24px 60px; }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 24px;
    gap: 20px;
  }
  .footer-right { text-align: center; }
  .footer-nav { align-items: center; }

  .form-row { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}
