/* TECPRO — layout: navy industrial header band, full-bleed photo hero, then alternating white / cool-grey sections on a 1200px grid */
:root {
  --bg: #ffffff;
  --surface: #F2F5F9;
  --card: #ffffff;
  --ink: #0F1A2B;
  --muted: #4A5568;
  --line: #D9E0EA;
  --link: #1C4FA1;
  --brand: #1C4FA1;          /* button fill, same in both themes */
  --brand-hover: #163F82;
  --band: #0A1B33;           /* navy bands, same in both themes */
  --on-band: #FFFFFF;
  --on-band-muted: #C9D4E3;
  --ice: #8FD6F2;            /* accent text on navy only */
  --wa: #128C4B;             /* WhatsApp button */
  --shadow: 0 1px 2px rgba(10, 27, 51, .06), 0 8px 24px rgba(10, 27, 51, .06);
  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1424; --surface: #0F1B2F; --card: #13213A; --ink: #E8EEF6; --muted: #A9B6C8;
    --line: #22324B; --link: #8DB4F0; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1424; --surface: #0F1B2F; --card: #13213A; --ink: #E8EEF6; --muted: #A9B6C8;
  --line: #22324B; --link: #8DB4F0; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--band); }
img { max-width: 100%; display: block; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 64px); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

/* type */
h1, h2, h3, h4 { font-family: var(--f-display); text-transform: uppercase; line-height: 1; margin: 0; text-wrap: balance; letter-spacing: -.2px; }
h1 { font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-weight: 800; font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-weight: 700; font-size: 1.45rem; line-height: 1.1; }
p { margin: 0; text-wrap: pretty; }
.eyebrow { font-family: var(--f-display); font-weight: 700; font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; color: var(--link); }
.band .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--ice); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--band); color: var(--on-band); border-bottom: 3px solid var(--brand); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--on-band); text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; padding: 10px 12px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ice); }
.nav a[aria-current="page"] { color: var(--ice); border-bottom-color: var(--ice); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; background: none; border: 1px solid #2A3F5F; color: var(--on-band); width: 46px; height: 46px; border-radius: 4px; cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--band); flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 3px solid var(--brand); }
  .nav[data-open="false"] { display: none; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid #1B2E4B; }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 3px; border: 2px solid transparent; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0E7340; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--link); color: var(--link); background: transparent; }
.btn-outline:hover { background: var(--surface); }
.nav a.btn { color: #fff; border-bottom: 2px solid transparent; padding: 0 18px; }
.nav a.btn:hover { color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.alt { background: var(--surface); }
.band { background: var(--band); color: var(--on-band); }
.band .lead, .band .muted { color: var(--on-band-muted); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.section-head .lead { max-width: 46ch; }

/* hero */
.hero { position: relative; background: var(--band); color: var(--on-band); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,27,51,.94) 0%, rgba(10,27,51,.82) 42%, rgba(10,27,51,.15) 75%); }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(72px, 11vw, 140px); }
.hero-copy { max-width: 640px; display: flex; flex-direction: column; gap: 22px; }
.hero-copy .lead { color: var(--on-band-muted); font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 720px) { .hero::after { background: rgba(10,27,51,.82); } }

.page-hero { background: var(--band); color: var(--on-band); position: relative; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero .wrap { position: relative; padding-block: clamp(56px, 8vw, 96px); display: flex; flex-direction: column; gap: 14px; }
.page-hero .lead { color: var(--on-band-muted); }

/* process strip */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 0; background: var(--card); box-shadow: var(--shadow); position: relative; z-index: 2; margin-top: -48px; }
.step { padding: 26px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.step:first-child { border-left: 0; }
.step .num { font-family: var(--f-display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--link); }
.step p { font-size: .98rem; color: var(--muted); }
@media (max-width: 520px) { .step { border-left: 0; border-top: 1px solid var(--line); } .step:first-child { border-top: 0; } }

/* cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.card { background: var(--card); display: flex; flex-direction: column; text-decoration: none; color: inherit; box-shadow: var(--shadow); min-width: 0; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.card-body p { color: var(--muted); font-size: .98rem; }
a.card:hover h3 { color: var(--link); }
.more { font-family: var(--f-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; color: var(--link); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.more:hover { text-decoration: underline; }

/* split feature */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
.split-copy { display: flex; flex-direction: column; gap: 18px; }
.split img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--brand); transform: translateY(-1px); }
.band .ticks li::before { background: var(--ice); }

/* mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 10px; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; min-width: 0; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mosaic figure:hover img { transform: scale(1.03); }
.mosaic figcaption { position: absolute; left: 0; bottom: 0; background: var(--brand); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; }
.m-big { grid-column: span 2; grid-row: span 2; }
.m-tall { grid-row: span 2; }
.m-wide { grid-column: span 2; }
@media (max-width: 820px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; } .m-tall { grid-row: span 1; } }

/* doors */
.doors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 22px; }
.door { background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.door img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.door .tag { font-family: var(--f-display); font-weight: 700; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }

/* service detail */
.service { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service > * { min-width: 0; }
.service-media { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.service-media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-media img:only-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (min-width: 900px) { .service:nth-of-type(even) .service-media, .service:nth-of-type(even) .slider { order: 2; } }

/* gallery filter */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font-family: var(--f-display); font-weight: 700; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; min-height: 44px; padding: 0 18px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 3px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.gallery figure { margin: 0; background: var(--card); box-shadow: var(--shadow); min-width: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 12px 16px 14px; font-size: .95rem; color: var(--muted); }
.gallery figcaption strong { display: block; color: var(--ink); font-family: var(--f-display); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .02em; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-list { display: flex; flex-direction: column; gap: 0; }
.contact-item { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-item .label { font-family: var(--f-display); font-weight: 700; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--link); }
.contact-item .value { font-size: 1.2rem; font-weight: 500; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copy { font: 600 .8rem var(--f-body); letter-spacing: .04em; text-transform: uppercase; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 3px; min-height: 32px; padding: 0 10px; cursor: pointer; }
.copy:hover { color: var(--ink); border-color: var(--muted); }
.map { position: relative; width: 100%; aspect-ratio: 16 / 11; max-width: 100%; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; color: var(--muted); }
.map-fallback .label { font-family: var(--f-display); font-weight: 700; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--link); }
.form { background: var(--card); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea, .field select { font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--muted); }

/* cta band */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* footer */
.site-footer { background: #071426; color: var(--on-band-muted); padding-block: 56px 32px; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 1.05rem; letter-spacing: .12em; margin-bottom: 12px; }
.footer-grid a { color: var(--on-band-muted); text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-logo img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #1B2E4B; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* floating whatsapp */
.wa-float { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.wa-float:hover { background: #0E7340; }
.wa-float svg { width: 30px; height: 30px; }

/* plant stages inside a service */
.stages { padding-block: 8px clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: 20px; }
.stage-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.stage-list li { background: var(--card); box-shadow: var(--shadow); border-top: 3px solid var(--brand); min-width: 0; }
.stage-list div { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.stage-list .num { font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; color: var(--link); line-height: 1; }
.stage-list strong { font-family: var(--f-display); font-size: 1.15rem; text-transform: uppercase; }
.stage-list p { font-size: .92rem; color: var(--muted); line-height: 1.4; }

/* image slider: sliding track */
.slider { position: relative; background: #0E1A2E; min-width: 0; outline: none; }
.slider:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
.slides { position: relative; width: 100%; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; }
.track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.45, 0, .2, 1); will-change: transform; }
.slide { margin: 0; flex: 0 0 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.slide figcaption { position: absolute; left: 0; bottom: 0; background: var(--brand); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; max-width: calc(100% - 80px); }
.sl-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(10, 27, 51, .78); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; z-index: 2; }
.sl-btn:hover { background: var(--brand); }
.sl-btn svg { width: 22px; height: 22px; }
.sl-prev { left: 10px; }
.sl-next { right: 10px; }
.sl-count { position: absolute; right: 0; bottom: 0; background: rgba(10, 27, 51, .78); color: #fff; font: 600 .85rem var(--f-body); padding: 7px 12px; font-variant-numeric: tabular-nums; z-index: 2; }
