/* Core Automation - main stylesheet */
/* Mobile-first, modern, and accessible */

/* Design tokens */
:root {
  /* Brand palette */
  --brand-charcoal: #404040;
  --brand-green: #008A00;
  /* Darken muted grey slightly to ensure WCAG AA contrast on light grey surfaces */
  --brand-grey: #4b5563;
  --text-on-dark: #ffffff;

  /* Neutrals and surfaces */
  --color-text-main: var(--brand-charcoal);
  --color-text-muted: var(--brand-grey);
  --color-surface: #ffffff;
  --color-surface-muted: #f3f4f6;
  --color-surface-soft: #f9fafb;
  --color-border-subtle: #d1d5db;
  --color-border-strong: #9ca3af;

  /* Accent and states */
  --color-accent: var(--brand-green);
  --color-accent-soft: #e6ffe6;
}

/* Base reset and typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text-main);
  background-color: var(--color-surface);
}

/* Accessibility helpers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Layout helpers */
.section {
  padding: 3rem 1.25rem;
}

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

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.page-intro {
  padding: 4rem 1.25rem 2.5rem;
}

.split-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 1.5rem;
  }

  .page-intro {
    padding: 5rem 1.5rem 3rem;
  }

  .split-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

/* Headings & text */
h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
}

p {
  margin: 0 0 1rem;
  max-width: 70ch;
}

.eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

/* Lists */
.bullet-list {
  padding-left: 1.25rem;
  margin: 0;
}

.bullet-list li {
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  /* White text to meet contrast on brand green */
  color: var(--text-on-dark);
  border-color: var(--color-accent);
}

.btn-primary:visited {
  color: var(--text-on-dark);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  /* Keep hover darker (not brighter) to preserve text contrast */
  background-color: #007a00;
  border-color: #007a00;
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}


.btn-outline:visited {
  color: var(--color-accent);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--color-accent-soft);
}

.btn-light {
  background-color: var(--color-surface-soft);
  color: var(--color-text-main);
  border-color: var(--color-border-subtle);
}

.btn-light:hover,
.btn-light:focus-visible {
  background-color: #e5e7eb;
}

/* Button focus states */
.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Header & navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--brand-charcoal);
  color: var(--text-on-dark);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-text {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Nav */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  height: 2px;
  width: 1.4rem;
  background-color: #e5e7eb;
  border-radius: 999px;
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.site-nav {
  display: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li {
  position: relative;
}

.nav-link,
.nav-link-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.6rem 0;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.95rem;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-link:hover,
.nav-link-parent:hover {
  /* Avoid green text on charcoal (fails contrast). Use green underline instead. */
  color: var(--text-on-dark);
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

.nav-caret {
  font-size: 0.7rem;
}

/* Mobile nav open state */
.site-nav.is-open {
  display: block;
}

@media (max-width: 767px) {
  .nav-dropdown-toggle[aria-expanded="true"] + .nav-mega {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--brand-charcoal);
    border-bottom: 1px solid #1f2937;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1.25rem 1rem;
    gap: 0.25rem;
  }

  .nav-item-has-children .nav-mega {
    position: static;
    box-shadow: none;
    border-radius: 0;
    border: none;
    margin-top: 0.25rem;
  }

  .nav-mega-column {
    padding: 0.5rem 0;
  }
}

@media (min-width: 768px) {
  .header-inner {
    padding: 0.75rem 1.5rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

/* Mega menu */
.nav-item-has-children {
  position: relative;
}

.nav-mega {
  position: absolute;
  top: 105%;
  left: 0;
  min-width: 260px;
  background-color: var(--brand-charcoal);
  border-radius: 0.75rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.65);
  padding: 1rem 1.25rem;
  display: none;
  gap: 1.5rem;
}

.nav-mega-column {
  min-width: 0;
}

.nav-mega-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  /* Increase contrast for small uppercase headings in the mega menu */
  color: #d1d5db;
  margin-bottom: 0.4rem;
}

.nav-sublink {
  display: block;
  padding: 0.2rem 0;
  font-size: 0.9rem;
  color: var(--text-on-dark);
  text-decoration: none;
}

.nav-sublink:hover {
  /* Keep text readable on charcoal; accent via underline */
  color: var(--text-on-dark);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

/* Show mega menu on hover/focus for desktop */
@media (min-width: 768px) {
  .nav-item-has-children:hover .nav-mega,
  .nav-item-has-children:focus-within .nav-mega {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nav-item-has-children.is-open > .nav-mega {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* Active nav link */
.nav-link-active {
  position: relative;
  /* Avoid green text on charcoal (fails contrast). Use green underline instead. */
  color: var(--text-on-dark);
}

.nav-link-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 2px;
  border-radius: 999px;
  background: var(--color-accent);
}

/* Dark banner utility class */
.banner-dark {
  color: white;
}

.banner-dark h1,
.banner-dark h2,
.banner-dark h3,
.banner-dark h4,
.banner-dark p,
.banner-dark ul,
.banner-dark li,
.banner-dark .eyebrow {
  color: white;
}

.banner-dark a {
  color: white;
  text-decoration: underline;
}

.banner-dark a:hover,
.banner-dark a:focus {
  color: white;
  text-decoration: none;
  opacity: 0.8;
}

.banner-dark .btn {
  color: white;
  border-color: white;
}

.banner-dark .btn-primary {
  background-color: #0b0b0b;
  border-color: var(--brand-green);
  color: white;
}

.banner-dark .btn-primary:hover,
.banner-dark .btn-primary:focus {
  /* Keep hover within accessible contrast range for white text */
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

.banner-dark .btn-outline {
  background-color: transparent;
  border-color: white;
  color: white;
}

.banner-dark .btn-outline:hover,
.banner-dark .btn-outline:focus {
  background-color: white;
  border-color: white;
  color: var(--brand-charcoal);
}

/* Hero */
.hero {
  /* Align hero green tint with brand green while keeping contrast for white text */
  background: radial-gradient(circle at top left, rgba(0, 138, 0, 0.35) 0, var(--brand-charcoal) 45%, #000000 100%);
  color: var(--text-on-dark);
  padding: 4.5rem 1.25rem 3.5rem;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

.hero-copy h1 {
  font-size: 2.1rem;
  margin-bottom: 0.9rem;
}

.hero-text {
  font-size: 1rem;
  color: var(--text-on-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hero-panel {
  display: flex;
  align-items: stretch;
}

.hero-card {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  max-width: 420px;
}

.checklist {
  padding-left: 1.25rem;
  margin: 0.75rem 0 0;
}

.checklist li {
  margin-bottom: 0.4rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 5rem 1.5rem 4rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }
}

/* Cards & grids */
.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card {
  background-color: var(--color-surface);
  border-radius: 0.9rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.card h3 {
  font-size: 1.05rem;
}

/* Project card images */
.project-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.6rem 0.6rem 0 0;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
}

@media (max-width: 768px) {
  .project-card-image {
    height: 160px;
  }
}

/* Services overview */
.service-overview-grid .card {
  height: 100%;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
}

.service-card-link::after {
  content: "→";
  margin-left: 0.3rem;
  font-size: 0.9rem;
}

.service-card-link:hover,
.service-card-link:focus-visible {
  color: var(--color-accent);
}

.project-meta {
  font-size: 0.85rem;
  color: #6b7280;
}

.project-card-toggle {
  margin-top: 0.75rem;
}

.project-card-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.project-card-open {
  border-color: var(--color-accent);
}

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

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

  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Pills */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background-color: #e5e7eb;
  font-size: 0.85rem;
  color: #111827;
}

/* Customer logo band */
.customer-logo-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  overflow-x: auto;
}

.customer-logo {
  height: 3rem;
  width: auto;
  max-width: 8rem;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.customer-logo:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .customer-logo-band {
    gap: 1.5rem;
    padding: 1.5rem 0;
  }
  
  .customer-logo {
    height: 2.5rem;
    max-width: 6rem;
  }
}

/* Project gallery */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.project-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.project-gallery img:hover {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  cursor: pointer;
}

.lightbox-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: white;
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.25rem;
}

.lightbox-caption {
  margin-top: 0.75rem;
  color: #ffffff;
  text-align: left;
  cursor: default;
}

.lightbox-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #ffffff;
}

.lightbox-description {
  margin: 0.35rem 0 0;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 768px) {
  .project-gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
  }
  
  .lightbox-content {
    width: 95%;
    max-height: 85vh;
  }
}

/* Steps */
.tool-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.tool-logo {
  height: 2rem;
  width: auto;
  object-fit: contain;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.tool-tile {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  justify-items: center;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border-subtle);
  text-align: center;
}

.tool-tile span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-main);
}

@media (max-width: 768px) {
  .tool-logos {
    gap: 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .tool-logo {
    height: 1.5rem;
  }
}
.steps {
  display: grid;
  gap: 1.5rem;
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background-color: var(--color-accent);
  color: var(--text-on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

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

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--brand-charcoal), var(--color-accent));
  color: var(--text-on-dark);
}

.cta-band-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.cta-band-actions {
  display: flex;
  justify-content: flex-start;
}

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

  .cta-band-actions {
    justify-content: flex-end;
  }
}

/* Highlight box */
.highlight-box {
  background-color: var(--color-surface-muted);
  border-radius: 0.9rem;
  padding: 1.5rem;
  border: 1px solid var(--color-border-subtle);
}

/* Contact page */
.contact-list {
  margin: 0 0 1.5rem;
}

.contact-list dt {
  font-weight: 600;
  margin-top: 0.75rem;
}

.contact-list dd {
  margin: 0.1rem 0 0.25rem;
}

.contact-form {
  background-color: #ffffff;
  border-radius: 0.9rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border-subtle);
  font: inherit;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.form-note {
  font-size: 0.85rem;
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.contact-status {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.contact-status.is-success {
  color: var(--color-accent);
}

.contact-status.is-error {
  color: #b91c1c;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.small-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.linkedin-layout {
  display: grid;
  gap: 1.5rem;
  align-items: flex-start;
}

.linkedin-widget {
  min-height: 40px;
}

@media (min-width: 768px) {
  .linkedin-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.linkedin-panel {
  background-color: var(--color-surface-soft);
  border-radius: 0.9rem;
  border: 1px dashed #d1d5db;
  padding: 1.25rem;
}

.linkedin-plugin-container {
  margin-top: 0.75rem;
}

.linkedin-enabled {
  border-style: solid;
  border-color: var(--color-accent);
}

/* Filter controls */
.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
  background-color: var(--color-surface);
  color: var(--color-text-main);
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-btn:hover {
  background-color: var(--color-surface-muted);
}

.filter-btn.is-active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--text-on-dark);
}

/* Footer */
.site-footer {
  background-color: var(--brand-charcoal);
  color: #d9d9d9;
  padding-top: 2.5rem;
}


.site-footer a {
  color: var(--text-on-dark);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.65);
  text-underline-offset: 2px;
}

.site-footer a:hover {
  /* Keep footer links readable on charcoal; accent via underline */
  color: var(--text-on-dark);
  text-decoration-color: var(--color-accent);
}

.site-footer a:visited {
  color: var(--text-on-dark);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 1.75rem;
  display: grid;
  gap: 2rem;
}

.footer-heading {
  color: var(--text-on-dark);
  font-size: 1.1rem;
}

.footer-subheading {
  color: var(--text-on-dark);
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-on-dark);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 2px;
}

.social-links {
  margin-top: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.9rem;
}

.social-link:hover {
  color: var(--text-on-dark);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 2px;
}

.social-icon {
  width: 26px;
  height: 26px;
  border-radius: 0.4rem;
  background-color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  /* White text to meet contrast on brand green */
  color: var(--text-on-dark);
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 0.9rem 1.25rem 1.4rem;
  text-align: center;
  font-size: 0.82rem;
}

@media (min-width: 768px) {
  .footer-inner {
    padding: 0 1.5rem 2rem;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-bottom {
    padding: 0.9rem 1.5rem 1.6rem;
  }
}

/* Links focus styles */
a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Anchor sections */
.anchor-section {
  scroll-margin-top: 5rem;
}

/* Utility classes */
.small {
  font-size: 0.85rem;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  background-color: var(--brand-charcoal);
  color: var(--text-on-dark);
  box-shadow: 0 -6px 16px rgba(15, 23, 42, 0.45);
}

.cookie-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.85rem;
}

.cookie-banner-text a {
  color: var(--color-accent);
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-btn-accept {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--text-on-dark);
}

.cookie-btn-accept:hover,
.cookie-btn-accept:focus-visible {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .cookie-banner-inner {
    padding: 0.9rem 1.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
/* Button styled as a text link for footer cookie settings */
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--color-accent);
  text-decoration: underline;
  cursor: pointer;
}

.link-button:hover,
.link-button:focus-visible {
  color: var(--color-accent);
}

.link-button:focus-visible {
  outline: 3px solid rgba(0, 200, 0, 0.45);
  outline-offset: 4px;
}


.nav-mega ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mega li {
  margin: 0;
}


.subnav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.subnav-links a {
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: 999px;
  text-decoration: none;
  color: var(--color-text-main);
  font-size: 0.95rem;
}

.subnav-links a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}


.banner-dark .btn-light {
  background-color: white;
  border-color: white;
  color: var(--brand-charcoal);
}

.banner-dark .btn-light:hover,
.banner-dark .btn-light:focus-visible {
  background-color: #f1f5f9;
  border-color: #f1f5f9;
  color: var(--brand-charcoal);
}


.link-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

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

.link-list a:hover {
  text-decoration: underline;
}

/* Map embed */
.map-card {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border-subtle);
}

.map-heading {
  margin: 0 0 0.5rem;
}

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface);
  display: grid;
  place-items: center;
}

.map-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder {
  padding: 1rem;
  text-align: center;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.75rem;
}


/* Anchor targets for in-page navigation (accounts for sticky header) */
.anchor-target {
  display: block;
  height: 1px;
  scroll-margin-top: 110px;
}
