/* The Well - draft website styles (v3 - brand-forward refresh) */

:root{
  /* Brand palette (from brand kit naming) */
  --sage:#A3B18A;
  --eucalyptus:#7F9C8B;
  --cream:#F7F3E8;
  --sand:#D7C7B4;
  --blush:#D9A7A0;

  /* Neutrals */
  --ink:#1B1B1B;
  --ink-2:#2B2B2B;
  --muted:#5A5A5A;
  --line: rgba(27,27,27,.10);
  --card:#FFFFFF;

  /* Type */
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --font-serif: "Cormorant Garamond", ui-serif, Georgia, "Times New Roman", Times, serif;
  --font-script: "Allura", cursive;

  /* Layout */
  --radius: 22px;
  --radius-lg: 30px;
  --max: 1120px;
  --shadow: 0 18px 50px rgba(0,0,0,.10);
  --shadow-soft: 0 12px 32px rgba(0,0,0,.08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
img{max-width:100%;height:auto;display:block}

body{
  font-family: var(--font-sans);
  color:var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(163,177,138,.30), transparent 60%),
    radial-gradient(900px 540px at 92% 8%, rgba(217,167,160,.22), transparent 55%),
    linear-gradient(180deg, rgba(247,243,232,1), #ffffff 42%, rgba(247,243,232,.50) 100%);
  line-height:1.6;
  letter-spacing:.1px;
}

a{color:inherit}

.wrap,.container{max-width:var(--max); margin:0 auto; padding:0 22px}

.srOnly{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

.lead{color:rgba(27,27,27,.82); font-size:1.05rem}
.muted{color:rgba(27,27,27,.66)}
.divider{height:1px;background:var(--line);margin:24px 0}

/* Pills */
.pillRow{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.pill{
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.70);
  border:1px solid rgba(27,27,27,.10);
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  text-decoration:none;
  border:1px solid transparent;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease, color .14s ease;
  font-weight:600;
}
.btn:hover{transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0,0,0,.12)}

/* Brand-forward primary (no black) */
.btn-primary{
  background: linear-gradient(135deg, rgba(79,124,105,1), rgba(127,156,139,1));
  color:#ffffff;
  border-color: rgba(27,27,27,.10);
}
.btn-primary:hover{filter:saturate(1.05)}

.btn-ghost{
  background: rgba(255,255,255,.70);
  border-color: rgba(27,27,27,.14);
  color: rgba(27,27,27,.88);
}
.btn-ghost:hover{background: rgba(255,255,255,.88)}

.btn-dark{
  background: rgba(27,27,27,1);
  color:#fff;
  border-color: rgba(255,255,255,.18);
}

.btn-small{padding:10px 13px;font-size:14px}

/* Header */
.siteHeader{
  position:sticky;top:0;z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(247,243,232,.92);
  border-bottom: 1px solid rgba(27,27,27,.08);
}

.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0}

.brand{
  display:flex;align-items:center;gap:12px;
  text-decoration:none;
}
.brand img{
  height:84px;width:auto;
  padding:8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(27,27,27,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.brandText{display:flex;align-items:baseline;gap:6px;}
.brandScript{font-family: var(--font-script); font-size:26px; color: rgba(79,124,105,1); line-height:1;}
.brandName{font-family: var(--font-script); font-size:30px; color: rgba(79,124,105,1); line-height:1;}

.desktopNav{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.desktopNav a{
  padding:8px 10px;
  text-decoration:none;
  border-radius:999px;
  color:rgba(27,27,27,.82);
  font-weight:600;
}
.desktopNav a:hover{background: rgba(127,156,139,.14)}
.desktopNav a.active{background: rgba(163,177,138,.22)}

/* Make the appointment button stand out (still brand colors) */
.desktopNav .btn-primary{margin-left:6px}

.mobileToggle{
  display:none;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(27,27,27,.16);
  background:rgba(255,255,255,.70);
  font-weight:700;
}

.mobileNav{display:none;border-top:1px solid rgba(27,27,27,.08)}
.mobileNavInner{display:flex;flex-direction:column;gap:10px;padding:14px 0}
.mobileNavInner a{
  padding:12px 12px;
  border-radius:16px;
  text-decoration:none;
  background:rgba(255,255,255,.70);
  border:1px solid rgba(27,27,27,.08)
}

/* Hero */
.hero{padding:62px 0 36px}
.heroGrid{display:grid;grid-template-columns: 1.05fr .95fr;gap:28px;align-items:stretch}

.heroCopy{
  background: rgba(255,255,255,.72);
  border:1px solid rgba(27,27,27,.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding:30px;
  position:relative;
  overflow:hidden;
}

.heroCopy::after{
  content:"";
  position:absolute;
  inset:-60px -80px auto auto;
  width:240px;height:240px;
  background: radial-gradient(circle at 30% 30%, rgba(217,167,160,.32), rgba(163,177,138,.20) 55%, transparent 70%);
  transform: rotate(12deg);
  pointer-events:none;
}

.kicker{
  display:inline-flex;align-items:center;gap:10px;
  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(27,27,27,.70)
}
.kicker::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--eucalyptus)}

.heroCopy h1{
  margin:14px 0 10px;
  font-family: var(--font-serif);
  font-weight:600;
  font-size: clamp(2.25rem, 3.6vw, 3.2rem);
  line-height:1.06;
}

.heroCopy h1 em{
  font-family: var(--font-script);
  font-style:normal;
  font-weight:400;
  color: rgba(127,156,139,.95);
  letter-spacing: .2px;
}

.heroCtas{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}

.heroMedia{display:grid;grid-template-columns: 1fr;gap:18px}
.heroCard{
  border-radius: var(--radius-lg);
  overflow:hidden;
  border:1px solid rgba(27,27,27,.08);
  box-shadow: var(--shadow-soft);
  min-height: 220px;
  position:relative;
}
.heroCard img{width:100%;height:100%;object-fit:cover;filter: grayscale(100%);opacity:.92;transform: scale(1.02)}
.heroCard::after{
  content:"";
  position:absolute;inset:0;
  background: linear-gradient(160deg, rgba(163,177,138,.22), rgba(217,167,160,.10) 45%, rgba(27,27,27,.04));
}
.heroCardAlt{min-height: 220px}

/* Sections */
.section{padding:54px 0}
.sectionTint{background: rgba(255,255,255,.45)}

.sectionHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}

/* When a section header needs to stack (ex: Blog page intro + demo embed) */
.sectionHead.stack{
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
}
.sectionHead h2{
  margin:0;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 2.6vw, 2.3rem);
  font-weight:600;
}

.cards,.grid{display:grid;gap:18px}
.cards3,.grid3,.cols-3{grid-template-columns: repeat(3, 1fr)}
.grid2,.twoCol{grid-template-columns: 1fr 1fr}

.card{
  background: rgba(255,255,255,.80);
  border:1px solid rgba(27,27,27,.08);
  border-radius: 20px;
  padding:20px;
  box-shadow: 0 12px 34px rgba(0,0,0,.06);
}
.card h3{margin:0 0 8px;font-size:16px;letter-spacing:.2px}
.card p{margin:0;color:rgba(27,27,27,.74)}
.card-pad{padding:28px}

/* Split */
.split{display:grid;grid-template-columns: 1fr 1fr;gap:26px;align-items:center}
.imageFrame{
  border-radius: var(--radius-lg);
  overflow:hidden;
  border:1px solid rgba(27,27,27,.08);
  box-shadow: var(--shadow);
}
.imageFrame img{width:100%;height:100%;object-fit:cover;filter: grayscale(100%);opacity:.92}

.callout{
  border-left:4px solid var(--eucalyptus);
  padding-left:14px;
  color:rgba(27,27,27,.80);
}

/* Check list */
.checklist{list-style:none;padding:0;margin:14px 0 0;display:grid;gap:10px}
.checklist li{
  padding-left:30px;
  position:relative;
  color: rgba(27,27,27,.78);
}
.checklist li::before{
  content:"";
  width:18px;height:18px;
  border-radius:6px;
  position:absolute;left:0;top:3px;
  background: rgba(163,177,138,.30);
  border:1px solid rgba(27,27,27,.10);
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
}
.checklist li::after{
  content:"✓";
  position:absolute;left:4px;top:1px;
  font-size:14px;
  color: rgba(27,27,27,.70);
}

.notice,.note{
  background: rgba(217,167,160,.10);
  border:1px solid rgba(217,167,160,.22);
  padding:16px 18px;
  border-radius:18px;
}

/* Page hero */
.pageHero{padding:54px 0 18px}
.pageHeroGrid{display:grid;grid-template-columns: 1.2fr .8fr;gap:22px;align-items:center}
.pageHero h1{font-family:var(--font-serif);font-size: clamp(2.1rem, 3vw, 2.8rem);margin:0 0 10px;line-height:1.08}

/* Blog */
.postWrap{max-width: 820px;margin:0 auto}
.postTitle{font-family:var(--font-serif);font-size: clamp(2.0rem, 3.4vw, 2.8rem);margin:0 0 10px;line-height:1.1}

/* Footer */
.siteFooter{
  padding:34px 0 50px;
  border-top:1px solid rgba(27,27,27,.08);
  background: rgba(247,243,232,.78);
}
.footerGrid,.footGrid{display:grid;grid-template-columns: 1.4fr 1fr 1fr;gap:18px}
.siteFooter a{color:rgba(27,27,27,.78);text-decoration:none;display:block;margin:6px 0}
.siteFooter a:hover{text-decoration:underline}
.siteFooter h4{
  margin:0 0 10px;
  font-size:13px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: rgba(27,27,27,.66);
}
.footerLogo{
  height:76px;
  width:auto;
  padding:8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border:1px solid rgba(27,27,27,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.footerBottom{margin-top:18px;color:rgba(27,27,27,.66);font-size:13px}

/* Forms */
.form{display:grid;gap:12px}
.form label{font-size:13px;color:rgba(27,27,27,.75)}
.form input,.form textarea, .form select{
  width:100%;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(27,27,27,.18);
  background:rgba(255,255,255,.78);
  font:inherit;
}
.form textarea{min-height:140px;resize:vertical}

/* Responsive */
@media (max-width: 980px){
  .heroGrid{grid-template-columns:1fr}
  .sectionHead{flex-direction:column;align-items:flex-start}
  .split{grid-template-columns:1fr}
  .cards3,.grid3,.cols-3{grid-template-columns:1fr}
  .pageHeroGrid{grid-template-columns:1fr}
  .footerGrid,.footGrid{grid-template-columns:1fr}
  .desktopNav{display:none}
  .mobileToggle{display:inline-flex}
  .mobileNav[data-open="true"]{display:block}
}


/* Brand name next to logo */
.brandText{display:flex;align-items:baseline;gap:8px}
/* Substack-style demo (blog page) */
.substackDemo{
  margin-top:18px;
  width:100%;
  max-width: 980px;
  margin-left:auto;
  margin-right:auto;
  border-radius: var(--radius-lg);
  border:1px solid rgba(27,27,27,.10);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-soft);
  overflow:hidden;
}
.substackTop{
  padding:22px 22px 18px;
  background: linear-gradient(180deg, rgba(247,243,232,.95), rgba(255,255,255,.88));
  border-bottom:1px solid rgba(27,27,27,.08);
}
.substackBrand{
  display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;
}
.substackTitle{
  margin:0;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  line-height:1.12;
}
.substackDesc{margin:8px 0 0; color: rgba(27,27,27,.72); max-width:70ch}
.substackActions{display:flex;gap:10px;flex-wrap:wrap}
.substackBody{padding:18px 22px 22px}
.substackGrid{display:grid;grid-template-columns: 1.2fr .8fr;gap:18px;align-items:start}
.substackPosts{display:grid;gap:12px}
.substackPost{
  padding:14px 14px;
  border-radius:18px;
  border:1px solid rgba(27,27,27,.10);
  background: rgba(255,255,255,.88);
}
.substackPost h3{margin:0 0 6px;font-size:16px}
.substackPost .meta{font-size:12px;color:rgba(27,27,27,.58)}
.substackPost p{margin:8px 0 0;color:rgba(27,27,27,.72)}
.substackSide{
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(27,27,27,.10);
  background: rgba(247,243,232,.70);
}
.substackSide h3{margin:0 0 8px}
.substackSide p{margin:0 0 12px;color:rgba(27,27,27,.72)}
.substackInputRow{display:flex;gap:10px;flex-wrap:wrap}
.substackInputRow input{
  flex:1 1 220px;
  padding:12px 12px;
  border-radius:999px;
  border:1px solid rgba(27,27,27,.18);
  background: rgba(255,255,255,.90);
  font: inherit;
}

@media (max-width: 980px){
  .substackGrid{grid-template-columns:1fr}
}


/* Emphasis mission statement */
.hero-emphasis{
  display:block;
  font-size:1.35rem;
  line-height:1.6;
  margin-top:1rem;
}

/* Site credit */
.site-credit{
  text-align:center;
  font-size:0.85rem;
  margin-top:2rem;
  opacity:0.7;
}
.site-credit a{
  text-decoration:none;
}
.site-credit a:hover{
  text-decoration:underline;
}


/* ===== Mobile-only nav polish (does not affect desktop) ===== */
@media (max-width: 980px){
  /* Extra breathing room so logo/menu aren't near the edges (supports iPhone safe areas) */
  .wrap,.container{
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }

  .nav{gap:12px}

  /* Theme-friendly hamburger button */
  .mobileToggle{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    border-radius:999px;
    border:1px solid rgba(27,27,27,.10);
    background: rgba(127,156,139,.14);
    color: rgba(27,27,27,.84);
    font-weight:700;
    letter-spacing:.02em;
  }
  .mobileToggle::before{
    content:"☰";
    font-size:16px;
    line-height:1;
  }
  .mobileToggle:hover{background: rgba(127,156,139,.20)}

  /* Make the dropdown feel intentional */
  .mobileNav{
    background: rgba(247,243,232,.92);
    backdrop-filter: blur(12px);
  }
}


/* ===== Final mobile nav tweaks ===== */
@media (max-width: 980px){
  .mobileToggle{
    padding:14px 18px;
    font-size:1rem;
  }
  .mobileToggle::before{
    font-size:18px;
  }
}
