/* ==========================================================
   EduServ LatAm LLC - theme
   PALETTE: edit only the variables in :root when the final
   logo + color manual arrive. Everything else derives from them.
   ========================================================== */
:root {
  --brand-primary: #931934;     /* logo burgundy */
  --brand-primary-soft: #B64A60;
  --brand-accent: #A37300;      /* logo gold, used for calls to action */
  --brand-highlight: #D9B85C;   /* light gold for dark surfaces */
  --brand-mint: #E9E2DF;        /* soft neutral support color */
  --brand-ink: #302A2C;         /* warm charcoal for text + dark surfaces */
  --brand-paper: #FAF7F5;       /* page background */
  --brand-paper-2: #F0E8E5;
  --brand-card: #FFFEFD;
  --brand-muted: #655C5E;
  --brand-line: rgba(48, 42, 44, .16);
  --on-dark-soft: #E1D9DA;      /* body text on charcoal */
  --on-primary-soft: #F7E4E9;   /* body text on logo burgundy */
  --wash-a: #F2DDE2;            /* hero gradient start */
  --wash-b: #F5EBDD;            /* hero gradient middle */
  --head-bg: rgba(250, 247, 245, .92);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head-h: 4.5rem;
  --wrap: min(1680px, 100% - 2.5rem);
  --radius: 1.25rem;
}

/* Fluid root size: keep Full HD at the standard size; scale only ultrawide displays. */
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (min-width: 2560px) { html { font-size: 17.5px; } }
@media (min-width: 3400px) { html { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--brand-paper);
  color: var(--brand-ink);
  padding-top: var(--head-h);
  line-height: 1.6;
  overflow-x: hidden;
}
.site-preloader { position: fixed; inset: 0; z-index: 4000; display: grid; place-content: center; justify-items: center; gap: 1.5rem; background: var(--brand-paper); opacity: 1; visibility: visible; transition: opacity .35s ease, visibility .35s ease; }
.site-preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.site-preloader img { width: min(14rem, 60vw); height: auto; }
.site-preloader span { width: 5rem; height: 3px; overflow: hidden; background: var(--brand-paper-2); }
.site-preloader span::before { content: ""; display: block; width: 45%; height: 100%; background: var(--brand-primary); animation: preloader-progress .9s ease-in-out infinite; }
@keyframes preloader-progress { from { transform: translateX(-110%); } to { transform: translateX(235%); } }
@media (prefers-reduced-motion: reduce) { .site-preloader { transition: none; } .site-preloader span::before { animation: none; width: 100%; } }
h1, h2, h3, h4, .display { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding-block: clamp(3rem, 6vw, 6rem); }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-primary); display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: currentColor; }
.h-xl { font-size: clamp(2.6rem, 5vw, 5rem); }
.h-lg { font-size: clamp(2rem, 3.6vw, 3.3rem); }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.lead-lg { font-size: clamp(1.05rem, 1.5vw, 1.35rem); color: var(--brand-muted); max-width: 46ch; }
em.mark { font-style: italic; color: var(--brand-accent); }

:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand-ink); color: #fff; padding: .6rem 1rem; z-index: 3000; }
.skip-link:focus { left: 0; }

/* Buttons */
.btn-es { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid var(--brand-ink); background: transparent; color: var(--brand-ink); transition: transform .2s, background .2s, color .2s; cursor: pointer; }
.btn-es:hover { transform: translateY(-2px); background: var(--brand-ink); color: var(--brand-paper); }
.btn-es.solid { background: var(--brand-accent); border-color: var(--brand-accent); color: #fff; }
.btn-es.solid:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.btn-es.light { border-color: #fff; color: #fff; }
.btn-es.light:hover { background: #fff; color: var(--brand-ink); }
.btn-es .arr { transition: transform .2s; }
.btn-es:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-head { position: fixed; inset: 0 0 auto 0; height: var(--head-h); z-index: 1030; background: var(--head-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--brand-line); }
.site-head .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-logo { display: block; height: clamp(2rem, 3.2vw, 2.7rem); width: auto; max-width: 62vw; }
.on-dark { filter: brightness(0) invert(1); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-body); font-size: .56rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--brand-primary); margin-top: .2rem; }
.head-tools { display: flex; align-items: center; gap: .75rem; }
.head-phone { text-decoration: none; font-weight: 700; font-size: .9rem; display: none; }
@media (min-width: 992px) { .head-phone { display: inline; } }
.head-quote { display: none; padding: .55rem 1.1rem; font-size: .85rem; }
@media (min-width: 576px) { .head-quote { display: inline-flex; } }
.menu-btn { display: inline-flex; align-items: center; gap: .6rem; background: var(--brand-ink); color: var(--brand-paper); border: 0; border-radius: 999px; padding: .6rem 1.1rem; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.menu-btn i { display: grid; gap: 4px; }
.menu-btn i::before, .menu-btn i::after { content: ""; display: block; width: 1.1rem; height: 2px; background: currentColor; }

/* Full-screen menu */
.menu-sheet.offcanvas { background: var(--brand-ink); color: var(--brand-paper); height: 100dvh; }
.menu-sheet .offcanvas-header { height: var(--head-h); padding-inline: max(1.25rem, calc((100% - 1680px) / 2)); }
.menu-sheet .brand-logo { max-width: min(52vw, 20rem); }
.menu-close { background: transparent; border: 2px solid var(--brand-paper); color: var(--brand-paper); border-radius: 999px; padding: .5rem 1.1rem; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.menu-close:hover { background: var(--brand-paper); color: var(--brand-ink); }
.menu-body { width: var(--wrap); margin-inline: auto; display: grid; gap: 2rem; padding-block: 1rem 3rem; overflow-y: auto; align-content: start; }
@media (min-width: 992px) { .menu-body { grid-template-columns: 2fr 1fr; align-items: end; min-height: calc(100dvh - var(--head-h)); } }
.menu-links { list-style: none; padding: 0; margin: 0; counter-reset: m; }
.menu-links li { counter-increment: m; border-top: 1px solid rgba(255, 255, 255, .16); }
.menu-links a { display: flex; align-items: baseline; gap: .85rem; text-decoration: none; font-family: var(--font-display); font-size: clamp(1.53rem, 3.4vw, 3.4rem); font-weight: 600; padding: .3rem 0; transition: color .2s, padding-left .25s; }
.menu-links a::before { content: "0" counter(m); font-family: var(--font-body); font-size: .68rem; font-weight: 700; color: var(--brand-highlight); letter-spacing: .1em; }
.menu-links a:hover, .menu-links a[aria-current="page"] { color: var(--brand-highlight); padding-left: .64rem; }
.menu-side { font-size: .95rem; color: var(--on-dark-soft); }
.menu-side a { color: #fff; }
.menu-side h4 { font-family: var(--font-body); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-highlight); font-weight: 800; margin: 0 0 .5rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 5vw, 5rem) clamp(2rem, 4vw, 4rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; } }
.hero-copy .lead-lg { margin-block: 1.5rem 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.slides { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(48, 42, 44, .5); }
.slide { min-height: clamp(22rem, 46vw, 36rem); padding: clamp(1.5rem, 3vw, 3rem); padding-bottom: 4.5rem; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; isolation: isolate; }
.slide .tag { position: absolute; top: clamp(1.2rem, 2.5vw, 2.2rem); left: clamp(1.5rem, 3vw, 3rem); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.slide h2 { font-size: clamp(1.8rem, 3.6vw, 3.4rem); max-width: 14ch; margin-bottom: .8rem; }
.slide p { max-width: 38ch; margin-bottom: 1.4rem; }
.slide svg.motif { position: absolute; z-index: -1; right: -8%; top: -6%; width: 78%; opacity: .95; }
.slide-1 { background: var(--brand-primary); color: #fff; }
.slide-2 { background: var(--brand-highlight); color: var(--brand-ink); }
.slide-3 { background: var(--brand-ink); color: #fff; }
.slide-3 .btn-es { border-color: #fff; color: #fff; }
.slide-3 .btn-es:hover { background: #fff; color: var(--brand-ink); }
.carousel-indicators { margin-bottom: 1rem; justify-content: flex-start; margin-left: clamp(1.5rem, 3vw, 3rem); }
.carousel-indicators [data-bs-target] { width: 2.2rem; height: 4px; border: 0; border-radius: 4px; }
.slide-ctrl { position: absolute; right: 1.2rem; bottom: 1.2rem; z-index: 5; display: flex; gap: .5rem; }
.slide-ctrl button { padding: .45rem 1rem; border-radius: 999px; border: 2px solid currentColor; background: rgba(255, 255, 255, .15); color: inherit; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.slides { color: #fff; }
.slides .slide-ctrl button { background: rgba(48, 42, 44, .45); color: #fff; border-color: rgba(255, 255, 255, .7); }
.slides .slide-ctrl button:hover { background: #fff; color: var(--brand-ink); }

/* Ticker */
.ticker { background: var(--brand-ink); color: var(--brand-paper); overflow: hidden; border-block: 1px solid var(--brand-ink); }
.ticker-track { display: flex; width: max-content; animation: tick var(--dur, 60s) linear infinite; will-change: transform; }
.ticker-set { display: flex; flex: none; }
.ticker span { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 2.2rem); padding: .9rem 1.6rem; white-space: nowrap; }
.ticker span:nth-child(even) { color: var(--brand-highlight); font-style: italic; }
@keyframes tick { to { transform: translateX(calc(-1 * var(--dist, 50%))); } }
.ticker { position: relative; }
.ticker.paused .ticker-track { animation-play-state: paused; }
.ticker-toggle { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); z-index: 2; background: var(--brand-paper); color: var(--brand-ink); border: 0; border-radius: 999px; padding: .35rem .9rem; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.ticker-toggle:hover { opacity: 1; }

/* ---------- Differences ---------- */
.diff { display: grid; gap: 0; border-top: 2px solid var(--brand-ink); }
@media (min-width: 768px) { .diff { grid-template-columns: repeat(3, 1fr); } .diff > div + div { border-left: 1px solid var(--brand-line); } }
.diff > div { padding: 2rem 1.5rem 2.5rem 0; }
@media (min-width: 768px) { .diff > div { padding-inline: 2rem; } .diff > div:first-child { padding-left: 0; } }
.diff .n { font-family: var(--font-display); font-size: 4.5rem; color: var(--brand-accent); font-style: italic; line-height: 1; }
.diff h3 { font-size: 1.8rem; margin: .5rem 0; }
.diff p { color: var(--brand-muted); margin: 0; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { border-radius: var(--radius); padding: clamp(1.4rem, 2.2vw, 2.2rem); background: var(--brand-card); border: 1px solid var(--brand-line); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .7rem; min-height: 14rem; transition: transform .25s, box-shadow .25s; text-decoration: none; }
a.tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(48, 42, 44, .45); }
.tile .num { font-size: .75rem; font-weight: 800; letter-spacing: .16em; color: var(--brand-primary); }
.tile h3 { font-size: clamp(1.4rem, 2vw, 2rem); }
.tile p { color: var(--brand-muted); margin: 0; max-width: 52ch; }
.tile ul { margin: 0; padding-left: 1.1rem; color: var(--brand-muted); font-size: .95rem; }
.tile .more { margin-top: auto; font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.tile.t-primary { background: var(--brand-primary); color: #fff; border-color: transparent; }
.tile.t-primary p, .tile.t-primary ul, .tile.t-primary .num { color: var(--on-primary-soft); }
.tile.t-sun { background: var(--brand-highlight); border-color: transparent; }
.tile.t-sun p, .tile.t-sun ul, .tile.t-sun .num { color: var(--brand-ink); }
.tile.t-mint { background: var(--brand-mint); border-color: transparent; }
.tile.t-mint p, .tile.t-mint ul { color: var(--brand-ink); }
.tile.t-ink { background: var(--brand-ink); color: #fff; border-color: transparent; }
.tile.t-ink p, .tile.t-ink ul { color: var(--on-dark-soft); }
.tile.t-ink .num { color: var(--brand-highlight); }
.home-offers { scroll-margin-top: calc(var(--head-h) + 1rem); }
.home-offers .offer-section + .offer-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--brand-line); }
.home-core-services { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .home-core-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-other-services { display: grid; grid-template-columns: 1fr; gap: 1rem 1.5rem; }
@media (min-width: 640px) { .home-other-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .home-other-services { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.home-service-item { display: flex; flex-direction: column; align-items: flex-start; border-top: 1px solid var(--brand-line); padding: 1rem .25rem 1rem 0; text-decoration: none; }
.home-service-item h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.home-service-item p { color: var(--brand-muted); font-size: .9rem; margin: 0 0 .65rem; }
.home-service-item .more { margin-top: auto; color: var(--brand-primary); font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.home-product-groups { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .home-product-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; } }
.home-product-family { border-top: 2px solid var(--brand-ink); padding-top: .75rem; }
.home-product-family h3 { font-size: 1rem; margin-bottom: .55rem; }
.home-product-links { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) and (max-width: 767px) { .home-product-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .75rem; } }
.home-product-links a { border-bottom: 1px solid var(--brand-line); font-size: .84rem; line-height: 1.35; padding: .45rem .1rem; text-decoration: none; }
.home-product-links a:hover { color: var(--brand-primary); }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; position: relative; padding-top: 3.6rem; border-top: 2px solid var(--brand-ink); }
.steps li::before { content: counter(s); position: absolute; top: -1.4rem; left: 0; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--brand-ink); color: var(--brand-paper); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.3rem; }
.steps li:nth-child(2)::before { background: var(--brand-primary); }
.steps li:nth-child(3)::before { background: var(--brand-accent); color: var(--brand-ink); }
.steps li:nth-child(4)::before { background: var(--brand-highlight); color: var(--brand-ink); }
.steps h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.steps p { color: var(--brand-muted); margin: 0; font-size: .95rem; }

/* ---------- Dark band ---------- */
.band { background: var(--brand-ink); color: var(--brand-paper); border-radius: clamp(1.5rem, 3vw, 3rem); padding: clamp(2rem, 5vw, 5rem); }
.band .eyebrow { color: var(--brand-highlight); }
.band .lead-lg { color: var(--on-dark-soft); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; list-style: none; }
.chips li { border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: .5rem 1.1rem; font-weight: 600; font-size: .95rem; }
.chips.dark li { border-color: var(--brand-ink); }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 992px) { .split { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; } }

/* Rent / Buy duo */
.duo { display: grid; gap: 1rem; }
@media (min-width: 768px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo > div { border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.6rem); color: var(--brand-ink); }
.duo .rent { background: var(--brand-mint); }
.duo .buy { background: var(--brand-highlight); }
.duo h3 { font-size: clamp(2rem, 3.4vw, 3.2rem); }
.duo ul { padding-left: 1.1rem; margin: 1rem 0 0; }

/* Careers banner */
.careers-banner { background: var(--brand-accent); color: #fff; border-radius: clamp(1.5rem, 3vw, 3rem); padding: clamp(2rem, 5vw, 4.5rem); display: grid; gap: 1.5rem; }
@media (min-width: 992px) { .careers-banner { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.subject-demo { background: var(--brand-ink); color: #fff; border-radius: 1rem; padding: 1.2rem 1.4rem; font-family: ui-monospace, Consolas, monospace; font-size: .9rem; word-break: break-word; }
.subject-demo b { color: var(--brand-highlight); }

/* Page heads */
.page-head { padding-block: clamp(2.5rem, 7vw, 7rem) clamp(2rem, 4vw, 4rem); }
.page-head .lead-lg { margin-top: 1.2rem; }
.crumbs { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-muted); margin-bottom: 1rem; }
.crumbs a { text-decoration: none; }

/* Service rows */
.svc { border-top: 2px solid var(--brand-ink); display: grid; gap: 1rem; padding-block: 2.2rem; }
@media (min-width: 992px) { .svc { grid-template-columns: 1.1fr 1.4fr; gap: 3rem; } }
.svc .idx { font-family: var(--font-display); font-style: italic; font-size: 3rem; color: var(--brand-accent); line-height: 1; }
.svc h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); }
.svc p { color: var(--brand-muted); }
.svc ul { columns: 1; padding-left: 1.1rem; margin: 0; }
@media (min-width: 576px) { .svc ul { columns: 2; column-gap: 2rem; } }
.svc li { margin-bottom: .35rem; break-inside: avoid; }
.materials-services .svc h2 { font-size: clamp(1.25rem, 1.6vw, 1.65rem); line-height: 1.25; }
.service-product-list { list-style: none; padding: 0 !important; }
.service-product-list li { border-bottom: 1px solid var(--brand-line); margin: 0; }
.service-product-list a { display: block; padding: .45rem .1rem; color: var(--brand-ink); font-size: .86rem; line-height: 1.35; text-decoration: none; }
.service-product-list a:hover { color: var(--brand-primary); }
.service-product-list strong { display: inline-block; min-width: 7.5rem; color: var(--brand-primary); font: 700 .72rem ui-monospace, Consolas, monospace; }

/* ---------- Catalog (spec sheet) ---------- */
.cat-bar { position: sticky; top: var(--head-h); z-index: 1000; background: var(--brand-paper); border-bottom: 1px solid var(--brand-line); padding-block: .7rem; }
.cat-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; justify-content: space-between; }
.seg { display: inline-flex; border: 2px solid var(--brand-ink); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: .45rem 1rem; font-weight: 700; font-size: .85rem; color: var(--brand-ink); }
.seg button[aria-pressed="true"] { background: var(--brand-ink); color: var(--brand-paper); }
.jump { display: flex; gap: .4rem; flex-wrap: wrap; }
.jump a { text-decoration: none; font-size: .8rem; font-weight: 800; border: 1px solid var(--brand-line); border-radius: 999px; padding: .35rem .8rem; background: var(--brand-card); }
.jump a:hover { background: var(--brand-ink); color: #fff; }
.quote-btn { position: relative; }
.quote-count { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; border-radius: 999px; background: var(--brand-ink); color: #fff; font-size: .75rem; padding-inline: .3rem; }
.chapter { display: block; padding-block: 1.5rem 2rem; border-bottom: 1px solid var(--brand-line); scroll-margin-top: 9rem; }
.chapter-head { display: grid; grid-template-columns: 1fr; gap: .5rem; margin-bottom: 1rem; border-left: 4px solid var(--brand-accent); padding-left: 1rem; }
.chapter-head h2 { font-size: 2.4rem; line-height: 1.08; font-weight: 700; margin: 0; }
.chapter-head p { color: var(--brand-muted); font-size: 1.1rem; line-height: 1.35; margin: 0; }
.subcategory-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .35rem .5rem; padding-top: .35rem; }
.subcategory-nav a { color: var(--brand-primary); border: 1px solid var(--brand-line); border-radius: .3rem; font-size: .76rem; line-height: 1.25; padding: .25rem .45rem; text-decoration: none; }
.subcategory-nav a:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.chapter-content { min-width: 0; }
.product-subcategory { scroll-margin-top: 9rem; }
.product-subcategory + .product-subcategory { margin-top: 2.5rem; }
.subchapter-head { border-top: 2px solid var(--brand-ink); padding-top: 1rem; margin-bottom: .7rem; }
.subchapter-head h3 { font-size: 1.05rem; line-height: 1.25; margin-bottom: .25rem; }
.subchapter-head p { color: var(--brand-muted); font-size: .82rem; margin-bottom: .35rem; }
.spec { display: grid; gap: .55rem 1rem; padding: .85rem 0; border-top: 1px solid var(--brand-line); }
.spec:first-child { border-top: 2px solid var(--brand-ink); }
@media (min-width: 768px) { .spec { grid-template-columns: 9rem 8.5rem minmax(0, 1fr) auto; } }
@media (min-width: 1400px) { .spec { grid-template-columns: 12rem 8.5rem minmax(0, 1fr) auto; } }
.spec-media { margin: 0; aspect-ratio: 4 / 3; border-radius: .8rem; position: relative; overflow: hidden; background: repeating-linear-gradient(135deg, var(--brand-paper-2) 0 10px, var(--brand-card) 10px 20px); border: 1px dashed var(--brand-line); display: grid; place-items: center; text-align: center; padding: .4rem; }
.spec-media::after { content: attr(data-file); font: 700 .65rem ui-monospace, Consolas, monospace; color: var(--brand-muted); word-break: break-all; }
.spec-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; background: var(--brand-card); }

/* Generic image slot: drop a file at the path in data-file */
.ph { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: var(--ar, 4 / 3); background: linear-gradient(135deg, var(--wash-a), var(--wash-b)); border: 1px dashed var(--brand-line); display: grid; place-items: center; text-align: center; padding: 1rem; }
.ph::after { content: attr(data-file); font: 700 .75rem ui-monospace, Consolas, monospace; color: var(--brand-muted); word-break: break-all; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph.wide { --ar: 16 / 9; }
.ph.tall { --ar: 3 / 4; }
.ph.square { --ar: 1 / 1; }
.tile .ph { margin: -.4rem -.4rem .4rem; --ar: 16 / 9; border-radius: .8rem; }
.slide .slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; mix-blend-mode: luminosity; }

/* Light gradient wash under the header, optional faded photo via --wash-img */
.wash { position: relative; isolation: isolate; background: linear-gradient(135deg, var(--wash-a) 0%, var(--wash-b) 52%, var(--brand-paper) 100%); }
.wash > .wash-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .28; -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 95%); mask-image: linear-gradient(to bottom, #000 0%, transparent 95%); }
.wash::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6rem; z-index: -1; background: linear-gradient(to bottom, transparent, var(--brand-paper)); }

/* CTAs */
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.cta-end { padding-block: clamp(3rem, 6vw, 6rem) 0; }
.cta-card { background: var(--brand-primary); color: #fff; border-radius: clamp(1.5rem, 3vw, 3rem); padding: clamp(2rem, 5vw, 5rem); display: grid; gap: 2rem; }
@media (min-width: 992px) { .cta-card { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.cta-card h2 { font-size: clamp(2rem, 4.2vw, 4rem); }
.cta-card p { color: var(--on-primary-soft); max-width: 46ch; }
.cta-card .cta-row { margin: 0; justify-content: flex-start; }
@media (min-width: 992px) { .cta-card .cta-row { justify-content: flex-end; } }
.btn-es.sun { background: var(--brand-highlight); border-color: var(--brand-highlight); color: var(--brand-ink); }
.btn-es.sun:hover { background: #fff; border-color: #fff; }

/* Map */
.map-frame { width: 100%; border: 0; border-radius: var(--radius); min-height: clamp(20rem, 42vw, 34rem); background: var(--brand-paper-2); display: block; }
.spec .code { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; font-weight: 700; color: var(--brand-primary); padding-top: .35rem; }
.spec h3 { font-size: 1.08rem; line-height: 1.3; margin-bottom: .25rem; }
.spec p { font-size: .88rem; margin: 0 0 .5rem; color: var(--brand-muted); max-width: 80ch; }
.spec dl { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.spec dl div { background: var(--brand-paper-2); border-radius: .5rem; padding: .25rem .6rem; font-size: .8rem; }
.spec dt { display: inline; font-weight: 800; }
.spec dd { display: inline; margin: 0; }
.spec dt::after { content: ": "; }
.spec-side { display: flex; flex-direction: row; gap: .6rem; align-items: center; flex-wrap: wrap; }
@media (min-width: 768px) { .spec-side { flex-direction: column; align-items: flex-end; } }
.mode { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.mode.rent { background: var(--brand-mint); }
.mode.buy { background: var(--brand-highlight); }
.mode.both { background: var(--brand-primary); color: #fff; }
.add-btn { border: 2px solid var(--brand-ink); background: transparent; border-radius: 999px; padding: .4rem 1rem; font-weight: 700; font-size: .85rem; }
.add-btn:hover, .add-btn[aria-pressed="true"] { background: var(--brand-ink); color: #fff; }
.note { background: var(--brand-card); border: 1px dashed var(--brand-line); border-radius: 1rem; padding: 1rem 1.2rem; font-size: .9rem; color: var(--brand-muted); }
/* Product detail modal */
.spec-media { cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
.spec-media:hover { transform: scale(1.02); box-shadow: 0 14px 28px -16px rgba(48, 42, 44, .5); }
.spec h3 { cursor: pointer; }
.view-btn { border: 0; background: transparent; padding: .4rem .2rem; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; color: var(--brand-primary); }
.detail-content { background: var(--brand-card); border-radius: var(--radius); border: 0; padding: clamp(1rem, 3vw, 2.2rem); }
.detail-close { position: absolute; top: 1rem; right: 1rem; z-index: 3; }
.detail-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .detail-grid { grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: start; } }
.detail-info .code { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; font-weight: 700; color: var(--brand-primary); }
.detail-info h2 { margin: .3rem 0 .8rem; padding-right: 2rem; }
.detail-info p { color: var(--brand-muted); }
.detail-info dl { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.detail-info dl div { background: var(--brand-paper-2); border-radius: .5rem; padding: .3rem .7rem; font-size: .9rem; }
.detail-info dt { display: inline; font-weight: 800; }
.detail-info dd { display: inline; margin: 0; }
.detail-info dt::after { content: ": "; }
.detail-info .cta-row { margin-top: 1rem; }

.quote-sheet.offcanvas { background: var(--brand-card); width: min(30rem, 100%); }
.quote-list { list-style: none; padding: 0; margin: 0; }
.quote-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--brand-line); align-items: center; }
.quote-list button { border: 0; background: transparent; color: var(--brand-accent); font-weight: 800; }

/* Careers + forms */
.role { border-top: 2px solid var(--brand-ink); padding-block: 1.6rem; display: grid; gap: 1rem; }
@media (min-width: 768px) { .role { grid-template-columns: 1fr 2fr auto; gap: 2rem; align-items: start; } }
.role h3 { font-size: 1.6rem; }
.role p { margin: 0; color: var(--brand-muted); }
.role .where { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-primary); }
.form-es label { font-weight: 700; font-size: .85rem; margin-bottom: .3rem; display: block; }
.form-es .form-control, .form-es .form-select { background: var(--brand-card); border: 2px solid var(--brand-ink); border-radius: .8rem; padding: .75rem 1rem; }
.form-es .form-control:focus, .form-es .form-select:focus { box-shadow: 0 0 0 .25rem rgba(147, 25, 52, .3); border-color: var(--brand-primary); }
.form-es .help { font-size: .82rem; color: var(--brand-muted); margin-top: .3rem; }
.panel { background: var(--brand-card); border: 1px solid var(--brand-line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.6rem); }
.contact-big a { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.6rem); text-decoration: none; border-bottom: 3px solid var(--brand-accent); word-break: break-word; }
.contact-big a:hover { background: var(--brand-highlight); }

/* ---------- Legal ---------- */
.legal { display: grid; gap: 2rem; padding-block: 3rem 6rem; }
@media (min-width: 992px) { .legal { grid-template-columns: 18rem 1fr; gap: 4rem; } .legal-toc { position: sticky; top: calc(var(--head-h) + 1.5rem); align-self: start; } }
.legal-toc ol { padding-left: 1.2rem; font-size: .92rem; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-body { max-width: 78ch; }
.legal-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); margin: 3rem 0 .8rem; padding-top: 1.5rem; border-top: 2px solid var(--brand-ink); scroll-margin-top: calc(var(--head-h) + 1rem); }
.legal-body h3 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; font-family: var(--font-body); font-weight: 800; letter-spacing: 0; }
.legal-body p, .legal-body li { color: var(--brand-ink); }
.legal-body table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-block: 1rem; }
.legal-body th, .legal-body td { border: 1px solid var(--brand-line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.legal-body th { background: var(--brand-paper-2); }
.table-scroll { overflow-x: auto; }

/* ---------- Footer ---------- */
.site-foot { background: var(--brand-ink); color: var(--on-dark-soft); padding-block: clamp(3rem, 6vw, 6rem) 2rem; margin-top: clamp(3rem, 6vw, 6rem); }
.foot-big { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 3.75rem); color: var(--brand-paper); line-height: 1.08; margin-bottom: 3rem; }
@media (min-width: 992px) { .foot-big { white-space: nowrap; } }
.foot-big em { color: var(--brand-highlight); }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: repeat(4, 1fr); } }
.site-foot h4 { font-family: var(--font-body); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-highlight); font-weight: 800; margin-bottom: .8rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.foot-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .16); display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between; font-size: .85rem; }
.link-btn { background: none; border: 0; padding: 0; color: #fff; text-decoration: underline; font: inherit; cursor: pointer; }

/* ---------- Cookies ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1025; background: var(--brand-ink); color: #fff; border-radius: 1.2rem; padding: 1.2rem 1.4rem; display: grid; gap: 1rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); max-width: 60rem; margin-inline: auto; }
@media (min-width: 768px) { .cookie-banner { grid-template-columns: 1fr auto; align-items: center; } }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .9rem; }
.cookie-banner a { color: var(--brand-highlight); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-actions button { border-radius: 999px; padding: .55rem 1.1rem; font-weight: 700; font-size: .85rem; border: 2px solid #fff; background: transparent; color: #fff; }
.cookie-actions button:hover { background: #fff; color: var(--brand-ink); }
.cookie-actions .primary { background: var(--brand-highlight); border-color: var(--brand-highlight); color: var(--brand-ink); }
.cookie-dialog { border: 0; border-radius: 1.2rem; padding: 1.8rem; max-width: min(32rem, 94vw); background: var(--brand-card); color: var(--brand-ink); }
.cookie-dialog::backdrop { background: rgba(48, 42, 44, .6); }
.cookie-dialog h2 { font-size: 1.8rem; }
.cookie-opt { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--brand-line); }
.cookie-opt small { display: block; color: var(--brand-muted); }
.cookie-opt input { width: 1.3rem; height: 1.3rem; accent-color: var(--brand-primary); }
.cookie-dialog .cookie-actions button { color: var(--brand-ink); border-color: var(--brand-ink); }
.cookie-dialog .cookie-actions button:hover { background: var(--brand-ink); color: #fff; }
.cookie-dialog .cookie-actions .primary { background: var(--brand-accent); border-color: var(--brand-accent); color: #fff; }

/* Reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } *:not(.ticker-track) { animation-duration: .01ms !important; } }
