/* ===================================================================
   Polar Corporation — site stylesheet
   Single stylesheet, no framework, no external requests.
   Palette and metrics carried over from the previous site.
   =================================================================== */

:root {
  /* Brand */
  --navy-900: #000e30;
  --navy-800: #001a33;
  --navy-700: #003366;
  --accent:   #4db8e8;
  --link:     #0073a8;
  --link-hover: #005a85;

  /* Neutrals */
  --ink:      #1c2430;
  --body:     #555f6b;
  --muted:    #6b7580;
  --rule:     #e2e6ea;
  --surface:  #ffffff;
  --surface-2:#f4f6f8;
  --tag-bg:   #e8f4f8;

  /* Status */
  --ok-bg: #e8f5e9;
  --ok-fg: #2e7d32;

  /* Type — swap these two for self-hosted Montserrat / Open Sans if wanted */
  --font-head: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Metrics */
  --header-h: 96px;
  --wrap: 1200px;
  --radius: 12px;
  --shadow: 0 4px 15px rgba(0, 0, 0, .1);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, .14);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  padding-top: var(--header-h);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--navy-700);
  line-height: 1.22;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .4em; }

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; transition: color .2s ease; }
a:hover { color: var(--link-hover); }

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --- Skip link ---------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--navy-800); color: #fff; padding: 12px 20px;
  text-decoration: none; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- Layout ------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tint { background: var(--surface-2); }
.section__head { max-width: 780px; margin: 0 auto 44px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

/* --- Header ------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 9999;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  box-shadow: 0 2px 15px rgba(0, 0, 0, .18);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; min-height: var(--header-h);
}

.brand { display: flex; flex-direction: column; justify-content: center; text-decoration: none; }
.brand__name {
  font-family: var(--font-head);
  font-size: 1.6rem; font-weight: 700; color: #fff;
  letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.2;
  transition: color .3s ease;
}
.brand:hover .brand__name { color: var(--accent); }
.brand__tagline {
  font-size: .8rem; color: rgba(255, 255, 255, .75);
  letter-spacing: .8px; font-style: italic; line-height: 1.3;
}

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 6px; padding: 9px 11px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a {
  display: block; color: #fff; text-decoration: none;
  padding: 11px 15px; border-radius: 6px;
  font-weight: 500; font-size: .98rem;
  transition: background .25s ease, transform .25s ease;
}
.nav a:hover { background: rgba(255, 255, 255, .15); color: #fff; transform: translateY(-2px); }
.nav a[aria-current="page"] { background: rgba(77, 184, 232, .22); color: #fff; }

/* --- Buttons ------------------------------------------------------ */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 30px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn--primary { background: var(--accent); color: var(--navy-800); }
.btn--primary:hover { background: #6cc6ee; color: var(--navy-800); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(77, 184, 232, .35); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; transform: translateY(-2px); }
.btn--solid { background: var(--navy-700); color: #fff; }
.btn--solid:hover { background: var(--navy-800); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* --- Hero --------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  color: #fff; padding: 96px 0; text-align: center;
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero__lede {
  max-width: 820px; margin: 0 auto 2em;
  font-size: 1.15rem; color: rgba(255, 255, 255, .88);
}
.hero__kicker {
  display: block; font-family: var(--font-head); font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  font-size: .82rem; color: var(--accent); margin-bottom: 1.2em;
}
.hero--compact { padding: 64px 0; }
.hero--compact h1 { margin-bottom: 0; }
.hero--compact .hero__lede { margin-bottom: 0; margin-top: 1em; }

/* --- Stat strip --------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.stat { text-align: center; padding: 28px 18px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat__value { font-family: var(--font-head); font-size: 2.3rem; font-weight: 700; color: var(--navy-700); line-height: 1.1; }
.stat__label { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.hero .stats .stat { background: rgba(255, 255, 255, .07); box-shadow: none; border: 1px solid rgba(255, 255, 255, .16); }
.hero .stat__value { color: var(--accent); }
.hero .stat__label { color: rgba(255, 255, 255, .8); }

/* --- Cards -------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.cards--tight { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: .5em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card__icon { font-size: 1.8rem; line-height: 1; margin-bottom: 14px; display: block; }
.card--flat { box-shadow: none; border: 1px solid var(--rule); }
.card--flat:hover { transform: none; box-shadow: var(--shadow); }

/* Checklist inside cards */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: .55em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 8px; height: 14px; border: solid var(--accent);
  border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px);
}

/* --- Tags --------------------------------------------------------- */
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag {
  background: var(--tag-bg); color: var(--link);
  padding: 5px 13px; border-radius: 14px;
  font-size: .8rem; font-weight: 600; letter-spacing: .2px;
}

/* --- Gallery ------------------------------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 30px; }
.tile {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile__media { position: relative; height: 260px; background: var(--surface-2); overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile__body { padding: 24px; }
.tile__body h3 { margin-bottom: .4em; }
.tile__body p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }

/* Placeholder for photography not yet supplied */
.tile__media--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  color: rgba(255, 255, 255, .5); font-size: .85rem;
  text-align: center; padding: 20px; letter-spacing: .5px;
}

/* --- Spec lists --------------------------------------------------- */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.spec { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; }
.spec h3 { font-size: 1.05rem; color: var(--navy-700); margin-bottom: .7em; }
.spec ul { list-style: none; padding: 0; margin: 0; }
.spec li { padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.spec li:last-child { border-bottom: 0; }

/* Definition-style rows (identifiers) */
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: .96rem; }
.dl dt { font-weight: 600; color: var(--navy-700); }
.dl dd { margin: 0; }

/* --- Prose (policy / legal pages) --------------------------------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose__meta { color: var(--muted); font-size: .92rem; border-left: 3px solid var(--accent); padding-left: 14px; margin-bottom: 2em; }

/* --- Callout ------------------------------------------------------ */
.callout {
  background: var(--surface-2); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 28px; margin: 0 0 1.5em;
}
.callout :last-child { margin-bottom: 0; }
.callout--ok { background: var(--ok-bg); border-left-color: var(--ok-fg); }
.callout--ok strong { color: var(--ok-fg); }

/* --- CTA band ----------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  color: #fff; text-align: center; padding: 72px 0;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .88); max-width: 620px; margin: 0 auto 1.8em; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Contact ------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: start; }
.contact-card { text-align: center; }
.contact-card .card__icon { font-size: 2rem; }
.contact-card a { font-size: 1.15rem; font-weight: 600; text-decoration: none; }
.contact-card small { display: block; color: var(--muted); margin-top: 6px; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--navy-700); font-size: .94rem; }
.field .req { color: #c62828; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  padding: 12px 14px; border: 1px solid #ccd3da; border-radius: 8px;
  background: #fff; width: 100%; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77, 184, 232, .25);
}
.field textarea { min-height: 150px; resize: vertical; }
.form__note { font-size: .86rem; color: var(--muted); margin: 0; }
/* Honeypot — hidden from people, visible to naive bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formmsg { padding: 16px 20px; border-radius: 8px; margin-bottom: 20px; font-size: .95rem; }
.formmsg--ok { background: var(--ok-bg); color: var(--ok-fg); border: 1px solid #a5d6a7; }
.formmsg--err { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* --- Footer ------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .78); padding: 64px 0 0; font-size: .95rem; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 1.1em; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .6em; }
.footer__brand { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: #fff; letter-spacing: 1.2px; text-transform: uppercase; }
.footer__tagline { font-style: italic; color: rgba(255, 255, 255, .6); font-size: .88rem; margin-bottom: 1.3em; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: .88rem; color: rgba(255, 255, 255, .6);
}
.footer-bottom ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }

/* --- Utilities ---------------------------------------------------- */
.center { text-align: center; }
.mb0 { margin-bottom: 0; }
.mt2 { margin-top: 2rem; }
.lede { font-size: 1.1rem; color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Decorative emoji used as section markers */
.ico { font-style: normal; margin-right: .35em; }

/* --- Responsive --------------------------------------------------- */
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 820px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: var(--header-h) 0 auto 0;
    background: var(--navy-800);
    border-top: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .3);
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 14px 18px; }
  .nav a { padding: 14px 12px; border-radius: 8px; }
  .nav a:hover { transform: none; }
  .brand__name { font-size: 1.25rem; letter-spacing: 1px; }
  .brand__tagline { font-size: .72rem; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  /* The tagline wraps to two lines at this width and crowds the fixed header. */
  .brand__tagline { display: none; }
  .wrap { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .gallery { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .btn { width: 100%; text-align: center; }
  .cta__actions .btn { width: auto; }
}

/* --- Print (code of conduct, PO terms, quality policy) ------------- */
@media print {
  body { padding-top: 0; font-size: 11.5pt; color: #000; }
  .site-header, .site-footer, .cta, .skip-link, .nav-toggle, .btn { display: none !important; }
  .hero { background: none; color: #000; padding: 0 0 18pt; text-align: left; }
  .hero h1, .hero__lede { color: #000; }
  .section { padding: 0; }
  .prose { max-width: none; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
}
