/* ============================================================
   HAIR FOR LIFE — HOME
   Recreación estructural basada en la referencia proporcionada.
   ============================================================ */

@font-face {
  font-family: "Neutral Jans";
  src: url("assets/fonts/NeutralJans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Fallbacks */
:root {
  --font-main: "Neutral Jans", Arial, Helvetica, sans-serif;
  --black: #171717;
  --white: #ffffff;
  --cream: #eee9de;
  --cream-light: #f7f2e8;
  --line: rgba(23, 23, 23, .18);
  --max: 1320px;
  --radius-card: 9px;
  --radius-button: 7px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.container {
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   IMAGE PLACEHOLDERS
   ============================================================ */

.image-slot {
  width: 100%;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}

.image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-slot img[src*="hero-before"],
.image-slot img[src*="hero-after"] {
  min-height: 100%;
}

/* Broken-image friendly placeholders: if a source isn't present,
   the slot still preserves dimensions and composition. */
.image-slot img:not([src]) {
  display: none;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

 .brand-logo {
  display:block; width:190px; height:auto; max-height:42px; object-fit:contain; object-position:left center;
}
.footer-brand-lockup .brand-logo { width:185px; max-height:44px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 13px;
}

.main-nav > a,
.dropdown-trigger {
  border: 0;
  background: none;
  padding: 10px 16px;
  color: #3f3e3a;
  cursor: pointer;
}

.main-nav > a:hover,
.dropdown-trigger:hover {
  color: #000;
}

.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.chevron { width:11px; height:11px; display:inline-block; object-fit:contain; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  padding: 7px;
  display: grid;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(0,0,0,.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: .18s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 10px 12px;
  border-radius: 6px;
}

.dropdown-menu a:hover {
  background: #f5f3ed;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: none;
  padding: 10px 7px;
}
.menu-toggle img { width:24px; height:24px; display:block; object-fit:contain; }



/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 610px;
  position: relative;
  overflow: hidden;

  background-image: url("assets/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .hero {
    background-image: url("assets/hero-bg-mobile.jpg");
    background-size: cover;
    background-position: center;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .65;
  transform: skewY(-7deg) scale(1.2);
  transform-origin: center;
}

.hero::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -25px;
  bottom: 110px;
  background: rgba(193, 0, 0, .55);
  filter: blur(7px);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.hero-decor {
  position: absolute;
  filter: blur(7px);
  border-radius: 50%;
  opacity: .75;
}

.hero-decor-a {
  width: 110px;
  height: 40px;
  left: -26px;
  top: 90px;
  background: #bd4034;
  transform: rotate(-28deg);
}

.hero-decor-b {
  width: 145px;
  height: 44px;
  right: -48px;
  top: 40px;
  background: #b65d53;
  transform: rotate(22deg);
}

.hero-grid {
  position: absolute;
  top: -100px;
  left: 48%;
  width: 1px;
  height: 120%;
  background: rgba(255,255,255,.45);
  transform: rotate(44deg);
  box-shadow:
    90px 0 rgba(255,255,255,.45),
    180px 0 rgba(255,255,255,.45),
    270px 0 rgba(255,255,255,.45),
    360px 0 rgba(255,255,255,.45),
    -90px 0 rgba(255,255,255,.45),
    -180px 0 rgba(255,255,255,.45),
    -270px 0 rgba(255,255,255,.45);
  opacity: .22;
}

.hero-inner {
  min-height: 610px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  column-gap: 70px;
  padding-block: 72px 60px;
}

.hero-copy {
  max-width: 525px;
}

.hero-logo-placeholder {
  width: 20px;
  height: 20px;
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: clamp(44px, 4vw, 45px);
  line-height: .96;
  letter-spacing: -.03em;
  margin: 0 0 25px;
  font-weight: 800;
}

.hero-description {
  max-width: 455px;
  font-size: 16px;
  line-height: 1.42;
  margin: 0 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.btn {
  min-height: 40px;
  padding: 10px 20px;
  border-radius: var(--radius-button);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.btn-dark {
  background: var(--black);
  color: #fff;
}

.btn-light {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-icon { width:16px; height:16px; flex:0 0 16px; display:block; object-fit:contain; }

.hero-note {
  margin: 0;
  color: #56544f;
  font-size: 11px;
  line-height: 1.35;
}

.before-after {
  position: relative;
  min-height: 490px;
  margin-top: 10px;
}

.ba-card {
  position: absolute;
  width: min(55%, 345px);
}

.ba-card .image-slot {
  aspect-ratio: 1.17 / 1;
}

.ba-before {
  left: 2%;
  top: 7%;
}

.ba-after {
  right: 4%;
  bottom: 0;
}

 .scribble,.scribble-arrow { position:absolute; display:block; object-fit:contain; pointer-events:none; }
.scribble-before { top:7%; right:-34%; width:108px; }
.scribble-after { left:-20%; bottom:16%; width:130px; }
.arrow-before { top:16%; right:-14%; width:56px; }
.arrow-after { left:-3%; bottom:8%; width:56px; }

/* ============================================================
   SECTION BASICS
   ============================================================ */

.section {
  padding-block: 82px;
}

.section-title {
  margin: 0;
  text-align: center;
  font-size: clamp(35px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 800;
}

.highlight {
  position: relative;
  display: inline-block;
}

.highlight-oval::after {
  content: "";
  position: absolute;
  left: -7%;
  right: -7%;
  top: 55%;
  height: 34%;
  border: 3px solid rgba(206, 197, 177, .42);
  border-radius: 50%;
  transform: rotate(-5deg);
  z-index: -1;
}

/* ============================================================
   SERVICES
   ============================================================ */

.services {
  background: #fff;
  padding-top: 78px;
  padding-bottom: 94px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.service-card {
  min-width: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.22 / 1;
  border-radius: var(--radius-card);
  background: #ddd;
}

.service-card .image-slot,
.service-card .image-cover {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.service-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,.76) 100%);
}

.service-title {
  position: absolute;
  left: 18px;
  bottom: 13px;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   VALUE
   ============================================================ */

.value {
  padding-block: 90px 88px;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 105px;
  align-items: center;
}

.value-heading h2 {
  margin: 0;
  font-size: clamp(39px, 3.1vw, 40px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.hand-underline { display:block; width:120px; height:16px; margin:5px auto 0; object-fit:contain; }

.value-copy {
  max-width: 560px;
  font-size: 15px;
  line-height: 1.52;
  color: #30302e;
}

.value-copy p {
  margin: 0 0 18px;
}

/* ============================================================
   PROCESS
   ============================================================ */

.process {
  background: var(--cream);
  padding-top: 74px;
  padding-bottom: 74px;
}

.process-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1.28fr repeat(4, .95fr);
  gap: 32px;
  align-items: center;
}

.dark-box {
  background: var(--black);
  color: #fff;
  border-radius: 18px;
  padding: 27px 28px;
  min-height: 170px;
  display: flex;
  align-items: center;
}

.dark-box p {
  margin: 0;
  font-size: 15px;
  line-height: 1.38;
}

.step {
  text-align: center;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 13px;
}

.step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

.step-icon {
  width: 57px;
  height: 62px;
  position: relative;
  margin-top: 10px;
}

.step-icon { width:58px; height:62px; display:block; object-fit:contain; object-position:center; margin-top:10px; }

/* ============================================================
   CONTACT
   ============================================================ */

.contact {
  padding-block: 92px 90px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 70px;
  align-items: start;
}

.contact-form-wrap h2 {
  font-size: clamp(38px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 27px;
}

.contact-intro {
  max-width: 710px;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 28px;
}

.valuation-form {
  max-width: 670px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.valuation-form input,
.valuation-form textarea {
  width: 100%;
  border: 1px solid #9b9a95;
  background: #fbf8f3;
  border-radius: 2px;
  padding: 11px 13px;
  outline: none;
  color: var(--black);
}

.valuation-form input {
  min-height: 40px;
}

.valuation-form textarea {
  resize: vertical;
  min-height: 110px;
  margin-top: 12px;
}

.valuation-form input:focus,
.valuation-form textarea:focus {
  border-color: #191919;
  box-shadow: 0 0 0 2px rgba(23,23,23,.07);
}

.form-submit {
  margin-top: 12px;
  cursor: pointer;
}

.form-status {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 13px;
}

.form-status {
    margin-top: 15px;
    font-size: 14px;
}

.form-status.success {
    color: #198754;
}

.form-status.error {
    color: #dc3545;
}

.contact-card {
  background: var(--black);
  color: #fff;
  border-radius: 18px;
  padding: 28px 28px 31px;
}

.contact-card h3 {
  font-size: 15px;
  margin: 0 0 9px;
}

.contact-card p {
  margin: 0 0 4px;
  color: #eee;
  font-size: 13px;
  line-height: 1.45;
}

.contact-card h3:not(:first-child) {
  margin-top: 22px;
}

.contact-card a {
  text-decoration: none;
}

.map-link {
  color: #ff4c4c;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  font-size: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--cream);
  padding-top: 60px;
  padding-bottom: 27px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 1fr 1fr;
  gap: 50px;
}

.footer-brand-lockup {
  margin-top: 3px;
}

.footer-column {
  font-size: 12px;
  color: #4e4c48;
}

.footer-column h3 {
  margin: 0 0 9px;
  color: #242320;
  font-size: 13px;
  font-weight: 800;
}

.footer-column p {
  margin: 0 0 22px;
  line-height: 1.45;
}

.footer-column a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.footer-cta {
  min-width: 160px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 26px;
}

.socials {
  display: flex;
  gap: 10px;
  margin-bottom: 19px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #232323;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .18s ease, background .18s ease;
}

.social-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.5);
}

.social-btn img { width:18px; height:18px; display:block; object-fit:contain; }

.footer-links {
  margin-bottom: 6px;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.copyright {
  margin: 0;
  font-size: 10px;
  color: #585650;
}

/* ============================================================
   DECORATIVE SIDE TABS
   ============================================================ */

.side-tab {
  position: fixed;
  left: 0;
  width: 8px;
  height: 56px;
  background: var(--black);
  border: 0;
  z-index: 900;
  border-radius: 0 2px 2px 0;
}

.side-tab-top {
  top: 212px;
}

.side-tab-bottom {
  top: 70%;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1150px) {
  .container {
    width: min(calc(100% - 48px), var(--max));
  }

  .hero-inner {
    grid-template-columns: .95fr 1.05fr;
    column-gap: 40px;
  }

  .process-grid {
    grid-template-columns: 1.4fr repeat(4, .85fr);
    gap: 18px;
  }

  .dark-box {
    padding-inline: 22px;
  }

  .dark-box p {
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav > a,
  .dropdown-trigger {
    width: 100%;
    text-align: left;
    padding: 13px 6px;
  }

  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 5px 16px;
  }

  .nav-dropdown.open .dropdown-menu {
    display: grid;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-block: 56px 50px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .before-after {
    min-height: 540px;
    width: min(100%, 720px);
    margin: 24px auto 0;
  }

  .ba-card {
    width: 43%;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 22px;
  }

  .process-intro {
    grid-column: 1 / -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .contact-card {
    max-width: 430px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px 50px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 32px), var(--max));
  }

  body {
    font-size: 15px;
  }

  .site-header {
    height: 66px;
  }

  .main-nav {
    top: 66px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .hero-inner {
    padding-top: 42px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 11vw, 56px);
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .before-after {
    min-height: 340px;
  }

  .scribble {
    font-size: 24px;
  }

  .scribble-arrow {
    font-size: 27px;
  }

  .services {
    padding-top: 60px;
    padding-bottom: 68px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card {
    aspect-ratio: 1.72 / 1;
  }

  .section {
    padding-block: 62px;
  }

  .value-heading h2,
  .contact-form-wrap h2 {
    font-size: 35px;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dark-box {
    min-height: 0;
  }

  .step p {
    font-size: 12px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    padding-block: 70px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-legal {
    gap: 15px;
  }

  .side-tab {
    display: none;
  }
}
