/* JAM Wedding Planner — design tokens & global styles */
:root {
  --bg: #FBF6F2;        /* warm ivory page */
  --surface: #F4E9E6;   /* soft blush sections/cards */
  --surface-2: #EFE3DE;
  --border: #EADFD8;
  --border-strong: #D9C8C0;
  --text: #2B2724;      /* ink, from charcoal wordmark */
  --muted: #7A726B;
  --muted-2: #A89F97;
  --primary: #C77E84;   /* deepened brand rose, AA on ivory */
  --primary-ink: #8E4F55;
  --accent: #EB9FA5;    /* exact lotus rose */
  --secondary: #5C5550; /* soft charcoal */
  --ink: #1A1714;       /* deepest, for dark surfaces */
  --focus: #C77E84;

  --serif: 'Cormorant Garamond', 'Cormorant', 'EB Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* TYPE */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.04;
  font-feature-settings: "liga", "dlig";
}
.display-italic { font-style: italic; font-weight: 300; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
.eyebrow-rose { color: var(--primary-ink); }
.meta { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.lead { font-size: 19px; line-height: 1.55; color: var(--secondary); font-weight: 300; }

/* LAYOUT */
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; }
.section-tight { padding: 80px 0; }
.section-loose { padding: 160px 0; }
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .section-loose { padding: 96px 0; }
  .wrap, .wrap-narrow { padding: 0 22px; }
}

/* Hairline dividers */
.hr {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  border-radius: 0;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--primary-ink); border-color: var(--primary-ink); }
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.btn-rose {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-rose:hover { background: var(--primary-ink); border-color: var(--primary-ink); }
.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  color: var(--text);
}
.btn-link:hover { color: var(--primary-ink); }

/* FOCUS */
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 242, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
}
.nav-links { display: flex; gap: 36px; }
.nav-link {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.nav-link:hover { color: var(--primary-ink); }
.nav-link.active { color: var(--primary-ink); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--primary);
}
.nav-right { display: flex; align-items: center; gap: 22px; }
.locale-toggle {
  display: flex; gap: 4px; align-items: center;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.locale-toggle button {
  background: none; border: 0; padding: 6px 6px;
  color: var(--muted); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
}
.locale-toggle button.on { color: var(--text); }
.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--text);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
}
.nav-cta:hover { background: var(--text); color: var(--bg); }

/* LOGO */
.logo {
  display: inline-flex; align-items: baseline; gap: 0;
  font-family: 'Comfortaa', 'Quicksand', var(--sans);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.logo .dot { color: var(--primary); font-size: 30px; }
.logo-tag {
  display: block;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 400;
}

/* HERO */
.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  overflow: hidden;
  background: #1a1714;
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(0.96) contrast(1.02);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,23,20,0.0) 0%, rgba(26,23,20,0.15) 40%, rgba(26,23,20,0.78) 100%);
}
.hero-content {
  position: relative;
  padding: 80px 64px 96px;
  color: #FBF6F2;
}
.hero-eyebrow { color: rgba(251,246,242,0.78); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7.2vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 18px 0 28px;
  max-width: 14ch;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; font-weight: 300; color: #f0c8cb; }
.hero-sub {
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(251,246,242,0.86);
  font-weight: 300;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero .btn-rose, .hero .btn-ghost-light {
  padding: 16px 26px;
}
.btn-ghost-light {
  background: transparent;
  border: 1px solid rgba(251,246,242,0.5);
  color: #fff;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
}
.btn-ghost-light:hover { background: rgba(251,246,242,0.12); border-color: #fff; }

.hero-foot {
  position: absolute;
  left: 64px; right: 64px; bottom: 28px;
  display: flex; justify-content: space-between; align-items: end;
  color: rgba(251,246,242,0.7);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  pointer-events: none;
}
.hero-scroll { display: flex; gap: 10px; align-items: center; }

@media (max-width: 900px) {
  .hero-content { padding: 56px 22px 72px; }
  .hero-foot { left: 22px; right: 22px; }
}

/* CARDS / IMAGE TILES */
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.6,.2,1); }
.tile:hover img { transform: scale(1.04); }
.tile .tile-caption {
  position: absolute; left: 24px; bottom: 22px; right: 24px;
  color: #fff;
}
.tile-caption .tradition { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.tile-caption .title { font-family: var(--serif); font-size: 28px; line-height: 1.05; margin-top: 8px; font-weight: 400; }
.tile-grad::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,23,20,0) 50%, rgba(26,23,20,0.7) 100%);
  pointer-events: none;
}

/* TRADITION TILES (small) */
.tradition-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) { .tradition-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .tradition-grid { grid-template-columns: repeat(2, 1fr); } }
.tradition-tile {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--surface-2);
  overflow: hidden;
  cursor: pointer;
}
.tradition-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.tradition-tile:hover img { transform: scale(1.06); }
.tradition-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,23,20,0) 35%, rgba(26,23,20,0.78) 100%);
}
.tradition-tile .label {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  color: #fff;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  z-index: 2;
}
.tradition-tile .label small {
  display: block;
  font-family: var(--sans);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  margin-top: 6px;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
}

/* SERVICES STRIP */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card { background: var(--bg); padding: 56px 44px; }
.svc-card h3 { font-family: var(--serif); font-size: 32px; font-weight: 400; margin: 18px 0 14px; line-height: 1.1; }
.svc-card p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 22px; }
.svc-card ul { padding: 0; margin: 0 0 28px; list-style: none; }
.svc-card li {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--secondary);
  display: flex; justify-content: space-between; align-items: center;
}
.svc-card li:last-child { border-bottom: 1px solid var(--border); }
.svc-card .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  font-weight: 300;
}

/* MARQUEE / STRIP */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  overflow: hidden;
}
.strip-track {
  display: flex; gap: 64px; align-items: center;
  font-family: var(--serif); font-size: 28px; font-style: italic; color: var(--muted);
  white-space: nowrap;
  animation: scroll 36s linear infinite;
}
.strip-track .dot { color: var(--primary); font-style: normal; font-size: 12px; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* TESTIMONIAL */
.t-quote {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.18;
  color: var(--text);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.t-attrib { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* FORM */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.field label .req { color: var(--primary); margin-left: 4px; }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  padding: 10px 0;
  border-radius: 0;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--primary);
}
.field textarea { resize: vertical; min-height: 100px; }
.field .hint { font-size: 12px; color: var(--muted-2); }

.budget-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 14px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: all .2s ease;
}
.chip:hover { border-color: var(--primary); color: var(--primary-ink); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* WHATSAPP FAB */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 100;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
  border: 0;
}
.fab:hover { transform: translateY(-2px); }

/* FILTER BAR */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.filter-chip {
  padding: 10px 16px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
  background: transparent; border: 1px solid transparent; color: var(--muted);
  border-radius: 0;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.filter-chip:hover { color: var(--text); }
.filter-chip.on { color: var(--text); border-color: var(--text); background: transparent; }
.filter-count { color: var(--muted-2); font-weight: 400; margin-left: 6px; font-size: 10px; }

/* WEDDING GRID */
.wedding-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 24px;
  margin: 64px 0;
}
@media (max-width: 900px) { .wedding-grid { grid-template-columns: 1fr; gap: 40px 0; } }
.wcard { position: relative; cursor: pointer; }
.wcard .img { aspect-ratio: 4/5; background: var(--surface); overflow: hidden; }
.wcard .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.wcard:hover .img img { transform: scale(1.04); }
.wcard .meta-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.wcard .tradition { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--primary-ink); font-weight: 500; }
.wcard .year { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.wcard .title { font-family: var(--serif); font-size: 26px; line-height: 1.1; margin-top: 6px; font-weight: 400; }
.wcard .venue { font-size: 13px; color: var(--muted); margin-top: 4px; }
.wcard-l { grid-column: span 7; }
.wcard-r { grid-column: span 5; }
.wcard-l .img { aspect-ratio: 5/4; }
.wcard-s { grid-column: span 4; }
.wcard-m { grid-column: span 6; }
@media (max-width: 900px) {
  .wcard-l, .wcard-r, .wcard-s, .wcard-m { grid-column: 1 / -1; }
}

/* CASE STUDY */
.cs-hero { position: relative; aspect-ratio: 21/9; overflow: hidden; background: #1a1714; }
.cs-hero img { width: 100%; height: 100%; object-fit: cover; }
.cs-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,23,20,0) 50%, rgba(26,23,20,0.6) 100%); }
.cs-meta {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
@media (max-width: 900px) { .cs-meta { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
.cs-meta .item .l { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.cs-meta .item .v { font-family: var(--serif); font-size: 18px; }

.cs-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.cs-gallery .g { overflow: hidden; cursor: zoom-in; }
.cs-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.cs-gallery .g:hover img { transform: scale(1.04); }

/* LIGHTBOX */
.lb-back {
  position: fixed; inset: 0;
  background: rgba(15, 12, 10, 0.94);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.lb-img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lb-close {
  position: absolute; top: 24px; right: 24px;
  background: transparent; border: 1px solid rgba(255,255,255,0.4);
  color: #fff; padding: 10px 16px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.lb-credit {
  position: absolute; bottom: 24px; left: 24px; right: 24px; text-align: center;
  color: rgba(255,255,255,0.6); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: #fff; font-size: 28px; padding: 16px 20px; opacity: 0.7; }
.lb-nav:hover { opacity: 1; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 22px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card .avatar {
  aspect-ratio: 4/5;
  background: var(--surface-2);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.team-card .avatar .initials {
  font-family: var(--serif); font-size: 56px; color: var(--muted-2); font-weight: 300;
}
.team-card .role { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 14px; font-weight: 500; }
.team-card .name { font-family: var(--serif); font-size: 22px; margin-top: 4px; }

/* FOOTER */
.footer { background: var(--ink); color: rgba(251,246,242,0.78); padding: 80px 0 36px; }
.footer h4 { color: #fff; font-family: var(--serif); font-size: 22px; font-weight: 400; margin: 0 0 18px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
.footer a:hover { color: #fff; }
.footer .meta { color: rgba(251,246,242,0.5); }
.footer .smol { font-size: 12px; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 28px; margin-top: 56px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 11px; color: rgba(251,246,242,0.4); letter-spacing: 0.15em; text-transform: uppercase; }

/* LOTUS divider */
.lotus-div {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  color: var(--accent);
  margin: 0 auto;
}
.lotus-div .line { height: 1px; width: 90px; background: var(--border-strong); }

/* CONSENT NOTE */
.consent-note {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.consent-note::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; display: inline-block; }

/* HOME OVERLAY GRID for split images */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split-img { aspect-ratio: 4/5; overflow: hidden; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* page-fade enter */
.page-enter { animation: fade .5s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* small kicker numbers */
.kicker-num { font-family: var(--serif); font-style: italic; color: var(--primary-ink); margin-right: 12px; font-size: 22px; font-weight: 300; }

/* gallery layout for case study */
.cs-gallery .g.col-6 { grid-column: span 6; aspect-ratio: 4/3; }
.cs-gallery .g.col-4 { grid-column: span 4; aspect-ratio: 3/4; }
.cs-gallery .g.col-8 { grid-column: span 8; aspect-ratio: 16/10; }
.cs-gallery .g.col-12 { grid-column: span 12; aspect-ratio: 21/9; }
@media (max-width: 900px) {
  .cs-gallery .g { grid-column: 1 / -1 !important; aspect-ratio: 4/3 !important; }
}

/* RTL flip helpers */
[dir="rtl"] .nav-link.active::after,
[dir="rtl"] .btn-link { /* keep */ }
