/* Theme variables */
:root {
  --ink: #1f2933;
  --muted: #5f6c76;
  --line: #d8e0e7;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --brand: #176b87;
  --brand-dark: #0f4558;
  --accent: #c28a2c;
  --footer: #132d3a;
  --shadow: 0 18px 45px rgba(20, 40, 55, 0.12);
}

/* Night mode overrides */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf4f7;
  --muted: #b6c7d0;
  --line: #244556;
  --surface: #102734;
  --surface-soft: #0a1b24;
  --brand: #42a8c5;
  --brand-dark: #d8f4fb;
  --accent: #f0bd62;
  --footer: #07141b;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

/* Base reset and document defaults */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-soft);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

/* Shared layout container */
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header, navigation, and theme toggle */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

:root[data-theme="dark"] .site-header {
  background: rgba(10, 27, 36, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--brand-dark);
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav input {
  display: none;
}

.menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.menu a:hover,
.menu a.active {
  color: var(--brand-dark);
  background: #e7f4f7;
}

:root[data-theme="dark"] .menu a:hover,
:root[data-theme="dark"] .menu a.active {
  background: #173847;
}

.menu-icon {
  display: none;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  font-weight: 800;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--brand-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.theme-toggle:hover {
  background: #e7f4f7;
}

:root[data-theme="dark"] .theme-toggle:hover {
  background: #173847;
}

.theme-toggle-icon {
  font-size: 18px;
  line-height: 1;
}

/* Page hero and promotion sections */
.hero,
.page-hero,
.policy-hero {
  background: linear-gradient(135deg, #eef8fb 0%, #ffffff 56%, #f9f1e3 100%);
  border-bottom: 1px solid var(--line);
}

:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .page-hero,
:root[data-theme="dark"] .policy-hero {
  background: linear-gradient(135deg, #0a1b24 0%, #102734 58%, #1b2f35 100%);
}

.promotion-section {
  padding: 34px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

:root[data-theme="dark"] .promotion-section {
  background: #081820;
}

.promotion-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
  gap: 32px;
  align-items: center;
  padding: 28px;
  background: linear-gradient(135deg, #fff8ea 0%, #ffffff 62%, #eef8fb 100%);
  border: 1px solid #ead3a2;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

:root[data-theme="dark"] .promotion-grid {
  background: linear-gradient(135deg, #1b2f35 0%, #102734 62%, #0b202b 100%);
  border-color: #4f4124;
}

.promotion-copy h1 {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.promotion-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
}

.promotion-media {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

:root[data-theme="dark"] .promotion-media {
  background: #0a1b24;
}

.promotion-media img {
  width: 100%; 
  object-fit: cover;
  border-radius: 8px;
}

.hero-grid,
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 52px;
  padding: 72px 0;
}

.hero-copy {
  min-width: 0;
}

/* Reusable labels and small promotion callouts */
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-label {
  margin-bottom: 18px;
}

.promo-strip {
  display: grid;
  gap: 4px;
  margin-bottom: 22px;
  padding: 14px 16px;
  color: var(--brand-dark);
  background: #fff8ea;
  border: 1px solid #ead3a2;
  border-left: 5px solid var(--accent);
  border-radius: 8px;
}

:root[data-theme="dark"] .promo-strip {
  background: #1b2f35;
  border-color: #4f4124;
}

.promo-strip strong {
  font-size: 16px;
  line-height: 1.3;
}

.promo-strip span {
  color: var(--muted);
}

/* Home hero slideshow */
.slide-title,
.page-hero h1,
.policy-hero h1 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.06;
}

.slide-copy,
.page-hero p,
.policy-hero p,
.section p {
  color: var(--muted);
  font-size: 18px;
}

.slideshow-container {
  position: relative;
  min-height: 260px;
}

.mySlides {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 450ms ease;
}

.mySlides.is-active {
  opacity: 1;
  pointer-events: auto;
}

.fade {
  animation: fade 450ms ease;
}

@keyframes fade {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

/* Buttons and calls to action */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--brand);
}

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

.button.secondary {
  color: var(--brand-dark);
  background: #fff;
  border-color: var(--line);
}

:root[data-theme="dark"] .button.secondary {
  background: #102734;
}

.button.secondary:hover {
  background: #edf6f8;
}

:root[data-theme="dark"] .button.secondary:hover {
  background: #173847;
}

.hero-media img,
.page-hero-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Service and affiliation cards */
.services-band {
  padding: 28px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
}

.service-card h2 {
  margin: 0 0 4px;
  color: var(--brand-dark);
  font-size: 21px;
  line-height: 1.2;
}

.service-card p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
}

.affiliation-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.affiliation-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  min-height: 190px;
  padding: 24px;
  text-align: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.affiliation-card img {
  max-height: 76px;
  width: auto;
  object-fit: contain;
}

.affiliation-card h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 20px;
  line-height: 1.25;
}

/* General content sections and split layouts */
.section {
  padding: 72px 0;
}

.split,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 46px;
  align-items: stretch;
}

.section h2,
.contact-panel h2,
.panel h2,
.policy-content h2 {
  margin: 0 0 16px;
  color: var(--brand-dark);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.14;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 14px 16px;
  color: var(--brand-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

:root[data-theme="dark"] .contact-form input,
:root[data-theme="dark"] .contact-form textarea {
  border-color: #426070;
}

.feature-list.compact {
  grid-template-columns: 1fr;
}

.panel,
.contact-panel,
.contact-form,
.policy-content {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.prose p {
  max-width: 720px;
}

.support-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Contact form, Formspree status messages, and support panel */
.contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-status {
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 800;
}

.form-status.info {
  color: var(--brand-dark);
  background: #edf6f8;
  border: 1px solid #cdebf2;
}

.form-status.success {
  color: #0f5132;
  background: #dff4e8;
  border: 1px solid #badbcc;
}

.form-status.error {
  color: #842029;
  background: #f8d7da;
  border: 1px solid #f1aeb5;
}

.contact-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-panel img {
  width: calc(100% + 56px);
  max-width: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: -28px -28px 4px;
  border-radius: 8px 8px 0 0;
}

.contact-panel h2 {
  margin-bottom: 0;
}

.contact-panel .feature-list {
  flex: 1;
  align-content: start;
}

.form-field {
  display: grid;
  gap: 8px;
}

.contact-form label {
  color: var(--brand-dark);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #bac8d3;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  background: var(--surface);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid #cdebf2;
  border-color: var(--brand);
}

.form-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.error-message {
  color: #b42318;
  font-size: 14px;
  font-weight: 700;
}

/* Native Google Maps listing and review invitation */
.reviews-section {
  padding: 64px 0;
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
}

.reviews-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 1.18fr);
  gap: 42px;
  align-items: center;
}

.reviews-copy h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.14;
}

.reviews-copy > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.reviews-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.google-map {
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.google-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

/* Logo strips and image-led content bands */
.certifications {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 26px 20px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.certifications img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
}

.image-band {
  padding: 64px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

:root[data-theme="dark"] .image-band {
  background: #081820;
}

.image-band-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
}

.image-band-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-band-grid h2 {
  margin: 0 0 14px;
  color: var(--brand-dark);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.14;
}

.image-band-grid p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

/* Privacy policy content */
.policy-hero .container {
  max-width: 840px;
  padding: 64px 0;
}

.policy-content {
  max-width: 860px;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
  font-size: 17px;
}

.policy-content ul {
  padding-left: 22px;
}

/* Footer */
.site-footer {
  color: #dbe7ed;
  background: var(--footer);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(180px, 0.35fr) 160px;
  gap: 24px;
  align-items: center;
  padding: 34px 0;
}

.site-footer p {
  margin: 6px 0 0;
  color: #b7cbd4;
}

.footer-links {
  display: grid;
  gap: 10px;
  justify-items: start;
  justify-content: center;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.footer-social {
  color: #fff;
  background: #1f5f78;
}

.footer-legal {
  color: #dbe7ed;
  border: 1px solid rgba(219, 231, 237, 0.32);
}

.footer-links a:hover {
  text-decoration: underline;
}

.site-footer .footer-grid > div:first-child p:last-child {
  white-space: nowrap;
}

.secure-seal img {
  max-width: 150px;
  margin-left: auto;
}

.poweredBy {
  padding: 12px 20px;
  color: var(--ink);
  background: #eef3f6;
  text-align: center;
}

:root[data-theme="dark"] .poweredBy {
  background: #0a1b24;
}

.poweredBy p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

/* Tablet and small desktop layout */
@media (max-width: 1080px) {
  .header-inner,
  .promotion-grid,
  .hero-grid,
  .page-hero-grid,
  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    display: grid;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .affiliation-cards,
  .image-band-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-grid > div:first-child p:last-child {
    white-space: normal;
  }

  .footer-links {
    justify-items: center;
  }

  .secure-seal img {
    margin: 0 auto;
  }
}

/* Mobile layout */
@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 76px;
    gap: 12px;
  }

  .brand {
    font-size: 20px;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .menu-icon {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    right: 86px;
    top: calc(100% + 10px);
    display: none;
    min-width: 220px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  :root[data-theme="dark"] .menu {
    background: var(--surface);
  }

  .site-nav input:checked + .menu-icon + .menu {
    display: grid;
  }

  .menu a {
    width: 100%;
    border-radius: 6px;
  }

  .hero-grid,
  .page-hero-grid {
    padding: 44px 0;
    gap: 28px;
  }

  .promotion-section {
    padding: 24px 0;
  }

  .promotion-grid {
    padding: 22px;
  }

  .slideshow-container {
    min-height: 300px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-template-columns: 60px 1fr;
  }

  .service-card img {
    width: 60px;
    height: 60px;
  }

  .service-card p {
    grid-column: 1 / -1;
  }

  .affiliation-card {
    min-height: auto;
  }

  .section {
    padding: 46px 0;
  }

  .reviews-section {
    padding: 46px 0;
  }

  .reviews-actions .button {
    width: 100%;
  }

  .image-band {
    padding: 46px 0;
  }

  .panel,
  .contact-panel,
  .contact-form,
  .policy-content {
    padding: 22px;
  }

  .contact-panel img {
    width: calc(100% + 44px);
    margin: -22px -22px 0;
  }

  .form-buttons .button {
    width: 100%;
  }

  .certifications {
    flex-wrap: wrap;
    gap: 18px;
  }
  .google-map,
  .google-map iframe {
    min-height: 300px;
  }
}
