/* ===== Theme ===== */
:root {
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --teal: #0ea5a4;
  --teal-d: #0b8584;
  --ink: #1b2533;
  --muted: #5d6b7e;
  --line: #e4e9f0;
  --bg-alt: #f4f7fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head: "Manrope", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0 0 0.5em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 92%); margin: 0 auto; }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--teal); color: #fff; padding: 14px 26px; border-radius: 999px; font-weight: 600; border: 2px solid var(--teal); transition: 0.2s; cursor: pointer; font: inherit; font-weight: 600; }
.btn:hover { background: var(--teal-d); border-color: var(--teal-d); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 0.92rem; }
.link-arrow { font-weight: 600; color: var(--teal); }
.link-arrow::after { content: " →"; transition: margin 0.2s; }
a:hover .link-arrow::after { margin-left: 4px; }

/* ===== Header ===== */
#site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: 0.25s; color: #fff; }
#site-header.scrolled, body:not([data-page="home"]) #site-header { background: rgba(255, 255, 255, 0.96); color: var(--navy); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 38px; height: 38px; color: var(--teal); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--head); font-size: 1.35rem; letter-spacing: 0.12em; }
.logo-text small { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.75; margin-top: 4px; }
.logo-light { color: #fff; }
.nav { display: flex; align-items: center; gap: 30px; font-weight: 500; }
.nav a:not(.btn) { position: relative; opacity: 0.9; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--teal); transition: 0.25s; }
.nav a:not(.btn):hover::after, .nav a.active::after { right: 0; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: 0.25s; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: slowzoom 20s ease-out forwards; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(11, 31, 58, 0.92) 0%, rgba(11, 31, 58, 0.65) 50%, rgba(11, 31, 58, 0.25) 100%); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p { font-size: 1.2rem; max-width: 600px; opacity: 0.9; margin-bottom: 2em; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ===== Stats ===== */
.stats-bar { position: relative; z-index: 3; margin-top: -60px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat { padding: 30px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--head); font-size: 2.2rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: 0.95rem; }

/* ===== Category cards ===== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; color: #fff; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.cat-card:hover img { transform: scale(1.06); }
.cat-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; background: linear-gradient(to top, rgba(11, 31, 58, 0.92), rgba(11, 31, 58, 0.1) 60%); }
.cat-overlay h3 { color: #fff; font-size: 1.35rem; }
.cat-overlay p { font-size: 0.93rem; opacity: 0.85; margin-bottom: 0.8em; }

/* ===== Product cards ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: 0.25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.15rem; }
.card-body p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); margin-bottom: 8px; }

/* ===== Why us ===== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.feature .icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(14, 165, 164, 0.1); color: var(--teal); display: grid; place-items: center; margin-bottom: 16px; }
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ===== Split / CTA ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.6em; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.cta { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 20px; padding: 64px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 0.3em; }
.cta p { opacity: 0.85; margin: 0; }

/* ===== Inner page hero ===== */
.page-hero { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; padding: 160px 0 72px; }
.page-hero.small { padding: 140px 0 56px; }
.page-hero h1 { color: #fff; }
.page-hero p { opacity: 0.85; max-width: 640px; font-size: 1.1rem; margin: 0; }
.crumbs { font-size: 0.9rem; opacity: 0.75; margin-bottom: 14px; }
.crumbs a:hover { text-decoration: underline; }

/* ===== Filters ===== */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filters button { font: inherit; font-weight: 500; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: 0.2s; color: var(--ink); }
.filters button:hover { border-color: var(--navy); }
.filters button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); position: sticky; top: 100px; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.chips li { background: rgba(14, 165, 164, 0.1); color: var(--teal-d); padding: 6px 14px; border-radius: 999px; font-size: 0.88rem; font-weight: 500; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.spec-table th { color: var(--muted); font-weight: 500; width: 42%; }
.product-detail .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.section-title { margin-bottom: 32px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-list span { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 16px; }
.form input, .form select, .form textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; transition: 0.2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.15); }
#map iframe { width: 100%; height: 300px; border: 0; border-radius: var(--radius); margin-top: 24px; }

/* ===== Credits ===== */
.credits-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.credits-table th, .credits-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.credits-table img { width: 90px; height: 64px; object-fit: cover; border-radius: 6px; }
.credits-table a { color: var(--teal-d); }

/* ===== Footer ===== */
#site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.8); padding: 72px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-grid a:not(.logo) { display: block; margin-bottom: 8px; opacity: 0.8; }
.footer-grid a:hover { opacity: 1; color: #fff; }
.footer-grid .muted { color: rgba(255, 255, 255, 0.6); margin-top: 16px; font-size: 0.93rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 48px; padding: 22px 0; font-size: 0.88rem; opacity: 0.7; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s, transform 0.6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero-bg { animation: none; } }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .cat-grid, .grid-4, .features { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .section { padding: 64px 0; }
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .nav { position: fixed; inset: 0; background: var(--navy); color: #fff; flex-direction: column; justify-content: center; gap: 28px; font-size: 1.3rem; transform: translateX(100%); transition: transform 0.3s; }
  .nav-open .nav { transform: none; }
  .nav-open #site-header { color: #fff; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .split, .product-detail, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .product-media img { position: static; }
  .cta { padding: 40px 28px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cat-grid, .grid-3, .grid-4, .features, .footer-grid { grid-template-columns: 1fr; }
  .cat-card { aspect-ratio: 4/3; }
}

/* ===== Form status, legal text ===== */
.form-status { margin: 14px 0 0; font-weight: 500; min-height: 1.4em; }
.form-status.ok { color: var(--teal-d); }
.form-status.err { color: #c0392b; }
.form-note { font-size: 0.85rem; margin: 10px 0 0; }
.form-note a { text-decoration: underline; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose a { color: var(--teal-d); text-decoration: underline; }
