/* ==========================================================
   Maison Touch — shared styles
   ========================================================== */

:root {
  --cream: #f6f1ea;
  --sand: #ece3d7;
  --stone: #d8cbbb;
  --taupe: #8a7360;
  --bronze: #a07f5f;
  --espresso: #2a221d;
  --ink: #3a312b;
  --muted: #6f6359;
  --white: #fffdf9;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 2px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--espresso);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
p { margin: 0 0 1.2em; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1.2em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow { max-width: 760px; }
.center { text-align: center; }

section { padding: clamp(72px, 10vw, 128px) 0; }
.bg-sand { background: var(--sand); }
.bg-dark { background: var(--espresso); color: #e9e0d5; }
.bg-dark h2, .bg-dark h3 { color: var(--white); }
.bg-dark .eyebrow { color: #c9ad8f; }

.divider {
  width: 48px;
  height: 1px;
  background: var(--bronze);
  border: 0;
  margin: 28px 0;
}
.center .divider { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 34px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--espresso);
  background: var(--espresso);
  color: var(--white);
  border-radius: var(--radius);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { background: transparent; color: var(--espresso); }

.btn-light { background: var(--white); color: var(--espresso); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }

.btn-outline { background: transparent; color: var(--espresso); }
.btn-outline:hover { background: var(--espresso); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.35s, box-shadow 0.35s;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  opacity: 0.88;
  position: relative;
  padding: 4px 0;
}
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
}
.nav .btn { padding: 12px 22px; font-size: 0.7rem; white-space: nowrap; }
.nav .btn,
.nav .btn:hover { opacity: 1; }
.nav .btn::after { display: none; }

/* Light header once scrolled, or on pages without a dark hero */
.site-header.solid {
  background: rgba(246, 241, 234, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(42, 34, 29, 0.08);
}
.site-header.solid .logo,
.site-header.solid .nav a { color: var(--espresso); }
.site-header.solid .nav .btn { color: var(--white); }
.site-header.solid .nav .btn:hover { color: var(--espresso); }
.site-header.solid .menu-toggle span { background: var(--espresso); }

.site-header .nav .btn-light { background: transparent; border-color: rgba(255,255,255,0.7); color: var(--white); }
.site-header .nav .btn-light:hover { background: var(--white); color: var(--espresso); }
.site-header.solid .nav .btn-light { background: var(--espresso); border-color: var(--espresso); color: var(--white); }
.site-header.solid .nav .btn-light:hover { background: transparent; color: var(--espresso); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 1px;
  background: var(--white);
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 1080px) {
  .menu-toggle { display: block; position: relative; z-index: 60; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: var(--espresso);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
  }
  .nav a { font-size: 0.9rem; color: var(--white) !important; }
  .nav .btn { margin-top: 12px; border-color: var(--white) !important; background: transparent !important; }
  body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.menu-open .nav { opacity: 1; visibility: visible; }
  body.menu-open { overflow: hidden; }
  body.menu-open .menu-toggle span { background: var(--white) !important; }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.menu-open .logo { color: var(--white); position: relative; z-index: 60; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 140px 0 100px;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25,19,15,0.55) 0%, rgba(25,19,15,0.45) 50%, rgba(25,19,15,0.7) 100%);
}
.hero .container { position: relative; }
.hero h1 { color: var(--white); margin-bottom: 0.3em; }
.hero .eyebrow { color: #e6d3bd; }
.hero .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin-bottom: 2.2em;
  color: #f1e8dd;
}
.hero-short { min-height: 64vh; }

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  width: 1px;
  height: 56px;
  background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0.8));
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Page header (non-hero pages) ---------- */
.page-intro { padding-top: 180px; padding-bottom: 72px; }

/* ---------- Split layouts ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media img { aspect-ratio: 4 / 3; }
}

.statement {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.35;
  color: var(--espresso);
}
.bg-dark .statement { color: var(--white); }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stone);
  border: 1px solid var(--stone);
  margin-top: 56px;
}
.pillar { background: var(--cream); padding: 48px 36px; }
.pillar .num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--bronze);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 18px;
}
.pillar h3 { font-size: 1.6rem; }
.pillar p { margin: 0; color: var(--muted); }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.service-card { display: flex; flex-direction: column; text-decoration: none; }
.service-card .img-wrap { overflow: hidden; margin-bottom: 26px; }
.service-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.service-card:hover img { transform: scale(1.04); }
.service-card .tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--taupe);
  font-size: 1.1rem;
  margin-bottom: 0.6em;
}
.service-card p { color: var(--muted); }
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .service-card img { aspect-ratio: 4 / 3; }
}

/* Detailed service rows (services page) */
.service-row + .service-row { margin-top: clamp(72px, 10vw, 120px); }
.service-row .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--taupe);
  margin-bottom: 1em;
}
.service-row .index {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--bronze);
  display: block;
  margin-bottom: 14px;
}

/* ---------- Image band CTA ---------- */
.band {
  position: relative;
  color: var(--white);
  text-align: center;
  background-size: cover;
  background-position: center;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(25, 19, 15, 0.62);
}
.band .container { position: relative; }
.band h2 { color: var(--white); }
.band p { color: #efe6db; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 56px;
  counter-reset: step;
}
.step { border-top: 1px solid var(--stone); padding-top: 28px; }
.step .num {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--bronze);
  display: block;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.5rem; }
.step p { color: var(--muted); margin: 0; }
.steps-3 { grid-template-columns: repeat(3, 1fr); gap: 56px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } .steps-3 { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--stone); }
.faq details { border-bottom: 1px solid var(--stone); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 48px 28px 0;
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  color: var(--espresso);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 200;
  font-size: 1.8rem;
  color: var(--bronze);
  transition: transform 0.3s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 48px 28px 0; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-list li { padding: 20px 0; border-top: 1px solid var(--stone); }
.contact-list li:last-child { border-bottom: 1px solid var(--stone); }
.contact-list .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 4px;
}
.contact-list a, .contact-list span.value {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--espresso);
  text-decoration: none;
}
.contact-list a:hover { color: var(--bronze); }

.note-small { font-size: 0.88rem; color: var(--muted); font-style: italic; }
.bg-dark .note-small, .band .note-small { color: #c8bcae; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--espresso);
  color: #c8bcae;
  padding: 88px 0 40px;
  font-size: 0.95rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer .logo { color: var(--white); display: inline-block; margin-bottom: 8px; }
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: #e6d3bd;
  margin-bottom: 1em;
}
.site-footer h4 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 20px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-top: 32px;
  font-size: 0.8rem;
  color: #a39586;
}
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
  html { scroll-behavior: auto; }
}

