/* ============================================================
   Salón Marbla — shared stylesheet
   Tier 2 portfolio template. Alba-spec.
   ============================================================ */

:root {
  --bone: #F4EFE8;
  --ink: #1C1A17;
  --taupe: #6B5B4A;
  --brass: #8A6A3B;
  --espresso: #3A2A1E;
  --container: 1200px;
  --side: clamp(1.25rem, 4vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bone);
  overscroll-behavior-y: contain;
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior-y: contain;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--side);
}

/* ============== TYPOGRAPHY ============== */
h1, h2, h3, .display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2rem); }
h3 { font-size: 1.4rem; font-weight: 400; letter-spacing: 0; }

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
  padding-bottom: 0.55rem;
  position: relative;
  margin-bottom: 1.25rem;
}
/* SIGNATURE: 1px brass rule, 32px wide, under every eyebrow */
.eyebrow::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 32px;
  height: 1px;
  background: var(--brass);
}
.eyebrow--center {
  text-align: center;
}
.eyebrow--center::after {
  left: 50%;
  transform: translateX(-50%);
}

.lead {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.1vw, 1.5rem);
  line-height: 1.4;
  color: var(--taupe);
  max-width: 36rem;
}

p { margin: 0 0 1rem 0; }
p:last-child { margin-bottom: 0; }

/* ============== HEADER ============== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: background-color 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease, padding 0.32s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: var(--bone);
  border-bottom-color: rgba(107, 91, 74, 0.18);
  box-shadow: 0 2px 12px rgba(28,26,23,0.06);
  padding: 0.85rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand em {
  font-style: italic;
  color: var(--brass);
  font-weight: 400;
}
/* When over the dark hero overlay, text reads bone */
.header:not(.is-scrolled) .brand,
.header:not(.is-scrolled) .nav-list a,
.header:not(.is-scrolled) .header-cta {
  color: var(--bone);
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
.nav-list a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.18s ease;
}
.nav-list a:hover { color: var(--brass); }
.header-cta {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.55rem 1.1rem;
  border: 1px solid currentColor;
  transition: background 0.18s ease, color 0.18s ease;
}
.header-cta:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.header:not(.is-scrolled) .header-cta:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

@media (max-width: 800px) {
  .nav-list { display: none; }
  .header-cta { padding: 0.45rem 0.9rem; font-size: 0.78rem; }
}

/* ============== HERO (home) ============== */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--bone);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,26,23,0.40) 0%, rgba(28,26,23,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
  max-width: 56rem;
}
.hero h1 {
  color: var(--bone);
  margin-bottom: 1.5rem;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
}
.hero .lead {
  color: rgba(244, 239, 232, 0.88);
  margin-bottom: 2rem;
  max-width: 32rem;
}
.hero .eyebrow {
  color: rgba(244, 239, 232, 0.7);
}
.hero .eyebrow::after { background: var(--brass); }

/* Inner-page hero (about / photos) — shorter, on bone */
.hero--inner {
  min-height: auto;
  background: var(--bone);
  color: var(--ink);
  padding: 10rem 0 4rem;
}
.hero--inner .hero-bg { display: none; }
.hero--inner h1 { color: var(--ink); }
.hero--inner .lead { color: var(--taupe); }
.hero--inner .eyebrow { color: var(--taupe); }

/* ============== CTAs ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--brass);
  background: var(--brass);
  color: var(--bone);
  transition: transform 0.15s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--espresso);
  border-color: var(--espresso);
}
.btn--ghost {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}
.btn--ghost:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}
.btn-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* ============== SECTIONS ============== */
.section {
  padding: 6rem 0;
}
.section--bone { background: var(--bone); }
.section--soft {
  background: rgba(138, 106, 59, 0.04);
  border-top: 1px solid rgba(107, 91, 74, 0.12);
  border-bottom: 1px solid rgba(107, 91, 74, 0.12);
}

.section-head {
  max-width: 36rem;
  margin: 0 0 3.5rem;
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ============== SERVICES (3 pillars) ============== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.service {
  padding-right: 1rem;
  border-top: 1px solid rgba(107, 91, 74, 0.25);
  padding-top: 1.5rem;
}
.service h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 1.65rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.service p {
  font-size: 0.96rem;
  color: var(--taupe);
  line-height: 1.6;
}

@media (max-width: 800px) {
  .services-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ============== ABOUT TEASER (home) ============== */
.about-teaser {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3.5rem;
  align-items: center;
}
.about-teaser-photo {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
}
.about-teaser-text p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink);
  max-width: 32rem;
}
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 4px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.about-link:hover {
  color: var(--espresso);
  border-color: var(--espresso);
}

@media (max-width: 800px) {
  .about-teaser {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-teaser-photo { aspect-ratio: 5/4; }
}

/* ============== GALLERY TEASER (home — 3 photos in a row) ============== */
.gallery-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.gallery-teaser .tile {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}
.gallery-teaser .tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-teaser .tile:hover { transform: scale(1); }

@media (max-width: 800px) {
  .gallery-teaser { grid-template-columns: 1fr 1fr; }
  .gallery-teaser .tile:nth-child(3) { display: none; }
}

/* ============== ABOUT PAGE ============== */
.about-body {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: start;
}
.about-portrait {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
}
.about-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 36rem;
}
.about-text p {
  margin-bottom: 1.25rem;
}
.pull-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 1.85rem);
  line-height: 1.4;
  color: var(--brass);
  margin: 2rem 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 1px solid var(--brass);
}

.values-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(107, 91, 74, 0.25);
}
.value h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.value p {
  font-size: 0.96rem;
  color: var(--taupe);
  line-height: 1.6;
}

@media (max-width: 800px) {
  .about-body { grid-template-columns: 1fr; gap: 2.5rem; }
  .values-row { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============== PHOTOS PAGE ============== */
.gallery-cat {
  margin-top: 4rem;
}
.gallery-cat:first-of-type {
  margin-top: 1rem;
}
.gallery-cat-title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(107, 91, 74, 0.25);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.gallery-grid .tile {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-grid .tile:hover { transform: scale(1.03); }
.gallery-grid .tile--tall { aspect-ratio: 4/5; grid-row: span 1; }

@media (max-width: 800px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* ============== FOOTER ============== */
.footer {
  background: var(--espresso);
  color: rgba(244, 239, 232, 0.78);
  padding: 4rem 0 2rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(244, 239, 232, 0.1);
}
.footer-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  color: var(--bone);
  margin-bottom: 1rem;
}
.footer-brand em { color: var(--brass); font-style: italic; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}
.footer-col p, .footer-col a {
  display: block;
  font-size: 0.94rem;
  color: rgba(244, 239, 232, 0.78);
  margin-bottom: 0.45rem;
  transition: color 0.18s ease;
}
.footer-col a:hover { color: var(--brass); }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(244, 239, 232, 0.45);
}
.footer-bottom a {
  color: rgba(244, 239, 232, 0.7);
  border-bottom: 1px dotted rgba(244, 239, 232, 0.4);
}
.footer-bottom a:hover { color: var(--brass); }

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.7rem; text-align: center; }
}

/* ============== REVEAL ANIMATION ============== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease 0.05s, transform 0.5s ease 0.05s;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery-grid .tile, .gallery-teaser .tile { transition: none; }
}

/* ============== WHATSAPP FAB ============== */
.wa-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transition: transform 0.18s ease;
}
.wa-fab:hover { transform: translateY(-2px); }
