/* ================================================
   MorseGrid — Shared Site Styles
   Covers: reset, variables, base, pills, nav,
           container, footer, responsive shell.
   Page-specific styles stay inline per page.
   ================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── VARIABLES ── */
:root {
  --green:   #2D5016;
  --green-m: #3d6b1f;
  --green-l: #EBF5E8;
  --bg:      #F4F4F5;
  --white:   #FFFFFF;
  --ink:     #131313;
  --gray:    #6B6B76;
  --gray-l:  #E8E8EC;
  --border:  #E2E2E8;
  --font:    'Hanken Grotesk', -apple-system, sans-serif;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── PILLS ── */
.pill {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border-radius: 993px;
  padding: 9px 20px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.pill-ghost  { background: transparent; color: var(--gray); border-color: transparent; }
.pill-ghost:hover { background: var(--bg); color: var(--ink); }
.pill-outline { background: transparent; color: var(--ink); border-color: #C7C7C7; }
.pill-outline:hover { border-color: var(--ink); }
.pill-dark   { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill-dark:hover { background: var(--green); border-color: var(--green); }
.pill-green  { background: var(--green); color: #fff; border-color: var(--green); }
.pill-green:hover { opacity: 0.88; }
.pill-green-outline { background: transparent; color: var(--green); border-color: var(--green); }
.pill-green-outline:hover { background: var(--green-l); }

/* ── NAV ──
   Default: always-visible white pill nav.
   index.html overrides to start transparent and
   transition to white on scroll via .scrolled class.
   ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 32px; left: 24px; right: 24px;
  z-index: 200;
  height: 64px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 22px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.nav-logo img { height: 36px; width: auto; }
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 17px;
  font-weight: 500;
  color: var(--gray);
  padding: 8px 14px;
  border-radius: 993px;
  transition: color 0.15s, background 0.15s;
  display: flex; align-items: center; gap: 4px;
}
.nav-links a:hover { color: var(--ink); background: var(--bg); }
.nav-links a svg { width: 12px; height: 12px; stroke: currentColor; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── FOOTER ── */
.footer {
  padding: 80px 0 40px;
  background: var(--ink);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}
.footer-brand { text-align: left; margin-top: -12px; }
.footer-brand img {
  height: auto;
  max-width: 180px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  max-width: 320px;
  line-height: 1.6;
}
.footer-product-line {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
  max-width: 260px;
  line-height: 1.5;
}
.footer-cols { display: flex; justify-content: space-between; gap: 40px; }
.footer-col h4 {
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-col a { font-size: 15px; color: rgba(255,255,255,0.45); transition: color 0.15s; font-weight: 500; }
.footer-col a:hover { color: rgba(255,255,255,0.9); }
.footer-address {
  font-size: 15px; color: rgba(255,255,255,0.45);
  font-weight: 500; line-height: 1.5; max-width: 220px; display: inline-block;
}
.footer-bottom {
  display: flex; justify-content: center; align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px; color: rgba(255,255,255,0.25); font-weight: 500;
}

/* ── RESPONSIVE ── */

@media (max-width: 1060px) {
  .nav-links a { font-size: 15px; padding: 7px 10px; }
}

@media (max-width: 900px) {
  nav { top: 12px; left: 12px; right: 12px; padding: 0 20px; }
  .nav-links { display: none; }
  .footer { padding: 48px 0 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
  .footer-cols { flex-wrap: wrap; gap: 24px; }
}
