:root {
  --navy: #062f46;
  --navy-deep: #021e2e;
  --blue: #0878bd;
  --blue-bright: #0e91d0;
  --foam: #eaf7fb;
  --sand: #f5f0e8;
  --paper: #fffdfa;
  --ink: #102a36;
  --muted: #64747b;
  --line: rgba(16, 42, 54, .14);
  --shell: min(1180px, calc(100% - 40px));
  --radius: 22px;
  --shadow: 0 22px 60px rgba(3, 36, 54, .15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.section { padding: 112px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px; background: white; color: var(--navy); transform: translateY(-150%); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 900px; margin-bottom: 24px; color: white; font-size: clamp(3.25rem, 7.4vw, 6.9rem); font-weight: 660; }
h1 em { color: #9fe1f4; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h2 { margin-bottom: 25px; font-size: clamp(2.35rem, 4.8vw, 4.65rem); font-weight: 650; }
h3 { font-size: 1.24rem; }
.eyebrow { margin-bottom: 18px; color: #9fe1f4; font-size: .76rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.blue { color: var(--blue); }
.eyebrow.light { color: #a8e4f4; }
.lead { font-size: clamp(1.16rem, 2vw, 1.42rem); line-height: 1.55; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  color: white;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { background: rgba(2, 30, 46, .94); box-shadow: 0 8px 30px rgba(0, 0, 0, .18); backdrop-filter: blur(14px); }
.header-inner { display: flex; min-height: 104px; align-items: center; justify-content: space-between; gap: 32px; padding: 18px 0 10px; }
.brand { width: 220px; overflow: hidden; border-radius: 3px; }
.brand img { width: 100%; height: auto; }
.main-nav { display: flex; align-items: center; gap: 29px; font-size: .91rem; font-weight: 650; }
.main-nav a { opacity: .82; transition: opacity .2s ease, color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { opacity: 1; color: #9fe1f4; }
.main-nav .nav-cta { padding: 10px 18px; border: 1px solid rgba(255,255,255,.46); border-radius: 999px; opacity: 1; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 9px; border: 0; background: transparent; color: white; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

.hero { position: relative; display: grid; min-height: 790px; height: 100svh; max-height: 980px; align-items: center; overflow: hidden; background: var(--navy-deep); }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { background-image: url("assets/hero.jpg"); background-position: center; background-size: cover; transform: scale(1.02); }
.hero-shade { background: linear-gradient(90deg, rgba(2, 27, 42, .94) 0%, rgba(3, 39, 58, .7) 48%, rgba(3, 39, 58, .15) 100%), linear-gradient(0deg, rgba(2, 30, 46, .54), transparent 48%); }
.hero-content { position: relative; z-index: 2; padding: 130px 0 150px; }
.hero-copy { max-width: 650px; margin-bottom: 35px; color: rgba(255,255,255,.78); font-size: clamp(1.08rem, 1.8vw, 1.32rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 24px; border-radius: 999px; font-weight: 720; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: white; color: var(--navy); }
.button-ghost { border: 1px solid rgba(255,255,255,.48); color: white; }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.hero-facts { position: absolute; z-index: 3; right: 0; bottom: 0; display: grid; width: min(720px, 62vw); grid-template-columns: repeat(3, 1fr); background: rgba(6, 47, 70, .94); color: white; backdrop-filter: blur(12px); }
.hero-facts div { padding: 23px 27px; border-left: 1px solid rgba(255,255,255,.13); }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { font-size: .95rem; }
.hero-facts span { margin-top: 3px; color: rgba(255,255,255,.6); font-size: .77rem; }

.intro { background: var(--sand); overflow: hidden; }
.intro-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px 90px; }
.section-heading h2 { max-width: 530px; }
.intro-copy { max-width: 620px; padding-top: 40px; }
.intro-copy > p:not(.lead) { color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--blue); font-weight: 750; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.history-card { position: relative; grid-column: 1 / -1; margin: 55px 0 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.history-card img { width: 100%; height: 470px; object-fit: cover; filter: saturate(.78); }
.history-card figcaption { position: absolute; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 12px; background: rgba(255,255,255,.93); font-size: .88rem; backdrop-filter: blur(8px); }
.history-card figcaption span { color: var(--blue); font-size: 1.45rem; font-weight: 800; }

.products { background: var(--paper); }
.section-top { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 80px; margin-bottom: 52px; }
.section-top h2 { margin-bottom: 0; }
.section-top > p { max-width: 530px; margin-bottom: 8px; color: var(--muted); }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 9px; margin: -18px 0 30px; }
.catalog-filters button { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.catalog-filters button:hover, .catalog-filters button:focus-visible { border-color: rgba(8,120,189,.55); color: var(--blue); }
.catalog-filters button.is-active { border-color: var(--navy); background: var(--navy); color: white; }
.catalog-filters span { margin-left: 5px; opacity: .6; font-size: .78rem; }
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.product-card { position: relative; min-height: 280px; padding: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; transition: transform .25s ease, box-shadow .25s ease; }
.product-card[hidden] { display: none; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(4, 44, 64, .1); }
.product-card img { width: 100%; aspect-ratio: 1; margin-bottom: 18px; object-fit: cover; image-rendering: auto; border-radius: 12px; }
.product-card h3 { margin-bottom: 7px; }
.product-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.product-note { max-width: 900px; margin: 36px auto 0; color: var(--muted); text-align: center; }

.process { padding: 0; background: var(--navy); color: white; }
.process-grid { display: grid; width: 100%; max-width: none; grid-template-columns: 1.15fr .85fr; }
.process-photo { position: relative; min-height: 720px; }
.process-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-label { position: absolute; bottom: 24px; left: 24px; padding: 9px 13px; border-radius: 8px; background: rgba(2,30,46,.87); font-size: .76rem; }
.process-content { display: flex; flex-direction: column; justify-content: center; padding: 90px clamp(35px, 7vw, 115px); }
.process-content > p:not(.eyebrow) { max-width: 580px; color: rgba(255,255,255,.68); }
.process-list { display: grid; gap: 0; margin: 30px 0 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 45px 1fr; gap: 17px; padding: 21px 0; border-top: 1px solid rgba(255,255,255,.16); }
.process-list li > span { color: #83d7ef; font-size: .76rem; font-weight: 800; }
.process-list strong { display: block; margin-bottom: 3px; }
.process-list p { margin: 0; color: rgba(255,255,255,.58); font-size: .9rem; }

.distribution { background: var(--foam); }
.distribution-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 9vw; }
.distribution-copy .lead { color: var(--muted); }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 31px; }
.service-tags span { padding: 7px 12px; border: 1px solid rgba(8,120,189,.23); border-radius: 999px; color: var(--blue); font-size: .78rem; font-weight: 700; }
.distribution-gallery { position: relative; padding: 0 70px 80px 0; }
.distribution-gallery img { object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery-main { width: 100%; aspect-ratio: 1; }
.gallery-small { position: absolute; right: 0; bottom: 0; width: 47%; aspect-ratio: 1.2; border: 7px solid var(--foam); }

.contact { background: var(--paper); }
.contact-card { --contact-pad: clamp(40px, 7vw, 90px); display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px 90px; padding: var(--contact-pad); overflow: hidden; border-radius: 28px; background: var(--navy-deep); color: white; box-shadow: var(--shadow); }
.contact-heading p:not(.eyebrow) { max-width: 540px; color: rgba(255,255,255,.65); }
.contact-details { display: grid; }
.contact-details a { display: block; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.contact-details span, .contact-details strong { display: block; }
.contact-details span { margin-bottom: 3px; color: #93d9ed; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-details strong { font-size: 1.08rem; font-weight: 600; }
.contact-details a:hover strong { color: #9fe1f4; }
.hours { grid-column: 1 / -1; display: flex; align-items: center; gap: 30px; padding-top: 27px; border-top: 1px solid rgba(255,255,255,.16); }
.hours > span { margin-right: auto; color: #93d9ed; font-size: .875rem; font-weight: 700; }
.hours p { margin: 0; color: rgba(255,255,255,.74); font-size: .86rem; }
.hours strong { display: block; color: white; }

.contact-map { grid-column: 1 / -1; margin: 14px calc(-1 * var(--contact-pad)) calc(-1 * var(--contact-pad)); background: #07354b; border-top: 1px solid rgba(255,255,255,.16); }
.map-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px var(--contact-pad); }
.map-heading .eyebrow { margin-bottom: 8px; }
.map-heading h3 { margin-bottom: 6px; font-size: 1.4rem; }
.map-heading p:last-child { margin: 0; color: rgba(255,255,255,.62); font-size: .9rem; }
.map-link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; color: white; font-size: .86rem; font-weight: 750; transition: background .2s ease, color .2s ease; }
.map-link:hover { background: white; color: var(--navy); }
.map-frame { display: block; width: 100%; height: 420px; border: 0; border-top: 1px solid rgba(255,255,255,.16); }

.grant { padding-top: 0; background: var(--paper); }
.grant-card { display: grid; grid-template-columns: 1.08fr .92fr; align-items: stretch; overflow: hidden; border: 1px solid rgba(8,120,189,.18); border-radius: 26px; background: var(--foam); }
.grant-copy { padding: clamp(35px, 6vw, 72px); }
.grant-copy h2 { max-width: 650px; margin-bottom: 20px; font-size: clamp(2rem, 4vw, 3.65rem); }
.grant-copy > p:not(.eyebrow) { max-width: 690px; color: var(--muted); }
.grant-result { padding-top: 17px; border-top: 1px solid rgba(8,120,189,.18); }
.grant-result strong { color: var(--ink); }
.grant-partners { display: flex; flex-direction: column; justify-content: center; padding: clamp(35px, 5vw, 65px); background: white; }
.grant-partners > p { max-width: 500px; margin-bottom: 34px; color: var(--muted); font-size: .9rem; }
.partner-logos { display: grid; gap: 34px; }
.partner-logos img { width: auto; max-width: 310px; max-height: 78px; object-fit: contain; object-position: left center; }
.partner-logos .inega-logo { filter: brightness(0); }

.site-footer { padding: 70px 0 25px; background: var(--sand); }
.footer-top { display: flex; justify-content: space-between; gap: 70px; padding-bottom: 58px; }
.footer-brand { width: 260px; align-self: flex-start; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 60px; }
.footer-nav div { display: flex; flex-direction: column; gap: 9px; }
.footer-nav strong { margin-bottom: 5px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-nav a { color: var(--muted); font-size: .9rem; }
.footer-nav a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.footer-bottom p { margin: 0; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  :root { --shell: min(100% - 32px, 760px); }
  .section { padding: 88px 0; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 76px; right: 16px; left: 16px; display: none; padding: 21px; border-radius: 14px; background: var(--navy-deep); box-shadow: var(--shadow); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 8px 6px; }
  .main-nav .nav-cta { text-align: center; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-inner { min-height: 94px; padding: 16px 0 9px; }
  .brand { width: 190px; }
  .hero { min-height: 720px; height: auto; }
  .hero-content { padding: 150px 0 175px; }
  .hero-facts { width: 100%; }
  .intro-grid, .section-top, .distribution-grid, .contact-card { grid-template-columns: 1fr; }
  .intro-copy { padding-top: 0; }
  .history-card img { height: 390px; }
  .section-top { gap: 15px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .process-photo { min-height: 480px; }
  .process-content { padding: 75px max(24px, calc((100vw - min(100% - 32px, 760px)) / 2)); }
  .distribution-grid { gap: 70px; }
  .contact-card { gap: 35px; }
  .contact-map { margin-top: 8px; }
  .map-frame { height: 380px; }
  .grant-card { grid-template-columns: 1fr; }
  .partner-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
  .partner-logos img { max-width: 100%; }
  .hours { flex-wrap: wrap; }
  .hours > span { flex-basis: 100%; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 28px); }
  .header-inner { min-height: 84px; padding: 14px 0 8px; }
  .brand { width: 165px; }
  .hero { min-height: 720px; }
  .hero-media { background-position: 58% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(2,27,42,.95), rgba(3,39,58,.52)), linear-gradient(0deg, rgba(2,30,46,.8), transparent 60%); }
  .hero-content { padding: 130px 0 230px; }
  h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero-actions { display: grid; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 17px; border-top: 1px solid rgba(255,255,255,.12); border-left: 0; }
  .hero-facts span { margin: 0; }
  .history-card { margin-top: 28px; }
  .history-card img { height: 280px; }
  .history-card figcaption { right: 10px; bottom: 10px; left: 10px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card { min-height: 235px; padding: 12px; }
  .product-card img { margin-bottom: 14px; }
  .product-card h3 { font-size: 1rem; }
  .product-card p { font-size: .76rem; }
  .process-photo { min-height: 340px; }
  .process-content { padding: 62px 20px; }
  .distribution-gallery { padding: 0 45px 55px 0; }
  .contact { padding-inline: 0; }
  .contact-card { --contact-pad: 24px; width: calc(100% - 20px); padding: 45px var(--contact-pad) var(--contact-pad); border-radius: 20px; }
  .map-heading { align-items: flex-start; flex-direction: column; padding: 24px; }
  .map-link { width: 100%; justify-content: center; }
  .map-frame { height: 320px; }
  .catalog-filters { margin-top: -5px; }
  .catalog-filters button { flex: 1 1 calc(50% - 9px); }
  .grant-card { width: calc(100% - 20px); border-radius: 20px; }
  .grant-copy, .grant-partners { padding: 35px 24px; }
  .partner-logos { grid-template-columns: 1fr; gap: 24px; }
  .partner-logos img { max-width: 260px; max-height: 66px; }
  .hours { display: grid; gap: 16px; }
  .footer-top, .footer-bottom { flex-direction: column; }
  .footer-nav { gap: 30px; }
  .footer-brand { width: 220px; }
}

@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; }
  .reveal { opacity: 1; transform: none; }
}
