/* ===== PartnerTubes Design System ===== */
:root {
  /* Brand Colors */
  --c-primary:        #1e3a5f;
  --c-primary-dark:   #152c47;
  --c-primary-light:  #2a5298;
  --c-accent:         #f59e0b;
  --c-accent-dark:    #d97706;
  --c-accent-light:   #fbbf24;

  /* Neutrals */
  --c-text:           #1f2937;
  --c-text-muted:     #6b7280;
  --c-text-light:     #9ca3af;
  --c-text-inv:       #ffffff;
  --c-bg:             #ffffff;
  --c-bg-alt:         #f9fafb;
  --c-bg-dark:        #0f1f36;
  --c-border:         #e5e7eb;
  --c-border-dark:    #d1d5db;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* Spacing (8px base) */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem;  --sp-8: 2rem;    --sp-10: 2.5rem;
  --sp-12: 3rem;   --sp-16: 4rem;   --sp-20: 5rem;   --sp-24: 6rem;

  /* Layout */
  --max-w: 1280px;
  --px: clamp(1rem, 4vw, 2rem);

  /* Effects */
  --radius-sm: 0.25rem; --radius: 0.5rem; --radius-lg: 0.75rem; --radius-xl: 1rem;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / .10), 0 1px 2px -1px rgb(0 0 0 / .10);
  --shadow:    0 4px 6px -1px rgb(0 0 0 / .10), 0 2px 4px -2px rgb(0 0 0 / .10);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .10), 0 4px 6px -4px rgb(0 0 0 / .10);
  --transition: 200ms ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--c-text); background: var(--c-bg); line-height: 1.6; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--c-primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-accent-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; color: var(--c-primary); font-weight: 700; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }

/* ===== Utilities ===== */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--px); }
.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; }
.text-center { text-align: center; }
.text-muted { color: var(--c-text-muted); }
.mt-0 { margin-top: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.625rem 1.5rem; border-radius: var(--radius); font-weight: 600;
  font-size: var(--text-base); cursor: pointer; border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 0.875rem 2rem; font-size: var(--text-lg); }
.btn-sm { padding: 0.4rem 1rem; font-size: var(--text-sm); }

.btn-primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn-primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; }

.btn-accent { background: var(--c-accent); color: var(--c-primary-dark); border-color: var(--c-accent); }
.btn-accent:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); color: var(--c-primary-dark); }

.btn-outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }

/* ===== Badge / Tag ===== */
.badge {
  display: inline-flex; align-items: center; padding: 0.25rem 0.75rem;
  border-radius: 999px; font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.badge-accent { background: rgba(245,158,11,.15); color: var(--c-accent-dark); }
.badge-light  { background: rgba(255,255,255,.15); color: rgba(255,255,255,0.9); }
.badge-primary { background: rgba(30,58,95,.1); color: var(--c-primary); }

/* ===== Navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-primary); box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: var(--sp-8);
}
.logo {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-xl); font-weight: 700; color: #fff !important;
  letter-spacing: -0.02em;
}
.logo strong { color: var(--c-accent); }
.logo-icon { width: 32px; height: 32px; flex-shrink: 0; }

.nav-links {
  display: flex; align-items: center; gap: var(--sp-1);
}
.nav-links a {
  color: rgba(255,255,255,0.85); font-size: var(--text-sm); font-weight: 500;
  padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a.btn-accent { color: var(--c-primary-dark); padding: var(--sp-2) var(--sp-4); margin-left: var(--sp-2); }
.nav-links a.btn-accent:hover { color: var(--c-primary-dark); background: var(--c-accent-dark); }

/* Mobile nav toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: var(--sp-2);
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--c-primary-dark); flex-direction: column; align-items: stretch;
    padding: var(--sp-4); gap: var(--sp-1); box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); }
  .nav-links a.btn-accent { text-align: center; margin: var(--sp-2) 0 0; }
  .navbar { position: relative; }
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 50%, var(--c-primary-light) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.06;
  background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0);
  background-size: 32px 32px;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: var(--sp-12); padding-block: var(--sp-20); position: relative;
}
.hero-inner > * { min-width: 0; }
.hero-badge { margin-bottom: var(--sp-4); }
.hero h1 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  color: #fff; line-height: 1.15; margin-bottom: var(--sp-5);
}
.hero h1 em { color: var(--c-accent); font-style: normal; }
.hero p { font-size: var(--text-lg); color: rgba(255,255,255,.8); margin-bottom: var(--sp-8); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.hero-visual {
  display: flex; align-items: center; justify-content: center;
  opacity: 0.9;
}
.hero-svg { width: 100%; max-width: 420px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.3)); }

.stats-bar {
  background: rgba(0,0,0,.25); backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255,255,255,.1);
}
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4); padding-block: var(--sp-5);
}
.stat { text-align: center; }
.stat strong { display: block; font-size: var(--text-2xl); color: var(--c-accent); font-weight: 700; }
.stat span { font-size: var(--text-sm); color: rgba(255,255,255,.7); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Section ===== */
.section { padding-block: var(--sp-20); }
.section-alt { background: var(--c-bg-alt); }
.section-dark { background: var(--c-bg-dark); color: #fff; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-header { text-align: center; margin-bottom: var(--sp-12); }
.section-header .eyebrow {
  font-size: var(--text-sm); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-accent); margin-bottom: var(--sp-2);
}
.section-header h2 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); margin-bottom: var(--sp-4); }
.section-header p { font-size: var(--text-lg); color: var(--c-text-muted); max-width: 640px; margin-inline: auto; margin-bottom: 0; }

/* ===== Product Cards ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
}
.product-card {
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card-icon {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  padding: var(--sp-8); display: flex; align-items: center; justify-content: center;
  min-height: 160px;
}
.product-card-icon svg { width: 80px; height: 80px; color: rgba(255,255,255,.85); }
.product-card-body { padding: var(--sp-6); flex: 1; display: flex; flex-direction: column; }
.product-card-body h3 { font-size: var(--text-xl); margin-bottom: var(--sp-2); }
.product-card-body p { color: var(--c-text-muted); font-size: var(--text-sm); flex: 1; margin-bottom: var(--sp-5); }
.product-card-tags { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-bottom: var(--sp-4); }
.tag { background: var(--c-bg-alt); border: 1px solid var(--c-border); color: var(--c-text-muted); font-size: var(--text-xs); padding: 2px 8px; border-radius: 999px; }

/* ===== Feature Grid ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-6); }
.feature-card {
  padding: var(--sp-6); border-radius: var(--radius-lg);
  border: 1px solid var(--c-border); background: var(--c-bg);
}
.feature-card .icon { width: 48px; height: 48px; color: var(--c-accent); margin-bottom: var(--sp-4); }
.feature-card h3 { font-size: var(--text-lg); margin-bottom: var(--sp-2); }
.feature-card p { color: var(--c-text-muted); font-size: var(--text-sm); margin: 0; }

/* ===== Industries ===== */
.industries-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--sp-4); }
.industry-chip {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  padding: var(--sp-5) var(--sp-4); border-radius: var(--radius-lg);
  border: 1px solid var(--c-border); background: var(--c-bg-alt);
  text-align: center; transition: background var(--transition), border-color var(--transition);
  font-size: var(--text-sm); font-weight: 500; color: var(--c-text);
}
.industry-chip:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.industry-chip svg { width: 28px; height: 28px; color: var(--c-accent); }
.industry-chip:hover svg { color: rgba(255,255,255,.85); }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary-light) 100%);
  color: #fff; text-align: center; padding-block: var(--sp-16);
}
.cta-banner h2 { color: #fff; font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); margin-bottom: var(--sp-4); }
.cta-banner p { color: rgba(255,255,255,.8); font-size: var(--text-lg); margin-bottom: var(--sp-8); }
.cta-buttons { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  padding: var(--sp-4) 0; font-size: var(--text-sm); color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-border);
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.breadcrumbs li + li::before { content: '›'; margin-right: var(--sp-2); color: var(--c-text-light); }
.breadcrumbs a { color: var(--c-text-muted); }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs li:last-child { color: var(--c-text); font-weight: 500; }

/* ===== Page Hero (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
  color: #fff; padding-block: var(--sp-16);
}
.page-hero .eyebrow { font-size: var(--text-sm); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent); margin-bottom: var(--sp-2); }
.page-hero h1 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); color: #fff; margin-bottom: var(--sp-4); }
.page-hero p { font-size: var(--text-lg); color: rgba(255,255,255,.8); max-width: 700px; margin-bottom: 0; }

/* ===== Spec Table ===== */
.spec-table { margin-block: var(--sp-6); overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--c-border); }
.spec-table table { font-size: var(--text-sm); }
.spec-table thead { background: var(--c-primary); color: #fff; }
.spec-table th { padding: var(--sp-3) var(--sp-4); text-align: left; font-weight: 600; white-space: nowrap; }
.spec-table td { padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--c-border); }
.spec-table tr:nth-child(even) td { background: var(--c-bg-alt); }
.spec-table tr:hover td { background: rgba(30,58,95,.04); }

/* ===== Product Detail ===== */
.product-detail-grid {
  display: grid; grid-template-columns: 1fr 380px; gap: var(--sp-12); align-items: start;
}
.product-detail-grid > * { min-width: 0; }
.product-sidebar {
  position: sticky; top: 80px; background: var(--c-bg-alt);
  border: 1px solid var(--c-border); border-radius: var(--radius-xl);
  padding: var(--sp-6);
}
.product-sidebar h3 { font-size: var(--text-lg); margin-bottom: var(--sp-4); border-bottom: 2px solid var(--c-accent); padding-bottom: var(--sp-2); }
.sidebar-list { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.sidebar-list li { display: flex; justify-content: space-between; font-size: var(--text-sm); padding: var(--sp-1) 0; border-bottom: 1px solid var(--c-border); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list strong { color: var(--c-primary); font-weight: 600; }

@media (max-width: 900px) {
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-sidebar { position: static; }
}

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item {
  border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden;
}
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-5) var(--sp-6); font-weight: 600; cursor: pointer;
  background: var(--c-bg); font-size: var(--text-base);
  list-style: none; user-select: none;
}
.faq-item summary::after {
  content: '+'; font-size: var(--text-xl); color: var(--c-accent);
  font-weight: 700; flex-shrink: 0; transition: transform var(--transition);
}
.faq-item[open] summary { background: var(--c-bg-alt); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: var(--sp-5) var(--sp-6); background: var(--c-bg-alt); border-top: 1px solid var(--c-border); color: var(--c-text-muted); font-size: var(--text-base); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ===== Two-column layout ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: center; }
.two-col > * { min-width: 0; }
.two-col-text h2 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); margin-bottom: var(--sp-4); }
.two-col-text p { color: var(--c-text-muted); margin-bottom: var(--sp-4); }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* ===== Icon Box ===== */
.icon-box-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-6); }
.icon-box { display: flex; gap: var(--sp-4); }
.icon-box .icon-wrap {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--radius);
  background: rgba(30,58,95,.08); display: flex; align-items: center; justify-content: center;
}
.icon-box svg { width: 24px; height: 24px; color: var(--c-primary); }
.icon-box h3 { font-size: var(--text-base); margin-bottom: var(--sp-1); }
.icon-box p { font-size: var(--text-sm); color: var(--c-text-muted); margin: 0; }

/* ===== Application grid ===== */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-4); }
.app-card {
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: var(--sp-5); transition: border-color var(--transition);
}
.app-card:hover { border-color: var(--c-accent); }
.app-card h4 { font-size: var(--text-base); margin-bottom: var(--sp-1); color: var(--c-primary); }
.app-card p { font-size: var(--text-sm); color: var(--c-text-muted); margin: 0; }

/* ===== Contact Form ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 400px; gap: var(--sp-12); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: var(--sp-5); }
.form-group label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--c-text); margin-bottom: var(--sp-2); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.65rem 1rem; border: 1px solid var(--c-border-dark);
  border-radius: var(--radius); font-family: var(--font); font-size: var(--text-base);
  color: var(--c-text); background: var(--c-bg); transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--c-primary-light); box-shadow: 0 0 0 3px rgba(42,82,152,.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }

.contact-info-card {
  background: var(--c-bg-dark); color: #fff; border-radius: var(--radius-xl);
  padding: var(--sp-8);
}
.contact-info-card h3 { color: var(--c-accent); margin-bottom: var(--sp-6); font-size: var(--text-xl); }
.contact-info-item { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.contact-info-item svg { width: 20px; height: 20px; color: var(--c-accent); flex-shrink: 0; margin-top: 2px; }
.contact-info-item strong { display: block; font-size: var(--text-sm); color: rgba(255,255,255,.6); margin-bottom: var(--sp-1); }
.contact-info-item a { color: #fff; }
.contact-info-item a:hover { color: var(--c-accent); }

/* ===== Related Products ===== */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-4); }
.related-card {
  border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-2);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.related-card:hover { border-color: var(--c-primary-light); box-shadow: var(--shadow-sm); }
.related-card h4 { font-size: var(--text-base); color: var(--c-primary); }
.related-card p { font-size: var(--text-sm); color: var(--c-text-muted); flex: 1; margin: 0; }
.related-card .arrow { color: var(--c-accent); font-weight: 700; font-size: var(--text-lg); align-self: flex-end; }

/* ===== Prose (long-form text) ===== */
.prose h2 { font-size: var(--text-2xl); margin-top: var(--sp-10); margin-bottom: var(--sp-4); }
.prose h3 { font-size: var(--text-xl); margin-top: var(--sp-8); margin-bottom: var(--sp-3); }
.prose p { color: var(--c-text-muted); margin-bottom: var(--sp-4); }
.prose ul, .prose ol { margin-bottom: var(--sp-4); padding-left: var(--sp-5); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { color: var(--c-text-muted); margin-bottom: var(--sp-1); }
.prose strong { color: var(--c-text); font-weight: 600; }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--sp-6); }
.service-card {
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius-xl);
  padding: var(--sp-7); display: flex; flex-direction: column; gap: var(--sp-3);
  transition: box-shadow var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-lg); }
.service-card .icon { width: 52px; height: 52px; color: var(--c-primary); }
.service-card h3 { font-size: var(--text-xl); }
.service-card p { color: var(--c-text-muted); font-size: var(--text-sm); flex: 1; margin: 0; }

/* ===== Footer ===== */
.footer { background: var(--c-bg-dark); color: rgba(255,255,255,.7); padding-top: var(--sp-16); }
.footer-grid {
  display: grid; grid-template-columns: 300px 1fr 1fr 220px;
  gap: var(--sp-8); padding-bottom: var(--sp-16);
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo { font-size: var(--text-xl); margin-bottom: var(--sp-3); display: inline-flex; }
.footer-brand p { font-size: var(--text-sm); line-height: 1.7; margin-bottom: var(--sp-4); }
.footer-brand address { font-size: var(--text-sm); line-height: 1.7; margin-bottom: var(--sp-3); }
.footer-brand a { color: rgba(255,255,255,.7); }
.footer-brand a:hover { color: var(--c-accent); }

.footer-col h3 { color: #fff; font-size: var(--text-base); margin-bottom: var(--sp-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a { font-size: var(--text-sm); color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col a:hover { color: var(--c-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-block: var(--sp-5);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3);
  font-size: var(--text-xs); color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--c-accent); }

/* ===== 404 ===== */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-page h1 { font-size: clamp(4rem, 12vw, 8rem); color: var(--c-border-dark); margin-bottom: 0; line-height: 1; }
.error-page h2 { font-size: var(--text-2xl); margin-bottom: var(--sp-4); }
.error-page p { color: var(--c-text-muted); margin-bottom: var(--sp-8); }

/* ===== Misc ===== */
.divider { height: 1px; background: var(--c-border); margin-block: var(--sp-10); }
.text-accent { color: var(--c-accent); }
.text-primary { color: var(--c-primary); }
.lead { font-size: var(--text-lg); color: var(--c-text-muted); }

/* ===== Print ===== */
@media print {
  .navbar, .hero-visual, .cta-banner, .footer { display: none; }
  .hero { background: none; color: var(--c-text); padding: 0; }
  .hero h1 { color: var(--c-primary); }
}
