/* PEWALL — shared stylesheet
   Navy / steel blue + orange accent. No build step. */

:root {
  --navy-950: #071018;
  --navy-900: #0b1c33;
  --navy-800: #122844;
  --navy-700: #1a3658;
  --steel-600: #2c5282;
  --steel-500: #3d6a9e;
  --steel-400: #5b8ab8;
  --steel-200: #b7c9db;
  --orange-600: #c2410c;
  --orange-500: #e85d04;
  --orange-400: #f97316;
  --orange-50: #fff4ed;
  --surface: #f4f6f8;
  --surface-2: #e8edf2;
  --line: #d0d8e0;
  --text: #122033;
  --text-muted: #5c6b7a;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(11, 28, 51, 0.08);
  --shadow-lg: 0 18px 40px rgba(11, 28, 51, 0.14);
  --radius: 10px;
  --header-h: 72px;
  --topbar-h: 36px;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Barlow", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--steel-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--orange-500); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy-900);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.05rem, 4.2vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 1em; padding-left: 1.15em; }

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 1000;
  background: var(--orange-500);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 0 0 6px 6px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ---------- Top bar & header ---------- */
.topbar {
  background: var(--navy-950);
  color: var(--steel-200);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(calc(100% - 40px), var(--max));
}
.topbar a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}
.topbar a:hover { color: var(--orange-400); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}
.logo-img {
  width: 56px;
  height: 56px;
  display: block;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  height: 2px;
  background: var(--navy-900);
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px 4px;
}
.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  color: var(--navy-800);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
}
.site-nav a:hover { color: var(--navy-900); background: var(--surface); }
.site-nav a.is-active { color: var(--orange-500); }
.site-nav .btn-nav,
.site-nav a.btn-nav.is-active {
  margin-left: 8px;
  background: var(--orange-500);
  color: var(--white);
  padding: 9px 16px;
}
.site-nav .btn-nav:hover,
.site-nav a.btn-nav.is-active:hover {
  background: var(--orange-600);
  color: var(--white);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange-500); color: var(--white); border-color: var(--orange-500); }
.btn-primary:hover { background: var(--orange-600); border-color: var(--orange-600); color: var(--white); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: var(--white); border-color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--steel-200);
}
.btn-outline:hover { border-color: var(--navy-800); color: var(--navy-900); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 70% at 85% 20%, rgba(61, 106, 158, 0.28), transparent 55%),
    linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 72px 0 80px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent 90%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-400);
  margin: 0 0 14px;
}
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero .lead {
  font-size: 1.12rem;
  color: var(--steel-200);
  max-width: 38em;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; min-height: 280px; }
.hero-visual svg { width: 100%; height: auto; }

.page-hero {
  background:
    radial-gradient(ellipse 60% 80% at 90% 0%, rgba(61, 106, 158, 0.25), transparent 55%),
    linear-gradient(165deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: 52px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: var(--steel-200); max-width: 42em; font-size: 1.08rem; position: relative; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-muted { background: var(--surface); }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { color: var(--text-muted); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--steel-400);
  color: inherit;
}
.product-card h3 { margin: 0; color: var(--navy-900); }
.product-card p { color: var(--text-muted); font-size: 0.95rem; flex: 1; }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--navy-800), var(--steel-600));
  color: var(--white);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.card-icon svg { width: 28px; height: 28px; }
.card-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--orange-500);
  letter-spacing: 0.03em;
}

.reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.reason {
  padding: 8px 4px;
}
.reason-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--orange-500);
  margin-bottom: 10px;
}
.reason h3 { margin-bottom: 8px; }
.reason p { color: var(--text-muted); font-size: 0.98rem; }
.placeholder {
  display: inline;
  background: var(--orange-50);
  color: var(--orange-600);
  border: 1px dashed var(--orange-400);
  border-radius: 4px;
  padding: 0 0.35em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92em;
  letter-spacing: 0;
}

.cta-band {
  background: linear-gradient(100deg, var(--navy-900) 0%, var(--navy-700) 60%, #8a3a10 140%);
  color: var(--white);
  padding: 56px 0;
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: var(--steel-200); max-width: 38em; margin-bottom: 22px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* ---------- Products page ---------- */
.jump-nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--header-h);
  z-index: 40;
}
.jump-nav .container {
  display: flex;
  gap: 4px 8px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
}
.jump-nav a {
  flex: 0 0 auto;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--navy-800);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.jump-nav a:hover { border-color: var(--steel-400); color: var(--navy-900); }

.product-section {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.product-section:last-of-type { border-bottom: 0; }
.product-section .card-icon { width: 72px; height: 72px; border-radius: 14px; }
.product-section .card-icon svg { width: 38px; height: 38px; }
.product-body h2 { margin-bottom: 10px; }
.product-body > p { color: var(--text-muted); max-width: 58em; }
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.offer-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.offer-box h3 {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-600);
  margin-bottom: 10px;
}
.offer-box ul { margin: 0; color: var(--text); padding-left: 1.1em; }
.offer-box li { margin-bottom: 0.35em; }
.offer-box li:last-child { margin-bottom: 0; }
.note {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ---------- About ---------- */
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; }
.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}
.fact-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.fact-card h3 { color: var(--white); font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.fact-card dl { margin: 0; }
.fact-card dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-top: 14px;
}
.fact-card dt:first-child { margin-top: 0; }
.fact-card dd { margin: 4px 0 0; color: var(--white); }
.fact-card a { color: var(--orange-400); }

/* ---------- Contact / form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}
.form-card, .info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 28px 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--navy-800);
}
.req { color: var(--orange-500); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--steel-500);
  box-shadow: 0 0 0 3px rgba(61, 106, 158, 0.18);
}
.field .hint { display: block; margin-top: 5px; font-size: 0.82rem; color: var(--text-muted); }
.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
}
.form-status.is-success { display: block; background: #e8f6ee; color: #14532d; border: 1px solid #86efac; }
.form-status.is-error { display: block; background: var(--orange-50); color: #7c2d12; border: 1px solid #fdba74; }
.form-status a { color: inherit; font-weight: 700; }
.info-card h2 { font-size: 1.25rem; }
.info-list { list-style: none; padding: 0; margin: 0 0 18px; }
.info-list li { margin-bottom: 14px; }
.info-list strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.info-list a { color: var(--navy-800); font-weight: 600; text-decoration: none; }
.info-list a:hover { color: var(--orange-500); }

.phone-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25em 0.85em;
}
.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  white-space: nowrap;
}
.wa-icon {
  width: 1.1em;
  height: 1.1em;
  fill: #25D366;
  flex-shrink: 0;
  display: block;
}


/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--steel-200);
  padding: 48px 0 24px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.site-footer h3 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer a { color: var(--steel-200); text-decoration: none; }
.site-footer a:hover { color: var(--orange-400); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 5px;
  margin-bottom: 14px;
}
.footer-brand .logo-img {
  width: 72px;
  height: 72px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #8ea0b3;
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 3px solid var(--orange-400);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .product-grid,
  .reasons { grid-template-columns: 1fr 1fr; }
  .hero-grid,
  .split,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + var(--topbar-h));
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    box-shadow: var(--shadow);
  }
  /* When header is sticky, top is relative to viewport already including topbar scroll.
     Use header height only once the topbar has scrolled away. Keep both covered: */
  .site-header .site-nav { top: var(--header-h); }
  body.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 12px 10px; }
  .site-nav .btn-nav { margin: 8px 0 0; text-align: center; }
  .topbar .tagline { display: none; }
  .product-grid,
  .reasons,
  .offer-grid,
  .form-row,
  .split,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .product-section { grid-template-columns: 1fr; gap: 16px; }
  .section { padding: 52px 0; }
  .hero { padding: 48px 0 56px; }
  .form-card, .info-card { padding: 22px 18px; }
}

@media (min-width: 761px) {
  /* Ensure desktop nav stays visible even if a class was left on body */
  .site-nav { display: flex !important; }
}
