/* ============================================================
   THE IPA GARDEN — Design System v2
   Mobile-first. All layout via classes (no inline styles used
   for anything that must respond to breakpoints) so media
   queries always win predictably.
   ============================================================ */

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

:root{
  --cream:      #F7F3E8;
  --cream-2:    #F1EBDA;
  --sage:       #5F7A52;
  --sage-dark:  #4A6140;
  --moss:       #3D4F35;
  --clay:       #C17A4E;
  --clay-dark:  #A9663D;
  --ink:        #2A2620;
  --ink-soft:   #5B564C;
  --line:       rgba(61,79,53,0.18);

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 64px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

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

body{
  margin:0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* safety net against any stray wide element */
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  color: var(--moss);
  letter-spacing: -0.01em;
}

p{ margin: 0; }

.eyebrow{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-dark);
}

.lede{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
}

/* ---------- Layout shell ---------- */
.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section{ padding: var(--space-5) 0; }
.section-tight{ padding: var(--space-4) 0; }
.section-notop{ padding-top: 0; }
.section-nobottom{ padding-bottom: 0; }

@media (min-width: 900px){
  .section{ padding: var(--space-6) 0; }
}

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
/* Blur lives on a pseudo-element, not the header itself, so the header
   never becomes a containing block for position:fixed descendants
   (.nav-links). backdrop-filter/transform/filter on an ancestor traps
   fixed-position children inside that ancestor's box on mobile. */
.site-header::before{
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(247,243,232,0.92);
  backdrop-filter: blur(10px);
  z-index: -1;
}
.nav{
  max-width: 1180px;
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--moss);
  white-space: nowrap;
}
.brand .mark{
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--sage);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--sage);
  flex-shrink:0;
}

/* Nav links: mobile-first = OFF-CANVAS PANEL by default.
   Desktop overrides to inline row at 900px. This order means
   the "hidden on mobile" state is the default, not a media-query
   add-on, so nothing can accidentally leak through above 900px. */
.nav-links{
  list-style:none; margin:0; padding: var(--space-4) 20px;
  position:fixed;
  top: var(--header-h);
  left:0; right:0; bottom:0;
  background: var(--cream);
  display:flex;
  flex-direction:column;
  gap: var(--space-3);
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  z-index: 90;
  overflow-y: auto;
}
.nav-links.open{ transform: translateX(0); }
.nav-links a{
  font-size: 20px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--moss);
}
.nav-links a.active{ color: var(--clay-dark); }
.nav-cta{
  background: var(--sage);
  color: var(--cream) !important;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  display: inline-block;
  width: fit-content;
}

.nav-toggle{
  display:flex;
  background:none; border:none; cursor:pointer;
  width:40px; height:40px;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
  flex-shrink: 0;
}
.nav-toggle span{ width:22px; height:2px; background: var(--moss); border-radius:2px; transition: all .25s var(--ease); }
.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 (min-width: 900px){
  .nav-links{
    position:static;
    flex-direction:row;
    align-items:center;
    padding:0;
    gap: var(--space-4);
    background: transparent;
    transform:none;
    transition:none;
    overflow:visible;
  }
  .nav-links a{ font-size: 14.5px; font-family: var(--font-body); font-weight:500; color: var(--ink-soft); position:relative; }
  .nav-links a:hover, .nav-links a:focus-visible{ color: var(--moss); }
  .nav-links a.active{ color: var(--moss); }
  .nav-links a.active:not(.nav-cta)::after{
    content:''; position:absolute; left:0; right:0; bottom:-20px;
    height:2px; background: var(--clay); border-radius:2px;
  }
  .nav-cta{ padding: 9px 20px; font-size: 13.5px !important; }
  .nav-toggle{ display:none; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  transition: all .25s var(--ease);
  border: 1.5px solid transparent;
  cursor:pointer;
  width: 100%;
}
.btn-primary{ background: var(--sage); color: var(--cream); }
.btn-primary:hover{ background: var(--sage-dark); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(74,97,64,0.5); }
.btn-ghost{ background: transparent; color: var(--moss); border-color: var(--moss); }
.btn-ghost:hover{ background: var(--moss); color: var(--cream); }
.btn-clay{ background: var(--clay); color: var(--cream); }
.btn-clay:hover{ background: var(--clay-dark); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(169,102,61,0.5); }
.btn-outline-light{ background: transparent; color: var(--cream); border-color: rgba(247,243,232,0.4); }

@media (min-width: 600px){
  .btn{ width: auto; }
}

.btn-row{ display:flex; flex-direction:column; gap:14px; }
@media (min-width: 600px){
  .btn-row{ flex-direction:row; flex-wrap:wrap; }
}

/* ---------- Arch motif ---------- */
.arch{ border-radius: 200px 200px 8px 8px; overflow: hidden; position: relative; }
.arch img{ width:100%; height:100%; object-fit:cover; }
.arch-frame{ border: 1.5px solid var(--line); padding: 8px; border-radius: 208px 208px 16px 16px; background: var(--cream-2); }

@media (min-width: 900px){
  .arch{ border-radius: 400px 400px 8px 8px; }
  .arch-frame{ padding: 10px; border-radius: 410px 410px 18px 18px; }
}

/* ---------- Divider ---------- */
.divider{ display:flex; align-items:center; gap:14px; color: var(--sage); margin: var(--space-3) 0; }
.divider .stem{ flex:1; height:1px; background: var(--line); }
.divider .motif{ font-size: 13px; opacity:.8; }

/* ---------- Section heading ---------- */
.section-head{ max-width: 640px; margin-bottom: var(--space-4); }
.section-head h2{ font-size: 30px; margin-top: 8px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
@media (min-width: 900px){
  .section-head h2{ font-size: 42px; }
}

/* ---------- Grid layout helpers (mobile-first single column) ---------- */
.grid-2{ display:grid; grid-template-columns: 1fr; gap: var(--space-4); }
.grid-3{ display:grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 760px){
  .grid-2{ grid-template-columns: 1fr 1fr; }
  .grid-3{ grid-template-columns: repeat(3, 1fr); }
}
.align-center{ align-items:center; }
.order-1-mobile{ order:1; }
.order-2-mobile{ order:2; }
@media (min-width: 760px){
  .order-1-mobile, .order-2-mobile{ order: initial; }
}

/* ---------- Hero ---------- */
.hero{ padding-top: var(--space-4); }
.hero-title{ font-size: 38px; }
.hero-lead{ font-size: 17px; max-width: 480px; margin-top: 18px; }
@media (min-width: 900px){
  .hero{ padding-top: var(--space-5); }
  .hero-title{ font-size: 64px; }
  .hero-lead{ font-size: 18px; }
}

/* ---------- Cards ---------- */
.info-card{
  border:1.5px solid var(--line); border-radius:20px;
  padding: var(--space-3);
  background: var(--cream-2);
}
@media (min-width: 900px){
  .info-card{ padding: 28px 30px; }
}

.icon-circle{
  width:48px; height:48px; border-radius:50%;
  background: var(--sage); color: var(--cream);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--moss); border-radius: 24px;
  padding: var(--space-4) var(--space-3);
  text-align:center;
}
.cta-band h2{ color: var(--cream); font-size: 26px; margin-top:10px; }
@media (min-width: 900px){
  .cta-band{ padding: var(--space-6) var(--space-4); border-radius: 28px; }
  .cta-band h2{ font-size: 38px; }
}

/* ---------- Footer ---------- */
.site-footer{ background: var(--moss); color: var(--cream); padding: var(--space-5) 0 var(--space-3); margin-top: var(--space-6); }
.footer-grid{ display:grid; grid-template-columns: 1fr; gap: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid rgba(247,243,232,0.15); }
.footer-grid h4{ color: var(--cream); font-size: 13px; letter-spacing:.1em; text-transform:uppercase; font-family: var(--font-body); font-weight:600; margin-bottom: 14px; opacity:.75; }
.footer-brand{ font-family: var(--font-display); font-size: 22px; margin-bottom:10px; color: var(--cream); }
.footer-grid p, .footer-grid a{ color: rgba(247,243,232,0.82); font-size:14.5px; line-height:1.8; }
.footer-grid a:hover{ color: var(--cream); }
.footer-bottom{ display:flex; flex-direction:column; gap:14px; padding-top: var(--space-3); font-size: 13px; color: rgba(247,243,232,0.55); }
.social-row{ display:flex; gap:14px; }
.social-row a{ width:36px; height:36px; border-radius:50%; border:1px solid rgba(247,243,232,0.3); display:flex; align-items:center; justify-content:center; transition: all .2s var(--ease); }
.social-row a:hover{ background: var(--cream); color: var(--moss); border-color: var(--cream); }

@media (min-width: 760px){
  .footer-grid{ grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-bottom{ flex-direction:row; justify-content:space-between; align-items:center; }
}

/* ---------- Utility ---------- */
.center-text{ text-align:center; }
.muted{ color: var(--ink-soft); }
.mx-auto{ margin-left:auto; margin-right:auto; }

.reveal{ opacity:0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform: translateY(0); }

/* Feature list (3-up) */
.feature{ padding: 0 var(--space-2); text-align:center; }
.feature h3{ font-size:18px; margin-top:16px; }
.feature p{ font-size:14.5px; margin-top:8px; }
