/*
  Solar Comtech Inc. — Enterprise website rebuild
  Stack: pure HTML/CSS/JS, responsive, WCAG 2.1 AA-minded
  Design: US B2B corporate (no purple, no flashy gradients)
*/

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css");

:root {
  /* --- Brand colors (from “7家公司官网重构方案.md”) --- */
  --primary: #003b5c; /* Deep sea blue */
  --primary-light: #005580;
  --secondary: #00a86b; /* Sustainability green */
  --accent: #f5a623; /* Solar orange */

  /* --- Neutrals --- */
  --neutral-100: #ffffff;
  --neutral-200: #f5f7f9;
  --neutral-300: #e1e5e9;
  --neutral-700: #4a5568;
  --neutral-900: #1a202c;

  /* --- Back-compat aliases (older pages used these vars) --- */
  --color-primary: var(--primary);
  --color-secondary: var(--secondary);
  --color-accent: var(--accent);
  --color-danger: #b42318;
  --color-light: var(--neutral-100);
  --color-gray-light: var(--neutral-200);
  --color-gray-medium: var(--neutral-300);
  --color-gray-dark: var(--neutral-700);
  --color-dark: var(--neutral-900);

  /* --- Typography (from “7家公司官网重构方案.md”) --- */
  --font-heading: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* --- Layout --- */
  --container-max: 1200px;
  --max-width: var(--container-max);
  --header-height: 76px;

  /* --- Spacing (mobile-first) --- */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 5rem;

  /* Back-compat spacing tokens */
  --spacing-xs: var(--space-1);
  --spacing-sm: var(--space-3);
  --spacing-md: var(--space-4);
  --spacing-lg: var(--space-6);
  --spacing-xl: var(--space-8);

  /* --- Radius --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 22px 50px rgba(0, 0, 0, 0.12);

  /* --- Borders / focus --- */
  --border: 1px solid var(--neutral-300);
  --focus-ring: 0 0 0 3px rgba(245, 166, 35, 0.45);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--neutral-900);
  background: var(--neutral-100);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: rgba(0, 168, 107, 0.18);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--neutral-900);
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 var(--space-3);
  color: var(--neutral-700);
}

.lead {
  font-size: 1.125rem;
  color: var(--neutral-700);
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 600;
}

/* --- Accessibility utilities --- */
.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: var(--space-3);
  top: var(--space-3);
  padding: 0.75rem 1rem;
  background: var(--neutral-100);
  border: var(--border);
  border-radius: var(--radius-md);
  z-index: 2000;
  transform: translateY(-150%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* --- Layout utilities --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.section {
  padding: var(--space-7) 0;
}

.section-padding {
  padding: var(--space-7) 0;
}

.section--tight {
  padding: var(--space-6) 0;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-danger {
  color: var(--color-danger);
}

.bg-primary {
  background: var(--primary);
  color: var(--neutral-100);
}

.bg-secondary {
  background: var(--secondary);
  color: var(--neutral-100);
}

.bg-light,
.bg-surface {
  background: var(--neutral-200);
}

.bg-accent-light {
  background: rgba(245, 166, 35, 0.12);
}

.divider {
  height: 1px;
  background: var(--neutral-300);
  margin: var(--space-5) 0;
}

.measure {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

.measure-wide {
  max-width: 90ch;
  margin-left: auto;
  margin-right: auto;
}

.align-center {
  align-items: center;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

@media (min-width: 992px) {
  .page-layout {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

/* --- Grid --- */
.grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (min-width: 576px) {
  .grid-2-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .grid-3-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .grid-desktop-2-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-desktop-3-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-desktop-4-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .grid-xl-3-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-xl-4-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1260px;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, box-shadow 0.18s ease;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: var(--neutral-900);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 18px rgba(245, 166, 35, 0.22);
}

.btn-primary:hover {
  background: #e09620;
}

.btn-secondary {
  background: var(--primary);
  color: var(--neutral-100);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 22px rgba(0, 59, 92, 0.18);
}

.btn-secondary:hover {
  background: #00324e;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: rgba(0, 59, 92, 0.35);
}

.btn-outline:hover {
  background: rgba(0, 59, 92, 0.06);
}

.btn-outline-light {
  background: transparent;
  color: var(--neutral-100);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-accent {
  background: var(--secondary);
  color: var(--neutral-100);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-accent:hover {
  background: #00985f;
}

.btn-sm {
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

/* --- Cards / Surfaces --- */
.card {
  background: var(--neutral-100);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.card--compact {
  padding: var(--space-4);
}

.img-rounded {
  border-radius: var(--radius-lg);
}

.img-responsive {
  width: 100%;
}

picture {
  display: block;
}

/* --- Header / Navigation --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1100;
  height: var(--header-height);
  background: var(--primary);
  color: var(--neutral-100);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--neutral-100);
  font-size: 1rem;
  padding: 0.5rem 0;
}

.logo:hover {
  text-decoration: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--neutral-100);
  cursor: pointer;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.nav-link--has-dropdown::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.85;
  margin-left: 0.35rem;
  margin-top: -0.1rem;
}

.nav-link:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--neutral-100);
}

.nav-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
  color: var(--neutral-100);
}

.nav-link.btn {
  padding: 0.7rem 0.95rem;
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  min-width: 240px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--neutral-100);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
}

.nav-item.is-open > .dropdown-menu {
  display: block;
}

.dropdown-item a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--neutral-900);
}

.dropdown-item a:hover {
  text-decoration: none;
  background: var(--neutral-200);
}

/* Desktop hover/focus menus */
@media (min-width: 992px) {
  .nav-item:hover > .dropdown-menu,
  .nav-item:focus-within > .dropdown-menu {
    display: block;
  }
}

/* Mobile menu (collapsed) */
@media (max-width: 991px) {
  .nav-menu {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    background: var(--primary);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: var(--space-3);
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    max-height: calc(100vh - var(--header-height));
    overflow: auto;
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    display: block;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    margin: 0.35rem 0 0;
  }

  .dropdown-item a {
    color: rgba(255, 255, 255, 0.92);
  }

  .dropdown-item a:hover {
    background: rgba(255, 255, 255, 0.12);
  }
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
}

/* --- Main --- */
main {
  min-height: 60vh;
}

/* --- Hero (Home) --- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--neutral-100);
}

.hero__bg,
.hero__flow,
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg {
  background-image: var(--hero-image-fallback, none);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero__flow {
  background-image: var(--hero-flow-fallback, none);
  background-image: var(--hero-flow);
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  mix-blend-mode: screen;
  animation: hero-pan 32s linear infinite;
}

.hero__overlay {
  background: rgba(0, 59, 92, 0.82);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: var(--space-8) 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

.hero__headline {
  color: var(--neutral-100);
  margin-bottom: var(--space-3);
}

.hero__lede {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  max-width: 60ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.hero__panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.hero__panel p,
.hero__panel li {
  color: rgba(255, 255, 255, 0.92);
}

.hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 992px) {
  .hero__inner {
    padding: calc(var(--space-8) + 1rem) 0;
  }

  .hero__grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@keyframes hero-pan {
  0% {
    transform: translate3d(-1%, -1%, 0) scale(1.05);
  }
  100% {
    transform: translate3d(1%, 1%, 0) scale(1.05);
  }
}

/* --- Page Hero (Subpages) --- */
.hero-banner {
  position: relative;
  overflow: hidden;
  color: var(--neutral-100);
  min-height: 40vh;
  display: flex;
  align-items: center;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image-fallback, none);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 59, 92, 0.78);
  z-index: 0;
}

.hero-banner__inner {
  position: relative;
  z-index: 1;
  padding: var(--space-7) 0;
  width: 100%;
}

.hero-banner h1 {
  color: var(--neutral-100);
  margin: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-secondary h1,
.bg-secondary h2,
.bg-secondary h3,
.bg-secondary h4 {
  color: var(--neutral-100);
}

.bg-primary p,
.bg-secondary p {
  color: rgba(255, 255, 255, 0.92);
}

.bg-primary a,
.bg-secondary a {
  color: rgba(255, 255, 255, 0.98);
  text-decoration-color: rgba(255, 255, 255, 0.42);
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 168, 107, 0.14);
  border: 1px solid rgba(0, 168, 107, 0.22);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

blockquote.quote {
  border-left: 4px solid var(--accent);
  padding-left: var(--space-4);
  margin: var(--space-5) 0;
  color: var(--neutral-700);
}

.callout {
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.avatar {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  object-fit: cover;
  margin: 0 auto var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-sm);
}

.faq-item {
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  background: var(--neutral-100);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--neutral-900);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--secondary);
  flex: 0 0 auto;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-answer {
  margin-top: var(--space-3);
}

/* --- Metrics --- */
.metrics-section {
  background: var(--neutral-200);
  padding: var(--space-6) 0;
  border-bottom: 4px solid var(--secondary);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.metric-item {
  background: var(--neutral-100);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.metric-suffix {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-left: 0.15rem;
}

.metric-label {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--neutral-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (min-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .metric-number {
    font-size: 2.75rem;
  }
}

/* --- Capability / Feature Cards --- */
.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.capability-card {
  background: var(--neutral-100);
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.capability-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.capability-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.capability-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capability-content {
  padding: var(--space-5);
}

.capability-content h3 {
  margin-bottom: var(--space-2);
  color: var(--primary);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: grid;
  gap: 0.6rem;
}

.feature {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--neutral-700);
}

.feature strong {
  color: var(--neutral-900);
  font-weight: 600;
}

.icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  margin-top: 0.15rem;
  color: var(--secondary);
}

.icon-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  margin-right: 0.6rem;
  color: var(--secondary);
  flex: 0 0 auto;
}

.icon-inline--accent {
  color: var(--accent);
}

.icon-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.icon-block--secondary {
  color: var(--secondary);
}

.icon-block--primary {
  color: var(--primary);
}

@media (min-width: 768px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .capabilities-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- Case Studies (Home) --- */
.case-studies-section {
  background: var(--primary);
  padding: var(--space-7) 0;
}

.case-studies-section h2 {
  color: var(--neutral-100);
  text-align: center;
  margin-bottom: var(--space-6);
}

.case-studies-section p {
  color: rgba(255, 255, 255, 0.88);
}

.case-study-card {
  background: var(--neutral-100);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: left;
}

.case-study-card h3 {
  color: var(--primary);
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}

.case-study-card p {
  color: var(--neutral-700);
}

.case-study-card .btn {
  margin-top: var(--space-2);
}

/* --- CTA --- */
.cta-section {
  background: var(--secondary);
  padding: var(--space-7) 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--neutral-100);
  margin-bottom: var(--space-3);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 70ch;
  margin: 0 auto var(--space-4);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* --- Tables --- */
.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: var(--border);
}

.table th,
.table td {
  padding: 0.85rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--neutral-300);
  vertical-align: top;
}

.table thead th {
  background: var(--primary);
  color: var(--neutral-100);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-heading);
  font-weight: 600;
}

.table tbody tr:nth-child(even) {
  background: var(--neutral-200);
}

/* --- Forms --- */
form {
  display: grid;
  gap: var(--space-3);
}

label {
  font-weight: 600;
  color: var(--neutral-900);
  font-family: var(--font-heading);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(26, 32, 44, 0.18);
  background: var(--neutral-100);
  color: var(--neutral-900);
  font-family: var(--font-body);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(74, 85, 104, 0.7);
}

/* --- Footer --- */
.footer {
  background: #071a24;
  color: rgba(255, 255, 255, 0.72);
  padding: var(--space-7) 0 var(--space-5);
}

.footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
}

.footer a:hover {
  color: var(--neutral-100);
}

.footer-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
}

.footer-col h4 {
  color: var(--neutral-100);
  margin-bottom: var(--space-2);
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.92rem;
}

/* Footer grid is auto-fit by default (supports 4–6 columns cleanly). */

/* --- Motion safety --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__flow {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
