/* ═══════════════════════════════════════════════════════════════════════════
   ROMANES CLOSET & COCINA — Stylesheet
   Author: Romanes
   Version: 1.0.0
   ─────────────────────────────────────────────────────────────────────────
   TABLE OF CONTENTS
   01. Design tokens (CSS custom properties)
   02. Reset & base
   03. Typography & utilities
   04. Accessibility helpers
   05. Layout primitives (buttons, badges, tags)
   06. Cursor & scroll progress
   07. Navigation
   08. Hero
   09. Marquee
   10. Section head
   11. Services
   12. Materials
   13. Process
   14. Stats
   15. Portfolio
   16. Testimonial
   17. FAQ
   18. CTA
   19. WhatsApp floating button
   20. Footer
   21. Animations
   22. Responsive (≤1280px, ≤1024px, ≤768px, ≤480px)
   23. Accessibility: reduced motion, focus, print
   ═══════════════════════════════════════════════════════════════════════════ */


/* ═══ 01. DESIGN TOKENS ════════════════════════════════════════════════════ */
:root {
  /* Brand colors (logo-derived) */
  --color-bg:           #1A130C;
  --color-bg-2:         #221912;
  --color-bg-3:         #2D2118;
  --color-bg-deep:      #110C07;
  --color-cream:        #E8D8B8;
  --color-cream-dim:    #B8A788;
  --color-muted:        #847358;
  --color-tan:          #C9A57E;
  --color-tan-light:    #DEBE96;
  --color-tan-dark:     #A8855E;
  --color-copper:       #B17F4A;

  /* WhatsApp brand */
  --color-wa:           #25D366;
  --color-wa-dark:      #128C7E;

  /* Surface lines */
  --color-line:         rgba(232, 216, 184, 0.10);
  --color-line-soft:    rgba(232, 216, 184, 0.06);

  /* Typography */
  --font-display:       'Fraunces', Georgia, serif;
  --font-body:          'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-mono:          'JetBrains Mono', ui-monospace, monospace;

  /* Spacing scale (fluid) */
  --space-xs:           clamp(0.5rem, 1vw, 0.75rem);
  --space-sm:           clamp(0.75rem, 1.5vw, 1rem);
  --space-md:           clamp(1rem, 2vw, 1.5rem);
  --space-lg:           clamp(1.5rem, 3vw, 2.5rem);
  --space-xl:           clamp(3rem, 6vw, 5rem);
  --space-2xl:          clamp(5rem, 9vw, 9rem);

  /* Container & gutters */
  --gutter:             clamp(1.25rem, 3vw, 2.5rem);
  --container:          1440px;

  /* Border radius */
  --radius-sm:          8px;
  --radius-md:          16px;
  --radius-lg:          24px;
  --radius-xl:          40px;
  --radius-pill:        100px;

  /* Easings */
  --ease-out:           cubic-bezier(0.2, 0.85, 0.2, 1);
  --ease-in-out:        cubic-bezier(0.65, 0, 0.35, 1);

  /* Z-index scale */
  --z-cursor-trail:     99998;
  --z-cursor:           99999;
  --z-grain:            9999;
  --z-progress:         200;
  --z-nav:              100;
  --z-wa-float:         500;
  --z-lightbox:         600;
}


/* ═══ 02. RESET & BASE ═════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.92 0 0 0 0 0.78 0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Ambient glow */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(201, 165, 126, 0.07), transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(177, 127, 74, 0.05), transparent 60%);
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

ul, ol { list-style: none; }

::selection {
  background: var(--color-tan);
  color: var(--color-bg);
}


/* ═══ 03. TYPOGRAPHY & UTILITIES ═══════════════════════════════════════════ */
.display {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50, "opsz" 144;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.word--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-cream);
  font-style: italic;
  font-weight: 300;
}

.word--tan {
  background: linear-gradient(180deg, var(--color-tan-light), var(--color-copper));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 300;
}


/* ═══ 04. ACCESSIBILITY HELPERS ════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-cream);
  color: var(--color-bg);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  z-index: 99999;
  font-size: 0.9rem;
  transition: top 0.3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-tan);
  outline-offset: 4px;
  border-radius: 4px;
}


/* ═══ 05. LAYOUT PRIMITIVES ════════════════════════════════════════════════ */

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; transition: transform 0.3s; }

.btn--nav {
  background: var(--color-cream);
  color: var(--color-bg);
  border-color: var(--color-cream);
}
.btn--nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-tan);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}
.btn--nav > * { position: relative; z-index: 1; }
.btn--nav:hover::before { transform: translateY(0); }
.btn--nav:hover svg { transform: translateX(3px) rotate(-45deg); }

.btn--primary {
  background: var(--color-cream);
  color: var(--color-bg);
  padding: 1.1rem 2rem 1.1rem 2.2rem;
  font-size: 0.95rem;
  border: 1px solid var(--color-cream);
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-tan);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
}
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary:hover::before { transform: translateY(0); }
.btn--primary svg { width: 16px; height: 16px; }
.btn--primary:hover svg { transform: rotate(-45deg); }

.btn--ghost {
  color: var(--color-cream);
  padding: 1.1rem 0.5rem;
  font-size: 0.95rem;
}
.btn--ghost::after {
  content: '';
  position: absolute;
  bottom: 0.7rem;
  left: 0.5rem;
  right: 0.5rem;
  height: 1px;
  background: var(--color-cream);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.btn--ghost:hover::after { transform: scaleX(0.4); }

.btn--big {
  background: var(--color-cream);
  color: var(--color-bg);
  padding: 1.4rem 2.4rem 1.4rem 2.8rem;
  font-size: 1rem;
  gap: 1rem;
}
.btn--big::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-tan);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
}
.btn--big > * { position: relative; z-index: 1; }
.btn--big:hover::before { transform: translateY(0); }

.btn__arrow {
  width: 32px;
  height: 32px;
  background: var(--color-bg);
  color: var(--color-cream);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-out);
}
.btn--big:hover .btn__arrow { transform: rotate(-45deg); }

.btn--wa {
  background: var(--color-wa);
  color: #fff;
  padding: 1.4rem 2.4rem;
  font-size: 1rem;
  gap: 1rem;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.25);
}
.btn--wa:hover {
  background: var(--color-wa-dark);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(37, 211, 102, 0.35);
}
.btn--wa svg { width: 22px; height: 22px; }

/* ─── Badge ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(232, 216, 184, 0.04);
  border: 1px solid var(--color-line);
  backdrop-filter: blur(10px);
  padding: 0.55rem 1rem 0.55rem 0.7rem;
  border-radius: var(--radius-pill);
  color: var(--color-cream-dim);
}
.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: #5ED88B;
  box-shadow: 0 0 8px #5ED88B;
}

/* ─── Tags ─── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.tag {
  background: rgba(232, 216, 184, 0.05);
  border: 1px solid var(--color-line);
  color: var(--color-cream-dim);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
}

/* ─── Logo ─── */
.logo-svg {
  width: 32px;
  height: 32px;
  object-fit: cover;
  flex-shrink: 0;
}


/* ═══ 06. CURSOR & SCROLL PROGRESS ═════════════════════════════════════════ */
/* Custom cursor is opt-in: JS adds .has-custom-cursor to <html> only once it
   confirms it's running (not touch) and has taken over pointer rendering.
   Without JS, or before that class lands, the native system cursor stays visible. */
.has-custom-cursor,
.has-custom-cursor .btn,
.has-custom-cursor .service,
.has-custom-cursor .material,
.has-custom-cursor .gallery__item,
.has-custom-cursor .faq__question,
.has-custom-cursor .wa-float {
  cursor: none;
}

.cursor,
.cursor-trail {
  display: none;
}
.has-custom-cursor .cursor,
.has-custom-cursor .cursor-trail {
  display: block;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--color-tan);
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, background 0.3s;
  mix-blend-mode: difference;
}
.cursor.is-expanded {
  transform: translate(-50%, -50%) scale(3);
  background: var(--color-cream);
}

.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201, 165, 126, 0.4);
  border-radius: var(--radius-pill);
  pointer-events: none;
  z-index: var(--z-cursor-trail);
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--ease-out), width 0.3s, height 0.3s, opacity 0.3s;
}
.cursor-trail.is-expanded {
  width: 70px;
  height: 70px;
  opacity: 0.5;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: var(--z-progress);
}
.scroll-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-tan-dark), var(--color-tan), var(--color-tan-light));
  transition: width 0.1s;
}


/* ═══ 07. NAVIGATION ═══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 1.4rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all 0.4s;
}
.nav.is-scrolled {
  padding: 0.9rem var(--gutter);
  background: rgba(26, 19, 12, 0.8);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--color-line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav__brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-tan);
}
.nav__brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-cream-dim);
  margin-top: 4px;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
}
.nav__links a {
  color: var(--color-cream);
  font-size: 0.85rem;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 2px 14px rgba(0, 0, 0, 0.45);
}
.nav__links a::before {
  content: '↳';
  position: absolute;
  left: -1rem;
  opacity: 0;
  color: var(--color-tan);
  transition: opacity 0.3s, left 0.3s;
}
.nav__links a:hover { color: var(--color-tan); }
.nav__links a:hover::before { opacity: 1; left: -1.2rem; }


/* ═══ 08. HERO ═════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: 7rem var(--gutter) 6.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  background-image:
    linear-gradient(90deg, var(--color-bg) 0%, transparent 30%),
    linear-gradient(180deg, transparent 60%, var(--color-bg) 100%),
    url("../image/inicio-background.webp");
  background-size: cover, cover, cover;
  background-position: center;
  z-index: 0;
  filter: contrast(1.05) saturate(0.8) brightness(0.85);
  will-change: transform;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168, 133, 94, 0.18), transparent 50%);
  mix-blend-mode: overlay;
}

.hero__top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 2rem;
  gap: 1rem;
}
.hero__main {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 13vw, 13.5rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  margin-bottom: 2rem;
}
.hero__title-line {
  display: block;
  overflow: hidden;
}
.hero__title .word {
  display: inline-block;
  animation: heroUp 1.4s var(--ease-out) both;
  transform: translateY(110%);
}
.hero__title .word:nth-child(1) { animation-delay: 0.15s; }
.hero__title .word:nth-child(2) { animation-delay: 0.3s; }
.hero__title-line:nth-child(2) .word:nth-child(1) { animation-delay: 0.45s; }
.hero__title-line:nth-child(2) .word:nth-child(2) { animation-delay: 0.6s; }

.hero__bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
  animation: fadeUp 1.4s ease 1.1s both;
}

.hero__sub {
  max-width: 28rem;
  color: var(--color-cream-dim);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.6;
}
.hero__sub em {
  color: var(--color-tan);
  font-style: normal;
  font-weight: 500;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: var(--gutter);
  z-index: 2;
  color: var(--color-cream-dim);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: fadeUp 1.4s ease 1.4s both;
}
.hero__scroll-hint::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--color-cream-dim);
  animation: scrollLine 2s ease infinite;
}


/* ═══ 09. MARQUEE ══════════════════════════════════════════════════════════ */
.marquee {
  background: var(--color-tan);
  color: var(--color-bg);
  padding: 2rem 0;
  overflow: hidden;
  border-top: 1px solid var(--color-bg);
  border-bottom: 1px solid var(--color-bg);
  position: relative;
  z-index: 2;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  animation: scroll 35s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.marquee__track em {
  font-style: italic;
  font-weight: 300;
  color: var(--color-bg-deep);
  opacity: 0.7;
}
.marquee__track .saw {
  display: inline-block;
  width: 38px;
  height: 38px;
  color: var(--color-bg);
  flex-shrink: 0;
  animation: spin 8s linear infinite;
}


/* ═══ 10. SECTION HEAD ═════════════════════════════════════════════════════ */
section {
  padding: var(--space-2xl) var(--gutter);
  position: relative;
  z-index: 2;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  align-items: end;
}

.section-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-tan);
  margin-bottom: 1.5rem;
}
.section-head__eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--color-tan);
}

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.section-head__title em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(180deg, var(--color-tan-light), var(--color-copper));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head__desc {
  color: var(--color-cream-dim);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  max-width: 32rem;
  line-height: 1.7;
}


/* ═══ 11. SERVICES ═════════════════════════════════════════════════════════ */
.services { background: var(--color-bg); }

.services__backdrop {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 25vw, 28rem);
  font-weight: 300;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 216, 184, 0.04);
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.service {
  background: linear-gradient(180deg, var(--color-bg-2), var(--color-bg));
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.5s;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  will-change: transform;
}
.service::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, transparent 30%, var(--color-tan-dark) 70%, var(--color-tan) 100%);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
}
.service:hover::before { opacity: 0.55; }
.service:hover { border-color: transparent; }

.service__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 100%;
  background: radial-gradient(circle, rgba(201, 165, 126, 0.18), transparent 70%);
  top: -50px;
  right: -50px;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.service:hover .service__glow { opacity: 1; }

.service__num {
  color: var(--color-tan);
  font-size: 0.7rem;
}

.service__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-bg-3), var(--color-bg-2));
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-tan);
  transition: all 0.5s;
}
.service:hover .service__icon {
  background: linear-gradient(135deg, var(--color-tan-dark), var(--color-tan));
  color: var(--color-bg);
  transform: rotate(-8deg) scale(1.05);
}

.service__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.05;
}
.service__title em {
  font-style: italic;
  color: var(--color-tan);
  font-weight: 300;
}

.service__desc {
  color: var(--color-cream-dim);
  line-height: 1.65;
  margin-bottom: 2rem;
  font-size: 0.97rem;
}

.service__link {
  color: var(--color-cream);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s, color 0.3s;
}
.service:hover .service__link {
  color: var(--color-tan);
  gap: 0.85rem;
}
.service__link svg { width: 14px; height: 14px; }


/* ═══ 12. MATERIALS ════════════════════════════════════════════════════════ */
.materials {
  background: var(--color-cream);
  color: var(--color-bg);
  padding: var(--space-2xl) var(--gutter);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: -1px;
  position: relative;
}
.materials .section-head__title { color: var(--color-bg); }
.materials .word--outline { -webkit-text-stroke-color: var(--color-bg); }
.materials .section-head__eyebrow { color: var(--color-copper); }
.materials .section-head__eyebrow::before { background: var(--color-copper); }
.materials .section-head__desc { color: #5C503F; }

.materials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.material {
  background: var(--color-bg);
  color: var(--color-cream);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}
.material:hover { transform: translateY(-12px); }

.material__swatch {
  height: 60%;
  position: relative;
  overflow: hidden;
}
.material--1 .material__swatch { background: linear-gradient(135deg, #C4986A, #8B5A2B, #6B4220); }
.material--2 .material__swatch { background: linear-gradient(135deg, #4A2E1F, #2B1810, #1A0F0A); }
.material--3 .material__swatch { background: linear-gradient(135deg, #E8C9A0, #C49A6C, #8B6A3F); }
.material--4 .material__swatch { background: linear-gradient(135deg, #B85C3D, #8B3D24, #5C2515); }

.material__swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cfilter id='wood'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02 0.6' numOctaves='3' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.28 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23wood)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.85;
}

.material__body {
  padding: 1.25rem 1.5rem;
  height: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.material__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.material__name em {
  font-style: italic;
  color: var(--color-tan);
}
.material__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-cream-dim);
  font-size: 0.75rem;
}
.material__meta .mono { color: var(--color-tan); }


/* ═══ 13. PROCESS ══════════════════════════════════════════════════════════ */
.process {
  background: var(--color-bg);
  padding: var(--space-2xl) var(--gutter);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: -1px;
  position: relative;
}

.steps {
  position: relative;
  padding-left: 4rem;
}
.steps::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--color-line) 5%, var(--color-line) 95%, transparent);
}

.step {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-line);
  position: relative;
  transition: padding 0.5s;
}
.step:hover { padding-left: 1rem; }
.step:last-child { border-bottom: none; }

.step::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 3.4rem;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  border: 1px solid var(--color-tan);
  transition: all 0.4s;
}
.step:hover::before {
  background: var(--color-tan);
  box-shadow: 0 0 16px var(--color-tan);
}

.step__num {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  font-style: italic;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-tan-dark);
  transition: color 0.5s;
}
.step:hover .step__num {
  -webkit-text-fill-color: var(--color-tan);
  color: var(--color-tan);
}

.step__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.step__time {
  color: var(--color-tan);
  font-size: 0.7rem;
}
.step__desc {
  color: var(--color-cream-dim);
  line-height: 1.65;
  font-size: 0.97rem;
}


/* ═══ 14. STATS ════════════════════════════════════════════════════════════ */
.stats {
  padding: var(--space-xl) var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--color-line);
}
.stat {
  background: var(--color-bg);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.5s;
}
.stat:hover { background: var(--color-bg-2); }

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 6rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  color: var(--color-cream);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}
.stat__num em {
  font-style: italic;
  color: var(--color-tan);
  font-weight: 300;
  font-size: 0.6em;
}

.stat__label {
  font-size: 0.88rem;
  color: var(--color-cream-dim);
  line-height: 1.5;
  max-width: 14rem;
}


/* ═══ 15. PORTFOLIO ════════════════════════════════════════════════════════ */
.portfolio { background: var(--color-bg); }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 80px;
  gap: 1rem;
}

.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}
.gallery__item:hover { transform: scale(0.985); }
.gallery__item:focus-visible {
  outline: 2px solid var(--color-tan);
  outline-offset: 4px;
}
.gallery__item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 19, 12, 0.85));
  opacity: 0.6;
  transition: opacity 0.5s;
}
.gallery__item:hover::before { opacity: 1; }

.gallery__info {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  color: var(--color-cream);
  transform: translateY(8px);
  opacity: 0;
  transition: all 0.5s var(--ease-out);
}
.gallery__item:hover .gallery__info {
  transform: translateY(0);
  opacity: 1;
}
.gallery__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.gallery__title em { font-style: italic; color: var(--color-tan); }
.gallery__meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--color-cream-dim);
}

.gallery__hint {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-cream);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.gallery__item:hover .gallery__hint {
  opacity: 0.8;
  transform: translate(-50%, -50%) scale(1);
}
.gallery__hint span { display: inline-block; transition: transform 0.3s var(--ease-out); }
.gallery__item:hover .gallery__hint span { transform: translate(2px, -2px); }

.gallery__badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(26, 19, 12, 0.65);
  backdrop-filter: blur(8px);
  color: var(--color-tan);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-line);
  z-index: 2;
}

.gallery__item--1 { grid-column: span 7; grid-row: span 6;
  background-image: linear-gradient(180deg, transparent, rgba(26,19,12,0.3)), url("../image/proyecto_adhara_rionegro.webp"); }
.gallery__item--2 { grid-column: span 5; grid-row: span 4;
  background-image: linear-gradient(180deg, transparent, rgba(26,19,12,0.3)), url("https://images.unsplash.com/photo-1565538810643-b5bdb714032a?w=900&q=85&auto=format&fit=crop"); }
.gallery__item--3 { grid-column: span 5; grid-row: span 5;
  background-image: linear-gradient(180deg, transparent, rgba(26,19,12,0.3)), url("https://images.unsplash.com/photo-1616594039964-ae9021a400a0?w=900&q=85&auto=format&fit=crop"); }
.gallery__item--4 { grid-column: span 4; grid-row: span 4;
  background-image: linear-gradient(180deg, transparent, rgba(26,19,12,0.3)), url("https://images.unsplash.com/photo-1556909195-4e5d1c4d6c1f?w=900&q=85&auto=format&fit=crop");
  background-color: #6B4220; }
.gallery__item--5 { grid-column: span 3; grid-row: span 4;
  background-image: linear-gradient(180deg, transparent, rgba(26,19,12,0.3)), url("https://images.unsplash.com/photo-1631679706909-1844bbd07221?w=700&q=85&auto=format&fit=crop");
  background-color: #8B5A2B; }

/* Lightbox — popup con la imagen de la obra en tamaño grande */
html.no-scroll { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: rgba(17, 12, 7, 0.92);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease-out), visibility 0s linear 0s;
}

.lightbox__figure {
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.96);
  transition: transform 0.35s var(--ease-out);
}
.lightbox.is-open .lightbox__figure {
  transform: scale(1);
}

.lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.lightbox__caption {
  margin-top: 1.25rem;
  text-align: center;
}
.lightbox__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
}
.lightbox__title em { font-style: italic; color: var(--color-tan); }
.lightbox__meta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  color: var(--color-cream-dim);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.lightbox__close:hover {
  background: var(--color-tan);
  color: var(--color-bg);
  transform: rotate(90deg);
}
.lightbox__close svg { width: 18px; height: 18px; }


/* ═══ 16. TESTIMONIAL ══════════════════════════════════════════════════════ */
.testimonial {
  padding: var(--space-2xl) var(--gutter);
  background: var(--color-bg-2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
}
.testimonial__wrap {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.testimonial__mark {
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 12rem);
  line-height: 0.5;
  font-style: italic;
  font-weight: 300;
  color: var(--color-tan-dark);
  opacity: 0.3;
  margin-bottom: 1rem;
}
.testimonial__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  font-style: normal;
}
.testimonial__text em {
  font-style: italic;
  background: linear-gradient(180deg, var(--color-tan-light), var(--color-copper));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.testimonial__avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--color-tan-dark), var(--color-tan));
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(201, 165, 126, 0.25);
}
.testimonial__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
}
.testimonial__role {
  color: var(--color-cream-dim);
  font-size: 0.85rem;
}


/* ═══ 17. FAQ ══════════════════════════════════════════════════════════════ */
.faq__list {
  display: grid;
  gap: 1rem;
  max-width: 880px;
}

.faq__item {
  background: var(--color-bg-2);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.4s, background 0.4s;
}
.faq__item[open] {
  border-color: var(--color-tan);
  background: var(--color-bg-3);
}

.faq__question {
  padding: 1.5rem 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  color: var(--color-cream);
}
.faq__question::-webkit-details-marker { display: none; }

.faq__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: rgba(232, 216, 184, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-tan);
  transition: transform 0.4s var(--ease-out), background 0.3s;
}
.faq__icon svg { width: 16px; height: 16px; }
.faq__item[open] .faq__icon {
  transform: rotate(-180deg);
  background: var(--color-tan);
  color: var(--color-bg);
}

.faq__answer {
  padding: 0 1.75rem 1.5rem;
  color: var(--color-cream-dim);
  line-height: 1.7;
  font-size: 0.97rem;
  max-width: 56ch;
}


/* ═══ 18. CTA ══════════════════════════════════════════════════════════════ */
.cta {
  padding: var(--space-2xl) var(--gutter);
  background: var(--color-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(201, 165, 126, 0.08), transparent 70%);
  pointer-events: none;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}
.cta__title em {
  font-style: italic;
  background: linear-gradient(180deg, var(--color-tan-light), var(--color-copper));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 300;
}

.cta__sub {
  color: var(--color-cream-dim);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  max-width: 36rem;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 1;
}

.cta__buttons {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
}


/* ═══ 19. WHATSAPP FLOATING BUTTON ═════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: var(--z-wa-float);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.wa-float__btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-pill);
  background: var(--color-wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.4s var(--ease-out);
}
.wa-float:hover .wa-float__btn {
  background: var(--color-wa-dark);
  transform: scale(1.08) rotate(-8deg);
}
.wa-float__btn svg { width: 30px; height: 30px; }

/* Pulse rings */
.wa-float__btn::before,
.wa-float__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-wa);
  animation: waPulse 2.4s ease-out infinite;
}
.wa-float__btn::after { animation-delay: 1.2s; }


/* ═══ 20. FOOTER ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--color-bg);
  color: var(--color-cream);
  padding: 2rem var(--gutter) 1.5rem;
  border-top: 1px solid var(--color-line);
  position: relative;
  z-index: 2;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-tan);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer__brand-name .logo-svg { width: 40px; height: 40px; }

.footer__tagline {
  color: var(--color-cream-dim);
  margin-bottom: 1.5rem;
}

.footer__desc {
  color: var(--color-cream-dim);
  max-width: 24rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer__address {
  color: var(--color-cream-dim);
  font-style: normal;
}

.footer__col-title {
  color: var(--color-tan);
  margin-bottom: 1.25rem;
}
.footer__col ul {
  display: grid;
  gap: 0.6rem;
}
.footer__col a {
  color: var(--color-cream);
  font-size: 0.92rem;
  transition: color 0.3s, padding 0.3s;
  display: inline-block;
}
.footer__col a:hover {
  color: var(--color-tan);
  padding-left: 0.5rem;
}

.footer__mega {
  font-family: var(--font-display);
  font-size: clamp(4rem, 22vw, 20rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  margin: 1rem 0;
  background: linear-gradient(180deg, var(--color-tan) 0%, rgba(201, 165, 126, 0.12) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}
.footer__mega em { font-style: italic; font-weight: 300; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.8rem;
}


/* ═══ 21. ANIMATIONS ═══════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroUp {
  to { transform: translateY(0); }
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes scrollLine {
  0%, 100% { transform: scaleX(1); transform-origin: left; }
  50% { transform: scaleX(0.3); transform-origin: right; }
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══ 22. RESPONSIVE ═══════════════════════════════════════════════════════ */

/* Large desktop down (≤1280px) */
@media (max-width: 1280px) {
  .gallery__item--1 { grid-column: span 7; }
  .footer__grid { gap: 3rem; }
}

/* Tablet landscape (≤1024px) */
@media (max-width: 1024px) {
  .nav__links { gap: 1.75rem; }
  .services__grid { gap: 1rem; }
  .materials__grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .step { gap: 2rem; }
}

/* Tablet portrait (≤768px) */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-trail { display: none; }

  .nav { padding: 1rem var(--gutter); }
  .nav__links { display: none; }
  .nav__brand-tagline { display: none; }

  .hero { padding: 5.5rem var(--gutter) 6rem; }
  .hero__bg { width: 100%; opacity: 0.4; }
  .hero__top { flex-direction: column; gap: 1rem; }
  .hero__bottom {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero__scroll-hint { display: none; }

  .section-head {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .services__grid { grid-template-columns: 1fr; }
  .service { padding: 1.75rem; min-height: auto; }

  .steps { padding-left: 2rem; }
  .steps::before { left: 0.5rem; }
  .step {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }
  .step::before { left: -1.5rem; top: 2rem; }
  .step__num { font-size: 3rem; }

  .stats { grid-template-columns: 1fr 1fr; padding: var(--space-lg) var(--gutter); }
  .stat { padding: 2rem 1.25rem; }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 0.75rem;
  }
  .gallery__item { grid-column: span 2 !important; grid-row: span 2 !important; }
  .gallery__info {
    opacity: 1;
    transform: translateY(0);
  }

  .faq__question { padding: 1.25rem; gap: 1rem; }
  .faq__answer { padding: 0 1.25rem 1.25rem; }

  .cta { padding: 5rem var(--gutter); }
  .cta__buttons {
    flex-direction: column;
    width: 100%;
  }
  .cta__buttons .btn { width: 100%; justify-content: center; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .wa-float {
    bottom: 1.25rem;
    right: 1.25rem;
  }
  .wa-float__btn { width: 56px; height: 56px; }
  .wa-float__btn svg { width: 28px; height: 28px; }

  .lightbox { padding: var(--gutter); }
  .lightbox__img { max-height: 65vh; }
  .lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
  :root {
    --gutter: 1.25rem;
  }
  .nav__brand-name { font-size: 1.2rem; }
  .logo-svg { width: 28px; height: 28px; }
  .hero { padding: 5rem var(--gutter) 6rem; }
  .hero__sub { font-size: 0.95rem; }
  .marquee { padding: 1.25rem 0; }
  .services__backdrop { display: none; }
  .stats { grid-template-columns: 1fr; }
  .materials__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .testimonial__mark { font-size: 5rem; margin-bottom: 0; }
}


/* ═══ 23. ACCESSIBILITY: reduced motion, focus, print ══════════════════════ */

/* Honor user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee__track,
  .wa-float__btn::before,
  .wa-float__btn::after,
  .marquee__track .saw {
    animation: none !important;
  }
  .hero__title .word {
    transform: translateY(0);
    opacity: 1;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Touch device — disable custom cursor */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto !important; }
  .cursor, .cursor-trail { display: none !important; }
  .service, .material, .gallery__item, .faq__question { cursor: pointer; }
  /* Show gallery info on touch (no hover) */
  .gallery__info { opacity: 1; transform: translateY(0); }
}

/* Print styles */
@media print {
  body { background: #fff; color: #000; cursor: auto; }
  .nav, .wa-float, .scroll-progress, .hero__bg,
  .cursor, .cursor-trail, .marquee, .services__backdrop,
  .lightbox { display: none !important; }
  body::before, body::after { display: none; }
  section { padding: 1rem 0; page-break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  .hero__title { font-size: 2rem; color: #000; }
}
