/* styles.css */

/* ---------- Base ---------- */
:root{
  --bg-cream: #f6f1ea;
  --bg-blush: #e7d3cd;
  --bg-terracotta: #b07058;

  --text-dark: #242323;
  --text-mid: #4a4a4a;
  --text-light: rgba(255,255,255,0.92);

  --border-soft: rgba(0,0,0,0.12);

  --container: 1120px;

  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";

  /* Spacing tokens (single source of truth) */
  --section-gap: 72px;     /* gap between major blocks */
  --para-gap: 18px;        /* paragraph spacing */
  --minor-gap: 26px;       /* tighter “related content” spacing */
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: var(--sans);
  color: var(--text-dark);
  background: var(--bg-cream);
  line-height: 1.55;
}

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

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

/* ---------- HERO ---------- */
.hero{
  position: relative;
  min-height: 92vh;
  background-image: url("hero.JPG");
  background-size: cover;
  background-position: 60% 45%;
  border-radius: 0;
  overflow: hidden;
}

.hero__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.38) 0%,
    rgba(0,0,0,0.18) 48%,
    rgba(0,0,0,0.00) 100%
  );
}

.hero__inner{
  position: absolute;
  inset: 0;
  padding: 34px clamp(28px, 4vw, 48px) 44px;
  display: flex;
  flex-direction: column;
}

.hero__topbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
}

.brand{
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  color: rgba(255,255,255,0.96);
  text-decoration: none;
  letter-spacing: 0.3px;
  cursor: default;
}

.nav{
  display:flex;
  gap: 36px;
  align-items:center;
}

.nav a{
  font-family: var(--serif);
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 10px;
  text-decoration-thickness: 1px;
  opacity: 0.82;
  font-size: 18px;
  transition: opacity 0.16s ease, text-decoration-color 0.16s ease;
  text-decoration-color: rgba(255,255,255,0.55);
}

.nav a:hover{
  opacity: 1;
  text-decoration-color: rgba(255,255,255,0.92);
}

.hero__content{
  padding-top: clamp(160px, 32vh, 300px);
  max-width: 1040px;
}

.hero__bottom{
  margin-top: auto;
  max-width: 1040px;
}

.hero__headline{
  font-family: var(--serif);
  color: var(--text-light);
  margin: 0;
  line-height: 1.04;
  font-size: clamp(34px, 4.6vw, 66px);
  letter-spacing: 0.2px;
}

.hero__subhead{
  margin: 18px 0 22px;
  color: rgba(255,255,255,0.82);
  font-size: clamp(18px, 1.4vw, 22px);
}

.hero__cta{
  display:flex;
  gap: 16px;
  align-items:center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.14s ease, box-shadow 0.18s ease;
  user-select:none;
}

.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: rgba(255,255,255,0.92);
  color: #1f1f1f;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.btn--ghost{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
}

/* ---------- Sections ---------- */
.section{ padding: 84px 0; }
.section--cream{ background: var(--bg-cream); }
.section--blush{ background: var(--bg-blush); }
.section--terracotta{ background: var(--bg-terracotta); color: rgba(255,255,255,0.92); }

.section h2{
  font-family: var(--serif);
  font-size: 64px;
  letter-spacing: 0.2px;
  margin: 0 0 20px;
  line-height: 1.02;
}

.section p{
  margin: 0 0 var(--para-gap);
  color: var(--text-mid);
  font-size: 18px;
}

/* Keep last paragraph in a block from adding accidental extra space */
.section p:last-child{ margin-bottom: 0; }

.section--terracotta p,
.section--terracotta .note{
  color: rgba(255,255,255,0.86);
}

/* ---------- Split layout ---------- */
.split{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
  margin: 0 0 var(--section-gap);
}

.split--reverse{
  grid-template-columns: 0.85fr 1.15fr;
}

.split--reverse .split__text{ order: 2; }
.split--reverse .split__media{ order: 1; }

.split__media{
  border-radius: 18px;
  background: rgba(0,0,0,0.06);
  border: 1px solid var(--border-soft);
  overflow: hidden;
}

.split__media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ✅ IMPORTANT FIX:
   Only remove bottom margin when the paragraph is literally the last child.
   This stops About Me paragraph 2 from being forced to margin-bottom: 0. */
.split__text > p:last-child{ margin-bottom: 0; }

/* Tea image sizing */
.split--approach .split__media{
  height: 560px;
}
@media (min-width: 981px){
  .split--approach .split__media{
    height: 545px;
  }
}

/* Portrait sizing */
.split__media--portrait{
  height: 470px;
}
.split__media--portrait img{
  object-position: center 55%;
}

/* --- Targeted spacing fixes (NO cascading overrides) --- */

/* Tighten space after Approach block */
.split--approach{ margin-bottom: var(--minor-gap); align-items: center; }

/* Full-width paragraph: closer to Approach, then a proper gap before About */
.approach-full{
  margin: 0 0 var(--section-gap);
  color: var(--text-mid);
  font-size: 18px;
}

/* ✅ About block: force it to sit lower (padding avoids margin-collapsing weirdness) */
.split--about{
  padding-top: calc(var(--minor-gap) + 26px);
  margin-bottom: var(--minor-gap);
  align-items: center;
}

/* About-extra sits under both columns; keep it stable */
.about-extra{
  margin-top: 0;
  margin-bottom: var(--section-gap);
}

/* Bullets */
.bullets{
  margin: 8px 0 var(--para-gap);
  padding-left: 20px;
  color: var(--text-mid);
  font-size: 18px;
}
.bullets li{ margin: 6px 0; }

/* Stack blocks */
.stack{
  display:grid;
  gap: var(--section-gap);
}

/* Force “A little outside the therapy room” one line on desktop */
.one-line-desktop{
  white-space: nowrap;
}

/* ---------- Book section (alignment) ---------- */
/* Align the button with the heading line (not vertically centered in the whole block) */
.book{
  display:flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.book__left{ min-width: 0; }

.book__right{
  display:flex;
  justify-content: flex-end;
  flex-shrink: 0;
  /* Nudge to visually line up with the H2 cap height */
  padding-top: 10px;
}

.book__right .btn{
  white-space: nowrap;
}

/* ---------- Contact ---------- */
.contact{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items:start;
}

.form{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(8px);
}

.form__row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field{ display:block; margin-bottom: 14px; }

.field__label{
  display:inline-block;
  font-size: 14px;
  margin-bottom: 8px;
  opacity: 0.92;
}

input, textarea{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.95);
  padding: 12px;
  font-size: 16px;
  outline: none;
}

/* ---------- Footer ---------- */
.footer{
  background: var(--bg-cream);
  padding: 18px 0;
}

.footer__grid{
  display:grid;
  grid-template-columns: 1fr 360px;
  column-gap: 88px;
  row-gap: 6px;
  align-items:start;
}

.footer__grid > :nth-child(1){
  grid-column: 1;
  grid-row: 1 / span 2;
}

.footer__grid > :nth-child(2),
.footer__grid > :nth-child(3){
  grid-column: 2;
  justify-self: end;
  text-align: right;
}

.footer__brandname{
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 4px;
}

.footer__title{
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 4px;
}

.footer__meta{
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.35;
}

.footer__link{
  overflow-wrap: break-word;
  word-break: break-word;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
font-size: 14px; /* or whatever size you prefer */
}

.footer__link svg{
  width: 20px;
  height: 20px;
}

.footer__link:hover svg{
  opacity: 0.75;
}

/* Instagram icon link in footer */
.footer__social{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Force the SVG icon size */
.footer__social .ig-icon{
  width: 28px;
  height: 28px;
  display: block;
  fill: currentColor;
}

.footer__social:hover .ig-icon{
  opacity: 0.75;
}


/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .split{
    grid-template-columns: 1fr;
    gap: 34px;
    margin-bottom: 56px;
  }

  .split--approach .split__media,
  .split__media--portrait{
    height: 360px;
  }

  .contact{ grid-template-columns: 1fr; }

  .one-line-desktop{ white-space: normal; }

  .book{
    flex-direction: column;
    align-items: flex-start;
  }
  .book__right{
    justify-content: flex-start;
    padding-top: 0;
  }
}
/* FORCE footer social icon size (covers svg OR img) */
.footer__brand .footer__link svg,
.footer__brand .footer__link img{
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  display: block;
}

/* FORCE footer icon size no matter how the icon is inserted (svg/img/i) */
.footer .footer__link svg,
.footer .footer__link img,
.footer .footer__link i{
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  display: inline-block !important;
}

/* if it's a font icon (<i>), THIS is what actually controls size */
.footer .footer__link i{
  font-size: 22px !important;
  line-height: 1 !important;
}

/* =========================================================
   MOBILE FIX PACK (hero to bottom + CTA on one line + footer)
   Paste at VERY BOTTOM of styles.css
   ========================================================= */

/* ---------- Mobile / small screens ---------- */
@media (max-width: 480px){

  /* HERO: stop tiling/repeating + make hero shorter */
  .hero{
    min-height: 68vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 25%;
  }

  /* HERO: make inner a column so we can push content to bottom
     Use min-height (NOT height:100%) so it actually has space to push into */
  .hero__inner{
    padding: 18px 18px 18px;
    display: flex;
    flex-direction: column;
    min-height: 68vh; /* matches .hero min-height so bottom-pinning works */
  }

  /* brand smaller + sits naturally over image */
  .brand{
    font-size: 18px;
    line-height: 1.1;
  }

  /* HERO content: pin to bottom (kills old padding-top strategy) */
  .hero__content{
    margin-top: auto;          /* pushes block to bottom */
    padding-top: 0 !important; /* kills any earlier push-down */
    max-width: 100%;
  }

  .hero__bottom{
    margin-top: 0;
    padding-bottom: 14px;      /* breathing room above bottom edge */
    max-width: 100%;
  }

  /* HERO headline */
  .hero__headline{
    font-size: 25px;
    line-height: 1.12;
    letter-spacing: 0;
  }

  /* HERO subhead */
  .hero__subhead{
    font-size: 16px;
    margin: 12px 0 14px;
  }

  /* Buttons on ONE line */
  .hero__cta{
    flex-wrap: nowrap;
    gap: 10px;
  }

  .btn{
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* Hide the desktop nav links on mobile */
  .nav{ display:none; }

  /* SECTIONS: spacing only */
  .section{ padding: 54px 0; }

  /* ✅ RESTORE MOBILE HEADING SIZE (this is what you removed) */
  .section h2{
    font-size: 34px;     /* puts headings back to the mobile size you had */
    line-height: 1.05;
    margin: 0 0 14px;
  }

  .section p,
  .bullets,
  .approach-full{
    font-size: 16px;
    line-height: 1.6;
  }

  /* Force text FIRST then tea image in approach on mobile */
  .split--approach{
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .split--approach .split__text{ order: 1; }
  .split--approach .split__media{ order: 2; }

  /* Tea photo: keep square (stable) */
  .split--approach .split__media{
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .split--approach .split__media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Portrait (About me) image height on mobile stays as you had it */
  .split__media--portrait{
    height: 320px;
  }

  /* Form fields: keep 16px to prevent iOS zoom-on-focus */
  input, textarea{
    font-size: 16px;
    padding: 11px;
  }
}


/* ---------- Footer + general mobile stacking ---------- */
@media (max-width: 600px){

  /* Footer: stack everything */
  .footer__grid{
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 14px;
    align-items: start;
  }

  /* IMPORTANT: undo ANY desktop grid positioning so nothing disappears */
  .footer__grid > *{
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-self: start !important;
    text-align: left !important;
  }

  .footer__brandname{ font-size: 22px; }
  .footer__title{ font-size: 18px; }
  .footer__meta{ font-size: 14px; }

  /* Keep the Instagram icon visible and not clipped */
  .footer__social .ig-icon{
    width: 24px;
    height: 24px;
  }

  /* Push footer further down so the full Location + icon are reachable */
  .footer{
    padding-bottom: calc(140px + env(safe-area-inset-bottom));
  }
}

/* Guard against the contact email overflowing on narrow screens */
.prefer-email a{
  overflow-wrap: break-word;
  word-break: break-word;
}
