/* ============================================================
   Meridian & Co. — fictional high-end power tool manufacturer
   Shared stylesheet for all pages
   Palette: charcoal + celeste green (Bianchi-style)
   ============================================================ */

:root {
  --deep: #14231f;          /* charcoal with a green cast — hero / footer */
  --deep-2: #0c1714;
  --ink: #16241f;
  --body: #46554f;
  --muted: #74857d;
  --line: #dfe8e4;
  --paper: #ffffff;
  --wash: #f2f7f5;
  --celeste: #3eb4a2;       /* main brand colour */
  --celeste-dark: #2f9584;  /* hover state */
  --celeste-deep: #1f6e63;  /* text on light backgrounds (AA contrast) */
  --celeste-soft: #d3f1eb;
  --radius: 10px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
}

h1, h2, h3, h4 {
  font-family: "Barlow", "Inter", -apple-system, sans-serif;
  color: var(--ink);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

a { color: var(--celeste-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Barlow", "Inter", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--deep);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--celeste);
  color: var(--deep);
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover {
  background: var(--wash);
  text-decoration: none;
}
.nav-links a.active {
  background: var(--deep);
  color: #fff;
}

.nav-cta {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--celeste);
  color: var(--deep) !important;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--celeste-dark); text-decoration: none; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.1rem;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 18px;
    box-shadow: 0 12px 24px rgba(20, 35, 31, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-cta-wrap { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(62, 180, 162, 0.28), transparent 60%),
    linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%);
  color: #cfdcd7;
  padding: 96px 0 104px;
  position: relative;
  overflow: hidden;
}
/* subtle diagonal "tread" stripes for an industrial feel */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-55deg, transparent 0 34px, rgba(255, 255, 255, 0.025) 34px 36px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero .kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--celeste);
  border: 1px solid rgba(62, 180, 162, 0.45);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  max-width: 17ch;
  margin-bottom: 20px;
}

.hero p {
  max-width: 56ch;
  font-size: 1.1rem;
  margin-bottom: 34px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
}
.btn-primary { background: var(--celeste); color: var(--deep); }
.btn-primary:hover { background: var(--celeste-dark); text-decoration: none; }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  margin-left: 12px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); text-decoration: none; }

/* Page hero (inner pages) */
.page-hero {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(62, 180, 162, 0.22), transparent 60%),
    linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%);
  color: #cfdcd7;
  padding: 72px 0;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 12px; }
.page-hero p { max-width: 62ch; font-size: 1.05rem; }

/* ---------- Sections ---------- */

.section { padding: 76px 0; }
.section.alt { background: var(--wash); }

.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head .kicker-dark {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--celeste-deep);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--celeste-soft);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { font-size: 0.97rem; }
.card .card-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 0.95rem; }

/* Stats band */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat .num {
  font-family: "Barlow", "Inter", sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--deep);
}
.stat .num span { color: var(--celeste); }
.stat .label { font-size: 0.9rem; color: var(--muted); }

/* Quote */
.quote {
  border-left: 4px solid var(--celeste);
  background: var(--wash);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px;
  max-width: 760px;
}
.quote p { font-family: "Barlow", "Inter", sans-serif; font-weight: 500; font-size: 1.3rem; color: var(--ink); margin-bottom: 12px; }
.quote cite { font-style: normal; font-size: 0.92rem; color: var(--muted); }

/* CTA band */
.cta-band {
  background:
    radial-gradient(600px 260px at 100% 0%, rgba(62, 180, 162, 0.25), transparent 60%),
    linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%);
  border-radius: 14px;
  color: #cfdcd7;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: 1.8rem; margin-bottom: 8px; }
.cta-band p { max-width: 48ch; }

/* ---------- About page ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.value-list { list-style: none; display: grid; gap: 18px; }
.value-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--celeste);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.value-list strong { color: var(--ink); display: block; margin-bottom: 4px; }

.team-card { text-align: center; }
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-family: "Barlow", "Inter", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(150deg, var(--deep), var(--celeste-deep));
}
.team-card .role { font-size: 0.88rem; color: var(--celeste-deep); font-weight: 600; margin-bottom: 10px; }
.team-card p { font-size: 0.93rem; }

.timeline { list-style: none; border-left: 2px solid var(--line); padding-left: 28px; display: grid; gap: 26px; }
.timeline li { position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--celeste);
}
.timeline .year { font-weight: 800; color: var(--deep); font-family: "Barlow", "Inter", sans-serif; }

/* ---------- Products page ---------- */

/* Platform banner (battery system explainer) */
.platform-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) { .platform-band { grid-template-columns: 1fr; } }

.battery-visual {
  background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%);
  border-radius: 14px;
  padding: 36px;
  color: #cfdcd7;
  display: grid;
  gap: 18px;
}
.battery-visual .volt {
  font-family: "Barlow", "Inter", sans-serif;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--celeste);
}
.battery-visual .volt small { font-size: 1.4rem; color: #fff; margin-left: 6px; }
.battery-visual .cells { display: flex; gap: 6px; }
.battery-visual .cells span {
  flex: 1;
  height: 14px;
  border-radius: 3px;
  background: var(--celeste);
  opacity: 0.35;
}
.battery-visual .cells span:nth-child(-n+4) { opacity: 1; }
.battery-visual ul { list-style: none; display: grid; gap: 8px; font-size: 0.95rem; }
.battery-visual li::before { content: "✓ "; color: var(--celeste); font-weight: 700; }

/* Category filter chips */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { border-color: var(--celeste); }
.chip.active { background: var(--deep); color: #fff; border-color: var(--deep); }

/* Product category heading */
.product-category { margin-top: 48px; }
.product-category:first-of-type { margin-top: 0; }
.product-category h3 {
  font-size: 1.35rem;
  padding-bottom: 12px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.product-category h3 .count {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--celeste-deep);
  background: var(--celeste-soft);
  border-radius: 999px;
  padding: 3px 10px;
}
.product-category.hidden { display: none; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

.product {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(20, 35, 31, 0.10);
}
.product-img {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(240px 140px at 30% 20%, rgba(62, 180, 162, 0.25), transparent 70%),
    linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%);
  display: grid;
  place-items: center;
  font-size: 3rem;
  position: relative;
}
.product-img .sku {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: "Barlow", "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--celeste);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  padding: 3px 8px;
}
.product-img .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep);
  background: var(--celeste);
  border-radius: 6px;
  padding: 3px 8px;
}
.product-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product-body h4 { font-size: 1.1rem; margin-bottom: 6px; }
.product-body p { font-size: 0.92rem; flex: 1; }
.product-specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 16px;
}
.product-specs li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--celeste-deep);
  background: var(--celeste-soft);
  border-radius: 6px;
  padding: 3px 9px;
}
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.product-foot .price {
  font-family: "Barlow", "Inter", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--deep);
}
.product-foot .price small { font-size: 0.75rem; font-weight: 500; color: var(--muted); display: block; }
.product-foot a { font-weight: 700; font-size: 0.9rem; }

/* Feature rows (reused from old services layout) */
.service-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: none; }
.service-row .icon-lg {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--deep);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}
.service-row h3 { font-size: 1.35rem; margin-bottom: 8px; }
.service-row ul { margin: 14px 0 0 18px; font-size: 0.95rem; display: grid; gap: 6px; }

.process-steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .process-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-steps { grid-template-columns: 1fr; } }
.process-steps .step {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.process-steps .step::before {
  content: "0" counter(step);
  display: block;
  font-family: "Barlow", "Inter", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--celeste);
  margin-bottom: 10px;
}
.process-steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.process-steps p { font-size: 0.92rem; }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: grid; gap: 20px; }
.contact-info .card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; }
.contact-info .icon { margin-bottom: 0; flex-shrink: 0; }
.contact-info h3 { font-size: 1.02rem; margin-bottom: 2px; }
.contact-info p { font-size: 0.94rem; }

form.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

label { font-size: 0.88rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; }

input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(62, 180, 162, 0.45);
  border-color: var(--celeste);
  background: #fff;
}
textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 0.83rem; color: var(--muted); }

.map-placeholder {
  margin-top: 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, var(--wash), var(--wash) 12px, #e8f1ee 12px, #e8f1ee 24px);
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--deep-2);
  color: #a3b3ad;
  padding: 64px 0 0;
  margin-top: 0;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-mark { background: var(--celeste); color: var(--deep); }
.site-footer h4 {
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #a3b3ad; }
.site-footer a:hover { color: var(--celeste); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
