/* Eternal Overseas — consolidated stylesheet (rebuilt from the old per-component CSS). */

@font-face {
  font-family: "Saans";
  src: url(../fonts/Saans-Medium.woff2) format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --bg: #faf8f3;
  --ink: #141414;
  --green: #3be898;
  --purple: #c699ff;
  --blue: #81bcf9;
  --red: #ff8856;
  --dark: #111;
  --line: #e4ded2;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Saans, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }

h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); font-weight: 600; line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem); font-weight: 600; margin: 2rem 0 .75rem; }
h3 { font-size: 1.15rem; font-weight: 600; }
p + p { margin-top: 1rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.section-dark { background: var(--dark); color: #fff; }
.section-dark a { color: var(--blue); }
.section-accent {
  background: linear-gradient(125deg, #faf8f3 20%, #ffe1cd 55%, #ffd0dc 75%, #d8c9ff 90%, #bcd4ff 100%);
}
.section-lede { font-size: 1.1rem; opacity: .8; margin-top: .5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; opacity: .65; }

.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: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: .6rem 1rem; z-index: 2000;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--ink); color: #fff; text-decoration: none;
  padding: .8rem 1.5rem; border-radius: 100px; font-weight: 500; border: 1px solid var(--ink);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.section-dark .btn-ghost { color: #fff; border-color: #fff; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .6rem clamp(1rem, 4vw, 2.5rem);
  background: #fff; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 600; text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a { text-decoration: none; font-size: .98rem; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: .5rem 1rem; border-radius: 100px;
}
.nav-toggle-btn { display: none; }

@media (max-width: 860px) {
  .nav-toggle-btn {
    display: flex; flex-direction: column; gap: 5px; padding: 10px; cursor: pointer;
    background: var(--bg); border-radius: 10px;
  }
  .nav-toggle-btn span { width: 22px; height: 2px; background: var(--ink); }
  .site-nav {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav a { padding: .9rem clamp(1rem, 4vw, 2.5rem); border-top: 1px solid var(--line); }
  .nav-cta { margin: .8rem clamp(1rem, 4vw, 2.5rem); text-align: center; }
  .nav-toggle:checked ~ .site-nav { max-height: 90vh; }
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(125deg,
    hsl(43 41% 97%) 28%, hsl(24 100% 90%) 60%, hsl(334 100% 88%) 78%,
    hsl(288 77% 85%) 88%, hsl(222 100% 86%) 100%);
  border-radius: 0 0 42px 42px;
  padding: clamp(2.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem) 0;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; }
.hero h1 { font-weight: 300; max-width: 20ch; }
.hero .lede { font-size: 1.15rem; margin-top: 1.25rem; max-width: 52ch; }
.rotator { display: inline-grid; vertical-align: bottom; font-weight: 600; }
.rotator > span {
  grid-area: 1 / 1; padding: 0 .5rem; border-radius: 999px; color: var(--ink);
  opacity: 0; animation: rotate 9s infinite;
}
.rotator > span:nth-child(1) { background: var(--purple); }
.rotator > span:nth-child(2) { background: var(--red); animation-delay: 3s; }
.rotator > span:nth-child(3) { background: var(--blue); animation-delay: 6s; }
@keyframes rotate {
  0%, 28% { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-.4em); }
}
@media (prefers-reduced-motion: reduce) {
  .rotator > span { animation: none; }
  .rotator > span:nth-child(1) { opacity: 1; }
  .rotator > span:nth-child(2), .rotator > span:nth-child(3) { display: none; }
}
.hero-strip {
  display: flex; gap: 1rem; margin-top: clamp(2rem, 5vw, 3.5rem);
  overflow-x: auto; padding-bottom: 2rem; scrollbar-width: none;
}
.hero-strip::-webkit-scrollbar { display: none; }
.hero-strip img {
  flex: 0 0 260px; height: 190px; object-fit: cover; border-radius: 18px;
}

/* ---------- cards ---------- */
.card-grid {
  list-style: none; display: grid; gap: 1.5rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card { border: 1px solid var(--ink); border-radius: 16px; overflow: hidden; background: #fff; }
.card a { text-decoration: none; display: block; height: 100%; }
.card img { height: 180px; object-fit: cover; width: 100%; background: #fef4e2; }
.card h2, .card h3 { padding: 1rem 1rem 0; }
.card p { padding: .35rem 1rem 1rem; opacity: .8; font-size: .95rem; }
.card-link { padding: 0 1rem 1rem; display: block; font-weight: 500; }
.card:hover { transform: translateY(-3px); transition: transform .2s ease; }

.stat-row { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-around; text-align: center; }
.stat-row strong { display: block; font-size: 2rem; }
.stat-row span { opacity: .7; }

/* ---------- prose ---------- */
.prose { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.prose .container > p, .prose .container > ul { max-width: 72ch; }
.prose p { text-align: justify; }
.prose ul { margin: 1rem 0 1rem 1.25rem; }
.prose li { margin: .4rem 0; }

/* Give every ## section clear separation — one quiet, consistent rule, not
   a different colour per heading. */
.prose h2 {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 2px solid var(--line);
}

/* First bullet list in a page's copy (the "key features" list on every
   product page) reads as a card grid instead of a plain bulleted column. */
.prose > ul:first-of-type,
.container.prose > ul:first-of-type {
  list-style: none; margin: 1.5rem 0; padding: 0; max-width: none;
  display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.prose > ul:first-of-type li,
.container.prose > ul:first-of-type li {
  margin: 0; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; font-size: .95rem;
}
.prose > ul:first-of-type li strong { display: block; margin-bottom: .2rem; }

/* ---------- prose tables & FAQ ---------- */
.prose table {
  border-collapse: collapse; width: 100%; margin: 1rem 0 1.5rem; font-size: .95rem;
  display: block; overflow-x: auto;
}
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .8rem; text-align: left; vertical-align: top; }
.prose th { background: #fff; font-weight: 600; }
.prose thead th { white-space: nowrap; }

.faq { margin: 1rem 0 1.5rem; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: .5rem 1rem; margin: .5rem 0;
}
.faq summary { font-weight: 600; cursor: pointer; padding: .4rem 0; }
.faq details[open] summary { margin-bottom: .4rem; }
.faq p { text-align: left; margin: 0 0 .4rem; }

/* ---------- about page ---------- */
.about-stats { margin: 2rem 0 1rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 20px; }

.split-block {
  display: grid; gap: 2rem; align-items: center; margin-top: 3rem;
  grid-template-columns: minmax(240px, 380px) 1fr;
}
.split-block.reverse { grid-template-columns: 1fr minmax(240px, 380px); }
.split-block.reverse img { order: 2; }
.split-block img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; border-radius: 20px; background: #fef4e2; }
.split-block h2 { margin-top: 0; border-top: none; padding-top: 0; }
@media (max-width: 760px) {
  .split-block, .split-block.reverse { grid-template-columns: 1fr; }
  .split-block.reverse img { order: 0; }
}

.icon-card-grid {
  list-style: none; margin: 1.5rem 0; padding: 0; max-width: none;
  display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.icon-card-grid li {
  margin: 0; padding: 1.4rem; background: #fff; border: 1px solid var(--line);
  border-radius: 16px;
}
.icon-card-grid h3 { font-size: 1.02rem; margin: .8rem 0 .35rem; }
.icon-card-grid p { font-size: .92rem; text-align: left; opacity: .8; margin: 0; }
.ic-icon, .icon-list svg, .leader-grid svg {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 9px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink); flex-shrink: 0;
}

.icon-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .8rem; }
.icon-list li { margin: 0; display: flex; align-items: center; gap: .9rem; }
.icon-list span { font-size: .98rem; }

.cert-grid { list-style: none; margin: 1.5rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.cert-grid li { margin: 0; text-align: center; }
.cert-grid img { border-radius: 12px; border: 1px solid var(--line); object-fit: cover; width: 260px; height: 180px; }
.cert-grid span { display: block; margin-top: .5rem; font-weight: 600; font-size: .9rem; }

.leader-grid { list-style: none; margin: 1.25rem 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.leader-grid li {
  margin: 0; display: flex; align-items: center; gap: .7rem; padding: .7rem 1.2rem .7rem .7rem;
  background: #fff; border: 1px solid var(--line); border-radius: 100px; font-weight: 500;
}
.leader-grid svg { width: 34px; height: 34px; padding: 7px; }

/* ---------- breadcrumb ---------- */
.crumbs { font-size: .85rem; opacity: .7; margin-bottom: .75rem; }
.crumbs a { text-decoration: none; }
.crumbs span { margin: 0 .3rem; }

/* ---------- product detail hero ---------- */
.detail-hero {
  width: 100%; max-height: 420px; object-fit: cover; border-radius: 20px;
  margin: 1.5rem 0; background: #fef4e2;
}

/* ---------- ranges / variant grid ---------- */
.ranges-head { margin-top: 2.5rem; }
.ranges-head h2 { margin-bottom: .25rem; }

.variant-grid {
  list-style: none; display: grid; gap: 1.25rem; margin: 1.5rem 0 2rem; align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.variant-card {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #fff; display: flex; flex-direction: column;
  transition: border-color .2s ease;
}
.variant-card:hover { border-color: #b9b2a2; }
.vc-image { aspect-ratio: 4 / 3; background: var(--bg); overflow: hidden; }
.vc-image img { width: 100%; height: 100%; object-fit: cover; }
.vc-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.vc-body h3 { font-size: 1rem; padding-bottom: .55rem; margin-bottom: .2rem; border-bottom: 1px solid var(--line); }

/* Some sizes carry 10+ finish options — a fixed-height scroll list keeps
   every card the same footprint instead of one card stretching the row. */
.vc-variants { list-style: none; max-height: 190px; overflow-y: auto; }
.vc-variants li { border-bottom: 1px solid var(--bg); }
.vc-variants li:last-child { border-bottom: none; }
.vc-variants li a {
  display: block; padding: .42rem 0; font-size: .86rem; color: var(--ink); text-decoration: none;
}
.vc-variants li a:hover { text-decoration: underline; }
.vc-body .btn-sm { align-self: flex-start; margin-top: .2rem; }

.link-grid {
  list-style: none; display: grid; gap: .5rem 1rem; margin: 1rem 0 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.link-grid a { text-decoration: none; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: block; }
.link-grid a:hover { border-color: var(--ink); }

.gallery-grid {
  list-style: none; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.gallery-grid img { border-radius: 14px; border: 3px solid #fff; height: 180px; object-fit: cover; width: 100%; }

/* ---------- export ---------- */
.export-hero { text-align: center; position: relative; overflow: hidden; }
.world-map { max-width: 1000px; margin: 2rem auto 0; opacity: .9; }

/* ---------- contact ---------- */
.contact-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .contact-layout { grid-template-columns: 360px 1fr; align-items: start; } }
.contact-info { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; }
.contact-info p { margin-top: 1rem; }
.contact-form {
  background: #fff; border: 1px solid var(--ink); border-radius: 16px; padding: 1.5rem;
  display: grid; gap: 1rem;
}
.contact-form label { display: grid; gap: .35rem; font-weight: 500; }
.contact-form input, .contact-form textarea {
  font: inherit; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.form-status { font-size: .95rem; }
.form-status.ok { color: #0a7d3d; }
.form-status.err { color: #b02a2a; }

/* ---------- calculator ---------- */
.calc-grid { display: grid; gap: 1.5rem; margin: 1.5rem 0; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.calc fieldset { border: 1px solid var(--ink); border-radius: 16px; padding: 1.25rem; display: grid; gap: 1rem; }
.calc legend { padding: 0 .5rem; font-weight: 600; }
.calc label { display: grid; gap: .35rem; font-weight: 500; }
.calc .row { display: flex; gap: .5rem; }
.calc input, .calc select { font: inherit; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); width: 100%; }
.calc-result { border: 1px solid var(--ink); border-radius: 16px; padding: 1.5rem; margin-top: 1rem; background: #fff; }
.calc-result strong { font-size: 1.2rem; }
.fineprint { font-size: .85rem; opacity: .65; margin-top: 1rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #fff; padding: 3rem clamp(1rem, 4vw, 2.5rem) 2rem; }
.footer-grid {
  max-width: var(--maxw); margin: 0 auto; display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.site-footer h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .75rem; }
.site-footer a { color: #cfe8ff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; }
.site-footer li { margin: .4rem 0; }
.footer-social a { word-break: break-all; }
.footer-credit { max-width: var(--maxw); margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid #333; font-size: .85rem; color: #999; text-align: center; }

/* ---------- gtranslate ---------- */
.gtranslate_wrapper { position: fixed; bottom: 12px; right: 12px; z-index: 9999; }
