/* ==========================================================================
   Logan Ranch Spa — site styles
   One stylesheet for the whole site. Edit colours in :root below.
   ========================================================================== */

:root{
  /* ---- Colours. Change these to restyle the whole site. ---- */
  --bg:        #0f1211;   /* page background            */
  --surface:   #161a18;   /* alternating band sections  */
  --raised:    #1c211e;   /* cards, image placeholders  */
  --ink:       #edefea;   /* main text                  */
  --muted:     #9aa39d;   /* secondary text             */
  --line:      #272d29;   /* borders and dividers       */
  --accent:    #93b3a0;   /* sage — links, kickers      */
  --accent-hi: #aecabb;   /* sage, hover state          */
  --on-accent: #0f1211;   /* text on a sage button      */

  /* ---- Type ---- */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* ---- Layout ---- */
  --max: 1180px;
  --pad: 24px;
  --radius: 14px;
  --header-h: 68px;   /* keep in sync with .bar height */
}

@media (min-width:700px){ :root{ --pad:32px; } }

*,*::before,*::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

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

/* Visible keyboard focus everywhere. */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
  border-radius:4px;
}

.wrap{ max-width:var(--max); margin-inline:auto; padding-inline:var(--pad); }

/* Screen-reader-only, but focusable (skip link). */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.skip:focus{
  position:fixed; top:12px; left:12px; z-index:100;
  width:auto; height:auto; clip:auto; margin:0;
  padding:12px 18px; background:var(--accent); color:var(--on-accent);
  border-radius:8px; font-weight:600;
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(15,18,17,.85);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}

.bar{ display:flex; align-items:center; gap:24px; height:68px; }

.logo{
  font-size:18px; font-weight:600; letter-spacing:-.02em;
  text-decoration:none; margin-right:auto; white-space:nowrap;
}
.logo span{ color:var(--accent); }

.nav{ display:flex; align-items:center; gap:30px; }
.nav a{
  font-size:15px; color:var(--muted); text-decoration:none;
  transition:color .18s;
}
.nav a:hover{ color:var(--ink); }
.nav a[aria-current="page"]{ color:var(--ink); }

/* `.nav a` is more specific than `.btn`, so the button inside the nav needs
   its colours restated or it inherits the muted link grey. */
.nav a.btn{ color:var(--on-accent); font-size:15px; }
.nav a.btn:hover{ color:var(--on-accent); }

/* Hamburger — hidden on desktop, shown under 860px. */
.nav-toggle{
  display:none; width:44px; height:44px; padding:0;
  background:none; border:1px solid var(--line); border-radius:10px;
  color:var(--ink); cursor:pointer;
}
.nav-toggle svg{ width:20px; height:20px; margin:auto; }
.nav-toggle .close{ display:none; }
.nav-toggle[aria-expanded="true"] .open{ display:none; }
.nav-toggle[aria-expanded="true"] .close{ display:block; }

@media (max-width:860px){
  .nav-toggle{ display:flex; }
  .nav{
    position:fixed; inset:68px 0 auto 0;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--bg); border-bottom:1px solid var(--line);
    padding:8px var(--pad) 24px;
    transform:translateY(-8px); opacity:0; pointer-events:none;
    transition:opacity .2s, transform .2s;
    max-height:calc(100dvh - 68px); overflow-y:auto;
  }
  .nav[data-open="true"]{ transform:none; opacity:1; pointer-events:auto; }
  .nav a{ padding:15px 0; font-size:18px; border-bottom:1px solid var(--line); }
  .nav .btn{ margin-top:18px; text-align:center; border-bottom:0; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn{
  display:inline-block; text-decoration:none; cursor:pointer;
  font-family:inherit; font-size:15px; font-weight:500; line-height:1.2;
  padding:13px 24px; border-radius:999px; border:1px solid transparent;
  background:var(--accent); color:var(--on-accent);
  transition:background .18s, border-color .18s, color .18s;
}
.btn:hover{ background:var(--accent-hi); }

.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover{ background:var(--raised); border-color:var(--accent); }

.btn-row{ display:flex; flex-wrap:wrap; gap:12px; }

/* ==========================================================================
   Shared section furniture
   ========================================================================== */

section{ padding-block:72px; }
@media (min-width:860px){ section{ padding-block:96px; } }

.kicker{
  margin:0 0 16px;
  font-size:12.5px; font-weight:600; letter-spacing:.14em;
  text-transform:uppercase; color:var(--accent);
}

h1,h2,h3{ letter-spacing:-.025em; font-weight:600; margin:0; }
h1{ font-size:clamp(34px,6vw,58px); line-height:1.08; }
h2{ font-size:clamp(26px,3.6vw,34px); line-height:1.15; }
h3{ font-size:17px; letter-spacing:-.01em; }

.lede{ font-size:19px; color:var(--muted); margin:0; max-width:46ch; }
.prose p{ color:var(--muted); }
.prose p:first-child{ margin-top:0; }

.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:20px; flex-wrap:wrap; margin-bottom:36px;
}
.section-head p{ margin:8px 0 0; color:var(--muted); }

.band{ background:var(--surface); border-block:1px solid var(--line); }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */

.page-hero{ padding-block:56px 0; }
.page-hero .lede{ margin-top:18px; }

/* Home hero — text beside image */
.hero{
  display:grid; gap:36px; align-items:center;
  padding-block:48px 64px;
}
@media (min-width:860px){
  .hero{ grid-template-columns:1.05fr .95fr; gap:64px; padding-block:80px 96px; }
}
.hero figure{
  margin:0; border-radius:var(--radius); overflow:hidden;
  aspect-ratio:4/5; background:var(--raised);
}
@media (max-width:859px){ .hero figure{ aspect-ratio:16/10; } }
.hero figure img{ width:100%; height:100%; object-fit:cover; }
.hero h1{ margin:0 0 20px; }
.hero .lede{ margin-bottom:32px; }

/* ==========================================================================
   Credentials strip
   ========================================================================== */

.strip{ background:var(--surface); border-block:1px solid var(--line); }
.strip .wrap{
  display:flex; flex-wrap:wrap; gap:32px 56px; padding-block:26px;
}
.stat b{
  display:block; font-size:24px; font-weight:600; letter-spacing:-.02em;
}
.stat span{ font-size:14px; color:var(--muted); }

/* ==========================================================================
   Treatment cards
   ========================================================================== */

.grid{ display:grid; gap:20px; grid-template-columns:1fr; }
@media (min-width:560px){ .grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:960px){ .grid{ grid-template-columns:repeat(4,1fr); gap:22px; } }
.grid-3{ grid-template-columns:1fr; }
@media (min-width:640px){ .grid-3{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:960px){ .grid-3{ grid-template-columns:repeat(3,1fr); } }

.card{ display:block; text-decoration:none; }
.card figure{
  margin:0 0 14px; border-radius:12px; overflow:hidden;
  aspect-ratio:1/1; background:var(--raised);
}
.card figure img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .4s ease;
}
.card:hover figure img{ transform:scale(1.045); }
.card h3{ margin:0 0 4px; }
.card p{ margin:0; font-size:14.5px; line-height:1.5; color:var(--muted); }

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .card figure img{ transition:none; }
  .card:hover figure img{ transform:none; }
}

/* ==========================================================================
   Treatment detail rows (services page)
   ========================================================================== */

.treatment{
  display:grid; gap:24px; padding-block:44px;
  border-top:1px solid var(--line);
  /* The header is sticky, so an anchored heading would sit underneath it
     without this offset. */
  scroll-margin-top:calc(var(--header-h) + 28px);
}
@media (min-width:860px){
  /* align-items:start stops the grid stretching the figure past its 4/3 ratio
     when the text column is taller. */
  .treatment{
    grid-template-columns:.8fr 1.2fr; gap:52px; padding-block:56px;
    align-items:start;
  }
}
.treatment figure{
  margin:0; border-radius:12px; overflow:hidden;
  aspect-ratio:4/3; background:var(--raised);
}
.treatment figure img{ width:100%; height:100%; object-fit:cover; }
.treatment h3{ font-size:24px; letter-spacing:-.02em; margin:0 0 12px; }
.treatment p{ color:var(--muted); margin:0 0 14px; }
.treatment p:last-child{ margin-bottom:0; }

/* ==========================================================================
   Split content block (story / feature)
   ========================================================================== */

.split .wrap{
  display:grid; gap:36px; align-items:center; padding-block:72px;
}
@media (min-width:860px){
  .split .wrap{ grid-template-columns:.85fr 1.15fr; gap:60px; padding-block:88px; }
}
.split figure{
  margin:0; border-radius:var(--radius); overflow:hidden;
  aspect-ratio:3/4; background:var(--raised);
}
@media (max-width:859px){ .split figure{ aspect-ratio:16/10; } }
.split figure img{ width:100%; height:100%; object-fit:cover; }

blockquote{
  margin:24px 0 0; padding-left:20px;
  border-left:2px solid var(--accent);
  color:var(--muted); font-style:italic;
}

/* ==========================================================================
   Team
   ========================================================================== */

.person{ padding-block:44px; border-top:1px solid var(--line); }
.person:first-of-type{ border-top:0; padding-top:0; }
.person h3{ font-size:22px; letter-spacing:-.02em; margin:0 0 4px; }
.person .role{
  margin:0 0 18px; font-size:14px; color:var(--accent);
  letter-spacing:.04em;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid{ display:grid; gap:44px; }
@media (min-width:860px){
  .contact-grid{ grid-template-columns:1fr 1fr; gap:64px; }
}
.detail{ margin:0 0 28px; }
.detail h3{
  font-size:12.5px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--accent); margin:0 0 6px; font-weight:600;
}
.detail p{ margin:0; }
.detail a{ text-decoration:none; border-bottom:1px solid var(--line); }
.detail a:hover{ border-color:var(--accent); }

.field{ margin-bottom:18px; }
.field label{
  display:block; font-size:14px; margin-bottom:7px; color:var(--muted);
}
.field input, .field textarea{
  width:100%; font-family:inherit; font-size:16px; color:var(--ink);
  background:var(--raised); border:1px solid var(--line);
  border-radius:10px; padding:12px 14px;
}
.field input:focus, .field textarea:focus{ border-color:var(--accent); }
.field textarea{ min-height:140px; resize:vertical; }

.note{ font-size:14px; color:var(--muted); margin-top:14px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer{
  border-top:1px solid var(--line);
  padding-block:56px 40px; font-size:15px; color:var(--muted);
}
.fgrid{ display:grid; gap:32px; padding-bottom:32px; }
@media (min-width:760px){
  .fgrid{ grid-template-columns:1.4fr 1fr 1fr; gap:40px; }
}
.site-footer h4{
  font-size:12.5px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--ink); margin:0 0 10px; font-weight:600;
}
.site-footer p{ margin:0; }
.site-footer a{ text-decoration:none; }
.site-footer a:hover{ color:var(--accent); }
.fbot{
  border-top:1px solid var(--line); padding-top:22px; font-size:13.5px;
}