/* ============================================
  The Bearded Coder LLC - Landing Page Styles
   Palette:
    --navy:     #1E222A  (primary background)
    --walnut:   #282C34  (secondary / containers)
     --gold:     #D4AF37  (accent)
     --gold-2:   #F4D35E  (accent highlight)
    --white:    #F5F6F9
   ============================================ */

:root {
  --navy: #1E222A;
  --navy-2: #252930;
  --walnut: #282C34;
  --walnut-2: #2F3540;
  --gold: #D4AF37;
  --gold-2: #F4D35E;
  --gold-btn-top: #E0B84A;
  --gold-btn-bottom: #D4AF37;
  --ghost-border: rgba(245, 246, 249, 0.50);
  --ghost-border-hover: rgba(245, 246, 249, 0.75);
  --white: #F5F6F9;
  --muted: #D1D5DB;
  --border: rgba(212, 175, 55, 0.25);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.55);

  --radius: 14px;
  --radius-sm: 8px;
  --max: 1180px;

  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--muted);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

section[id] {
  scroll-margin-top: 88px;
}

h1, h2, h3, h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; font-family: var(--font-sans); font-weight: 600; }
h4 { font-size: 1rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--white); }

p { margin: 0 0 1em; }
p,
li,
h1,
h2,
h3,
h4,
.btn {
  overflow-wrap: break-word;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy);
  padding: 10px 16px; z-index: 1000; font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30, 34, 42, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--white); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
  min-width: 0;
}
.brand:hover { color: var(--white); }
.brand-mark { color: var(--gold); }
.brand-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-accent { color: var(--gold); }

.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 28px; align-items: center;
}
.primary-nav a {
  color: var(--muted); font-weight: 500; font-size: .95rem;
  padding: 6px 0; position: relative;
}
.primary-nav a:hover { color: var(--white); }
.primary-nav a.nav-cta {
  color: var(--navy);
  background: linear-gradient(180deg, var(--gold-btn-top), var(--gold-btn-bottom));
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(245,246,249,0.22);
}
.primary-nav a.nav-cta:hover {
  background: linear-gradient(180deg, var(--gold-2), var(--gold-btn-top));
  color: var(--navy);
}

.menu-toggle {
  display: none;
  background: transparent; border: 1px solid var(--border);
  width: 44px; height: 44px; border-radius: 8px;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer;
  flex: 0 0 auto;
}
.menu-toggle span {
  width: 18px; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

.mobile-nav {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transform: translateY(-8px);
  border-top: 1px solid transparent;
  background: var(--navy);
  transition: max-height .28s ease, opacity .22s ease, transform .28s ease, visibility .28s ease, border-color .28s ease;
}
.mobile-nav ul { list-style: none; margin: 0; padding: 12px 24px; }
.mobile-nav li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .28s ease;
}
.mobile-nav a { color: var(--white); font-weight: 500; }

.mobile-nav.open {
  max-height: 520px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  border-top-color: var(--border);
}
.mobile-nav.open li {
  opacity: 1;
  transform: translateY(0);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.15;
  min-height: 44px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-btn-top), var(--gold-btn-bottom));
  color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(245,246,249,0.20);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--gold-2), var(--gold-btn-top));
  transform: translateY(-1px);
  color: var(--navy);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--ghost-border);
}
.btn-ghost:hover { border-color: var(--ghost-border-hover); color: var(--white); }

.link-accent { color: var(--gold-2); font-weight: 600; }
.link-accent:hover { color: var(--gold); }

/* ---------- Common section bits ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--walnut); }

.section-head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

.eyebrow {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  text-transform: uppercase; letter-spacing: .16em; font-size: .86rem;
  line-height: 1.2;
  color: var(--gold-2); font-weight: 600; margin: 0 0 18px;
}
.eyebrow .dot {
  width: 7px; height: 7px; flex: 0 0 7px; background: var(--gold); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(212,175,55,0.15);
}

.accent { color: var(--gold-2); font-style: italic; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212,175,55,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(40,44,52,0.6), transparent 60%),
    var(--navy);
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 900px; }
.hero h1 { margin-bottom: .35em; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 720px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 36px; }
.hero-trust {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 28px; flex-wrap: wrap;
  color: var(--muted); font-size: .92rem;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; }

.hero-glow {
  position: absolute; right: -200px; top: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(244,211,94,0.12), transparent 70%);
  pointer-events: none;
}

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  background: var(--walnut);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.card-featured {
  border-color: var(--border);
  background: linear-gradient(180deg, var(--walnut-2), var(--walnut));
}
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: rgba(212,175,55,0.10);
  color: var(--gold-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 1.1rem;
}
.card-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-icon svg circle,
.card-icon svg rect {
  fill: currentColor;
  stroke: none;
}
.card-icon svg path,
.card-icon svg rect:first-child {
  fill: none;
  stroke: currentColor;
}
.card-icon .python-logo {
  width: 30px;
  height: 30px;
  stroke: none;
}
.card-icon .python-logo .python-blue { fill: #3776AB; stroke: none; }
.card-icon .python-logo .python-yellow { fill: #FFD43B; stroke: none; }
.card-icon .python-logo .python-eye { fill: #FFFFFF; stroke: none; }
.card h3 { color: var(--white); margin-bottom: 10px; }
.card p { color: var(--muted); }

.card-list { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid rgba(255,255,255,0.06); }
.card-list li {
  padding: 10px 0; font-size: .92rem; color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.card-list li:last-child { border-bottom: 0; }
.card-list li::before { content: "›  "; color: var(--gold); font-weight: 700; }

.badge {
  position: absolute; top: 18px; right: 18px;
  background: var(--gold);
  color: var(--navy);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.badge-soft {
  background: transparent;
  color: var(--gold-2);
  border: 1px solid var(--border);
  position: static;
  display: inline-block;
  margin-bottom: 14px;
}

.services-extra {
  margin-top: 50px; text-align: center;
  padding: 28px; border: 1px dashed var(--border); border-radius: var(--radius);
}
.services-extra p { margin-bottom: 8px; color: var(--white); }

/* ---------- Steps ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  counter-reset: step;
}
.steps li {
  background: var(--navy-2);
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.04);
}
.step-num {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--gold-2);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.steps h3 { color: var(--white); margin-bottom: 8px; }

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 24px;
}

.portfolio-card {
  position: relative;
  background:
    linear-gradient(145deg, rgba(30,34,42,0.97), rgba(40,44,52,0.97)),
    var(--navy-2);
  border: 1px solid rgba(212,175,55,0.16);
  border-radius: var(--radius);
  padding: 32px 28px;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}

.portfolio-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.portfolio-meta {
  color: var(--gold-2);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.portfolio-card h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.portfolio-card p { color: var(--muted); }

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
}

.portfolio-tags li {
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 999px;
  color: var(--muted);
  font-size: .78rem;
  padding: 5px 10px;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  color: var(--gold-2);
  font-weight: 700;
}

.portfolio-link::after {
  content: "\2197";
  font-size: .85rem;
  margin-left: 8px;
}

/* ---------- Products ---------- */
.product-card {
  background: var(--walnut);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: left;
  transition: border-color .25s ease, transform .25s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.product-card:hover { border-color: var(--border); transform: translateY(-3px); }
.product-card h3 { color: var(--white); margin-top: 12px; }
.product-card p { color: var(--muted); flex-grow: 1; }

.product-features {
  list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid rgba(255,255,255,0.06);
}
.product-features li {
  padding: 10px 0; font-size: .92rem; color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.product-features li:last-child { border-bottom: 0; }
.product-features li::before { content: "✓  "; color: var(--gold); font-weight: 700; }

.products-grid {
  grid-template-columns: repeat(2, minmax(320px, 460px));
  justify-content: center;
}

.notify-form {
  margin: 50px auto 0;
  max-width: 520px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.notify-form input[type="email"] {
  flex: 1 1 260px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--navy-2);
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
  min-height: 46px;
}
.notify-form input[type="email"]:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.18);
}
.notify-msg {
  width: 100%; text-align: center;
  color: var(--gold-2); font-weight: 600; margin: 6px 0 0;
}

.form-status {
  max-width: 760px;
  margin: 24px auto 18px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.92rem;
  text-align: center;
}

.form-status.ok {
  color: #AEE6BF;
  background: rgba(26, 81, 47, 0.4);
  border-color: rgba(89, 201, 130, 0.5);
}

.form-status.error {
  color: #FFD3D3;
  background: rgba(107, 24, 36, 0.4);
  border-color: rgba(230, 94, 94, 0.5);
}

.form-status.warning {
  color: #FFE8A3;
  background: rgba(101, 76, 18, 0.4);
  border-color: rgba(244, 211, 94, 0.5);
}

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center;
}
.about-grid p { color: var(--muted); font-size: 1.02rem; }
.stat-row {
  list-style: none; padding: 0; margin: 30px 0 0;
  display: flex; gap: 32px; flex-wrap: wrap;
}
.stat-row li {
  display: flex; flex-direction: column;
  border-left: 2px solid var(--gold); padding-left: 14px;
}
.stat-row strong {
  font-family: var(--font-display);
  font-size: 1.8rem; color: var(--white);
}
.stat-row span { color: var(--muted); font-size: .85rem; }

.about-quote {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.about-quote blockquote { margin: 0; }
.about-quote p {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--white);
  font-style: italic;
  margin-bottom: 0;
}

/* ---------- Contact ---------- */
.contact-wrap { max-width: 760px; margin: 0 auto; }
.contact-form {
  background: var(--walnut);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 10px;
}
.contact-form label {
  display: block; margin-bottom: 18px;
  color: var(--white); font-size: .9rem; font-weight: 500;
}
.contact-form label > span { display: block; margin-bottom: 8px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input,
.contact-form select {
  min-height: 46px;
}
.contact-form select { display: none; }

/* Custom select */
.custom-select-wrap { margin-bottom: 18px; }
.custom-select-label {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: .9rem;
  font-weight: 500;
}
.custom-select {
  position: relative;
  width: 100%;
  min-height: 46px;
  padding: 13px 40px 13px 14px;
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.custom-select.selected { color: var(--white); }
.custom-select:focus,
.custom-select[aria-expanded="true"] {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.18);
}
.custom-select-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--walnut);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: var(--radius-sm);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.custom-select[aria-expanded="true"] .custom-select-list { display: block; }
.custom-select-option {
  padding: 11px 14px;
  color: var(--white);
  font-size: .95rem;
  cursor: pointer;
  transition: background .15s ease;
}
.custom-select-option:first-child { color: var(--muted); }
.custom-select-option:hover,
.custom-select-option:focus {
  background: var(--walnut-2);
  color: var(--gold-2);
}
.custom-select-option[aria-selected="true"]:not(:first-child) {
  background: rgba(212,175,55,0.08);
}
.custom-select.is-invalid {
  border-color: #E65E5E;
  box-shadow: 0 0 0 3px rgba(230,94,94,0.16);
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.18);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .btn { width: 100%; margin-top: 6px; }

/* ---------- Policy page ---------- */
.policy-page {
  background:
    radial-gradient(900px 480px at 92% 0%, rgba(212,175,55,0.09), transparent 62%),
    var(--navy);
}

.policy-section { padding-top: 96px; }

.policy-content {
  max-width: 860px;
}

.policy-content .eyebrow {
  justify-content: flex-start;
}

.policy-content h1 {
  margin-bottom: 10px;
}

.policy-content h2 {
  margin: 42px 0 12px;
  font-size: 1.45rem;
}

.policy-content p {
  color: var(--muted);
  font-size: 1rem;
}

.policy-lede {
  max-width: 760px;
  color: var(--white) !important;
  font-size: 1.08rem !important;
}

.policy-updated {
  color: var(--gold-2) !important;
  font-size: .9rem !important;
  font-weight: 600;
  margin-bottom: 22px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #161A20;
  border-top: 1px solid var(--border);
  padding: 70px 0 20px;
  color: var(--muted);
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-tag { margin-top: 12px; color: var(--muted); }
.site-footer h4 { color: var(--white); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 6px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold-2); }
.site-footer a { overflow-wrap: anywhere; }
.footer-bottom { padding-top: 22px; text-align: center; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section[id] { scroll-margin-top: 64px; }

  body { padding-top: 64px; }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.9rem; }

  .container { padding: 0 18px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .section-sub { font-size: 1rem; }
  .nav { height: 64px; }
  .hero { padding: 72px 0 66px; }
  .lede { font-size: 1.04rem; }
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 18px 32px rgba(0,0,0,0.32);
  }
  .mobile-nav ul { padding: 8px 18px 14px; }
  .mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .grid-3 { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-ctas { flex-direction: column; gap: 12px; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .hero-trust { flex-direction: column; gap: 10px; }
  .card,
  .portfolio-card,
  .product-card,
  .steps li { padding: 24px 20px; }
  .services-extra { padding: 22px 18px; }
  .notify-form {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 100%;
    margin-top: 34px;
  }
  .notify-form input[type="email"],
  .notify-form .btn { width: 100%; }
  .stat-row { gap: 18px; }
  .stat-row li { flex: 1 1 130px; }
  .about-quote { padding: 28px 22px; }
  .contact-form { padding: 28px 20px; }
  .site-footer { padding-top: 54px; }
}

@media (max-width: 420px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }
  h3 { font-size: 1.12rem; }

  .container { padding: 0 16px; }
  .brand { font-size: .96rem; gap: 8px; }
  .eyebrow { font-size: .7rem; letter-spacing: .12em; }
  .section { padding: 66px 0; }
  .hero { padding: 58px 0 56px; }
  .hero-ctas { margin: 26px 0 30px; }
  .card,
  .portfolio-card,
  .product-card,
  .steps li,
  .contact-form { padding: 22px 16px; }
  .card-icon { width: 44px; height: 44px; }
  .badge-soft { font-size: .66rem; }
  .product-features li,
  .card-list li { font-size: .88rem; }
  .about-quote p { font-size: 1.2rem; }
  .footer-bottom { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
