/* ============================================================
   TAKKRAM · Mesas de diseño arquitectónico, hechas a medida
   Design system — styles.css
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Tokens ---------- */
:root {
  --cream:   #F3F1EC;   /* main light background */
  --paper:   #FBFAF7;   /* card / lighter surface */
  --sand:    #EAE7E1;   /* alternate light section */
  --ink:     #171613;   /* near-black */
  --ink-2:   #201F1C;   /* dark section bg */
  --ink-3:   #2C2A26;   /* dark card */
  --muted:   #77746C;   /* secondary text on light */
  --muted-d: #A9A49A;   /* secondary text on dark */
  --line:    #DAD6CE;   /* hairline on light */
  --line-d:  rgba(255,255,255,.14); /* hairline on dark */
  --white:   #ffffff;

  --container: 1280px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4rem, 9vw, 8rem);

  --ff-display: "Inter Tight", "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-body:    "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Base ---------- */
body {
  font-family: var(--ff-body);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: .002em;
}

h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 500; line-height: 1.06; letter-spacing: -.018em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: .72rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .2em; color: var(--muted);
}
.display {
  font-size: clamp(2.3rem, 6vw, 4.1rem);
  line-height: 1.04;
}
.display--sm { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.h2 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); }
.lead { font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--muted); font-weight: 400; max-width: 46ch; }
.muted { color: var(--muted); }
.num { font-family: var(--ff-display); font-size: .82rem; color: var(--muted); letter-spacing: .04em; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white); --bd: var(--ink);
  display: inline-flex; align-items: center; gap: .9rem;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  padding: 1.05rem 1.7rem;
  font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em;
  cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arrow { transform: translateX(5px); }
.btn--light { --bg: var(--white); --fg: var(--ink); --bd: var(--white); }
.btn--ghost { --bg: transparent; --fg: var(--white); --bd: rgba(255,255,255,.5); }
.btn--ghost:hover { --bg: var(--white); --fg: var(--ink); }
.btn--outline { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--outline:hover { --bg: var(--ink); --fg: var(--white); }
.btn--block { width: 100%; justify-content: center; }

/* Text link with arrow */
.arrow-link {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; letter-spacing: .04em; color: var(--ink);
}
.arrow-link .arrow { transition: transform .35s var(--ease); }
.arrow-link:hover .arrow { transform: translateX(6px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: clamp(1rem, 2.4vw, 1.7rem) 0;
  transition: background .4s var(--ease), color .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
/* Si un plugin de "sticky menu" clona la cabecera: mantenerla por encima del contenido */
.site-header.sticky-element-cloned { z-index: 100 !important; }
.site-header.sticky-element-original.element-is-sticky { visibility: hidden; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
/* Portada: TODO a sangre (cabecera, secciones, galería, CTA) alineado con el hero */
body.home .container,
.site-header--full .container { max-width: none; }
.brand {
  font-family: var(--ff-display); font-weight: 600; font-size: 1.15rem;
  letter-spacing: .34em; text-indent: .34em; text-transform: uppercase;
}
.site-header .brand { display: inline-flex; align-items: center; gap: .85rem; text-indent: 0; }
.brand__mark { height: 1.35rem; width: auto; display: block; flex: none; }
.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.6vw, 2.6rem); }
.nav__link {
  font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em;
  position: relative; padding: .3rem 0; transition: opacity .3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: currentColor; transition: width .35s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }
.nav__cta {
  padding: .7rem 1.25rem; border: 1px solid currentColor;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 500;
  transition: background .3s var(--ease), color .3s var(--ease);
}

/* header colour themes over hero */
.site-header--light { color: var(--ink); }        /* dark text (light hero) */
.site-header--light .nav__cta { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.site-header--light .nav__cta:hover { background: transparent; color: var(--ink); }

.site-header--dark { color: var(--white); }        /* white text (dark hero) */
.site-header--dark .nav__cta { background: var(--ink); color: var(--white); border-color: var(--ink); }
.site-header--dark .nav__cta:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* solid state after scroll */
.site-header.is-scrolled {
  background: var(--cream); color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  padding-top: .85rem; padding-bottom: .85rem;
}
.site-header.is-scrolled .nav__cta { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.site-header.is-scrolled .nav__cta:hover { background: transparent; color: var(--ink); }

/* burger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { width: 24px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
/* Split hero (home): text left, image right */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 38vh; background: var(--cream); }
.hero-split__text {
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 6.5rem var(--pad) 1rem; gap: 1.2rem;
}
.hero-split__text .display { max-width: 12ch; }
.hero-split__media { position: relative; overflow: hidden; background: var(--sand); }
.hero-split__media img { width: 100%; height: 100%; object-fit: cover; }

/* Full-bleed image hero (inner pages) */
.hero-full {
  position: relative; min-height: 35vh; display: flex; align-items: center;
  color: var(--white); overflow: hidden;
}
.hero-full__bg { position: absolute; inset: 0; z-index: 0; }
.hero-full__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-full__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,14,12,.78) 0%, rgba(15,14,12,.45) 45%, rgba(15,14,12,.18) 100%);
}
.hero-full__inner { position: relative; z-index: 1; padding-top: 6rem; padding-bottom: 3rem; }
.hero-full .display { max-width: 15ch; }
.hero-full .lead { color: rgba(255,255,255,.82); margin-top: 1.4rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream); }
.section--sand  { background: var(--sand); }
.section--paper { background: var(--paper); }
.section--dark  { background: var(--ink-2); color: var(--cream); }
.section-head { max-width: 52ch; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head .h2 { margin-top: .7rem; }
.section-head .lead { margin-top: 1.1rem; }

/* Two-column intro (heading left, content right) */
.split { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split--center { align-items: center; }
.split__aside .h2 { max-width: 12ch; }
.split__aside .lead { margin-top: 1.2rem; }

/* ---------- Feature cards (5 personalización) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(.8rem, 1.5vw, 1.4rem); }
.feature {
  background: var(--paper); border: 1px solid var(--line);
  padding: clamp(1.4rem, 2vw, 1.9rem); display: flex; flex-direction: column; gap: 1rem;
  min-height: 260px;
}
.feature__num { color: var(--muted); font-family: var(--ff-display); font-size: .8rem; letter-spacing: .05em; }
.feature__title { font-size: 1.18rem; }
.feature__desc { font-size: .9rem; color: var(--muted); }
.feature__art { margin-top: auto; }
.feature__art svg { width: 100%; height: 64px; }
.swatches { display: flex; gap: 6px; margin-top: auto; }
.swatches span { flex: 1; aspect-ratio: 1; border-radius: 2px; background-size: cover; background-position: center; }

/* ---------- Gallery grids ---------- */
.gallery { display: grid; gap: clamp(.5rem, 1vw, .9rem); }
.gallery--5 { grid-template-columns: repeat(5, 1fr); }
.gallery--4 { grid-template-columns: repeat(4, 1fr); }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery figure { position: relative; overflow: hidden; background: var(--sand); aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }

/* ---------- Timeline (process steps) ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1rem,2vw,2rem); position: relative; }
.timeline__step { display: flex; flex-direction: column; gap: .7rem; padding-bottom: 1.6rem; position: relative; }
.timeline__step .num { color: var(--muted); }
.timeline--dark .timeline__step .num { color: var(--muted-d); }
.timeline__step h3 { font-size: 1.15rem; }
.timeline__step p { font-size: .88rem; color: var(--muted); }
.timeline--dark .timeline__step p { color: var(--muted-d); }
.timeline__line { position: relative; height: 1px; background: var(--line); margin-top: 0; }
.timeline--dark .timeline__line { background: var(--line-d); }
.timeline__dots { display: grid; grid-template-columns: repeat(5,1fr); gap: clamp(1rem,2vw,2rem); }
.timeline__dots span { width: 7px; height: 7px; background: var(--ink); justify-self: start; transform: translate(-3px,-4px); }
.timeline--dark .timeline__dots span { background: var(--cream); }

/* vertical connectors between step text and line (subtle) */
.timeline__step::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 1px; height: 1.6rem; background: var(--line);
}
.timeline--dark .timeline__step::before { background: var(--line-d); }

/* ---------- Material cards ---------- */
.material-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(.9rem,1.6vw,1.5rem); }
.material { display: flex; flex-direction: column; }
.material__img { aspect-ratio: 3/4; overflow: hidden; background: var(--sand); }
.material__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.material:hover .material__img img { transform: scale(1.05); }
.material__body { padding: 1.3rem 0 0; display: flex; flex-direction: column; gap: .7rem; border-top: 0; }
.material__body h3 { font-size: 1.22rem; }
.material__body p { font-size: .9rem; color: var(--muted); }
.material__body .arrow-link { margin-top: .4rem; }

/* ---------- Finish swatches strip ---------- */
.finishes { display: grid; grid-template-columns: repeat(6,1fr); gap: clamp(.4rem,1vw,.8rem); }
.finishes .finish { aspect-ratio: 1/2.6; background-size: cover; background-position: center; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; color: var(--white); }
.cta-band__bg { position: absolute; inset: 0; z-index: 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,11,10,.82), rgba(12,11,10,.42)); }
.cta-band__inner { position: relative; z-index: 1; padding-block: clamp(4rem, 9vw, 7rem); display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
.cta-band .display { max-width: 16ch; }
.cta-band--center .cta-band__inner { align-items: center; text-align: center; }
.cta-band--center .display { max-width: 22ch; }
/* Split: la foto ocupa la columna derecha entera (sin recorte agresivo) y se funde con el fondo bajo el texto */
.cta-band--split { background: var(--ink); }
.cta-band--split .cta-band__bg img { position: absolute; top: 0; right: 0; width: 48%; object-position: 50% 45%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%); mask-image: linear-gradient(90deg, transparent, #000 18%); }
.cta-band--split .cta-band__bg::after { background: linear-gradient(90deg, rgba(12,11,10,.85) 0%, rgba(12,11,10,.15) 60%); }
@media (max-width: 760px) {
  .cta-band--split .cta-band__bg img { width: 100%; -webkit-mask-image: none; mask-image: none; }
  .cta-band--split .cta-band__bg::after { background: linear-gradient(90deg, rgba(12,11,10,.82), rgba(12,11,10,.42)); }
}

/* ---------- Detail image + text (estudio) ---------- */
.media-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.media-text__media { aspect-ratio: 4/3; overflow: hidden; background: var(--sand); }
.media-text__media img { width: 100%; height: 100%; object-fit: cover; }
.media-text__body .h2 { max-width: 14ch; }
.media-text__body .lead { margin: 1.2rem 0 1.6rem; }

/* ---------- Value columns (estudio 3) ---------- */
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.4rem,3vw,3rem); }
.value { display: flex; flex-direction: column; gap: .8rem; border-left: 1px solid var(--line); padding-left: 1.4rem; }
.value .num { color: var(--muted); }
.value h3 { font-size: 1.3rem; }
.value p { font-size: .92rem; color: var(--muted); }
.value__art { margin-top: 1rem; }
.value__art svg { width: 100%; height: 120px; }
.value__art img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* stacked media (estudio bottom) */
.stack-media { display: grid; gap: clamp(.6rem,1.4vw,1rem); }
.stack-media img { width: 100%; object-fit: cover; }
.stack-media .tall { aspect-ratio: 16/7; }
.stack-media .wide { aspect-ratio: 16/6; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
.form { display: flex; flex-direction: column; gap: 1.4rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); font-weight: 500; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); background: var(--paper); padding: .95rem 1rem;
  font-size: .95rem; color: var(--ink); transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #b3aea4; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23171613' stroke-width='1.5'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.form__note { font-size: .78rem; color: var(--muted); }
.form__ok { display: none; padding: 1rem 1.2rem; background: var(--ink); color: var(--cream); font-size: .9rem; }
.form.is-sent .form__ok { display: block; }
.contact-aside__img { aspect-ratio: 3/4; overflow: hidden; background: var(--sand); }
.contact-aside__img img { width: 100%; height: 100%; object-fit: cover; }

/* Local SEO block */
.local { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.4rem,3vw,2.6rem); }
.local__item h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.local__item p, .local__item a { font-size: .92rem; color: var(--muted); }
.local__item address { font-style: normal; }
.areas { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.areas span { font-size: .78rem; border: 1px solid var(--line); padding: .3rem .7rem; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.4rem 0; font-family: var(--ff-display); font-size: 1.12rem; font-weight: 500; color: var(--ink);
}
.faq__q .sign { flex: none; width: 18px; height: 18px; position: relative; }
.faq__q .sign::before, .faq__q .sign::after { content: ""; position: absolute; background: var(--ink); transition: transform .3s var(--ease); }
.faq__q .sign::before { top: 8px; left: 0; width: 18px; height: 1.5px; }
.faq__q .sign::after { left: 8px; top: 0; width: 1.5px; height: 18px; }
.faq__q[aria-expanded="true"] .sign::after { transform: scaleY(0); }
.faq__a { overflow: hidden; max-height: 0; transition: max-height .4s var(--ease); }
.faq__a p { padding: 0 0 1.4rem; color: var(--muted); font-size: .95rem; max-width: 68ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--cream); padding-top: clamp(3.5rem,7vw,6rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(1.6rem,4vw,3rem); padding-bottom: 3rem; }
.footer-brand .brand { color: var(--white); display: inline-block; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted-d); max-width: 30ch; font-size: .92rem; }
.footer-col h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted-d); font-weight: 500; margin-bottom: 1.1rem; font-family: var(--ff-body); }
.footer-col ul { display: flex; flex-direction: column; gap: .7rem; }
.footer-col a, .footer-col address { color: rgba(243,241,236,.82); font-size: .92rem; font-style: normal; transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-col address { display: flex; flex-direction: column; gap: .7rem; }
.footer-col .footer-social { flex-direction: row; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.4rem; }
.footer-bottom { border-top: 1px solid var(--line-d); padding-block: 1.6rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; align-items: center; }
.footer-bottom p, .footer-bottom a { font-size: .78rem; color: var(--muted-d); }
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
/* Content is visible by default; only hidden (to animate) when JS is active. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media print {
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3,1fr); }
  .feature:nth-child(4), .feature:nth-child(5) { min-height: 200px; }
  .timeline { grid-template-columns: repeat(3,1fr); }
  .timeline__line, .timeline__dots { display: none; }
  .material-grid { grid-template-columns: repeat(2,1fr); }
  .gallery--5 { grid-template-columns: repeat(3,1fr); }
  .finishes { grid-template-columns: repeat(6,1fr); }
}

@media (max-width: 760px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(80vw, 340px); background: var(--cream); color: var(--ink);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem;
    padding: 2rem var(--pad); transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,.18); }
  .nav.is-open { transform: none; }
  .nav__link { font-size: 1rem; }
  .nav__cta { color: var(--cream) !important; background: var(--ink) !important; border-color: var(--ink) !important; }
  .nav-toggle { display: flex; z-index: 120; }

  .hero-split { grid-template-columns: 1fr; min-height: auto; }
  .hero-split__media { min-height: 60vh; order: -1; }
  .hero-split__text { padding-top: 7rem; }
  .hero-full { min-height: 35vh; }

  .split, .media-text, .contact-grid { grid-template-columns: 1fr; }
  .media-text__media { order: -1; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .local { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .feature-grid { grid-template-columns: 1fr; }
  .gallery--5, .gallery--4 { grid-template-columns: repeat(2,1fr); }
  .material-grid { grid-template-columns: 1fr; }
  .finishes { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WordPress adjustments
   ============================================================ */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

main#content { display: block; }
/* WP alignment / editor classes fallback */
.aligncenter { margin-inline: auto; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* Rich text (the_content) */
.rich-text { font-size: 1.02rem; color: var(--ink); }
.rich-text p { margin-bottom: 1.1rem; color: var(--muted); }
.rich-text h2, .rich-text h3 { margin: 2rem 0 .8rem; }
.rich-text h2 { font-size: 1.6rem; } .rich-text h3 { font-size: 1.25rem; }
.rich-text ul, .rich-text ol { margin: 0 0 1.1rem 1.2rem; color: var(--muted); }
.rich-text li { margin-bottom: .4rem; }
.rich-text img { margin: 1.4rem 0; }
.rich-text a { text-decoration: underline; text-underline-offset: 3px; }
.pagination, .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: .5rem .9rem; border: 1px solid var(--line); font-size: .85rem; }
.pagination .current { background: var(--ink); color: var(--cream); border-color: var(--ink); }
