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

:root {
  --c1: #F9F5EF;
  --c2: #EDE8E1;
  --c4: #E8E0D8;
  --ink:       #2C1F1A;
  --ink-mid:   #5C3030;
  --ink-light: #A64444;
  --ink-faint: #D4A8A8;
  --accent:    #c0392b;
  --accent-dk: #7b1a1a;
  --gold:      #C9A84C;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', system-ui, sans-serif;
}

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--sans); font-weight: 300;
  background: var(--c1); color: var(--ink);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  user-select: none; -webkit-user-select: none; cursor: default;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

/* ── SHARED ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 300;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mid); margin-bottom: 16px;
}
.eyebrow::before, .eyebrow::after { content: ''; width: 20px; height: 0.5px; background: var(--ink-faint); }

.sh2 {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 400; line-height: 1.15;
  color: var(--ink); margin-bottom: 14px;
}
.sh2 em { font-style: italic; color: var(--accent); }

/* ── BUTTONS ── */
.btn-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 18px 36px;
  background: linear-gradient(135deg, #c0392b, #7b1a1a);
  color: var(--c1); font-size: 12px; font-weight: 300; letter-spacing: 0.2em;
  text-transform: uppercase; text-decoration: none;
  border-radius: 40px; border: none; transition: background 0.2s;
}
.btn-solid:hover { background: linear-gradient(135deg, #d44333, #8f2020); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 0.5px solid transparent;
}
nav.scrolled {
  background: rgba(249,245,239,0.96);
  backdrop-filter: blur(16px);
  border-color: var(--ink-faint);
}
.nav-logo {
  font-family: var(--serif); font-size: 20px; font-weight: 300;
  color: var(--ink); text-decoration: none; letter-spacing: 0.05em; white-space: nowrap;
}
.nav-links { display: none; }
.nav-links a {
  font-size: 11px; font-weight: 300; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-mid);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: none; align-items: center; gap: 7px;
  padding: 10px 22px; background: var(--ink); color: var(--c1);
  font-size: 10px; font-weight: 300; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none;
  border-radius: 40px; white-space: nowrap; transition: background 0.2s;
}
.nav-cta:hover { background: var(--ink-mid); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-burger {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; width: 28px;
}
.nav-burger span { display: block; width: 22px; height: 1px; background: var(--ink); transition: all 0.3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--c1); z-index: 99;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--serif); font-size: 36px; font-weight: 300;
  color: var(--ink); text-decoration: none; letter-spacing: 0.05em; transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu-cta {
  font-family: var(--sans) !important; font-size: 12px !important;
  letter-spacing: 0.2em !important; text-transform: uppercase;
  color: var(--c1) !important;
  background: linear-gradient(135deg, #c0392b, #7b1a1a);
  padding: 18px 36px; border-radius: 40px; margin-top: 16px;
}

/* ── PAGE HERO ── */
.page-hero {
  background: var(--c2); padding: 90px 24px 0px;
  text-align: center; border-bottom: 0.5px solid var(--ink-faint);
}
.page-hero-sub {
  font-size: 15px; font-weight: 300; color: var(--ink-mid);
  letter-spacing: 0.05em; line-height: 1.8;
}

/* ── TEMPLATES SECTION ── */
.templates-section { background: var(--c2); padding: 32px 24px 80px; }

.filter-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 36px;
}
.filter-btn {
  padding: 9px 20px; border-radius: 40px;
  font-size: 11px; font-weight: 300; letter-spacing: 0.15em; text-transform: uppercase;
  border: 0.5px solid var(--ink-faint); color: var(--ink-mid);
  background: transparent; transition: all 0.2s; cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { background: var(--ink); color: var(--c1); border-color: var(--ink); }

/* ── TEMPLATE GRID ── */
.t-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 16px;
}
.t-card {
  display: flex; flex-direction: column; align-items: center;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transition: transform 0.3s;
}
.t-card.hidden { display: none; }
@media (hover: hover) and (pointer: fine) {
  .t-card:hover { transform: translateY(-4px); }
}

/* ── IPHONE — exact same as main site ── */
.tmpl-phone {
  width: 100%; max-width: 160px; aspect-ratio: 9/19;
  position: relative; margin: 0 auto;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.tmpl-frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; z-index: 2; pointer-events: none;
}
.tmpl-screen {
  position: absolute; top: 3%; left: 5%; right: 5%; bottom: 3%;
  border-radius: 24px; overflow: hidden; z-index: 1;
}
.tmpl-screen-img {
  width: 100%; height: auto; display: block;
  -webkit-user-select: none; user-select: none; pointer-events: none;
}

/* ── CARD FOOTER ── */
.t-foot {
  text-align: center; padding-top: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%;
}
.t-name { font-family: var(--serif); font-size: 16px; font-weight: 400; color: var(--ink); letter-spacing: 0.02em; }
.t-mood { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-light); font-style: italic; margin-bottom: 4px; }
.t-view-pill {
  font-family: var(--sans); font-size: 9px; font-weight: 300;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--ink); color: var(--c1);
  padding: 8px 18px; border-radius: 40px; border: none;
  display: inline-block; margin-top: 8px; cursor: pointer; transition: background 0.2s;
}
.t-view-pill:hover { background: var(--ink-mid); }

/* ── CTA SECTION ── */
.cta-section { background: var(--ink); padding: 80px 24px; text-align: center; }
.cta-section .eyebrow { color: rgba(249,245,239,0.45); }
.cta-section .eyebrow::before, .cta-section .eyebrow::after { background: rgba(249,245,239,0.15); }
.cta-section .sh2 { color: var(--c1); }
.cta-section .sh2 em { color: #e8856a; }
.cta-sub { font-size: 16px; color: rgba(249,245,239,0.55); margin-bottom: 36px; font-weight: 300; line-height: 1.85; max-width: 400px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; flex-direction: column; gap: 12px; align-items: center; }

/* ── FOOTER ── */
footer { background: linear-gradient(160deg, #3d1a0f 0%, #2a1510 50%, #1a0f0a 100%); border-top: 0.5px solid rgba(201,168,76,0.15); padding: 56px 24px 36px; text-align: center; }
.foot-top { display: flex; flex-direction: column; align-items: center; gap: 36px; margin-bottom: 48px; }
.foot-brand { display: flex; flex-direction: column; align-items: center; }
.foot-logo { font-family: var(--serif); font-size: 44px; font-weight: 200; color: rgba(249,245,239,0.9); line-height: 1; }
.foot-logo-sub { font-family: var(--sans); font-size: 10px; font-weight: 300; letter-spacing: 0.35em; color: rgba(249,245,239,0.5); display: block; margin-top: 4px; margin-bottom: 14px; }
.foot-tagline { font-size: 14px; font-weight: 300; font-style: italic; color: rgba(249,245,239,0.6); line-height: 1.8; }
.foot-cols { display: flex; gap: 56px; justify-content: center; }
.foot-col { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.foot-col-title { font-size: 10px; font-weight: 300; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(249,245,239,0.45); margin-bottom: 4px; }
.foot-col a { font-size: 14px; font-weight: 300; color: rgba(249,245,239,0.75); text-decoration: none; transition: color 0.2s; }
.foot-col a:hover { color: rgba(249,245,239,0.9); }
.foot-contact-item { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 4px; }
.foot-contact-label { font-size: 8px; letter-spacing: 0.22em; color: rgba(249,245,239,0.45); }
.foot-contact-item a { font-size: 13px; font-weight: 300; color: rgba(249,245,239,0.75); text-decoration: none; transition: color 0.2s; }
.foot-contact-item a:hover { color: rgba(249,245,239,0.9); }
.foot-bottom { display: flex; flex-direction: column; align-items: center; gap: 12px; border-top: 0.5px solid rgba(249,245,239,0.08); padding-top: 28px; }
.foot-copy { font-size: 12px; letter-spacing: 0.08em; color: rgba(249,245,239,0.35); }
.foot-socials { display: flex; gap: 24px; }
.foot-socials a { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(249,245,239,0.45); text-decoration: none; transition: color 0.2s; }
.foot-socials a:hover { color: rgba(249,245,239,0.8); }

/* ── WA FLOAT ── */
.wa-float { position: fixed; bottom: 20px; right: 20px; z-index: 300; width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: white; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 6px 20px rgba(37,211,102,0.35); transition: transform 0.3s, box-shadow 0.3s; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 12px 28px rgba(37,211,102,0.45); }

/* ── MODAL ── */
.modal-back { position: fixed; inset: 0; z-index: 500; background: rgba(26,15,10,0.88); display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.modal-back.open { opacity: 1; pointer-events: all; }
.modal { background: var(--c1); width: 100%; max-width: 520px; max-height: 92svh; overflow-y: auto; border-radius: 16px 16px 0 0; position: relative; transform: translateY(100%); transition: transform 0.4s cubic-bezier(.25,.46,.45,.94); }
.modal-back.open .modal { transform: translateY(0); }
.modal-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--ink-faint); margin: 12px auto 0; }
.modal-close { position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; border-radius: 50%; border: 0.5px solid var(--ink-faint); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ink-mid); transition: all 0.2s; cursor: pointer; }
.modal-close:hover { background: var(--ink); color: var(--c1); border-color: var(--ink); }
.modal-photo { width: 100%; aspect-ratio: 9/19; max-height: 380px; background: var(--c2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 24px 28px 40px; border-top: 0.5px solid var(--ink-faint); }
.modal-name { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--ink); margin-bottom: 6px; }
.modal-mood { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 20px; font-style: italic; }
.modal-wa { display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, #c0392b, #7b1a1a); color: white; width: 100%; padding: 18px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; border-radius: 40px; transition: background 0.2s; }
.modal-wa:hover { background: linear-gradient(135deg, #d44333, #8f2020); }

/* ══════════════════════════════
   MOBILE ≤ 767px
══════════════════════════════ */
@media (max-width: 767px) {
  .nav-cta { display: none !important; }
  .nav-burger { display: flex !important; }
  .nav-links { display: none !important; }
  .t-name { font-size: 14px; }
  .t-mood { font-size: 9px; }
  .t-view-pill { font-size: 8px; padding: 7px 14px; }
  .tmpl-phone { max-width: 170px; }
  .t-grid { gap: 40px 12px; }
}


/* ══════════════════════════════
   TABLET ≥ 768px
══════════════════════════════ */
@media (min-width: 768px) {
  nav { padding: 18px 36px; }
  .nav-links { display: flex; gap: 28px; align-items: center; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .page-hero { padding: 130px 36px 40px; }
  .templates-section { padding: 40px 36px 100px; }
  .t-grid { grid-template-columns: repeat(3, 1fr); gap: 56px 28px; }
  .tmpl-phone { max-width: 180px; }
  .t-name { font-size: 18px; }
  .t-mood { font-size: 11px; }
  .cta-btns { flex-direction: row; justify-content: center; }
  .cta-section { padding: 100px 56px; }
  footer { padding: 72px 56px 48px; }
  .foot-logo { font-size: 52px; }
}

/* ══════════════════════════════
   DESKTOP ≥ 1024px
══════════════════════════════ */
@media (min-width: 1024px) {
  nav { padding: 20px 56px; }
  .nav-logo { font-size: 20px; }
  .nav-links a { font-size: 16px; letter-spacing: 0.15em; }
  .nav-cta { display: inline-flex; font-size: 12px; letter-spacing: 0.15em; padding: 10px 22px; }
  .page-hero { padding: 150px 56px 48px; }
  .page-hero-sub { font-size: 17px; }
  .templates-section { padding: 48px 56px 120px; }
  .t-grid { grid-template-columns: repeat(3, 1fr); gap: 72px 32px; max-width: 1100px; margin: 0 auto; }
  .tmpl-phone { max-width: 260px; }
  .t-name { font-size: 20px; }
  .t-mood { font-size: 12px; }
  .t-view-pill { font-size: 10px; padding: 9px 22px; }
  .filter-btn { font-size: 12px; padding: 10px 24px; }
}

/* ══════════════════════════════
   LARGE ≥ 1280px
══════════════════════════════ */
@media (min-width: 1280px) {
  nav { padding: 20px 80px; }
  .t-grid { gap: 80px 40px; max-width: 1200px; }
  .tmpl-phone { max-width: 300px; }
}
