/* =========================================================================
   Millie — Flourish Hair Studio
   Editorial one-page design. Plain CSS port of the original Tailwind build.
   Palette & type match the source 1:1.
   ========================================================================= */

:root {
  --radius: 0.25rem;
  --background: #f7f7f5;        /* beige claro */
  --foreground: #302e2f;        /* marron oscuro */
  --primary: #302e2f;           /* dark block bg */
  --primary-foreground: #f7f7f5;
  --secondary: #d2ccbe;         /* beige */
  --secondary-foreground: #302e2f;
  --muted: #d2ccbe;
  --muted-foreground: #6b6558;
  --accent: #837a6b;            /* marron dorado — CTA */
  --accent-foreground: #f7f7f5;
  --border: #d2ccbe;
  --ring: #837a6b;

  --font-serif: "Fraunces", ui-serif, Georgia, serif;
  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

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

* { margin: 0; border: 0 solid var(--border); }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

img { height: auto; }

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.font-display { font-family: var(--font-serif); }
.italic { font-style: italic; }

/* skip link for a11y */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ------------------------------------------------------------- containers */
.wrap-7xl,
.wrap-6xl {
  margin-inline: auto;
  width: 100%;
  padding-inline: 1.5rem;
}
.wrap-7xl { max-width: 80rem; }
.wrap-6xl { max-width: 72rem; }

@media (min-width: 1024px) {
  .wrap-7xl,
  .wrap-6xl { padding-inline: 2.5rem; }
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.section-pad { padding-block: 6rem; }
@media (min-width: 1024px) { .section-pad { padding-block: 8rem; } }

/* ===================================================================== HERO */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 600px;
  overflow: hidden;
  background-color: var(--primary); /* backdrop behind "complete" (contain) slides */
}
@media (min-width: 768px) {
  .hero { height: 82vh; min-height: 560px; }
}

/* Crossfading slideshow — 3 images cycle with a soft fade */
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0;
  animation: heroFade 18s infinite;
}
/* This slide is shown COMPLETE (not cropped), centered on the espresso backdrop */
.hero__img--contain { object-fit: contain; }

.hero__slides .hero__img:only-child { animation: none; opacity: 1; }
.hero__slides .hero__img:nth-child(1) { animation-delay: 0s; }
.hero__slides .hero__img:nth-child(2) { animation-delay: 6s; }
.hero__slides .hero__img:nth-child(3) { animation-delay: 12s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  30%  { opacity: 1; }
  38%  { opacity: 0; }
  100% { opacity: 0; }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Strong dark-to-transparent gradient from the bottom so the hero text pops,
     a lighter one at the top for the nav, and a faint overall tint. */
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0) 72%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0) 22%),
    rgba(0, 0, 0, 0.12);
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.75rem;
}
.brand {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
}
/* The uploaded logo is white — sits on the dark hero image */
.brand img {
  display: block;
  height: 26px;
  width: auto;
}
@media (min-width: 768px) { .brand img { height: 34px; } }
.nav {
  display: none;
  gap: 2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}
.nav a { color: rgba(255, 255, 255, 0.8); transition: color 0.2s; }
.nav a:hover { color: #fff; }
@media (min-width: 768px) { .nav { display: flex; } }

.header-cta {
  display: inline-block;
  background: #fff;
  color: var(--foreground);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  transition: background-color 0.2s, transform 0.2s;
}
.header-cta:hover { background: rgba(255, 255, 255, 0.85); color: var(--foreground); }

/* mobile menu toggle (progressive enhancement) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }

/* mobile nav panel */
.nav-panel {
  flex-direction: column;
  background: rgba(48, 46, 47, 0.96);
  backdrop-filter: blur(4px);
}
.nav-panel__inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 1rem;
}
.nav-panel__inner a {
  padding-block: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-panel__inner a:last-child { border-bottom: 0; }
.nav-panel__inner a:hover { color: #fff; }
@media (min-width: 768px) { .nav-panel { display: none !important; } }

.hero__title {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  z-index: 10;
  transform: translateY(-50%);
  padding-inline: 1.5rem;
  text-align: center;
}
.hero__title h1 {
  font-family: var(--font-serif);
  font-size: 22vw;
  line-height: 0.85;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.4);
}
.hero__title h1 em { font-style: italic; font-weight: 400; }
@media (min-width: 640px) { .hero__title h1 { font-size: 18vw; } }
@media (min-width: 1024px) { .hero__title h1 { font-size: 15rem; } }

.hero__rule {
  margin: 1.5rem auto 0;
  display: flex;
  max-width: 36rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.hero__rule span {
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.5);
}
.hero__rule p {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.hero__footer {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 10;
}
.hero__footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 2rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.7);
  font-weight: 500;
}
.hero__footer-inner .hide-sm { display: none; }
@media (min-width: 640px) { .hero__footer-inner .hide-sm { display: inline; } }
.hero__footer-inner a {
  text-decoration: underline;
  text-underline-offset: 8px;
  transition: color 0.2s;
}
.hero__footer-inner a:hover { color: #fff; }

/* ==================================================================== ABOUT */
.about {
  background: var(--primary);
  color: var(--primary-foreground);
  padding-block: 6rem;
}
@media (min-width: 1024px) { .about { padding-block: 8rem; } }

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
}
.about__figure { aspect-ratio: 3 / 4; overflow: hidden; }
.about__figure img { height: 100%; width: 100%; object-fit: cover; }
.about__caption {
  margin-top: 1rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(247, 247, 245, 0.7);
}
.about__left { grid-column: span 12; }
.about__right { grid-column: span 12; }
.about__portrait { aspect-ratio: 4 / 3; overflow: hidden; }
.about__portrait img { height: 100%; width: 100%; object-fit: cover; }
.about__heading {
  margin-top: 2rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.875rem;
  line-height: 1.25;
}
.about__body {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgba(247, 247, 245, 0.85);
}
.about__note {
  margin-top: 1rem;
  max-width: 28rem;
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(247, 247, 245, 0.6);
}
@media (min-width: 768px) {
  .about__left { grid-column: 1 / span 5; }
  .about__right { grid-column: 7 / span 6; padding-top: 6rem; }
  .about__heading { font-size: 2.25rem; }
}

/* ================================================================ OUR WORK */
.work { background: var(--background); padding-block: 6rem; }
@media (min-width: 1024px) { .work { padding-block: 8rem; } }

.work__head { margin-bottom: 3.5rem; text-align: center; }
.work__title {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 15vw;
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}
.work__sub {
  margin: 1.5rem auto 0;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}
@media (min-width: 640px) { .work__title { font-size: 12vw; } }
@media (min-width: 1024px) { .work__title { font-size: 10rem; } }

/* ---- Our Work gallery (masonry grid — varied heights) ---- */
.gallery {
  column-count: 2;
  column-gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) { .gallery { column-count: 3; column-gap: 1.25rem; } }
@media (min-width: 1024px) { .gallery { column-count: 4; } }
.gallery__item {
  break-inside: avoid;
  margin: 0 0 1rem;
  overflow: hidden;
  cursor: pointer;
  background: var(--secondary);
  box-shadow: 0 14px 24px -14px rgba(0, 0, 0, 0.35);
}
@media (min-width: 640px) { .gallery__item { margin-bottom: 1.25rem; } }
.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}
.gallery__item:hover img { transform: scale(1.05); }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.92);
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

.ar-4-3 { aspect-ratio: 4 / 3; }
.ar-3-4 { aspect-ratio: 3 / 4; }
.ar-4-5 { aspect-ratio: 4 / 5; }
.ar-1-1 { aspect-ratio: 1 / 1; }

.work__more { margin-top: 3rem; text-align: center; }
.link-underline {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  text-decoration: underline;
  text-underline-offset: 8px;
  transition: color 0.2s;
}
.link-underline:hover { color: var(--accent); }

/* ================================================================ SERVICES */
.services {
  border-top: 1px solid var(--border);
  background: rgba(210, 204, 190, 0.4);
  padding-block: 6rem;
}
@media (min-width: 1024px) { .services { padding-block: 8rem; } }

.services__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.services__title {
  margin-top: 0.75rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 3rem;
}
@media (min-width: 640px) { .services__title { font-size: 3.75rem; } }

.menu {
  margin-top: 3.5rem;
  border-top: 1px solid rgba(48, 46, 47, 0.15);
  border-bottom: 1px solid rgba(48, 46, 47, 0.15);
}
.menu__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 1rem;
  row-gap: 0.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(48, 46, 47, 0.15);
  transition: background-color 0.2s;
}
.menu__row:first-child { border-top: 0; }
.menu__row:hover { background: rgba(247, 247, 245, 0.6); }
.menu__name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
}
.menu__price {
  text-align: right;
  font-size: 0.875rem;
  font-weight: 500;
}
.menu__desc {
  grid-column: span 2;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}
.menu__dur {
  grid-column: span 2;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}
@media (min-width: 640px) {
  .menu__row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .menu__name { grid-column: span 5; font-size: 1.875rem; }
  .menu__desc { grid-column: span 4; }
  .menu__dur  { grid-column: span 2; }
  .menu__price { grid-column: span 1; order: 9; }
}

/* ================================================================== STUDIO */
.studio { padding-block: 6rem; }
@media (min-width: 1024px) { .studio { padding-block: 8rem; } }

.studio__title {
  margin-top: 0.75rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 3rem;
  line-height: 1.25;
}
@media (min-width: 640px) { .studio__title { font-size: 3.75rem; } }
.studio__body {
  margin-top: 1.5rem;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}
.studio__hours {
  margin-top: 2rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--foreground);
  font-weight: 600;
}
.studio__hours p + p { margin-top: 0.4rem; }
.studio__left { grid-column: span 12; }
.studio__gallery {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.studio__gallery > div { overflow: hidden; }
.studio__gallery > div img { height: 100%; width: 100%; object-fit: cover; }
.studio__tall { grid-row: span 2; aspect-ratio: 3 / 5; }
@media (min-width: 768px) {
  .studio__left { grid-column: span 5; }
  .studio__gallery { grid-column: span 7; }
}

/* =================================================================== VISIT */
.visit {
  background: var(--primary);
  color: var(--primary-foreground);
  padding-block: 6rem;
}
@media (min-width: 1024px) { .visit { padding-block: 8rem; } }

.visit__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.visit__eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(247, 247, 245, 0.7);
}
.visit__title {
  margin-top: 0.75rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 3rem;
}
@media (min-width: 640px) { .visit__title { font-size: 3.75rem; } }
.visit__blocks { margin-top: 2rem; }
.visit__blocks > div + div { margin-top: 1.5rem; }
.visit__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(247, 247, 245, 0.7);
}
.visit__addr {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.625;
}
.visit__contact { margin-top: 0.5rem; font-size: 1.125rem; }
.visit__contact + .visit__contact { margin-top: 0.25rem; }
.visit__contact a { text-decoration: underline; text-underline-offset: 4px; }
.visit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
}
.btn-solid {
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.75rem 1.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  transition: filter 0.2s;
}
.btn-solid:hover { filter: brightness(1.1); }
.btn-outline {
  border: 1px solid rgba(247, 247, 245, 0.4);
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  transition: border-color 0.2s;
}
.btn-outline:hover { border-color: var(--primary-foreground); }

.visit__map {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(247, 247, 245, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}
.visit__map iframe { width: 100%; height: 100%; border: 0; }
@media (min-width: 1024px) {
  .visit__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .visit__col-left { grid-column: span 5; }
  .visit__col-right { grid-column: span 7; }
}

/* ================================================================== FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted-foreground);
}
.site-footer__brand {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--foreground);
  display: flex;
  align-items: center;
}
/* Footer sits on the light beige background, so flip the white logo to dark */
.site-footer__brand img {
  display: block;
  height: 30px;
  width: auto;
  filter: brightness(0);
}
@media (min-width: 768px) { .site-footer__brand img { height: 34px; } }
.site-footer__links { display: flex; gap: 1.25rem; }
.site-footer__links a { transition: color 0.2s; }
.site-footer__links a:hover { color: var(--foreground); }
@media (min-width: 768px) { .site-footer__inner { flex-direction: row; } }

.site-footer__credit {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted-foreground);
}
.site-footer__credit a {
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.site-footer__credit a:hover { color: var(--foreground); }

/* ================================================================== 404 */
.error404-wrap {
  display: flex;
  min-height: 70vh;
  align-items: center;
  justify-content: center;
  padding-inline: 1rem;
  text-align: center;
}
.error404-wrap h1 { font-size: 4.5rem; font-weight: 700; }
.error404-wrap h2 { margin-top: 1rem; font-size: 1.25rem; }
.error404-wrap p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.error404-wrap .btn-home {
  display: inline-flex;
  margin-top: 1.5rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  /* The hero crossfade is a gentle opacity fade (no motion), so it stays on. */
}
