/*
Theme Name: La Martina Atelier
Theme URI: https://muebleslamartina.cl
Author: La Martina
Description: Tema ligero y editorial para Muebles La Martina.
Version: 1.0.0
Text Domain: la-martina
*/

:root {
  --lm-black: #090909;
  --lm-charcoal: #171714;
  --lm-ivory: #f4f0e7;
  --lm-paper: #fbfaf6;
  --lm-gold: #e9c747;
  --lm-gold-dark: #b89522;
  --lm-ink: #1b1b18;
  --lm-muted: #716f68;
  --lm-line: rgba(24, 24, 20, .14);
  --lm-max: 1280px;
  --lm-serif: Georgia, 'Times New Roman', serif;
  --lm-sans: Inter, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--lm-ink); background: var(--lm-paper); font-family: var(--lm-sans); font-size: 16px; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--lm-gold); outline-offset: 4px; }
.lm-shell { width: min(calc(100% - 40px), var(--lm-max)); margin-inline: auto; }
.lm-eyebrow { margin: 0 0 18px; color: var(--lm-gold-dark); font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.lm-title { margin: 0; font-family: var(--lm-serif); font-size: clamp(2.35rem, 5vw, 5.5rem); font-weight: 400; line-height: .98; letter-spacing: -.035em; }
.lm-lede { max-width: 680px; margin: 24px 0 0; color: var(--lm-muted); font-size: clamp(1rem, 1.5vw, 1.2rem); }

.site-header { position: absolute; z-index: 20; inset: 0 0 auto; color: white; border-bottom: 1px solid rgba(255,255,255,.18); }
.site-header__inner { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 28px; }
.site-brand { display: inline-flex; align-items: center; gap: 14px; }
.site-brand img { width: 150px; height: 68px; object-fit: contain; object-position: left center; }
.site-nav ul { display: flex; margin: 0; padding: 0; align-items: center; gap: clamp(18px, 2.6vw, 38px); list-style: none; }
.site-nav a { position: relative; padding: 35px 0; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a::after { content: ''; position: absolute; right: 0; bottom: 25px; left: 0; height: 1px; background: var(--lm-gold); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.site-nav a:hover::after, .site-nav .current-menu-item a::after { transform: scaleX(1); transform-origin: left; }
.lm-menu-toggle { display: none; min-width: 46px; min-height: 46px; padding: 0; color: white; background: transparent; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; }

.lm-hero { position: relative; display: grid; min-height: 100svh; align-items: end; overflow: hidden; color: white; background: #111; }
.lm-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 76% 38%, rgba(233,199,71,.23), transparent 28%), linear-gradient(120deg, #050505 12%, #15140f 58%, #292313 100%); }
.lm-hero::after { content: ''; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to right, transparent, black); }
.lm-hero__content { position: relative; z-index: 2; padding: 190px 0 85px; }
.lm-hero__logo-mark { position: absolute; top: 14%; right: 5%; width: min(40vw, 520px); opacity: .12; filter: grayscale(1); }
.lm-hero h1 { max-width: 900px; margin: 0; font-family: var(--lm-serif); font-size: clamp(3.2rem, 8.2vw, 8.5rem); font-weight: 400; line-height: .88; letter-spacing: -.055em; }
.lm-hero h1 em { color: var(--lm-gold); font-style: normal; }
.lm-hero__sub { display: flex; margin-top: 38px; align-items: end; justify-content: space-between; gap: 35px; }
.lm-hero__sub p { max-width: 590px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.4vw, 1.25rem); }
.lm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lm-btn { display: inline-flex; min-height: 52px; padding: 13px 24px; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 999px; font-size: .76rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; transition: background .2s ease, color .2s ease, transform .2s ease; }
.lm-btn:hover { transform: translateY(-2px); }
.lm-btn--gold { color: #111; background: var(--lm-gold); }
.lm-btn--gold:hover { background: #f4d75e; }
.lm-btn--ghost { color: white; border-color: rgba(255,255,255,.55); }
.lm-btn--ghost:hover { color: #111; background: white; }
.lm-btn--dark { color: white; background: var(--lm-black); }

.lm-intro { padding: clamp(80px, 10vw, 150px) 0; }
.lm-intro__grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: start; gap: clamp(50px, 10vw, 150px); }
.lm-intro__copy { padding-top: 58px; }
.lm-statline { display: grid; margin-top: 54px; padding-top: 24px; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--lm-line); }
.lm-statline strong { display: block; font-family: var(--lm-serif); font-size: 2rem; font-weight: 400; }
.lm-statline span { display: block; color: var(--lm-muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }

.lm-services { padding: clamp(80px, 9vw, 130px) 0; color: white; background: var(--lm-black); }
.lm-services__head { display: flex; margin-bottom: 58px; align-items: end; justify-content: space-between; gap: 30px; }
.lm-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.18); }
.lm-service { position: relative; min-height: 480px; padding: 36px; display: flex; flex-direction: column; justify-content: end; overflow: hidden; background: var(--lm-charcoal); }
.lm-service::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.88)), radial-gradient(circle at 70% 20%, var(--service-glow, rgba(233,199,71,.25)), transparent 45%); transition: transform .5s ease; }
.lm-service:hover::before { transform: scale(1.05); }
.lm-service__number, .lm-service h3, .lm-service p, .lm-service a { position: relative; z-index: 1; }
.lm-service__number { position: absolute; top: 30px; left: 32px; color: var(--lm-gold); font-size: .75rem; letter-spacing: .15em; }
.lm-service h3 { margin: 0; font-family: var(--lm-serif); font-size: clamp(2rem, 3vw, 3.4rem); font-weight: 400; line-height: 1; }
.lm-service p { margin: 16px 0 24px; color: rgba(255,255,255,.66); }
.lm-service a { align-self: flex-start; color: var(--lm-gold); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.lm-process { padding: clamp(80px, 10vw, 150px) 0; }
.lm-process__grid { display: grid; margin-top: 70px; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--lm-line); }
.lm-step { padding: 28px 30px 0 0; border-right: 1px solid var(--lm-line); }
.lm-step + .lm-step { padding-left: 30px; }
.lm-step:last-child { border-right: 0; }
.lm-step b { color: var(--lm-gold-dark); font-size: .72rem; letter-spacing: .15em; }
.lm-step h3 { margin: 24px 0 12px; font-family: var(--lm-serif); font-size: 1.6rem; font-weight: 400; }
.lm-step p { margin: 0; color: var(--lm-muted); font-size: .92rem; }

.lm-quote { padding: clamp(75px, 10vw, 140px) 0; color: white; background: var(--lm-gold-dark); }
.lm-quote__inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 60px; }
.lm-quote h2 { margin: 0; font-family: var(--lm-serif); font-size: clamp(2.5rem, 5.8vw, 6.2rem); font-weight: 400; line-height: .98; }
.lm-quote p { max-width: 480px; margin: 0 0 28px; color: rgba(255,255,255,.8); }

.lm-contact { padding: clamp(80px, 9vw, 130px) 0; }
.lm-contact__grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(45px, 9vw, 120px); }
.lm-contact__aside p { color: var(--lm-muted); }
.lm-contact__aside a { display: inline-block; margin-top: 16px; color: var(--lm-gold-dark); font-weight: 700; }
.lm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lm-field--full { grid-column: 1 / -1; }
.lm-field label { display: block; margin-bottom: 7px; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lm-field input, .lm-field select, .lm-field textarea { width: 100%; min-height: 54px; padding: 13px 15px; color: var(--lm-ink); background: white; border: 1px solid var(--lm-line); border-radius: 0; }
.lm-field textarea { min-height: 130px; resize: vertical; }
.lm-form__notice { grid-column: 1 / -1; margin: 0; color: var(--lm-muted); font-size: .8rem; }

.site-footer { padding: 62px 0 30px; color: white; background: var(--lm-black); }
.site-footer__top { display: grid; padding-bottom: 52px; grid-template-columns: 1fr auto auto; gap: clamp(45px, 8vw, 110px); border-bottom: 1px solid rgba(255,255,255,.14); }
.site-footer img { width: 190px; height: auto; }
.site-footer h3 { margin: 0 0 16px; color: var(--lm-gold); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: rgba(255,255,255,.76); }
.site-footer__bottom { display: flex; padding-top: 25px; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.5); font-size: .76rem; }

.lm-page-hero { padding: 180px 0 90px; color: white; background: var(--lm-black); }
.lm-page { padding: 80px 0 110px; }
.lm-page__content { max-width: 820px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .lm-menu-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: absolute; top: 92px; right: 0; left: 0; display: none; padding: 20px; color: white; background: rgba(9,9,9,.98); }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: block; }
  .site-nav a { display: block; min-height: 48px; padding: 13px 0; }
  .site-nav a::after { bottom: 8px; }
  .lm-hero__sub, .lm-services__head { align-items: flex-start; flex-direction: column; }
  .lm-intro__grid, .lm-quote__inner, .lm-contact__grid { grid-template-columns: 1fr; }
  .lm-intro__copy { padding-top: 0; }
  .lm-services__grid { grid-template-columns: 1fr; }
  .lm-service { min-height: 380px; }
  .lm-process__grid { grid-template-columns: 1fr 1fr; }
  .lm-step { padding-bottom: 35px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .lm-shell { width: min(calc(100% - 28px), var(--lm-max)); }
  .site-header__inner { min-height: 78px; }
  .site-brand img { width: 124px; height: 56px; }
  .site-nav { top: 78px; }
  .lm-hero__content { padding: 150px 0 55px; }
  .lm-hero__logo-mark { top: 20%; right: -15%; width: 80vw; }
  .lm-actions, .lm-btn { width: 100%; }
  .lm-statline { grid-template-columns: 1fr; }
  .lm-process__grid, .lm-form, .site-footer__top { grid-template-columns: 1fr; }
  .lm-step, .lm-step + .lm-step { padding: 24px 0 30px; border-right: 0; border-bottom: 1px solid var(--lm-line); }
  .lm-field--full { grid-column: auto; }
  .site-footer__brand { grid-column: auto; }
  .site-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
