/* ==========================================================================
   Energo LLC – single long-scroll homepage (HTML, CSS, JS only)
   ========================================================================== */

:root {
  /* Brand palette – navy & orange from logo, neutral grays for backgrounds */
  --color-primary: #1a2a3a;
  --color-primary-light: #2c3e50;
  --color-primary-dark: #0f1a24;
  --color-accent: #f69737;
  --color-accent-light: #ffd98c;
  --color-bg: #f7f8fa;
  --color-bg-alt: #eef0f3;
  --color-surface: #ffffff;
  --color-text: #1a2a3a;
  --color-text-muted: #5a6672;
  --color-border: #d5dbe1;

  /* Footer (light band — logo & links read clearly) */
  --color-footer-bg: #e4e9ef;
  --color-footer-text: var(--color-text);
  --color-footer-muted: var(--color-text-muted);
  --color-footer-heading: var(--color-primary);
  --color-footer-link: var(--color-primary);
  --color-footer-link-hover: var(--color-accent);
  --color-footer-divider: rgba(26, 42, 58, 0.12);

  /* Typography */
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-head: 'Outfit', var(--font-sans);
  --text-base: 1.125rem;
  --text-sm: 1rem;
  --text-xs: 0.875rem;
  --line-tight: 1.25;
  --line-normal: 1.5;
  --line-relaxed: 1.65;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --section-padding-y: clamp(3rem, 8vw, 5rem);
  --section-padding-x: clamp(1rem, 4vw, 2rem);

  /* Layout */
  --container-max: 75rem;
  --header-height: 7.5rem;
  --logo-header-h: 6.5rem;
  --logo-footer-h: 9.5rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --shadow: 0 4px 24px rgba(26, 42, 58, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 42, 58, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--line-normal);
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: var(--line-tight);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--section-padding-x);
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: var(--color-surface);
  font-weight: 600;
  border-radius: var(--radius);
  transition: top 0.2s;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: var(--color-surface);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.header-inner .logo {
  flex-shrink: 0;
}

.header-inner .nav {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  gap: 0.125rem;
}

.header-inner .header-actions {
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

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

.logo-img {
  height: var(--logo-header-h);
  width: auto;
  max-width: min(560px, 72vw);
  object-fit: contain;
  object-position: left center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  background: transparent;
  mix-blend-mode: normal;
}

@media (max-width: 374px) {
  .logo-img {
    height: 4rem;
    max-width: 64vw;
  }
}

.logo:hover .logo-img,
.logo:focus-visible .logo-img {
  transform: scale(1.03);
  opacity: 0.92;
}

.logo:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav {
  display: none;
}

@media (min-width: 992px) {
  .nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    align-items: center;
    flex-shrink: 0;
  }
  .nav a {
    color: var(--color-text);
    font-size: 1rem;
    padding: var(--space-xs) 0.5rem;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
  }
  .nav a:hover {
    color: var(--color-primary);
    background: var(--color-bg-alt);
    text-decoration: none;
  }

  /* Home hero: light nav on transparent header */
  body.home .site-header:not(.is-scrolled) .nav a {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }
  body.home .site-header:not(.is-scrolled) .nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
  }

  body.home .site-header:not(.is-scrolled) .nav a.is-active {
    color: var(--color-accent);
    font-weight: 600;
    background: transparent;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  }

  body.home .site-header:not(.is-scrolled) .nav a.is-active:hover {
    color: var(--color-accent-light);
    background: transparent;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  }
}

.nav a.is-active {
  color: var(--color-accent);
  font-weight: 600;
  background: transparent;
  text-decoration: none;
}

.nav a.is-active:hover {
  color: var(--color-accent);
  background: transparent;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
}

.lang-opt {
  padding: var(--space-xs) var(--space-sm);
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.2s, font-weight 0.2s;
}

.lang-opt:hover {
  color: var(--color-text);
}

.lang-opt.is-active {
  color: var(--color-primary);
  font-weight: 700;
}

.lang-sep {
  margin: 0 2px;
  color: var(--color-border);
  font-weight: 400;
  pointer-events: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
  transition: color 0.25s ease;
}

body.home .site-header:not(.is-scrolled) .nav-toggle {
  color: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

body.home .site-header.is-scrolled .nav-toggle {
  color: var(--color-primary);
  filter: none;
}

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

.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: rgba(26, 42, 58, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 99;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.site-header .header-inner {
  position: relative;
  z-index: 101;
}

@media (max-width: 991px) {
  .nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 100;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-lg);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }
  .nav a {
    padding: var(--space-md);
    border-radius: var(--radius);
    color: var(--color-text);
  }
  .nav a:hover {
    color: var(--color-primary);
    background: var(--color-bg-alt);
    text-decoration: none;
  }
  body.mobile-nav-open .nav {
    display: flex !important;
  }
}

/* ==========================================================================
   Sections common
   ========================================================================== */

.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--color-primary);
  margin: 0 0 var(--space-lg);
}

.section-title--light {
  color: var(--color-surface);
}

.section-intro {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 72ch;
  margin: 0 0 var(--space-xl);
  line-height: var(--line-relaxed);
}

.prose {
  max-width: 85ch;
  line-height: var(--line-relaxed);
}

.prose p {
  margin: 0 0 var(--space-md);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Lighter at the top (under the fixed header / logo); deeper toward the bottom for hero copy */
  background: linear-gradient(
    to bottom,
    rgba(15, 26, 36, 0.40) 0%,
    rgba(15, 26, 36, 0.55) 22%,
    rgba(15, 26, 36, 0.75) 58%,
    rgba(15, 26, 36, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) var(--section-padding-x);
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  color: var(--color-surface);
  margin: 0 0 var(--space-xl);
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

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

.btn-primary {
  background: var(--color-accent);
  color: var(--color-surface);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2rem;
  color: var(--color-surface);
  opacity: 0.8;
  z-index: 1;
}

.hero-scroll:hover {
  opacity: 1;
  color: var(--color-accent-light);
}

.hero-scroll span {
  display: block;
  width: 100%;
  height: 100%;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-25%);
  animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { transform: rotate(45deg) translateY(-25%); opacity: 0.6; }
  50% { transform: rotate(45deg) translateY(0); opacity: 1; }
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  background: var(--color-surface);
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  background: var(--color-bg);
}

.services .section-intro {
  max-width: none;
}

.services-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

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

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.service-card-img {
  aspect-ratio: 3/2;
  background: var(--color-bg-alt);
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-title {
  font-size: 1.2rem;
  margin: var(--space-md) var(--space-md) var(--space-xs);
  color: var(--color-primary);
}

.service-card-desc {
  margin: 0 var(--space-md) var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--line-relaxed);
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stats {
  background: var(--color-primary);
  color: var(--color-surface);
}

.stats .section-title,
.stats .stats-heading {
  margin-bottom: var(--space-xl);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 374px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-accent-light);
  line-height: 1.1;
}

.stat-label {
  display: block;
  font-size: var(--text-xs);
  opacity: 0.9;
  margin-top: var(--space-xs);
}

@media (max-width: 374px) {
  .stat-value {
    font-size: 1.75rem;
  }
  .stat-label {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Values
   ========================================================================== */

.values {
  background: var(--color-surface);
}

.values-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

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

.value-card {
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.value-icon {
  color: var(--color-accent);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.value-title {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin: 0 0 var(--space-sm);
}

.value-desc {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--line-relaxed);
}

/* ==========================================================================
   Mission
   ========================================================================== */

.mission {
  background: var(--color-bg);
}

.mission-inner {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 992px) {
  .mission-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.mission-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mission-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.mission-content .section-title {
  margin-bottom: var(--space-md);
}

.mission-text {
  margin: 0 0 var(--space-md);
  line-height: var(--line-relaxed);
  color: var(--color-text-muted);
}

.mission-text:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Solutions (grouped)
   ========================================================================== */

.solutions {
  background: var(--color-surface);
}

.solutions-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .solutions-groups {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-2xl);
  }
}

.solutions-group {
  padding: var(--space-lg);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.solutions-group-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-accent);
}

.solutions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.solutions-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.solutions-list li > svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.solutions-list li strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.solutions-list li span {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--line-relaxed);
}

/* ==========================================================================
   Certifications & Partners
   ========================================================================== */

.certifications {
  background: var(--color-surface);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  align-items: center;
}

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

@media (min-width: 992px) {
  .certs-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.cert-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  transition: transform 0.2s;
}

.cert-logo:hover {
  transform: scale(1.05);
}

.cert-logo svg {
  width: 100%;
  max-width: 10rem;
  height: auto;
}

.certs-note {
  margin-top: var(--space-xl);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
}

/* ==========================================================================
   Projects
   ========================================================================== */

.projects {
  background: var(--color-bg);
}

.projects .section-intro {
  margin-bottom: var(--space-xl);
}

.projects-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

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

.project-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.project-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.project-card-content {
  padding: var(--space-md);
}

.project-card-content h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 0 0 var(--space-xs);
}

.project-card-content p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--line-relaxed);
}

/* ==========================================================================
   Project detail modal
   ========================================================================== */

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  overflow-y: auto;
}

.project-modal[hidden] {
  display: none !important;
}

.project-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 42, 58, 0.68);
  backdrop-filter: blur(4px);
}

.project-modal-panel {
  position: relative;
  width: 100%;
  max-width: 48rem;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.project-modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-text);
  background: var(--color-surface);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s;
}

.project-modal-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.project-modal-gallery {
  flex-shrink: 0;
  background: var(--color-bg-alt);
}

.project-modal-main {
  aspect-ratio: 2/1;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.project-modal-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-modal-thumbs {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  overflow-x: auto;
}

.project-modal-thumbs img {
  width: 3.25rem;
  height: 2.25rem;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.project-modal-thumbs img:hover,
.project-modal-thumbs img.is-active {
  border-color: var(--color-accent);
}

.project-modal-details {
  padding: var(--space-md) var(--space-lg);
  flex: 1 1 auto;
}

.project-modal-title {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 0 0 var(--space-md);
}

.project-modal-body {
  margin: 0;
}

.project-modal-subtitle {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin: var(--space-md) 0 var(--space-sm);
}

.project-modal-body > .project-modal-subtitle:first-child {
  margin-top: 0;
}

.project-modal-list {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.project-modal-list:last-child {
  margin-bottom: 0;
}

.project-modal-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  line-height: var(--line-relaxed);
  color: var(--color-text-muted);
}

.project-modal-list--highlights li {
  color: var(--color-text);
}

.project-modal-bullet-icon {
  flex-shrink: 0;
  margin-top: 0.15em;
  color: var(--color-accent);
  line-height: 0;
}

.project-modal-bullet-icon svg {
  display: block;
}

@media (max-width: 639px) {
  .project-modal-main {
    aspect-ratio: 16/9;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background: var(--color-bg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  max-width: none;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 600px) {
  .form-row--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contact-form label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(246, 151, 55, 0.28);
}

.contact-form .honeypot {
  position: absolute;
  left: -9999px;
}

.contact-form .btn {
  margin-top: var(--space-sm);
  align-self: flex-start;
}

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-lg) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(26, 42, 58, 0.10);
  transform: translateY(100%);
  transition: transform 0.3s ease, visibility 0.3s;
  visibility: hidden;
}

.cookie-banner--visible {
  transform: translateY(0);
  visibility: visible;
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.cookie-banner-text {
  flex: 1 1 20rem;
  max-width: 50rem;
}

.cookie-banner-title {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 var(--space-xs);
}

.cookie-banner-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--line-relaxed);
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.cookie-banner .btn {
  white-space: nowrap;
}

@media (max-width: 479px) {
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-banner .btn {
    flex: 1;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: var(--space-xl) 0 0;
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  font-size: var(--text-sm);
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
}

.footer-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-footer-divider);
  align-items: start;
}

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

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
  }

  /* Shorter lockup so the last bullet lines up with the Services / Service Areas list ends */
  .footer-brand .footer-logo-img {
    height: 6.75rem;
    max-width: min(260px, 36vw);
  }

  .footer-brand .footer-logo-link {
    margin-top: -0.25rem;
    margin-bottom: var(--space-xs);
  }
}

.footer-brand {
  max-width: 28rem;
  padding-top: 0;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links li {
  font-size: var(--text-xs);
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-address-block {
  font-style: normal;
  font-size: var(--text-xs);
}

.footer-address-block p {
  margin: 0 0 var(--space-xs);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(246, 151, 55, 0.2);
}

.footer-nav a {
  font-size: var(--text-xs);
}

.footer-logo-link {
  display: inline-block;
  margin: 0 0 var(--space-sm);
  padding: 0;
  vertical-align: top;
  background: transparent;
  border: none;
  border-radius: 0;
  line-height: 0;
  box-shadow: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-logo-link:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.footer-logo-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.footer-logo-img {
  height: var(--logo-footer-h);
  width: auto;
  max-width: min(640px, 96vw);
  display: block;
  object-fit: contain;
  background: transparent;
  mix-blend-mode: normal;
}

.footer-brand-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--color-footer-muted);
}

.footer-brand-bullet-icon {
  flex-shrink: 0;
  margin-top: 0.2em;
  color: var(--color-accent);
  line-height: 0;
}

.footer-brand-bullet-icon svg {
  display: block;
}

@media (min-width: 992px) {
  .footer-brand-bullets {
    gap: 0.3rem;
    max-width: 22rem;
  }

  .footer-brand-bullets li {
    line-height: 1.4;
  }
}

.footer-principal {
  margin: var(--space-sm) 0 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-footer-text);
}

.about-principal {
  margin-top: var(--space-md);
  font-weight: 500;
  color: var(--color-text-muted);
}

.footer-heading {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-footer-heading);
  margin: 0 0 var(--space-md);
}

.footer-contact p {
  margin: 0 0 var(--space-xs);
}

.footer-contact .footer-address,
.footer-contact .footer-tel,
.footer-contact .footer-email,
.footer-contact .footer-map {
  margin-bottom: var(--space-sm);
}

.site-footer a {
  color: var(--color-footer-link);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: 400;
}

.site-footer a:hover {
  text-decoration: underline;
  color: var(--color-footer-link-hover);
}

.footer-bottom {
  padding: var(--space-lg) 0;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--color-footer-muted);
}

/* ==========================================================================
   Spacer for fixed header
   ========================================================================== */

main {
  padding-top: 0;
}
