/* ==========================================================
   MaryLuz Hair Salon — Stylesheet
   ========================================================== */

:root {
  --white: #FFFFFF;
  --off-white: #FAF9F7;
  --charcoal: #2D2D2D;
  --warm-gray: #6F6F6F;
  --sage: #8E9D84;
  --sage-dark: #707D67;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Montserrat', sans-serif;
  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

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

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
}

.text-center { text-align: center; }

section { padding: 96px 0; }

@media (max-width: 700px) {
  section { padding: 64px 0; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--sage);
  color: var(--white);
}

.btn-primary:hover { background: var(--sage-dark); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-secondary:hover { background: var(--charcoal); color: var(--white); }

.btn-on-dark {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-on-dark:hover { background: var(--white); color: var(--charcoal); }

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

/* ----- Fade-in on scroll ----- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   NAVIGATION
   ========================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--charcoal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.nav-links a:not(.btn):hover { color: var(--sage); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
  padding: 16px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.mobile-menu .btn {
  margin: 16px 24px;
  text-align: center;
}

.sticky-book-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 12px 16px;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

.sticky-book-mobile .btn { display: block; text-align: center; width: 100%; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .sticky-book-mobile { display: block; }
  body { padding-bottom: 72px; }
}

/* ==========================================================
   HERO (with autoplay/muted/looping background video)
   ========================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Dark fallback — shown until the video loads, and stays visible if it fails */
  background-color: var(--charcoal);
}

.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* If the video errors out, JS adds this class so the fallback image
   (already set as the background) remains the only visible layer */
.hero-media.video-failed video { display: none; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(45,45,45,0.55) 0%, rgba(45,45,45,0.45) 50%, rgba(45,45,45,0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  color: var(--white);
}

.hero-content .nav-logo-display {
  font-family: var(--font-script);
  font-size: 4rem;
  display: block;
  margin-bottom: 8px;
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 500;
  max-width: 560px;
  margin-bottom: 16px;
}

.hero-subline {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  max-width: 540px;
  margin-bottom: 36px;
  color: rgba(255,255,255,0.92);
}

@media (max-width: 700px) {
  .hero { min-height: 100vh; }
  .hero-content .nav-logo-display { font-size: 2.8rem; }
  .hero-tagline { font-size: 1.2rem; }
}

/* ==========================================================
   WHAT WE'RE KNOWN FOR
   ========================================================== */
.known-for-heading {
  font-family: var(--font-script);
  font-size: 2.6rem;
  text-align: center;
  margin-bottom: 56px;
}

.known-for-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.known-for-card {
  text-align: center;
  padding: 0 16px;
}

.known-for-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--charcoal);
}

.known-for-card p {
  color: var(--warm-gray);
  font-size: 0.95rem;
}

.known-for-divider {
  width: 36px;
  height: 2px;
  background: var(--sage);
  margin: 0 auto 20px;
}

@media (max-width: 860px) {
  .known-for-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================
   SPLIT SECTIONS (For Men, Beach Special, Organic Color, Head Spa)
   ========================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split.reverse .split-media { order: 2; }
.split.reverse .split-copy { order: 1; }

.split-media img {
  width: 100%;
  border-radius: 4px;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.split-copy .section-label { margin-bottom: 12px; display: block; }

.split-copy h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.split-copy .subhead {
  font-size: 1.1rem;
  color: var(--sage-dark);
  font-weight: 500;
  margin-bottom: 20px;
}

.split-copy p {
  color: var(--warm-gray);
  margin-bottom: 16px;
}

.split-copy .list-line {
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.split-copy .list-line strong { color: var(--sage-dark); }

.split-copy .note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--warm-gray);
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 1; }
  .split.reverse .split-copy { order: 2; }
  .split-media img { aspect-ratio: 16/10; }
}

/* ==========================================================
   SERVICES PREVIEW (table)
   ========================================================== */
.services-preview {
  background: var(--off-white);
}

.services-preview .subhead {
  text-align: center;
  color: var(--warm-gray);
  margin-bottom: 48px;
}

.services-table {
  width: 100%;
  max-width: 760px;
  margin: 0 auto 48px;
  border-collapse: collapse;
}

.services-table tr {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.services-table td {
  padding: 16px 8px;
  font-size: 0.95rem;
}

.services-table td:first-child {
  font-weight: 600;
  color: var(--charcoal);
  width: 38%;
}

.services-table td:last-child {
  color: var(--warm-gray);
}

.services-preview .btn-row { justify-content: center; }

/* ==========================================================
   WE ADAPT TO ALL
   ========================================================== */
.adapt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.adapt-tags span {
  font-size: 0.85rem;
  padding: 8px 16px;
  border: 1px solid var(--sage);
  border-radius: 999px;
  color: var(--sage-dark);
}

/* ==========================================================
   MISSION
   ========================================================== */
.mission {
  background: var(--charcoal);
  color: var(--white);
}

.mission .split-copy .section-label { color: var(--sage); }

.mission h2 {
  font-family: var(--font-script);
  font-size: 2.8rem;
  font-weight: 400;
  margin-bottom: 20px;
}

.mission p { color: rgba(255,255,255,0.8); }

.mission .belief {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 1.05rem;
  color: var(--white);
}

.mission .belief strong { color: var(--sage); }

/* ==========================================================
   FAQ
   ========================================================== */
.faq-section { background: var(--off-white); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 20px 0;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--warm-gray);
}

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.testimonial-card {
  background: var(--off-white);
  padding: 28px;
  border-radius: 4px;
}

.testimonial-stars { color: var(--sage); margin-bottom: 12px; letter-spacing: 0.1em; }

.testimonial-card p.quote {
  font-size: 0.92rem;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.testimonial-card .author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-dark);
}

.testimonials-links {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 600;
}

.testimonials-links a { color: var(--sage-dark); }
.testimonials-links a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   FINAL CTA
   ========================================================== */
.final-cta {
  background: var(--sage);
  color: var(--white);
  text-align: center;
}

.final-cta h2 {
  font-family: var(--font-script);
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.final-cta .subhead {
  font-size: 1.05rem;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.9);
}

.final-cta .btn-row { justify-content: center; }

.final-cta .btn-primary { background: var(--white); color: var(--sage-dark); }
.final-cta .btn-primary:hover { background: var(--off-white); }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.85);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--white);
  display: block;
  margin-bottom: 12px;
}

.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.65); }

.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--sage); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.footer-tagline {
  text-align: center;
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--sage);
  margin: 0 0 24px;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

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

/* ==========================================================
   WHAT TO EXPECT PAGE
   ========================================================== */
.page-hero {
  background: var(--off-white);
  text-align: center;
  padding: 120px 0 80px;
}

.page-hero h1 {
  font-family: var(--font-script);
  font-size: 3.2rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.page-hero .subhead {
  max-width: 600px;
  margin: 0 auto;
  color: var(--warm-gray);
  font-size: 1.05rem;
}

.expect-block {
  max-width: 760px;
  margin: 0 auto;
}

.expect-block h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.expect-block ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  color: var(--warm-gray);
}

.expect-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--sage);
  border-radius: 50%;
}

.expect-block ul li strong { color: var(--charcoal); }

.expect-block.alt { background: var(--off-white); padding: 64px; border-radius: 4px; }

@media (max-width: 700px) {
  .expect-block.alt { padding: 40px 24px; }
}

.placeholder-note {
  display: inline-block;
  background: #FFF4D6;
  color: #8a6d1d;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
  margin-left: 6px;
}

.welcome-block {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.welcome-block h2 { font-size: 1.8rem; margin-bottom: 16px; }
.welcome-block p { color: var(--warm-gray); margin-bottom: 32px; }


/* ==========================================================
   NAV PHONE (click-to-call) — added for old-school callers
   ========================================================== */
.nav-left { display: flex; align-items: center; gap: 22px; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-phone svg { width: 16px; height: 16px; fill: var(--sage); flex-shrink: 0; }
.nav-phone:hover { color: var(--sage); }
.mobile-call { color: var(--charcoal); }

@media (max-width: 860px) {
  .nav-left { gap: 14px; }
  .nav-phone { font-size: 0.9rem; }
}
@media (max-width: 420px) {
  .nav-inner { padding: 14px 16px; }
  .nav-logo { font-size: 1.7rem; }
  .nav-phone { font-size: 0.8rem; gap: 5px; }
  .nav-phone svg { width: 14px; height: 14px; }
}
