/* ---------- Fonts ---------- */
@font-face { font-family: 'Inter'; font-weight: 300; font-style: normal; font-display: swap;
  src: url('../fonts/inter-v12-latin-300.woff2') format('woff2'), url('../fonts/inter-v12-latin-300.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('../fonts/inter-v12-latin-500.woff2') format('woff2'), url('../fonts/inter-v12-latin-500.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('../fonts/inter-v12-latin-700.woff2') format('woff2'), url('../fonts/inter-v12-latin-700.woff') format('woff'); }

/* ---------- Base ---------- */
:root { --navy: #16345f; --accent: #d4202a; --ink: #151515; --text: #212529; --line: #343a40; --grey-light: #f8f9fa; --grey: #e9ecef; }
*, *::before, *::after { box-sizing: border-box; }
dialog:not([open]) { display: none; }
html { scroll-padding-top: 80px; overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 300 1rem/1.5 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--ink); }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; font-weight: 500; }
p { margin: 0 0 1rem; }
address { font-style: normal; }

.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 1.5vw; }
@media (min-width: 1680px) { .container { max-width: 1600px; } }

.title { color: var(--navy); font-size: clamp(1.75rem, 1.1rem + 1.5vw, 2.5rem); font-weight: 700; margin-bottom: 1.5rem; }
.section { overflow: hidden; width: 100%; }
.grey { background: var(--grey); }
.rule { color: var(--navy); padding: 3rem 0; border-top: 1px solid var(--line); font-size: clamp(1.4rem, 1.1rem + .6vw, 1.75rem); }
.shadow { box-shadow: 0 .75rem 2rem rgba(21, 21, 21, .15); }

/* heading rule that draws itself when the heading scrolls in */
.title::after { content: ""; display: block; width: 4rem; height: 3px; margin-top: .6rem; background: var(--accent); }
.js .title::after { width: 0; transition: width .9s cubic-bezier(.2, .7, .2, 1) .35s; }
.js .title.in::after, .js .footer-form .title::after { width: 4rem; }

/* large light section numbers behind the headings */
.title[data-num] { position: relative; isolation: isolate; }
.title[data-num]::before { content: attr(data-num); content: attr(data-num) / ""; position: absolute; z-index: -1; top: 50%; left: -.04em; translate: 0 -58%; font-size: clamp(5rem, 14vw, 10rem); font-weight: 700; line-height: 1; color: rgba(22, 52, 95, .07); pointer-events: none; }
::selection { color: #fff; background: var(--accent); }

/* ---------- Header ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 1030; padding: 12px 0; background: var(--navy); transition: box-shadow .2s; }
.nav .progress { position: absolute; inset: auto 0 0 0; height: 3px; background: #fff; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; pointer-events: none; }
.nav.scrolled { box-shadow: 0 1rem 1.5rem rgba(21, 21, 21, .25); }
.nav .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.brand { padding: .3125rem 1.5rem .3125rem 0; }
.nav-toggle { padding: .25rem .75rem; background: none; border: 1px solid rgba(255, 255, 255, .4); cursor: pointer; }
.nav-toggle svg { width: 1.5em; height: 1.5em; stroke: #fff; }
.menu { display: none; flex-basis: 100%; margin: 0; padding: 0; list-style: none; }
.menu.open { display: block; }
.menu a { display: block; padding: .5rem; color: rgba(255, 255, 255, .85); text-decoration: none; border-bottom: 2px solid transparent; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; background-origin: border-box; transition: color .2s, border-color .2s, background-size .3s ease; }
.menu a:hover { background-size: 100% 2px; }
.menu a[aria-current] { color: #fff; border-bottom-color: var(--accent); }
.menu a:hover { color: #fff; }
@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .menu, .menu.open { display: flex; flex: 1; flex-basis: auto; }
}

/* skip link for keyboard users */
.skip { position: absolute; top: -4rem; left: 1rem; z-index: 2000; padding: .6rem 1rem; color: #fff; background: var(--accent); }
.skip:focus { top: 1rem; }

/* language switch */
.lang { display: flex; gap: .25rem; padding: .5rem; }
.lang button { padding: .25rem .5rem; font: inherit; font-size: .875rem; color: rgba(255, 255, 255, .75); background: none; border: 0; cursor: pointer; }
.lang button:hover { color: #fff; }
.lang a { display: inline-block; padding: .25rem .5rem; font-size: .875rem; color: rgba(255, 255, 255, .75); background: none; border-bottom: 0; }
.lang a:hover { color: #fff; background: none; }
.lang a[aria-current] { color: #fff; font-weight: 700; border-bottom: 0; }
.lang button[aria-pressed="true"] { color: #fff; font-weight: 700; }
@media (min-width: 992px) { .lang { margin-left: auto; align-items: center; padding: 0; } }

/* ---------- Hero ---------- */
.hero { --cw: min(100%, 1140px); position: relative; overflow: hidden; background: var(--grey); }
@media (min-width: 1680px) { .hero { --cw: min(100%, 1600px); } }
.hero-img { position: absolute; top: 0; right: 0; width: 100%; height: 100%; }
/* the picture sits on a taller layer so it can zoom slowly and drift on scroll */
.hero-img::before { content: ""; position: absolute; inset: -40px 0; background: url(../img/topright.png) 100% 50% / cover; translate: 0 var(--py, 0px); }
.js .hero-img::before { animation: settle 12s ease-out both; }
.hero-text { position: relative; isolation: isolate; padding: 16vh 1.5vw; }
/* white bar behind the text, running out to the page edge(s) */
.hero-text::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -100vw; right: -100vw; background: linear-gradient(to bottom, rgba(255, 255, 255, .9) 75%, rgba(255, 255, 255, 0)); }
.hero h1 { color: var(--navy); margin-top: 3rem; font-size: clamp(1.75rem, 1.1rem + 1.5vw, 2.5rem); font-weight: 700; }
.lead { font-size: 1.33rem; }
@media (min-width: 992px) {
  /* starts where the right two-thirds of the content column start, runs to the page edge */
  .hero-img { width: calc(50% + var(--cw) / 6); }
  .hero-text { width: 58.333%; padding-right: 5rem; }
  .hero-text::before { right: 0; background: linear-gradient(to right, rgba(255, 255, 255, .9) calc(100% - 8rem), rgba(255, 255, 255, 0)); }
}

/* hero entrance */
.js .hero-text > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.15s + var(--i, 0) * .15s); }
.js .hero-text > :nth-child(2) { --i: 1; }
.js .hero-text > :nth-child(3) { --i: 2; }
.js .hero-text::before { animation: fade 1s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes settle { from { scale: 1.14; } }

/* ---------- Services ---------- */
.services { padding: 12vh 0; }
.intro { max-width: 66.667%; font-size: 1.5rem; font-weight: lighter; }
.two-col { display: grid; gap: 0 3vw; }
.icon { display: block; width: 22px; height: 22px; margin-bottom: 1rem; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (max-width: 991px) { .intro { max-width: none; } }

/* ---------- Philosophy ---------- */
.philosophy { padding: 9vh 0; }
.philosophy .title { margin-bottom: 3rem; }
.philosophy-grid { display: grid; gap: 3rem; align-items: center; }
.collage { display: grid; gap: 3rem; }
.tile { background-size: cover; background-position: 0 0; }
.tile-a { aspect-ratio: 2 / 1; }
.tile-b { aspect-ratio: 1; }
.tile-c { aspect-ratio: 2 / 3; }
@media (min-width: 768px) {
  .collage { grid-template-columns: repeat(12, 1fr); gap: 3rem 1.5rem; }
  .tile-a { grid-column: 1 / span 11; }
  .tile-b { grid-column: 2 / span 5; }
  .tile-c { grid-column: 7 / span 6; }
}
@media (min-width: 992px) {
  .philosophy-grid { grid-template-columns: 6fr 4fr; justify-content: space-between; }
}

/* ---------- Storage ---------- */
.storage { padding: 12vh 0; }
.storage .intro-text { margin-bottom: 3rem; }
.storage-grid { display: grid; gap: 3rem; }
.storage-grid > *, .two-col > *, .philosophy-grid > * { min-width: 0; }
.split { display: flex; flex-direction: column; gap: 1.5rem; }
.split.reverse { flex-direction: column-reverse; }
.split > img { width: 100%; height: auto; }
.split-text p { margin: 0; }
.logo { display: block; width: auto; max-width: 160px; height: 40px; margin: 0 0 1rem; }
.logo-right { margin-left: auto; }

/* ---------- Gallery pop-up ---------- */
.split > img[data-gallery] { cursor: zoom-in; transition: scale .3s ease; }
.split > img[data-gallery]:hover { scale: 1.03; }
.split > img[data-gallery]:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
body.g-open { overflow: hidden; }
.gallery { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.gallery[open] { display: flex; align-items: center; justify-content: center; }
.gallery::backdrop { background: rgba(21, 21, 21, .92); }
.g-img { max-width: min(92vw, 1600px); max-height: 82vh; width: auto; height: auto; object-fit: contain; -webkit-user-select: none; user-select: none; touch-action: pan-y; }
.g-btn { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; font: 300 2rem/1 'Inter', sans-serif; color: #fff; background: rgba(255, 255, 255, .12); border: 0; border-radius: 50%; cursor: pointer; transition: background .2s, scale .2s ease; }
.g-btn:hover, .g-btn:focus-visible { background: rgba(255, 255, 255, .3); }
.g-btn:hover { scale: 1.1; }
.g-close { top: 1rem; right: 1rem; }
.g-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.g-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.g-count { position: absolute; bottom: 1rem; left: 0; right: 0; margin: 0; text-align: center; font-size: .875rem; }
.gallery.single .g-prev, .gallery.single .g-next, .gallery.single .g-count { display: none; }
@media (min-width: 576px) {
  .split, .split.reverse { flex-direction: row; align-items: center; }
  .split > img { flex: 5 1 0; width: 0; min-width: 0; }
  .split > .split-text { flex: 7 1 0; min-width: 0; }
}
@media (min-width: 992px) { .storage-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* ---------- Contact form + WhatsApp ---------- */
.form { display: grid; gap: 1.25rem; max-width: 720px; }
.field label { display: block; margin-bottom: .35rem; font-weight: 500; }
.field input, .field textarea { width: 100%; padding: .75rem .9rem; font: inherit; color: var(--text); background: #fff; border: 1px solid #adb5bd; border-radius: 4px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 21, 21, .15); }
.field textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.btn { justify-self: start; padding: .8rem 2rem; font: inherit; font-weight: 500; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 4px; cursor: pointer; transition: background .2s, color .2s, scale .2s ease; }
.btn:hover { color: var(--accent); background: #fff; scale: 1.04; }
.btn:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 0; padding: .75rem 1rem; background: var(--grey); border-left: 4px solid var(--ink); }
.form-status[hidden] { display: none; }
.form-status[data-state="err"] { border-color: #b02a37; }
.wa { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1020; display: flex; align-items: center; gap: .6rem; padding: .8rem 1.1rem; color: #fff; font-size: .9rem; font-weight: 500; text-decoration: none; background: var(--ink); border-radius: 999px; border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 .5rem 1.5rem rgba(21, 21, 21, .35); transition: transform .2s, scale .2s ease; }
.wa:hover { transform: translateY(-3px); scale: 1.05; }
.wa svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 575px) {
  .wa { padding: .9rem; }
  .wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- Footer ---------- */
footer { color: #fff; background: var(--navy); font-size: .875em; }
footer a { color: #fff; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat, linear-gradient(rgba(255, 255, 255, .45), rgba(255, 255, 255, .45)) 0 100% / 100% 1px no-repeat; transition: background-size .3s ease; }
footer a:hover { background-size: 100% 2px, 100% 1px; }
footer abbr { text-decoration: none; }
.footer-form .title { color: #fff; }
.form-status { color: var(--text); }
.footer-grid { display: grid; gap: 2.5rem; padding: 3rem; border-top: 1px solid rgba(255, 255, 255, .15); }
.footer-form .title { margin-bottom: .75rem; font-size: 1.5rem; }
.footer-logo { display: block; width: 200px; margin-bottom: 1.5rem; }
.footer-info strong { font-size: medium; font-weight: 500; }
.footer-info address { margin-top: .5rem; font-size: smaller; }
@media (min-width: 992px) {
  .footer-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; gap: 3rem; }
  .footer-side { text-align: right; }
  .footer-logo { margin-left: auto; }
}

/* map */
.footer-map { padding: 0 3rem 3rem; }
.footer-map iframe { display: block; width: 100%; height: clamp(260px, 35vw, 380px); border: 0; background: #dee2e6; }
.footer-map a { display: inline-block; margin-top: .75rem; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .8s ease, transform .8s ease; transition-delay: var(--delay, 0s); }
.js [data-reveal="up"]    { transform: translateY(100px); }
.js [data-reveal="down"]  { transform: translateY(-100px); }
.js [data-reveal="left"]  { transform: translateX(100px); }
.js [data-reveal="right"] { transform: translateX(-100px); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .hero-text > *, .js .hero-text::before, .js .hero-img::before { animation: none; }
  .js .title::after { width: 4rem; transition: none; }
  .btn:hover, .wa:hover, .g-btn:hover, .split > img[data-gallery]:hover { scale: none; }
}
