/* ==========================================================================
   First Dove Digital — Design Tokens & Base Styles
   ========================================================================== */

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

:root{
  /* ---- Color: pastel lavender + sage olive + sunset gold ---- */
  --bg:            #FAF8F4;
  --bg-alt:        #F4EFFB;
  --bg-sage:       #F2F5EE;
  --surface:       #FFFFFF;
  --surface-glass: rgba(255,255,255,0.6);

  --primary:       #7C6FCB;
  --primary-600:   #6455B8;
  --primary-800:   #453A80;
  --primary-tint:  #EDE9FB;

  --secondary:     #8CA37E;
  --secondary-600: #71875F;
  --secondary-tint:#E7EEDF;

  --accent:        #E0A458;
  --accent-600:    #C98A38;
  --accent-tint:   #FBEDD8;

  --ink:           #262435;
  --ink-soft:      #514C66;
  --ink-muted:     #7A7690;
  --border:        #E8E2F3;
  --border-soft:   #EFEAF7;

  --success:       #5C8A5C;
  --danger:        #C05656;

  /* ---- Type ---- */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md:   1.25rem;
  --fs-lg:   1.5rem;
  --fs-xl:   clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --fs-2xl:  clamp(2.25rem, 1.7rem + 2.5vw, 3.5rem);
  --fs-3xl:  clamp(2.75rem, 1.9rem + 4vw, 4.75rem);

  --lh-tight: 1.15;
  --lh-snug:  1.35;
  --lh-body:  1.65;

  /* ---- Space (8pt rhythm) ---- */
  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4.5rem;
  --sp-8: 6rem;
  --sp-9: 8rem;

  --container: 1200px;
  --container-narrow: 760px;

  /* ---- Shape / depth ---- */
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(38,36,53,0.06), 0 1px 1px rgba(38,36,53,0.04);
  --shadow-md: 0 8px 24px -8px rgba(69,58,128,0.18), 0 2px 8px -2px rgba(69,58,128,0.08);
  --shadow-lg: 0 24px 48px -16px rgba(69,58,128,0.24), 0 4px 12px -4px rgba(69,58,128,0.1);
  --shadow-glow: 0 0 0 1px rgba(124,111,203,0.08), 0 12px 32px -8px rgba(124,111,203,0.28);

  /* ---- Motion ---- */
  --dur-fast: 150ms;
  --dur-base: 280ms;
  --dur-slow: 500ms;
  --dur-hero: 900ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --stagger: 70ms;
}

/* ---- Reset ---- */
*, *::before, *::after{ box-sizing: border-box; }
* { margin: 0; }
html{
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html, body{ height: 100%; }
body{
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg{ display: block; max-width: 100%; }
input, button, textarea, select{ font: inherit; color: inherit; }
button{ cursor: pointer; }
a{ color: inherit; text-decoration: none; }
ul, ol{ list-style: none; padding: 0; }
h1,h2,h3,h4{ font-family: var(--font-display); line-height: var(--lh-tight); font-weight: 600; letter-spacing: -0.01em; }
p{ max-width: 60ch; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible{
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection{ background: var(--primary-tint); color: var(--primary-800); }

/* ---- Layout utilities ---- */
.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
.container-narrow{ max-width: var(--container-narrow); margin-inline: auto; }

@media (min-width: 768px){
  .container{ padding-inline: var(--sp-6); }
}

.section{ padding-block: var(--sp-8); position: relative; }
@media (max-width: 640px){
  .section{ padding-block: var(--sp-7); }
}
.section-alt{ background: var(--bg-alt); }
.section-sage{ background: var(--bg-sage); }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: var(--sp-3);
}
.eyebrow::before{
  content: "";
  width: 18px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-head{
  max-width: 640px;
  margin-bottom: var(--sp-6);
}
.section-head.center{ margin-inline: auto; text-align: center; }

.text-muted{ color: var(--ink-muted); }
.text-center{ text-align: center; }

/* ---- Buttons ---- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.btn:active{ transform: scale(0.96); }
.btn svg{ width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary{
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-accent{
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-600) 100%);
  color: #3A2A10;
  box-shadow: 0 12px 32px -10px rgba(224,164,88,0.55);
}
.btn-accent:hover{ transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(224,164,88,0.6); }

.btn-ghost{
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn-ghost:hover{ border-color: var(--primary); color: var(--primary-600); background: var(--primary-tint); }

.btn-light{
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-light:hover{ background: rgba(255,255,255,0.28); transform: translateY(-2px); }

.btn-sm{ min-height: 40px; padding: 0 1.25rem; font-size: var(--fs-xs); }
.btn-block{ width: 100%; }

/* ---- Header / Nav ---- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: var(--sp-4);
  transition: padding var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled{
  padding-block: var(--sp-2);
  background: rgba(250,248,244,0.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 var(--border), 0 12px 32px -20px rgba(38,36,53,0.25);
}
.nav-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.brand{
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  z-index: 2;
}
.brand-mark{ width: 38px; height: 38px; flex-shrink: 0; }
.brand-name em{ font-style: normal; color: var(--primary-600); }

/* ---- Logo chip: crops the icon out of the square FDDLogo.png lockup
   (background-position/size tuned to the artwork) and frames it so it
   reads cleanly on dark footers, photo heroes, and gradient CTA sections ---- */
.logo-chip{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 6px 14px 6px 6px;
  box-shadow: var(--shadow-sm);
}
.logo-icon{
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 9px;
  background-image: url('../assets/images/FDDLogo.png');
  background-repeat: no-repeat;
  background-size: 300% 300%;
  background-position: 46% 30%;
}
.footer-brand .logo-chip{ padding: 5px 12px 5px 5px; }
.footer-brand .logo-icon{ width: 34px; height: 34px; }

/* ---- Transparent header over a photo hero (index page only) ---- */
.site-header.on-hero:not(.is-scrolled) .nav-links a{ color: rgba(255,255,255,0.92); }
.site-header.on-hero:not(.is-scrolled) .nav-links a:hover{ color: #fff; }
.site-header.on-hero:not(.is-scrolled) .nav-links a::after{ background: #fff; }
.site-header.on-hero:not(.is-scrolled) .nav-toggle{ background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.35); }
.site-header.on-hero:not(.is-scrolled) .nav-toggle span{ background: #fff; }
@media (max-width: 900px){
  .site-header.on-hero:not(.is-scrolled) .nav-links.is-open a{ color: var(--ink); }
}

.nav-links{
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.nav-links a{
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-block: 4px;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a::after{
  content:"";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--dur-base) var(--ease-out);
}
.nav-links a:hover{ color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after{ width: 100%; }
.nav-links a.active{ color: var(--ink); }

.nav-cta{ display: flex; align-items: center; gap: var(--sp-3); }
.nav-cta-mobile{ display: none; }

.nav-toggle{
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.nav-toggle span{
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px){
  .nav-links{
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--sp-5);
    background: var(--bg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
  }
  .nav-links.is-open{ opacity: 1; transform: translateY(0); visibility: visible; }
  .nav-links a{ font-size: var(--fs-lg); font-family: var(--font-display); }
  .nav-cta{ display: none; }
  .nav-links .nav-cta-mobile{ display: inline-flex; margin-top: var(--sp-4); }
  .nav-toggle{ display: flex; }
}

/* ---- Cards ---- */
.card{
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.icon-tile{
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-tint);
  color: var(--primary-600);
  margin-bottom: var(--sp-3);
}
.icon-tile svg{ width: 26px; height: 26px; }
.icon-tile.sage{ background: var(--secondary-tint); color: var(--secondary-600); }
.icon-tile.gold{ background: var(--accent-tint); color: var(--accent-600); }

/* ---- Grid helpers ---- */
.grid{ display: grid; gap: var(--sp-5); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

/* ---- Stats strip ---- */
.stat{ text-align: left; }
.stat-num{
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--primary-800);
  display: block;
  line-height: 1;
  margin-bottom: var(--sp-1);
}
.stat-label{ font-size: var(--fs-sm); color: var(--ink-muted); }

/* ---- Footer ---- */
.site-footer{
  background: var(--ink);
  color: #E7E4F0;
  padding-block: var(--sp-7) var(--sp-5);
}
.footer-top{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 800px){
  .footer-top{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .footer-top{ grid-template-columns: 1fr; }
}
.footer-brand .brand{ color: #fff; }
.footer-brand p{ color: #A8A3C0; margin-top: var(--sp-3); max-width: 32ch; }
.footer-col h4{ font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; margin-bottom: var(--sp-3); color: #fff; }
.footer-col a, .footer-col li{ color: #A8A3C0; font-size: var(--fs-sm); }
.footer-col li + li{ margin-top: var(--sp-2); }
.footer-col a{ transition: color var(--dur-fast) var(--ease-out); }
.footer-col a:hover{ color: #fff; }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-5);
  font-size: var(--fs-xs);
  color: #837E9C;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.social-row{ display: flex; gap: var(--sp-3); }
.social-row a{
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.social-row a:hover{ background: var(--primary); transform: translateY(-3px); }
.social-row svg{ width: 18px; height: 18px; }

/* ---- Full-bleed photo hero (homepage) ---- */
.hero-photo{
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center 60%;
  color: #fff;
  text-align: center;
  padding-top: var(--sp-8);
}
.hero-photo::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,26,48,0.58) 0%, rgba(30,26,48,0.32) 38%, rgba(30,26,48,0.72) 100%);
}
.hero-photo .container{ position: relative; z-index: 1; }
.hero-photo h1{ color: #fff; max-width: 18ch; margin-inline: auto; }
.hero-photo p{ color: rgba(255,255,255,0.88); margin-inline: auto; }

.pill-label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.1);
  margin-bottom: var(--sp-5);
}

/* ---- Page header (inner pages) ---- */
.page-hero{
  padding-top: calc(var(--sp-9) + 2rem);
  padding-bottom: var(--sp-7);
  position: relative;
  overflow: hidden;
}
.page-hero .container{ position: relative; z-index: 1; }
.page-hero h1{ font-size: var(--fs-2xl); max-width: 16ch; }
.breadcrumb{ display:flex; align-items:center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--ink-muted); margin-bottom: var(--sp-4); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;}
.breadcrumb a:hover{ color: var(--primary-600); }

/* ---- Misc ---- */
.divider-line{ height:1px; background: var(--border); border:0; }
.tag{
  display: inline-flex;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--primary-tint);
  color: var(--primary-600);
}
.tag.sage{ background: var(--secondary-tint); color: var(--secondary-600); }
.tag.gold{ background: var(--accent-tint); color: var(--accent-600); }

.badge-rating{
  display:inline-flex; align-items:center; gap:6px;
  font-size: var(--fs-xs); font-weight:700; color: var(--ink-soft);
}
.badge-rating svg{ width:14px; height:14px; color: var(--accent); }
