/* ============================================================
   Faith's Blissful Delights — shared styles
   Palette: dusty rose + ivory + soft charcoal-plum + champagne
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Jost:wght@300;400;500;600&display=swap');

:root{
  --rose:        #d98a9e;   /* primary dusty rose */
  --rose-deep:   #b86a7e;   /* deeper rose for hover/contrast */
  --rose-soft:   #f3d9df;   /* light blush */
  --rose-mist:   #faecef;   /* palest blush wash */
  --ivory:       #fdf8f4;   /* page background */
  --cream:       #f7ede6;   /* section alt background */
  --ink:         #4a3942;   /* soft charcoal-plum (body text) */
  --ink-soft:    #6e5b63;   /* muted text */
  --champagne:   #c9a96a;   /* gold accent */
  --champagne-d: #a8884b;
  --white:       #ffffff;
  --shadow:      26px 30px 60px -30px rgba(74,57,66,.35);
  --shadow-sm:   0 14px 30px -16px rgba(74,57,66,.30);
  --radius:      18px;
  --maxw:        1180px;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', system-ui, sans-serif;
}

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

html{ scroll-behavior:smooth; }

body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--ivory);
  line-height:1.65;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* subtle paper grain + blush corner washes for atmosphere */
body::before{
  content:"";
  position:fixed; inset:0;
  background:
    radial-gradient(70vw 60vh at 100% -10%, var(--rose-mist), transparent 60%),
    radial-gradient(60vw 50vh at -10% 110%, var(--rose-mist), transparent 60%);
  pointer-events:none; z-index:0;
}

h1,h2,h3,h4{ font-family:var(--serif); font-weight:500; line-height:1.12; color:var(--ink); letter-spacing:-.01em; }
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }

.wrap{ width:min(92%,var(--maxw)); margin-inline:auto; position:relative; z-index:1; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.55rem;
  font-family:var(--sans); font-weight:500; font-size:.94rem;
  letter-spacing:.04em; text-transform:uppercase;
  padding:.95rem 1.9rem; border-radius:999px;
  border:1.5px solid transparent; cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-primary{ background:var(--rose); color:var(--white); box-shadow:0 12px 26px -12px var(--rose-deep); }
.btn-primary:hover{ background:var(--rose-deep); transform:translateY(-2px); box-shadow:0 18px 34px -14px var(--rose-deep); }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--rose); }
.btn-ghost:hover{ background:var(--rose-soft); transform:translateY(-2px); }

/* ---------- nav ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(140%) blur(10px);
  background:rgba(253,248,244,.82);
  border-bottom:1px solid var(--rose-soft);
}
.nav .wrap{ display:flex; align-items:center; justify-content:space-between; padding:.9rem 0; }
.brand{ display:flex; align-items:center; gap:.7rem; }
.brand .mark{ width:56px; height:56px; flex:none; object-fit:contain; }
.brand .name{ font-family:var(--serif); font-size:1.18rem; font-weight:600; line-height:1.05; color:var(--ink); }
.brand .name span{ display:block; font-family:var(--sans); font-size:.62rem; letter-spacing:.34em; text-transform:uppercase; color:var(--rose-deep); font-weight:500; margin-top:2px; }
.nav-links{ display:flex; align-items:center; gap:2rem; }
.nav-links a{ font-size:.82rem; letter-spacing:.14em; text-transform:uppercase; font-weight:500; color:var(--ink-soft); position:relative; padding:.2rem 0; }
.nav-links a::after{ content:""; position:absolute; left:0; bottom:-3px; width:0; height:1.5px; background:var(--rose); transition:width .28s ease; }
.nav-links a:hover, .nav-links a.active{ color:var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }
.nav-cta{ margin-left:.4rem; }
.nav-toggle{ display:none; background:none; border:0; cursor:pointer; padding:.4rem; }
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--ink); margin:5px 0; transition:.3s; border-radius:2px; }

/* ---------- footer ---------- */
.footer{ background:var(--ink); color:var(--rose-mist); margin-top:5rem; padding:3.5rem 0 2rem; position:relative; z-index:1; }
.footer .wrap{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:2.5rem; }
.footer h4{ color:var(--white); font-size:1.05rem; margin-bottom:1rem; font-weight:500; }
.footer .name-lg{ font-family:var(--serif); font-size:1.5rem; color:var(--white); margin-bottom:.6rem; }
.footer a, .footer p{ color:#d8c6cc; font-size:.92rem; line-height:1.9; }
.footer a:hover{ color:var(--rose-soft); }
.footer .place{ color:var(--champagne); }
.footer-bottom{ text-align:center; margin-top:2.5rem; padding-top:1.5rem; border-top:1px solid rgba(255,255,255,.12); font-size:.78rem; letter-spacing:.04em; color:#a98e96; }

/* ---------- shared section bits ---------- */
.eyebrow{ font-family:var(--sans); font-size:.74rem; letter-spacing:.32em; text-transform:uppercase; color:var(--rose-deep); font-weight:600; display:inline-flex; align-items:center; gap:.6rem; }
.eyebrow::before{ content:""; width:26px; height:1.5px; background:var(--champagne); display:inline-block; }
.section{ padding:5rem 0; position:relative; z-index:1; }
.section-cream{ background:var(--cream); }
.section-head{ max-width:640px; margin-bottom:3rem; }
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head.center .eyebrow{ justify-content:center; }
.section-head h2{ font-size:clamp(2rem,4.5vw,3.1rem); margin:.8rem 0 .9rem; }
.section-head p{ color:var(--ink-soft); font-size:1.05rem; }

/* reveal-on-scroll */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .8s ease, transform .8s ease; }
.reveal.in{ opacity:1; transform:none; }

/* slim CTA ribbon — sales nudge that sits high on each page */
.cta-ribbon{ position:relative; z-index:1; }
.cta-ribbon .wrap{ display:flex; align-items:center; justify-content:space-between; gap:1.5rem; flex-wrap:wrap;
  background:linear-gradient(100deg, var(--rose) 0%, var(--rose-deep) 100%); color:#fff;
  border-radius:18px; padding:1.4rem 2rem; box-shadow:0 16px 34px -18px var(--rose-deep); }
.cta-ribbon .txt{ display:flex; align-items:center; gap:.9rem; }
.cta-ribbon .txt .ic{ font-size:1.7rem; }
.cta-ribbon .txt b{ font-family:var(--serif); font-size:1.25rem; font-weight:500; display:block; line-height:1.15; }
.cta-ribbon .txt span{ font-size:.9rem; color:var(--rose-mist); }
.cta-ribbon .btn{ background:#fff; color:var(--rose-deep); border-color:#fff; white-space:nowrap; }
.cta-ribbon .btn:hover{ background:var(--ink); color:#fff; border-color:var(--ink); transform:translateY(-2px); }
@media(max-width:600px){ .cta-ribbon .wrap{ flex-direction:column; text-align:center; padding:1.5rem; } .cta-ribbon .txt{ flex-direction:column; gap:.4rem; } }

@media(max-width:860px){
  /* backdrop-filter on a parent traps position:fixed children — remove it on mobile
     so the drawer & overlay position against the viewport, not the short nav bar */
  .nav{ backdrop-filter:none; -webkit-backdrop-filter:none; background:var(--ivory); }
  .nav-links{
    position:fixed; top:0; right:0; bottom:0; height:100vh; height:100dvh;
    width:min(80%,320px);
    background:var(--ivory);
    flex-direction:column; align-items:flex-start; justify-content:flex-start;
    padding:5.5rem 2rem 2rem; gap:1.6rem; transform:translateX(100%);
    transition:transform .35s ease; box-shadow:-18px 0 50px -20px rgba(74,57,66,.45); z-index:70;
    overflow-y:auto;
  }
  .nav-links.open{ transform:none; }
  .nav-links a{ font-size:1.05rem; width:100%; }
  .nav-links a::after{ display:none; }
  .nav-links .nav-cta{ width:100%; justify-content:center; margin-left:0; margin-top:.5rem; }
  .nav-toggle{ display:block; position:relative; z-index:80; }
  /* hamburger -> X */
  .nav-toggle.active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2){ opacity:0; }
  .nav-toggle.active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
  /* dimming overlay behind drawer */
  .nav-overlay{ position:fixed; inset:0; background:rgba(40,28,34,.5);
    opacity:0; visibility:hidden; transition:opacity .35s ease, visibility .35s ease; z-index:60; }
  .nav-overlay.open{ opacity:1; visibility:visible; }
  .footer .wrap{ grid-template-columns:1fr; gap:2rem; }
}

/* ===== Touch devices: disable hover effects to prevent the "tap twice" bug =====
   On touch screens the first tap would otherwise trigger :hover instead of the
   link. Limiting hover styling to real pointers makes the first tap activate. */
@media (hover: none) {
  .btn-primary:hover,
  .btn-ghost:hover,
  .cta-ribbon .btn:hover,
  .cat:hover img,
  .feat figure:hover img,
  .g-item:hover img { transform: none; }
  .btn-primary:hover { background: var(--rose); box-shadow: 0 12px 26px -12px var(--rose-deep); }
  .btn-ghost:hover { background: transparent; }
  .cta-ribbon .btn:hover { background:#fff; color:var(--rose-deep); border-color:#fff; }
}
