/* ============================================================
   Hair Loft on Linden — styles
   Editorial salon: warm ivory · charcoal ink · copper accent
   ============================================================ */

:root {
  --ivory:      #faf5ee;
  --cream:      #f2e8da;
  --cream-deep: #ece0cf;
  --ink:        #2a2320;
  --ink-soft:   #5d544d;
  --ink-faint:  #8a8079;
  --copper:     #b0764a;
  --copper-dk:  #8f5c36;
  --taupe:      #c9b8a5;
  --line:       rgba(42, 35, 32, .12);
  --line-soft:  rgba(42, 35, 32, .07);
  --white:      #fff;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Jost", system-ui, sans-serif;

  --wrap: 1160px;
  --radius: 4px;
  --shadow: 0 18px 50px -24px rgba(42, 35, 32, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---- Reset / base ------------------------------------------ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }
.section { padding: clamp(64px, 9vw, 130px) 0; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--ivory); padding: 10px 18px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---- Typography -------------------------------------------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.06; letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.5rem; }
p  { color: var(--ink-soft); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--copper);
  margin-bottom: 1.1rem;
}
.section-head { max-width: 620px; margin-bottom: clamp(40px, 6vw, 70px); }
.section-head h2 { color: var(--ink); }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  font-family: var(--sans); font-weight: 500; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 1.05em 2.1em;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn-book      { background: var(--copper); color: var(--white); }
.btn-book:hover{ background: var(--copper-dk); transform: translateY(-2px); }
.btn-dark      { background: var(--ink); color: var(--ivory); }
.btn-dark:hover{ background: #423933; transform: translateY(-2px); }
.btn-ghost     { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover{ background: rgba(255,255,255,.12); border-color: #fff; }
.btn-ghost-dark{ background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost-dark:hover{ border-color: var(--ink); }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 500; letter-spacing: .06em; color: var(--copper-dk);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: gap .3s var(--ease);
}
.link-arrow::after { content: "\2192"; transition: transform .3s var(--ease); }
.link-arrow:hover { gap: .85em; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---- Header / nav ---------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(250, 245, 238, .92);
  backdrop-filter: blur(12px);
  border-color: var(--line-soft);
  box-shadow: 0 4px 24px -18px rgba(42,35,32,.5);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.42rem; color: var(--ink); }
.brand-sub  { font-family: var(--sans); font-size: .62rem; letter-spacing: .34em;
  text-transform: uppercase; color: var(--copper); margin-top: 4px; }

/* hero overrides header colors until scroll */
.page-home .site-header:not(.scrolled) .brand-name,
.page-home .site-header:not(.scrolled) .primary-nav a:not(.btn) { color: var(--white); }
.page-home .site-header:not(.scrolled) .nav-toggle span { background: var(--white); }

.primary-nav { display: flex; align-items: center; gap: 34px; }
.primary-nav a:not(.btn) {
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 400;
  position: relative; padding: 6px 0; color: var(--ink); transition: color .3s;
}
.primary-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--copper); transition: width .35s var(--ease);
}
.primary-nav a:not(.btn):hover::after,
.primary-nav a.is-active::after { width: 100%; }
.nav-book { padding: .85em 1.6em; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; z-index: 110;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: .3s 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); }

/* ---- Hero ------------------------------------------------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center;
  color: var(--white); overflow: hidden; }
.hero-media {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, #4a3b30 0%, #6d5443 45%, #b0875f 100%);
  background-image: image-set(url("/assets/img/hero.jpg") 1x);
  background-size: cover; background-position: center;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,15,12,.55) 0%, rgba(20,15,12,.25) 40%, rgba(20,15,12,.65) 100%);
}
.hero-inner { position: relative; padding-top: 100px; max-width: 760px; }
.hero-eyebrow { color: var(--taupe); letter-spacing: .34em; }
.hero-title { font-size: clamp(3.4rem, 11vw, 7.2rem); line-height: .96; margin-bottom: 1.6rem; }
.hero-title em { color: var(--taupe); }
.hero-lead { font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: rgba(255,255,255,.9);
  max-width: 540px; margin-bottom: 2.4rem; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.5); border-radius: 14px; }
.hero-scroll span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px;
  border-radius: 3px; background: #fff; transform: translateX(-50%);
  animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% {opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,14px)} 100%{opacity:0} }

/* ---- Services --------------------------------------------- */
.services { background: var(--ivory); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--white); padding: 48px 38px; border-radius: var(--radius);
  border: 1px solid var(--line-soft); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-icon { width: 60px; height: 60px; color: var(--copper); margin-bottom: 22px; }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { margin-bottom: .6rem; }

/* ---- Feature tiles --------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); }
.tile {
  position: relative; min-height: 260px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 6px;
  color: var(--white); overflow: hidden;
  background: linear-gradient(160deg, #5a4636, #3a2d24);
  transition: flex .4s;
}
.tile::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(20,15,12,.45); transition: background .4s var(--ease);
}
.tile:nth-child(2) { background: linear-gradient(160deg, #7a5c40, #4a3829); }
.tile:nth-child(3) { background: linear-gradient(160deg, #6a503c, #40301f); }
.tile:hover::before { background: rgba(20,15,12,.2); }
.tile-label { position: relative; font-family: var(--serif); font-size: 1.9rem; }
.tile-sub { position: relative; font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--taupe); }

/* ---- Vision / Mission / Value ---------------------------- */
.vmv { background: var(--cream); }
.vmv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.vmv-card { position: relative; padding-top: 30px; border-top: 2px solid var(--copper); }
.vmv-num { font-family: var(--serif); font-size: 3rem; color: var(--taupe);
  display: block; line-height: 1; margin-bottom: .4rem; }
.vmv-card h3 { margin-bottom: .7rem; }
.vmv-cta { margin-top: clamp(40px, 5vw, 60px); }

/* ---- Shop & Learn band ----------------------------------- */
.band { background: var(--ink); color: var(--ivory); padding: clamp(54px,7vw,86px) 0; }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.band-item h3 { color: var(--ivory); margin-bottom: .6rem; }
.band-item p { color: rgba(250,245,238,.65); margin-bottom: 1.1rem; }
.band-item .link-arrow { color: var(--taupe); }

/* ---- CTA -------------------------------------------------- */
.cta { background: var(--cream-deep); }
.cta-inner { text-align: center; padding: clamp(64px,9vw,120px) 0; max-width: 640px; margin-inline: auto; }
.cta-inner h2 { margin-bottom: .6rem; }
.cta-inner p { margin-bottom: 1.8rem; }
.cta-inner .hero-actions { justify-content: center; }

/* ---- Page hero (sub-pages) ------------------------------- */
.page-hero { padding: 150px 0 60px; background: var(--cream); }
.page-hero h1 em { color: var(--copper); }
.page-hero-lead { max-width: 560px; margin-top: 1.2rem; font-size: 1.15rem; }

/* ---- Stylists -------------------------------------------- */
.stylist { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 80px);
  align-items: center; margin-bottom: clamp(64px, 9vw, 120px); }
.stylist:last-of-type { margin-bottom: 0; }
.stylist.reverse .stylist-photo { order: 2; }
.stylist-photo { position: relative; aspect-ratio: 4/5; border-radius: var(--radius);
  overflow: hidden; background: var(--cream-deep); box-shadow: var(--shadow); }
.stylist-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-fallback { position: absolute; inset: 0; display: none; align-items: center;
  justify-content: center; font-family: var(--serif); font-size: 2.4rem; color: var(--ink-faint);
  background: var(--cream-deep); }
.stylist-photo.no-img .photo-fallback { display: flex; }
.stylist-head { margin-bottom: 1.4rem; }
.stylist-head h2 { line-height: 1; }
.stylist-role { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--copper); margin-top: .5rem; }
.stylist-ig { display: inline-block; margin-top: .5rem; font-size: .9rem; color: var(--ink-soft);
  border-bottom: 1px solid var(--line); }
.stylist-ig:hover { color: var(--copper); }
.stylist-body p { margin-bottom: 1.1rem; }
.cred-list { margin-top: 1.4rem; display: grid; gap: .5rem; }
.cred-list li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); font-size: .96rem; }
.cred-list li::before { content: ""; position: absolute; left: 0; top: .65em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--copper); }

/* ---- Gallery --------------------------------------------- */
.gallery-placeholder { position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.gallery-grid span { aspect-ratio: 1; background: linear-gradient(135deg, var(--cream), var(--cream-deep)); }
.gallery-grid span:nth-child(2n) { background: linear-gradient(135deg, var(--cream-deep), var(--taupe)); }
.gallery-cta { position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: .8rem; padding: 24px;
  background: rgba(250,245,238,.86); backdrop-filter: blur(2px); }
.gallery-cta h2 { color: var(--ink); }
.gallery-cta .btn { margin-top: .6rem; }

/* ---- Contact --------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); }
.contact-intro h1 { margin: .3rem 0 1.2rem; }
.contact-intro h1 em { color: var(--copper); }
.contact-detail { display: flex; gap: 20px; margin: 2.4rem 0; padding-top: 2rem;
  border-top: 1px solid var(--line); }
.contact-index { font-family: var(--serif); color: var(--taupe); font-size: 1.1rem; }
.contact-detail h3 { margin-bottom: .5rem; }
.contact-detail a:hover { color: var(--copper); }
.contact-phone { color: var(--copper-dk); font-weight: 500; }

.contact-form-col { background: var(--white); padding: clamp(30px, 4vw, 50px);
  border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form-col h2 { font-size: 1.9rem; margin-bottom: 1.6rem; }
.field { display: block; margin-bottom: 1.3rem; }
.field span { display: block; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 500; color: var(--ink); margin-bottom: .55rem; }
.field span em { color: var(--copper); }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--ivory); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .9em 1em; transition: border-color .3s, background .3s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--copper); background: var(--white);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.form-alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 1.4rem; font-size: .95rem; }
.form-alert.success { background: #e6f0e6; color: #2f5b32; border: 1px solid #bcd6bd; }
.form-alert.error { background: #f7e7e3; color: #8c3a2b; border: 1px solid #e3c0b8; }
.form-alert ul { padding-left: 1.1rem; list-style: disc; }

/* ---- Footer ---------------------------------------------- */
.site-footer { background: var(--ink); color: var(--ivory); padding: clamp(56px,7vw,90px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 50px; border-bottom: 1px solid rgba(250,245,238,.12); }
.footer-name { color: var(--ivory); font-size: 1.6rem; display: block; margin-bottom: 1rem; }
.footer-blurb { color: rgba(250,245,238,.6); max-width: 280px; margin-bottom: 1.4rem; }
.footer-col h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--taupe); margin-bottom: 1.1rem; font-weight: 500; }
.footer-col address { font-style: normal; color: rgba(250,245,238,.7); line-height: 2; }
.footer-links { display: grid; gap: .7rem; }
.footer-links a { color: rgba(250,245,238,.7); transition: color .3s; }
.footer-links a:hover, .footer-col address a:hover { color: var(--copper); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 24px; font-size: .82rem; color: rgba(250,245,238,.5); }

/* ---- Reveal animation ------------------------------------ */
/* Only hide when JS is present (html.js); no-JS users see everything. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .08s; }
.js .reveal:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media { animation: none; transform: none; }
  * { scroll-behavior: auto; }
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 920px) {
  .service-grid, .vmv-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 200px; }
  .band-grid, .contact-grid { grid-template-columns: 1fr; }
  .stylist, .stylist.reverse { grid-template-columns: 1fr; }
  .stylist.reverse .stylist-photo { order: 0; }
  .stylist-photo { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--ivory); flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 28px; padding: 40px;
    transform: translateX(100%); transition: transform .4s var(--ease);
    box-shadow: -20px 0 60px -30px rgba(0,0,0,.5);
  }
  .primary-nav.open { transform: translateX(0); }
  .page-home .site-header:not(.scrolled) .primary-nav a:not(.btn) { color: var(--ink); }
  .primary-nav a:not(.btn) { font-size: 1.05rem; }
  .nav-book { width: 100%; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-inner .btn { flex: 1; }
}
