/* ==========================================================================
   BRAIDS BY ESTAL — Luxury Salon Site
   Palette: charcoal #0f0f0f / champagne gold #c9a96e / burgundy #7d2e3a / ivory #faf7f2
   Type:   Cormorant Garamond (display) + Inter (body)
   ========================================================================== */

/* ---------- Reset & base ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1a1a;
  background: #faf7f2;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
button { font: inherit; cursor: pointer; border: none; background: none; }

:root {
  --charcoal: #0f0f0f;
  --charcoal-soft: #1f1d1b;
  --gold: #c9a96e;
  --gold-bright: #d8be86;
  --burgundy: #7d2e3a;
  --ivory: #faf7f2;
  --cream: #f5f0e8;
  --muted: #6b6259;
  --line: #e7dfd2;
  --shadow: 0 20px 60px rgba(15,15,15,.08);
  --shadow-lg: 0 30px 80px rgba(15,15,15,.18);
  --max: 1200px;
  --radius: 4px;
}

h1,h2,h3,h4 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.15;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
p  { color: #2a2622; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-dark { background: var(--charcoal); color: var(--cream); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark p { color: #cfc6b9; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,242,.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: var(--max); margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--charcoal);
}
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.brand .accent { color: var(--gold); }
.nav-links {
  display: flex; gap: 2.2rem; align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 500; color: var(--charcoal);
  position: relative; padding: .25rem 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold); }

.nav-links a.nav-cta {
  background: var(--gold); color: var(--charcoal);
  padding: .7rem 1.5rem; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--gold);
  transition: all .3s ease;
}
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta.active {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--charcoal);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span { width: 24px; height: 1.5px; background: var(--charcoal); transition: all .3s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #1a1714 0%, #0f0f0f 60%, #2a1f1c 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(201,169,110,.18), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(125,46,58,.22), transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto;
  padding: 6rem 1.5rem;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center;
}
.hero-eyebrow {
  font-size: .8rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
  display: inline-flex; align-items: center; gap: 1rem;
}
.hero-eyebrow::before {
  content: ''; width: 40px; height: 1px; background: var(--gold);
}
.hero h1 {
  color: var(--cream);
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic; color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
}
.hero p {
  font-size: 1.1rem; color: #cfc6b9; max-width: 480px;
  margin-bottom: 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  min-height: 460px; /* fallback for older mobile browsers without aspect-ratio support */
  background:
    linear-gradient(135deg, rgba(201,169,110,.1), rgba(125,46,58,.1)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='750' viewBox='0 0 600 750'%3E%3Crect fill='%231a1714' width='600' height='750'/%3E%3Cg opacity='.4'%3E%3Cpath d='M0 0 Q150 100 300 50 T600 100 L600 0 Z' fill='%23c9a96e' opacity='.15'/%3E%3Cpath d='M0 750 Q150 650 300 700 T600 650 L600 750 Z' fill='%237d2e3a' opacity='.2'/%3E%3C/g%3E%3Ctext x='50%25' y='50%25' text-anchor='middle' font-family='Cormorant Garamond, serif' font-size='32' fill='%23c9a96e' opacity='.85'%3E%E2%9C%A6 Hero Image %E2%9C%A6%3C/text%3E%3Ctext x='50%25' y='56%25' text-anchor='middle' font-family='Inter, sans-serif' font-size='14' fill='%23cfc6b9' letter-spacing='3'%3EREPLACE WITH SALON PHOTO%3C/text%3E%3C/svg%3E");
  background-size: cover; background-position: center;
  border: 1px solid rgba(201,169,110,.3);
  box-shadow: var(--shadow-lg);
}
.hero-visual::before {
  content: ''; position: absolute; inset: -12px;
  border: 1px solid var(--gold); opacity: .4;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 2rem;
  font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 500;
  transition: all .3s ease;
  border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201,169,110,.35); }
.btn-outline { border-color: var(--cream); color: var(--cream); }
.btn-outline:hover { background: var(--cream); color: var(--charcoal); }
.btn-dark { background: var(--charcoal); color: var(--cream); }
.btn-dark:hover { background: var(--burgundy); }
.btn-ghost { color: var(--charcoal); border-color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: var(--cream); }

/* ---------- Section headings ---------- */
.section-head { text-align: center; margin-bottom: 4rem; }
.section-head .eyebrow {
  font-size: .75rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold); display: inline-block; margin-bottom: 1rem;
}
.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: '— '; color: var(--gold);
}
.section-head .eyebrow::after { content: ' —'; }
.section-head p { max-width: 620px; margin: 1rem auto 0; color: var(--muted); }

/* ---------- Feature grid (home) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  background: white;
  padding: 2.5rem 2rem;
  border-top: 2px solid var(--gold);
  transition: transform .3s ease, box-shadow .3s ease;
  text-align: center;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1.5rem;
  display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%;
  color: var(--gold);
}
.feature-card h3 { margin-bottom: .75rem; }
.feature-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Services list ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 980px; margin: 0 auto;
  background: white;
  border: 1px solid var(--line);
}
.service-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.6rem 2rem;
  border-bottom: 1px solid var(--line);
  transition: background .25s ease;
}
.service-row:hover { background: var(--cream); }
.service-row:nth-child(odd) { border-right: 1px solid var(--line); }
.service-row .service-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; color: var(--charcoal);
}
.service-row .service-price {
  color: var(--gold); font-weight: 600; letter-spacing: .05em;
  font-size: .95rem; white-space: nowrap;
}
.service-note {
  text-align: center; max-width: 720px; margin: 2.5rem auto 0;
  font-size: .9rem; color: var(--muted); font-style: italic;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  cursor: pointer;
}
/* Padding-bottom trick — works on every browser including older mobile */
.gallery-item::before {
  content: '';
  display: block;
  padding-top: 133.33%; /* 4/3 ratio = portrait card */
}
.gallery-item img,
.gallery-item .placeholder-img,
.gallery-item .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.gallery-item img,
.gallery-item .placeholder-img {
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery-item:hover img,
.gallery-item:hover .placeholder-img { transform: scale(1.06); }
.gallery-item .overlay {
  background: linear-gradient(0deg, rgba(15,15,15,.85) 0%, transparent 50%);
  display: flex; align-items: flex-end; padding: 1.5rem;
  opacity: 0; transition: opacity .35s ease;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay span {
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
}

.placeholder-img {
  display: grid; place-items: center;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  text-align: center; padding: 1rem;
  font-size: 1.1rem;
  background:
    linear-gradient(135deg, #1a1714 0%, #0f0f0f 100%);
  border: 1px solid rgba(201,169,110,.25);
}
.placeholder-img small {
  display: block; font-size: .7rem;
  letter-spacing: .25em; text-transform: uppercase;
  color: #8a7e6c; font-family: 'Inter', sans-serif;
  margin-top: .5rem; font-style: normal;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15,15,15,.95);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-content {
  max-width: 80vw; max-height: 85vh;
  position: relative;
}
.lightbox-content img,
.lightbox-content .placeholder-img {
  max-width: 100%; max-height: 85vh; object-fit: contain;
  width: auto; height: auto; aspect-ratio: 3/4;
  min-width: 320px; min-height: 400px;
}
.lightbox-close {
  position: absolute; top: -3rem; right: 0;
  color: var(--cream); font-size: 2rem; line-height: 1;
}

/* ---------- About / Team ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.about-image {
  aspect-ratio: 4/5;
  min-height: 480px; /* fallback for older mobile browsers */
  background: var(--charcoal);
  position: relative;
}
.about-image::before {
  content: ''; position: absolute; inset: -16px -16px 16px 16px;
  border: 1px solid var(--gold); z-index: -1;
}
.about-text .eyebrow {
  font-size: .75rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; display: block;
}
.about-text p { margin-bottom: 1.2rem; color: #3a342e; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 3/4;
  min-height: 380px; /* fallback for older mobile browsers */
  margin-bottom: 1.5rem;
  background: var(--charcoal);
}
.team-card h3 { margin-bottom: .25rem; }
.team-card .role {
  color: var(--gold);
  font-size: .8rem; letter-spacing: .25em; text-transform: uppercase;
  margin-bottom: .8rem;
}
.team-card p { color: var(--muted); font-size: .92rem; }

/* ---------- Booking / Contact form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  max-width: var(--max); margin: 0 auto;
}
.form-card {
  background: white;
  padding: 3rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.form-row { margin-bottom: 1.4rem; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row label {
  display: block;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 500; color: var(--charcoal);
  margin-bottom: .5rem;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  background: var(--ivory);
  font-family: inherit; font-size: .95rem;
  color: var(--charcoal);
  transition: border-color .25s ease, background .25s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--gold); background: white;
}
.form-row textarea { resize: vertical; min-height: 120px; }

.info-block {
  display: flex; gap: 1.2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.info-block:last-child { border-bottom: none; }
.info-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%;
  color: var(--gold); flex-shrink: 0;
}
.info-block h4 {
  font-family: 'Inter', sans-serif;
  font-size: .8rem; letter-spacing: .25em; text-transform: uppercase;
  font-weight: 600; color: var(--gold);
  margin-bottom: .35rem;
}
.info-block p { color: var(--charcoal); font-size: 1rem; line-height: 1.5; }
.info-block a:hover { color: var(--gold); }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--charcoal);
  color: var(--cream);
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,169,110,.15), transparent 60%);
}
.cta-strip > * { position: relative; }
.cta-strip h2 { color: var(--cream); margin-bottom: 1rem; font-style: italic; }
.cta-strip p { color: #cfc6b9; max-width: 560px; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.footer {
  background: #08080a;
  color: #a89e90;
  padding: 4rem 1.5rem 2rem;
}
.footer-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer h4 {
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: .8rem; letter-spacing: .25em; text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: .6rem; font-size: .92rem; }
.footer a:hover { color: var(--gold); }
.footer .brand { color: var(--cream); margin-bottom: 1rem; }
.footer-tag { font-size: .92rem; line-height: 1.7; }
.footer-bottom {
  max-width: var(--max); margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid #1f1d1b;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .82rem; color: #6b6259;
  flex-wrap: wrap; gap: 1rem;
}
.social-links { display: flex; gap: 1rem; }
.social-links a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid #2a2622;
  border-radius: 50%;
  transition: all .3s ease;
}
.social-links a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, #1a1714 0%, #0f0f0f 100%);
  color: var(--cream);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,169,110,.12), transparent 60%);
}
.page-header > * { position: relative; }
.page-header h1 { color: var(--cream); margin-bottom: 1rem; }
.page-header h1 em { color: var(--gold); font-style: italic; }
.page-header p { color: #cfc6b9; max-width: 600px; margin: 0 auto; }
.breadcrumb {
  font-size: .78rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
}

/* ---------- Hours table ---------- */
.hours-list {
  list-style: none; padding: 0;
}
.hours-list li {
  display: flex; justify-content: space-between;
  padding: .75rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list .day { color: var(--charcoal); font-weight: 500; }
.hours-list .time { color: var(--gold); }

/* ---------- Map ---------- */
.map-wrap {
  margin-top: 3rem;
  border: 1px solid var(--line);
  height: 420px; overflow: hidden;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.05); }

/* ---------- Quote / testimonial ---------- */
.quote {
  text-align: center; max-width: 780px; margin: 0 auto;
}
.quote .mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem; color: var(--gold); line-height: .5;
  margin-bottom: 1rem;
}
.quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.quote .attr {
  font-size: .8rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Animations on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: all .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-inner { gap: 1rem; }
  .brand { font-size: 1.25rem; letter-spacing: .08em; }
  .brand-logo { width: 36px; height: 36px; }
  .nav-links {
    display: flex;
    margin-left: auto;
    gap: .75rem;
  }
  .nav-links a.nav-cta {
    padding: .65rem 1rem;
    font-size: .72rem;
    letter-spacing: .12em;
  }
  .nav-links li:not(:last-child) { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ivory); padding: 1.5rem;
    border-bottom: 1px solid var(--line);
    gap: 1.2rem;
  }
  .nav-links.open li { display: block; }
  .nav-toggle { display: flex; }
  .nav-links.open .nav-cta { display: inline-flex; align-self: flex-start; margin-top: .5rem; }

  .hero-inner { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 1.5rem; }
  .hero-visual { max-width: 420px; margin: 0 auto; }

  .feature-grid { grid-template-columns: 1fr; gap: 1rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-row:nth-child(odd) { border-right: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image { max-width: 460px; margin: 0 auto; width: 100%; }
  .team-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-card { padding: 2rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 540px) {
  .nav-inner { padding: .9rem 1rem; gap: .6rem; }
  .brand { font-size: 1.05rem; letter-spacing: .06em; }
  .brand-logo { width: 32px; height: 32px; }
  .nav-links a.nav-cta { padding: .55rem .75rem; font-size: .68rem; letter-spacing: .08em; }
  .nav-toggle { padding: .4rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
}
