/* ================================================================
   TradeWaaS — Base Site Stylesheet
   All colours and structural properties via CSS custom properties.
   Theme-specific overrides live in themes.css (Phase 2D).
   ================================================================ */

/* ── Reset ─────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body-font, 'DM Sans', sans-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── Skip link ─────────────────────────────────────────────────────
   Positioned off-screen until focused. First stop for keyboard users
   on every page — lets them bypass the nav without Tab-ing through it.
   ───────────────────────────────────────────────────────────────── */

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--navy);
  font-weight: 600;
  border-radius: 0 0 8px 0;
  z-index: 1000;
  transform: translateY(-120%);
  transition: transform 0.15s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--white);
  outline-offset: -3px;
}

/* ── Focus-visible (keyboard) ───────────────────────────────────────
   Replaces UA default outlines everywhere with a themed ring. Uses
   :focus-visible so mouse users don't get outlines on click, but
   keyboard users always do. Individual components can override the
   ring colour/width per theme in themes.css.
   ───────────────────────────────────────────────────────────────── */

:focus:not(:focus-visible) { outline: none; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Heavier ring on interactive block-level elements for visibility */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.nav-toggle:focus-visible {
  outline-width: 3px;
  outline-offset: 3px;
}

/* Form fields keep the border highlight and add a soft ring */
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  box-shadow: 0 0 0 4px var(--primary-glow, rgba(0, 0, 0, 0.12));
}

/* <main> is programmatically focusable for the skip link — don't ring it */
main:focus { outline: none; }
main:focus-visible { outline: none; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font, 'Space Grotesk', sans-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p + p { margin-top: 1em; }

/* ── Container ─────────────────────────────────────────────────── */

.container {
  width: 100%;
  /* Bumped 1200 → 1440 (2026-05-22) — Aaron flagged left/right margins
     felt too big. On a 1920px monitor 1200px left a 360px gutter each
     side; 1440px halves that to 240px while still keeping ~13% gutter
     for readability. */
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Sections ──────────────────────────────────────────────────── */

.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--navy-mid);
}

.section-label {
  font-family: var(--label-font, var(--body-font));
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
  white-space: pre-line;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 3rem;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header-centre {
  text-align: center;
}

.section-header-centre .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ───────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--card-radius, 12px);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--navy-deep);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dim);
  border-color: var(--primary-dim);
  color: var(--navy-deep);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: var(--muted);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.5rem 1.25rem;
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 1rem 2.25rem;
}

/* ── Cards ─────────────────────────────────────────────────────── */

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius, 12px);
  padding: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Glass morphism blur (dark-premium) */
.theme-dark .card {
  backdrop-filter: blur(var(--card-blur, 0));
  -webkit-backdrop-filter: blur(var(--card-blur, 0));
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-hover-glow, var(--card-shadow, 0 4px 24px rgba(0,0,0,0.1)));
}

/* Bold-modern accent border */
.card-accent {
  border-top: var(--card-accent-border, none);
}

/* Gradient-flow top border */
.card-gradient-top {
  border-top: var(--card-border-top, none);
  border-image: var(--card-border-image, none);
}

.card-title {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ── Grid Layouts ──────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

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

/* ── Navbar ─────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--navy-deep);
  border-bottom: 1px solid var(--navy-mid);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.theme-light .site-header {
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--card-border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 7rem header pairs with the 88px navbar-logo. History across
     2026-05-22: 4rem/40px → 5rem/56px → 6rem/72px → 7rem/88px.
     Keeps ~12px breathing room above + below. */
  height: 7rem;
  gap: 1.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.navbar-wordmark {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.theme-light .navbar-wordmark {
  color: var(--navy-deep);
}

.navbar-logo {
  height: 88px;
  width: auto;
  max-height: 100%;
}

/* Nav links (desktop) */
.nav-menu {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--body-font);
  /* Bumped 0.875rem → 1rem (2026-05-22) to match the taller navbar
     (4rem → 7rem header over today's iterations). Old size was too
     small in the new 112px header. */
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--white);
  background-color: var(--navy-light);
}

.theme-light .nav-link:hover {
  color: var(--navy-deep);
  background-color: var(--navy-light);
}

.nav-cta-item {
  margin-left: 0.5rem;
}

.nav-cta {
  border-radius: 8px;
}

/* Licence badge (desktop only) */
.licence-badge {
  display: none;
  font-family: var(--label-font, var(--body-font));
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--navy-mid);
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.375rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.theme-light .hamburger-line {
  background-color: var(--navy-deep);
}

/* Hamburger → X animation */
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu open state */
.nav-menu.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--navy-deep);
  padding: 2rem 1.25rem;
  gap: 0.5rem;
  z-index: 99;
  overflow-y: auto;
}

.theme-light .nav-menu.is-open {
  background-color: #fff;
}

.nav-menu.is-open .nav-link {
  font-size: 1.125rem;
  padding: 0.875rem 0;
}

.nav-menu.is-open .nav-cta-item {
  margin-left: 0;
  margin-top: 1rem;
}

.nav-menu.is-open .nav-cta {
  width: 100%;
  text-align: center;
  padding: 0.875rem;
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
  }

  .licence-badge {
    display: block;
  }
}

/* ── Hero Section ──────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* Split hero — pitch on the left, contact form on the right (2026-05-22).
   Aaron's call after the inlined-on-bottom version felt buried. Stacks on
   narrow viewports so the form follows the pitch on mobile. */
.hero-split .hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-form-wrapper {
  /* Scroll-margin so /#contact anchor lands below the sticky navbar
     instead of being clipped by the 112px header. */
  scroll-margin-top: 7.5rem;
}

.hero-form-wrapper .contact-card {
  padding: 1.5rem;
  /* Lift the form off the hero surface — particularly important on
     light themes (clean-light, gradient-flow, minimal-classic,
     warm-earth) where a light card on a light hero would otherwise
     visually blend. Dark themes muffle the shadow naturally so the
     same rule looks subtle there too. */
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.25), 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}

.hero-form-wrapper .form-group {
  margin-bottom: 1rem;
}

@media (max-width: 880px) {
  .hero-split .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  pointer-events: none;
}

/* ── Hero texture presets (CSS-only, theme-adaptive opacity) ──────
   These render when the customer picks a texture instead of an image.
   currentColor + low opacity keeps them subtle on both light and dark
   themes — the theme's --text colour is inherited, then dampened to
   ~6-8% so the pattern reads as texture rather than content. */

.hero-bg-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  color: var(--text);
}

/* Dot grid — small dots every 24px */
.hero-bg-texture--dots {
  background-image: radial-gradient(currentColor 1px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.12;
}

/* Grid lines — 32px squares */
.hero-bg-texture--grid {
  background-image:
    linear-gradient(currentColor 1px, transparent 1px),
    linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.08;
}

/* Diagonal stripes — 6px stripes at 45deg, gives a subtle motion vibe */
.hero-bg-texture--diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    currentColor 0,
    currentColor 1px,
    transparent 1px,
    transparent 8px
  );
  opacity: 0.08;
}

/* Noise grain — SVG-based fractal noise as data URI. Heavier than
   the gradient patterns but adds organic character that pure CSS
   patterns can't match. */
.hero-bg-texture--noise {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 320px 320px;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  font-family: var(--label-font, var(--body-font));
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background-color: var(--primary-glow);
  padding: 0.375rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  max-width: 700px;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--secondary-light);
  font-weight: 500;
  margin-bottom: 0.75rem;
  max-width: 600px;
}

.hero-body {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 550px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Trust Badges ──────────────────────────────────────────────── */

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 2rem 0;
}

.trust-badge {
  font-family: var(--label-font, var(--body-font));
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}

.trust-badge-primary {
  background-color: var(--primary-glow);
  color: var(--primary);
}

.trust-badge-secondary {
  background-color: var(--secondary-light);
  color: var(--navy-deep);
}

.theme-dark .trust-badge-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--secondary);
}

/* ── Service Cards ─────────────────────────────────────────────── */

.service-card .card-points {
  margin-top: 0.75rem;
  padding-left: 0;
}

.service-card .card-points li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}

.service-card .card-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
}

/* ── Why Us / Number Cards ─────────────────────────────────────── */

.why-card-num {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-glow);
  line-height: 1;
  margin-bottom: 1rem;
}

/* ── Testimonials ──────────────────────────────────────────────── */

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--white);
}

.testimonial-type {
  font-size: 0.8125rem;
  color: var(--muted);
}

.testimonial-text {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  font-style: italic;
}

.testimonial-stars {
  display: flex;
  gap: 0.125rem;
  color: var(--secondary);
  font-size: 0.875rem;
}

/* ── Project Filters ────────────────────────────────────────────── */

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-filter {
  font-family: var(--body-font);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: var(--muted);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.project-filter:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.project-filter.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--navy-deep);
}

/* ── CTA Banner ────────────────────────────────────────────────── */

.cta-banner {
  text-align: center;
  padding: 5rem 0;
}

.cta-banner .section-title {
  margin-bottom: 0.75rem;
}

.cta-banner .section-subtitle {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Gallery Grid ──────────────────────────────────────────────── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius, 12px);
  border: 1px solid var(--card-border);
}

.gallery-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 0.8125rem;
}

/* ── Glow Background ──────────────────────────────────────────── */

.glow-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
}

/* Default glow (dark-premium) */
.glow-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -10%;
  right: -5%;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary);
  bottom: 10%;
  left: -8%;
}

.glow-3 {
  width: 350px;
  height: 350px;
  background: var(--primary-dim);
  top: 50%;
  left: 40%;
}

/* Neon glow (contrast-edge) */
.glow-neon {
  opacity: 0.15;
  filter: blur(80px);
}

.glow-neon.glow-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: 5%;
  right: -10%;
}

.glow-neon.glow-2 {
  width: 450px;
  height: 450px;
  background: var(--secondary);
  bottom: -5%;
  left: -5%;
}

/* ── Page Headers (sub-pages) ──────────────────────────────────── */

.page-header {
  padding: 4rem 0 3rem;
  position: relative;
}

.page-header .section-label {
  margin-bottom: 0.5rem;
}

.page-header .page-title {
  margin-bottom: 0.5rem;
}

.page-highlight {
  color: var(--primary);
}

.page-subtitle {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 550px;
}

/* ── Contact Form ──────────────────────────────────────────────── */

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--body-font);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  background-color: var(--navy-mid);
  color: var(--text);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius, 12px);
  transition: border-color 0.2s ease;
  outline: none;
}

.theme-light .form-input,
.theme-light .form-select,
.theme-light .form-textarea {
  background-color: #fff;
  border-color: var(--card-border);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Honeypot — visually hidden */
.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-message {
  padding: 1rem;
  border-radius: var(--card-radius, 12px);
  font-size: 0.9375rem;
  margin-top: 1rem;
}

.form-message-success {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-message-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ── Credentials / Info List ───────────────────────────────────── */

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-item {
  display: flex;
  gap: 0.75rem;
}

.info-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--white);
  min-width: 140px;
  flex-shrink: 0;
}

.info-value {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ── Projects Grid ─────────────────────────────────────────────── */

.project-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--card-radius, 12px);
  margin-bottom: 1rem;
}

.project-card-meta {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  background-color: var(--primary-glow);
  color: var(--primary);
}

/* ── Footer ────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--navy-mid);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.theme-light .site-footer {
  border-top-color: var(--card-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-wordmark {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-logo {
  margin-bottom: 0.75rem;
}

.footer-description {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--body-font);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-address {
  color: var(--muted);
  font-size: 0.875rem;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 0.625rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background-color: var(--navy-mid);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.theme-light .social-link {
  background-color: var(--navy-light);
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--navy-deep);
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--navy-mid);
  font-size: 0.8125rem;
  color: var(--muted);
}

.theme-light .footer-bottom {
  border-top-color: var(--card-border);
}

.footer-credit {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── Error Pages ───────────────────────────────────────────────── */

.error-page {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-code {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800;
  color: var(--primary-glow);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-message {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 400px;
}

/* ── Utilities ─────────────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 639px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 4rem 0 3rem;
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
