/*
Theme Name: Bazarstream CMS
Theme URI: https://bazarstream.com/
Author: Bazar del Cineista
Description: Tema corporativo administrable para la web pública de Bazar del Cineista.
Version: 1.3.0
Text Domain: bazarstream
*/

:root {
  --ink: #111a22;
  --ink-soft: #1c2b35;
  --paper: #ffffff;
  --mist: #f2f5f5;
  --line: #d9e0e1;
  --muted: #56636b;
  --teal: #007d82;
  --teal-dark: #005b60;
  --signal: #f2c94c;
  --max: 1240px;
  --shadow: 0 16px 44px rgba(8, 24, 31, 0.13);
  --shadow-card: 0 12px 32px rgba(8, 24, 31, 0.08);
  --header-height: 76px;
  --radius-small: 6px;
  --radius-card: 8px;
  --radius-media: 6px;
  --grid-gap: 24px;
  --card-padding: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 18px; font-weight: 400; line-height: 1.62; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h1, h2, h3, h4 { margin: 0; font-family: inherit; line-height: 1.08; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: 66px; font-weight: 800; }
h2 { font-size: 43px; font-weight: 800; }
h3 { font-size: 24px; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.narrow { max-width: 900px; }
.section { position: relative; padding: 96px 0; }
.section-light { background: var(--paper); }
.section-soft { background: var(--mist); }
.section-ink { overflow: hidden; color: var(--paper); background: var(--ink); }
.kicker, .eyebrow { display: inline-block; color: var(--teal-dark); font-size: 14px; font-weight: 800; line-height: 1.35; letter-spacing: 0; text-transform: uppercase; }
.section-ink .kicker, .hero .eyebrow { color: var(--signal); }
.lead { color: #46545c; font-size: 21px; line-height: 1.55; }
.section-ink .lead { color: #c7d2d7; }

.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; }
.screen-reader-text:focus { position: fixed; z-index: 100000; top: 12px; left: 12px; width: auto; height: auto; padding: 12px 16px; clip: auto; color: var(--ink); background: var(--paper); font-weight: 700; }

.site-header { position: fixed; z-index: 1000; top: 0; right: 0; left: 0; min-height: var(--header-height); color: var(--paper); background: rgba(11, 21, 28, 0.78); border-bottom: 1px solid rgba(255, 255, 255, 0.13); transition: background-color .2s ease, box-shadow .2s ease; }
.site-header.is-scrolled { background: rgba(11, 21, 28, 0.97); box-shadow: 0 8px 26px rgba(0, 0, 0, .16); }
.admin-bar .site-header { top: 32px; }
.nav-wrap { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; min-width: 0; align-items: center; color: var(--paper); text-decoration: none; }
.brand strong { font-size: 19px; }
.brand > span { display: none; }
.brand-logo { width: auto; max-width: 210px; max-height: 46px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-menu-list { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { position: relative; font-size: 16px; font-weight: 600; text-decoration: none; transition: color .18s ease; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.nav-links a:not(.btn):hover::after, .nav-links .current-menu-item > a::after, .nav-links .current_page_item > a::after { transform: scaleX(1); transform-origin: left; }
.nav-links .current-menu-item > a, .nav-links .current_page_item > a { color: var(--signal); }
.nav-links a:not(.btn):hover { color: var(--signal); }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 12px; border: 1px solid rgba(255,255,255,.32); border-radius: 6px; color: var(--paper); background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 100%; height: 2px; margin: 4px 0; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 20px; border: 1px solid transparent; border-radius: var(--radius-small); font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { color: #142027; background: var(--signal); }
.btn-primary:hover { background: #ffda62; }
.btn-ghost { color: var(--paper); background: rgba(10,20,27,.36); border-color: rgba(255,255,255,.58); }
.btn-outline { color: var(--paper); background: transparent; border-color: rgba(255,255,255,.48); }
.btn:focus-visible, .nav-toggle:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-dark); font-weight: 800; text-decoration: none; }
.text-link::after { content: "→"; transition: transform .18s ease; }
.text-link:hover::after { transform: translateX(4px); }
.text-link.on-dark { color: var(--signal); }

.hero { position: relative; min-height: 700px; display: flex; align-items: flex-end; overflow: hidden; color: var(--paper); background: var(--ink); }
.hero-inner { min-height: 590px; }
.hero-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: rgba(7, 16, 22, .66); }
.hero-home .hero-shade { background: rgba(6, 15, 21, .69); }
.hero-content { position: relative; z-index: 1; padding-top: calc(var(--header-height) + 64px); padding-bottom: 68px; }
.hero-content > * { max-width: 850px; }
.hero h1 { margin: 16px 0 22px; max-width: 900px; text-wrap: balance; }
.hero-lead { max-width: 760px; color: #f0f4f5; font-size: 22px; line-height: 1.5; }
.hero .actions, .hero .btn { margin-top: 30px; }
.hero .actions .btn { margin-top: 0; }
.hero-facts { display: grid; max-width: 1000px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 46px; border-top: 1px solid rgba(255,255,255,.34); }
.hero-facts span { padding: 18px 24px 0 0; color: #e2e9eb; font-size: 15px; }
.hero-facts strong { display: block; color: var(--paper); font-size: 16px; }

.intro-band { padding: 72px 0; border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 180px minmax(0, 1.2fr) minmax(300px, .8fr); gap: 48px; align-items: start; }
.intro-grid h2 { font-size: 38px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 56px; margin-bottom: 42px; }
.section-head > div { max-width: 720px; }
.section-head h2 { margin-top: 10px; }
.section-head > .lead { max-width: 500px; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 260px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.service-card h3 { margin: 36px 0 12px; }
.service-card p { color: var(--muted); }
.service-index { color: var(--teal-dark); font-size: 14px; font-weight: 800; }

.media-split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 72px; align-items: center; }
.media-split.reverse .media-frame { order: 2; }
.media-frame { overflow: hidden; min-height: 440px; background: #26353d; box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.portrait-frame { min-height: 560px; }
.portrait-frame img { min-height: 560px; }
.split-copy h2 { margin: 12px 0 22px; }
.split-copy .lead + * { margin-top: 28px; }
.check-list { display: grid; gap: 13px; margin: 28px 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: ""; position: absolute; top: .7em; left: 0; width: 12px; height: 3px; background: var(--signal); }

.project-feature-grid { display: grid; grid-template-columns: 1.35fr .65fr; grid-template-rows: repeat(2, 310px); gap: 16px; }
.project-feature { position: relative; overflow: hidden; background: var(--ink); }
.project-feature-wide { grid-row: 1 / span 2; }
.project-feature a { display: block; width: 100%; height: 100%; color: var(--paper); text-decoration: none; }
.project-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project-feature::after { content: ""; position: absolute; inset: 48% 0 0; pointer-events: none; background: rgba(5, 13, 18, .72); }
.project-feature span { position: absolute; z-index: 1; right: 24px; bottom: 24px; left: 24px; }
.project-feature small { display: block; margin-bottom: 6px; color: var(--signal); font-size: 14px; font-weight: 800; text-transform: uppercase; }
.project-feature strong { display: block; max-width: 520px; font-size: 23px; line-height: 1.2; }
.project-feature:hover img { transform: scale(1.025); }

.process-list { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); list-style: none; border-top: 1px solid #cbd4d6; }
.process-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 28px 24px 0 0; }
.process-list li + li { padding-left: 24px; border-left: 1px solid #cbd4d6; }
.process-list > li > span { color: var(--teal-dark); font-size: 14px; font-weight: 800; }
.process-list h3 { margin-bottom: 8px; }
.process-list p { color: var(--muted); font-size: 16px; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 24px 52px 24px 0; font-size: 20px; font-weight: 800; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 20px; right: 4px; color: var(--teal); font-size: 30px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 760px; padding: 0 44px 24px 0; color: var(--muted); }

.cta-section { color: var(--paper); background: var(--teal-dark); }
.cta-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: center; }
.cta-panel .kicker { color: var(--signal); }
.cta-panel h2 { margin-top: 10px; }
.cta-panel p { margin-bottom: 22px; color: #d8e8e8; }

.service-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); align-items: stretch; }
.catalog-card { min-width: 0; height: 100%; overflow: hidden; display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); box-shadow: 0 1px 0 rgba(8, 24, 31, .03); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.catalog-card:hover { transform: translateY(-3px); border-color: #bac9cc; box-shadow: var(--shadow-card); }
.catalog-card__media { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 10; background: #26353d; }
.catalog-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .55s cubic-bezier(.22, 1, .36, 1); }
.catalog-card:hover .catalog-card__media img { transform: scale(1.025); }
.catalog-card__body { flex: 1; display: flex; flex-direction: column; padding: var(--card-padding); }
.catalog-card h2 { min-height: 66px; margin: 18px 0 14px; font-size: 26px; line-height: 1.25; }
.catalog-card p { min-height: 88px; color: #46545c; font-size: 16px; line-height: 1.55; }
.catalog-card ul { display: grid; min-height: 118px; align-content: start; gap: 7px; margin-top: auto; padding: 20px 0 0 18px; color: #2c3c44; font-size: 16px; line-height: 1.45; }
.catalog-card[data-service="streaming"] img, .catalog-card[data-service="support"] img { object-position: center top; }

.project-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); align-items: stretch; }
.gallery-item, .gallery-item-large, .gallery-item-wide { min-width: 0; height: 100%; overflow: hidden; display: flex; flex-direction: column; grid-row: auto; grid-column: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.gallery-item:hover { transform: translateY(-3px); border-color: #bac9cc; box-shadow: var(--shadow-card); }
.gallery-item img, .gallery-item-large img, .gallery-item-wide img { width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .55s cubic-bezier(.22, 1, .36, 1); }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-copy { flex: 1; padding: 24px; }
.gallery-copy > span { color: var(--teal-dark); font-size: 14px; font-weight: 800; text-transform: uppercase; }
.gallery-copy h2 { min-height: 70px; margin: 10px 0 12px; font-size: 26px; line-height: 1.28; }
.gallery-copy p { color: var(--muted); }

.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.24); }
.value-grid article { padding: 28px 26px 0 0; }
.value-grid article + article { padding-left: 26px; border-left: 1px solid rgba(255,255,255,.24); }
.value-grid h3 { margin-bottom: 10px; }
.value-grid p { color: #bfcbd0; }
.value-grid-light { color: var(--ink); border-color: var(--line); }
.value-grid-light article + article { border-color: var(--line); }
.value-grid-light p { color: var(--muted); }
.value-grid-light .service-index { display: block; margin-bottom: 36px; }

.timeline { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid rgba(255,255,255,.22); }
.timeline > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.timeline strong { color: var(--signal); }
.timeline p { color: #c7d2d7; }

.contact-main { padding-top: 80px; }
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 72px; }
.contact-primary h2, .contact-details h2 { margin: 10px 0 18px; }
.contact-actions { display: grid; gap: 12px; margin-top: 34px; }
.contact-action { display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; align-items: center; min-width: 0; padding: 20px 22px; color: var(--ink); border: 1px solid var(--line); text-decoration: none; }
.contact-action small { grid-column: 1; color: var(--muted); }
.contact-action strong { grid-column: 1; min-width: 0; overflow-wrap: anywhere; font-size: 21px; }
.contact-action span { grid-column: 2; grid-row: 1 / span 2; color: var(--teal); font-size: 26px; }
.contact-action:hover { border-color: var(--teal); }
.contact-details { padding: 34px; color: var(--paper); background: var(--ink); }
.contact-details .kicker, .contact-details .text-link { color: var(--signal); }
.contact-details address { margin: 0 0 18px; font-size: 20px; font-style: normal; }
.contact-details p { margin-bottom: 24px; color: #c7d2d7; }
.request-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line); }
.request-grid article { padding: 28px 24px 28px 0; }
.request-grid article + article { padding-left: 24px; border-left: 1px solid var(--line); }
.request-grid span { color: var(--teal-dark); font-size: 14px; font-weight: 800; }
.request-grid h3 { margin: 30px 0 10px; }
.request-grid p { color: var(--muted); }
.center-action { margin-top: 44px; text-align: center; }
.center-action p { margin-top: 12px; color: var(--muted); font-size: 15px; }

.site-footer { padding: 62px 0 24px; color: #d1dadd; background: #091116; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .7fr; gap: 70px; }
.footer-title { margin-bottom: 16px; color: var(--paper); font-size: 17px; }
.footer-lead { max-width: 470px; color: #aebbc0; }
.footer-cta { display: inline-flex; margin-top: 22px; color: var(--signal); font-weight: 800; text-decoration: none; }
.footer-contact-list { display: grid; gap: 8px; }
.footer-contact a, .footer-links a { color: inherit; text-decoration: none; }
.footer-links { display: grid; gap: 8px; list-style: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 46px; padding-top: 20px; color: #aab7bc; border-top: 1px solid #27343b; font-size: 15px; }

.bazar-empty-page { min-height: 55vh; display: grid; place-items: center; text-align: center; }
.bazar-empty-page .container { max-width: 760px; }
.js-enabled [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .65s cubic-bezier(.22, 1, .36, 1), transform .65s cubic-bezier(.22, 1, .36, 1); transition-delay: var(--reveal-delay, 0ms); }
.js-enabled [data-reveal].is-visible { opacity: 1; transform: none; }
.js-enabled .hero-content[data-reveal] { opacity: 1; transform: none; }
.js-enabled .hero-content[data-reveal] > .eyebrow,
.js-enabled .hero-content[data-reveal] > h1,
.js-enabled .hero-content[data-reveal] > .hero-lead,
.js-enabled .hero-content[data-reveal] > .btn,
.js-enabled .hero-content[data-reveal] > .actions,
.js-enabled .hero-content[data-reveal] > .hero-facts { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1); }
.js-enabled .hero-content[data-reveal].is-visible > * { opacity: 1; transform: none; }
.js-enabled .hero-content > h1 { transition-delay: 80ms; }
.js-enabled .hero-content > .hero-lead { transition-delay: 150ms; }
.js-enabled .hero-content > .btn, .js-enabled .hero-content > .actions { transition-delay: 220ms; }
.js-enabled .hero-content > .hero-facts { transition-delay: 280ms; }

@media (max-width: 1100px) {
  h1 { font-size: 54px; }
  h2 { font-size: 36px; }
  .nav-links { gap: 16px; }
  .nav-menu-list { gap: 16px; }
  .intro-grid { grid-template-columns: 130px 1fr; }
  .intro-grid .lead { grid-column: 2; }
  .service-catalog { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .project-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .value-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; }
  .value-grid article { padding-bottom: 28px; }
  .value-grid article:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.24); }
  .value-grid article:nth-child(4) { border-top: 1px solid rgba(255,255,255,.24); }
  .value-grid-light article:nth-child(3), .value-grid-light article:nth-child(4) { border-color: var(--line); }
}

@media (max-width: 900px) {
  :root { --header-height: 68px; }
  .admin-bar .site-header { top: 46px; }
  .container { width: min(calc(100% - 36px), var(--max)); }
  .section { padding: 72px 0; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; padding: 20px 18px 24px; color: var(--paper); background: #0b151c; border-top: 1px solid #2b3941; box-shadow: 0 18px 32px rgba(0,0,0,.25); }
  .nav-links.open { display: grid; }
  .nav-menu-list { display: grid; gap: 0; }
  .nav-menu-list a { display: block; padding: 13px 4px; border-bottom: 1px solid #27343b; }
  .nav-cta { margin-top: 10px; }
  .hero { min-height: 650px; }
  .hero-inner { min-height: 520px; }
  .hero-content { padding-bottom: 48px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts span { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .section-head { align-items: start; flex-direction: column; gap: 18px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .media-split { grid-template-columns: 1fr; gap: 40px; }
  .media-split.reverse .media-frame { order: 0; }
  .media-frame, .media-frame img { min-height: 380px; }
  .portrait-frame, .portrait-frame img { min-height: 480px; }
  .process-list, .request-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .process-list li:nth-child(3), .request-grid article:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid #cbd4d6; }
  .process-list li:nth-child(4), .request-grid article:nth-child(4) { border-top: 1px solid #cbd4d6; }
  .cta-panel { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 42px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 41px; }
  h2 { font-size: 31px; }
  h3 { font-size: 21px; }
  .lead { font-size: 18px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 58px 0; }
  .brand-logo { max-width: 170px; max-height: 40px; }
  .hero { min-height: 620px; }
  .hero-inner { min-height: 500px; }
  .hero h1 { margin: 12px 0 18px; }
  .hero-lead { font-size: 18px; }
  .hero-content { padding-top: calc(var(--header-height) + 40px); padding-bottom: 34px; }
  .hero .actions { margin-top: 24px; }
  .hero .btn { width: 100%; }
  .hero-facts { margin-top: 28px; }
  .intro-band { padding: 50px 0; }
  .intro-grid { grid-template-columns: 1fr; gap: 16px; }
  .intro-grid .lead { grid-column: auto; }
  .intro-grid h2 { font-size: 31px; }
  .section-head { margin-bottom: 28px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 24px; }
  .service-card h3 { margin-top: 24px; }
  .media-frame, .media-frame img { min-height: 300px; }
  .portrait-frame, .portrait-frame img { min-height: 390px; }
  .project-feature-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 300px); }
  .project-feature-wide { grid-row: auto; }
  .project-feature::after { inset: 44% 0 0; }
  .process-list, .request-grid { grid-template-columns: 1fr; }
  .process-list li, .process-list li + li, .process-list li:nth-child(3), .request-grid article, .request-grid article + article, .request-grid article:nth-child(3) { padding: 22px 0; border-left: 0; border-top: 1px solid #cbd4d6; }
  .process-list li:first-child, .request-grid article:first-child { border-top: 0; }
  .faq-list summary { padding-right: 38px; font-size: 18px; }
  .service-catalog { grid-template-columns: 1fr; border-left: 0; }
  .catalog-card { min-height: 0; }
  .catalog-card h2, .catalog-card p, .catalog-card ul { min-height: 0; }
  .project-gallery { grid-template-columns: 1fr; }
  .gallery-copy h2 { min-height: 0; }
  .value-grid { grid-template-columns: 1fr; }
  .value-grid article, .value-grid article + article, .value-grid article:nth-child(3), .value-grid article:nth-child(4) { padding: 24px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.24); }
  .value-grid article:first-child { border-top: 0; }
  .value-grid-light article, .value-grid-light article + article, .value-grid-light article:nth-child(3), .value-grid-light article:nth-child(4) { border-color: var(--line); }
  .value-grid-light .service-index { margin-bottom: 20px; }
  .timeline > div { grid-template-columns: 1fr; gap: 6px; }
  .contact-action { padding: 18px; }
  .contact-action strong { font-size: 17px; }
  .contact-details { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js-enabled [data-reveal],
  .js-enabled .hero-content[data-reveal] > * { opacity: 1; transform: none; transition: none; }
}

/* Contact proposal form */
.contact-form-section { background: var(--mist); }
.contact-form-intro { max-width: 760px; margin-bottom: 34px; }
.contact-form-intro h2 { margin: 10px 0 14px; }
.proposal-form { position: relative; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper); box-shadow: var(--shadow-card); }
.proposal-form__trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.proposal-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.proposal-field { min-width: 0; }
.proposal-field--wide { margin-top: 26px; }
.proposal-field label, .proposal-services legend { display: block; margin-bottom: 8px; color: var(--ink); font-weight: 750; }
.proposal-field input, .proposal-field select, .proposal-field textarea { width: 100%; min-width: 0; border: 1px solid #aebdc1; border-radius: var(--radius-small); background: var(--paper); color: var(--ink); }
.proposal-field input, .proposal-field select { min-height: 50px; padding: 10px 13px; }
.proposal-field textarea { min-height: 170px; padding: 13px; resize: vertical; }
.proposal-field input:focus, .proposal-field select:focus, .proposal-field textarea:focus { outline: 3px solid rgba(0, 125, 130, .18); border-color: var(--teal); }
.proposal-field [aria-invalid="true"], .proposal-consent [aria-invalid="true"] { border-color: #a42929; }
.proposal-field__hint { display: block; margin-top: 7px; color: var(--muted); font-size: 14px; }
.proposal-field__error { display: block; min-height: 20px; margin-top: 5px; color: #8e2020; font-size: 14px; font-weight: 650; }
.proposal-services { min-width: 0; margin: 28px 0 0; padding: 0; border: 0; }
.proposal-services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; }
.proposal-services__grid label { display: flex; min-width: 0; align-items: flex-start; gap: 9px; padding: 9px 0; cursor: pointer; }
.proposal-services__grid input, .proposal-consent input { width: 19px; height: 19px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--teal); }
.proposal-services__grid span { min-width: 0; overflow-wrap: anywhere; }
.proposal-consent { margin-top: 24px; padding: 18px; border: 1px solid var(--line); background: #f8faf9; }
.proposal-consent > label { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; cursor: pointer; }
.proposal-consent > a, .proposal-consent > small { display: inline-block; margin: 9px 0 0 29px; }
.proposal-consent > a { color: var(--teal-dark); font-weight: 700; }
.proposal-consent > small { color: var(--muted); }
.proposal-form__footer { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.proposal-form__footer p { max-width: 520px; margin: 0; color: var(--muted); font-size: 14px; }
.proposal-form__footer .btn[disabled] { cursor: wait; opacity: .7; transform: none; }
.proposal-form__status { display: none; margin-top: 20px; padding: 15px 17px; border-left: 4px solid var(--teal); background: #e7f4f2; color: #12484a; font-weight: 700; }
.proposal-form__status.is-visible { display: block; }
.proposal-form__status.is-error { border-color: #a42929; background: #f9e8e8; color: #741919; }
.proposal-form[data-state="success"] { border-color: #a9cec9; }

@media (max-width: 900px) {
  .proposal-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .proposal-form { padding: 22px 18px; }
  .proposal-form__grid, .proposal-services__grid { grid-template-columns: 1fr; }
  .proposal-form__grid { gap: 16px; }
  .proposal-services__grid { gap: 2px; }
  .proposal-form__footer { align-items: stretch; flex-direction: column; }
  .proposal-form__footer .btn { width: 100%; }
  .proposal-consent { padding: 15px; }
}
