:root {
  --navy: #142e4d;
  --blue: #0a7dbd;
  --sky: #eaf5ff;
  --gold: #d9b055;
  --text: #1d2a33;
  --page: #edf6ff;
  --surface: #ffffff;
  --surface-alt: #dfeeff;
  --border: rgba(20, 46, 77, 0.12);
  --shadow: rgba(20, 46, 77, 0.15);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --navy: #a6d8ff;
    --blue: #80c8f2;
    --sky: #263d52;
    --text: #edf4fa;
    --page: #17232f;
    --surface: #223140;
    --surface-alt: #2b4358;
    --border: rgba(220, 235, 248, 0.16);
    --shadow: rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

:root[data-theme="light"] {
  --navy: #142e4d;
  --blue: #0a7dbd;
  --sky: #eaf5ff;
  --text: #1d2a33;
  --page: #edf6ff;
  --surface: #ffffff;
  --surface-alt: #dfeeff;
  --border: rgba(20, 46, 77, 0.12);
  --shadow: rgba(20, 46, 77, 0.15);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --navy: #a6d8ff;
  --blue: #80c8f2;
  --sky: #263d52;
  --text: #edf4fa;
  --page: #17232f;
  --surface: #223140;
  --surface-alt: #2b4358;
  --border: rgba(220, 235, 248, 0.16);
  --shadow: rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--surface) 0%, var(--page) 100%);
}

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

a:hover {
  text-decoration: underline;
}

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

.site-header,
.site-footer,
.hero,
.info-grid,
.feature-box,
.gallery-section,
.page-banner,
.service-layout,
.product-grid,
.contact-layout,
.audio-block {
  max-width: 1100px;
  margin: 0 auto;
}

.site-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 9rem 1rem 1.25rem;
  background: var(--surface);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 3px 10px var(--shadow);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.brand-wrap h1 {
  margin: 0;
  font-size: 2rem;
  color: var(--navy);
}

.brand-wrap p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--blue);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.menu-toggle {
  display: none;
}

.main-nav a {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--navy);
  font-weight: bold;
  transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: #142e4d;
  color: white;
  text-decoration: none;
}

.theme-control {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
}

.theme-switch {
  display: block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.theme-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.switch-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-alt);
}

.switch-sun,
.switch-moon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  font-size: 0.9rem;
  line-height: 1;
}

.switch-moon {
  transform: translateY(-1px);
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 4px var(--shadow);
  transition: transform 0.2s ease;
}

.theme-switch input:checked + .switch-track .switch-thumb {
  transform: translateX(24px);
}

.theme-switch input:focus-visible + .switch-track {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

main {
  padding: 1.5rem 1rem 2rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0;
}

.hero-copy h2,
.page-banner h2,
.gallery-section h3,
.promo-block h3,
.feature-box h3,
.audio-block h3 {
  margin-top: 0;
  color: var(--navy);
}

.eyebrow {
  margin: 0 0 0.5rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid var(--navy);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

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

.button.primary:hover {
  background: var(--blue);
}

.button.secondary {
  background: var(--surface);
  color: var(--navy);
}

.button.secondary:hover {
  background: var(--surface-alt);
}

.hero-image {
  border-radius: 16px;
  box-shadow: 0 12px 25px rgba(20, 46, 77, 0.2);
}

.info-grid,
.product-grid,
.service-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.info-card,
.product-card,
.service-card,
.contact-card,
.contact-form,
.feature-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 20px var(--shadow);
}

.info-card,
.product-card,
.service-card,
.contact-card {
  padding: 1.25rem;
}

.feature-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.5rem;
  margin-top: 2rem;
}

.feature-box ul {
  margin: 0;
  padding-left: 1.25rem;
}

.gallery-section {
  margin-top: 2rem;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.image-grid img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.promo-block {
  max-width: 1100px;
  margin: 2rem auto 0;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px var(--shadow);
  padding: 1.5rem;
}

.promo-video {
  width: 100%;
  border-radius: 12px;
  margin-top: 1rem;
}

.page-banner {
  background: linear-gradient(135deg, var(--sky), var(--surface-alt));
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.product-card ul,
.contact-card p {
  margin: 0;
  padding-left: 1.25rem;
}

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

.two-col {
  grid-template-columns: 1fr 1fr;
}

.audio-block {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 8px 20px var(--shadow);
  padding: 1.5rem;
  margin-top: 2rem;
}

.audio-block audio {
  width: 100%;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-card,
.contact-form {
  padding: 1.5rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.25rem 2rem;
  background: #142e4d;
  color: white;
}

.site-footer a,
.site-footer p,
.site-footer h4 {
  color: white;
}

.site-footer a[href$="brochure.pdf"] {
  text-decoration: underline;
}

.site-footer h4 {
  margin: 0 0 0.5rem;
}

@media (max-width: 768px) {
  .site-header,
  .site-footer,
  .hero,
  .info-grid,
  .feature-box,
  .contact-layout,
  .product-grid,
  .service-layout,
  .image-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .site-header {
    position: relative;
    z-index: 20;
    justify-content: center;
    text-align: left;
    padding: 1rem 1.25rem;
  }

  .theme-control {
    top: 0.9rem;
    right: 4.5rem;
  }

  .brand-wrap {
    padding-right: 3rem;
  }

  .brand-wrap h1 {
    font-size: 1.6rem;
  }

  .menu-toggle {
    position: absolute;
    top: 50%;
    right: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 12px;
    border: 2px solid var(--gold);
    border-radius: 10px;
    background: var(--gold);
    transform: translateY(-50%);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #142e4d;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-9px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 5rem 1rem 2rem;
    background: var(--surface);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: min(100%, 20rem);
    padding: 0.9rem 1rem;
    text-align: center;
    font-size: 1.2rem;
  }

  .menu-toggle[aria-expanded="true"] {
    z-index: 31;
  }

  .site-footer {
    display: block;
    text-align: center;
  }

}
