:root {
  --navy-900: #0d1622;
  --navy-800: #141b24;
  --navy-700: #0d2340;
  --blue-600: #1657a6;
  --blue-50: #eaf1fa;
  --blue-100: #c7dbf0;
  --blue-bg: #f2f6fb;
  --page-bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f2f6fb;
  --header-bg: #ffffff;
  --text-primary: #141b24;
  --text-secondary: #4a5768;
  --text-muted: #586675;
  --border: #dde3ea;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

body.dark-mode {
  --page-bg: #07131f;
  --surface: #0f1726;
  --surface-muted: #142234;
  --header-bg: #0b1422;
  --text-primary: #f4f7fb;
  --text-secondary: #b6c2d2;
  --text-muted: #8fa3b6;
  --border: rgba(255, 255, 255, 0.12);
  --blue-bg: #142234;
  --navy-900: #f4f7fb;
  --navy-800: #e6ecf4;
  --navy-700: #0d2340;
}

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--page-bg);
  line-height: 1.6;
  transition: background-color 0.2s ease, color 0.2s ease;
  overscroll-behavior-x: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  margin: 0;
  color: var(--navy-900);
}

body.dark-mode .site-footer,
body.dark-mode .service-card,
body.dark-mode .plan-card,
body.dark-mode .cta__inner,
body.dark-mode .trust-strip {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border);
}

body.dark-mode .trust-strip__label,
body.dark-mode .section-heading .eyebrow,
body.dark-mode .plan-card__badge {
  color: var(--blue-100);
}

body.dark-mode .badge {
  color: #dceeff;
  background: rgba(22, 87, 166, 0.18);
  border-color: rgba(142, 195, 255, 0.35);
}

/* Utility bar */
.utility-bar {
  background: var(--navy-700);
  color: #a9bcd4;
  font-size: 13px;
}

.utility-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 28px;
  font-size: 12px;
}

.utility-bar__meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.utility-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.utility-bar__inner i {
  margin-right: 5px;
}

.theme-toggle,
.translation-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f4f7fb;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover,
.translation-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: relative;
  background: var(--header-bg);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px; /* slightly larger header */
  gap: 12px;
  min-width: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 17px;
  margin-left: 24px;
  white-space: nowrap;
  max-width: 100%;
  min-width: 0;
}

.logo__mark {
  max-height: 96px; /* larger logo but constrained by header */
  width: auto;
  height: auto;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  transform-origin: center center;
  transform: translateY(6px) scale(1.8); /* lower and much larger visually */
}

.logo__wordmark {
  line-height: 1;
  display: inline-flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 18px;
  min-width: 0;
}

.logo__wordmark > span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 14px;
}

.logo:focus {
  outline: 3px solid rgba(22,87,166,0.18);
  outline-offset: 3px;
  border-radius: 6px;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 16px; /* slightly larger tab text */
  color: var(--text-muted);
  flex: 1;
  justify-content: center;
}

.site-nav a {
  display: inline-block;
  padding: 8px 16px; /* larger clickable tab area */
  line-height: 1;
  border-radius: 4px;
}

.site-nav a:hover {
  color: var(--text-primary);
}

.site-nav a.is-active,
.mobile-nav a.is-active {
  color: var(--blue-600);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(13, 22, 34, 0.08);
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
  color: inherit;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13, 22, 34, 0.12);
  outline: none;
}

body.dark-mode .nav-toggle {
  background: var(--surface-muted);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
}

/* header ordering: default flow — small left margin on `.logo` shifts it slightly right */

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 40px 0;
  border-bottom: 1px solid var(--border);
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.28s ease, opacity 0.24s ease, padding 0.28s ease;
}

.mobile-nav:not([hidden]) {
  padding: 12px 40px 20px;
  max-height: 320px;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.mobile-nav .btn {
  margin-top: 8px;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue-600);
  color: var(--white);
}

.btn--primary:hover {
  background: #124a8c;
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: #c4cdd8;
}

.btn--outline:hover {
  background: #f5f7f9;
}

/* Hero */
.hero {
  padding: 64px 40px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 4px;
  padding: 4px 10px;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 38px;
  line-height: 1.22;
  max-width: 620px;
  margin-bottom: 16px;
}

.hero__lead {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 0 28px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

/* Trust strip */
.trust-strip {
  background: var(--blue-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 40px;
  flex-wrap: wrap;
}

.trust-strip__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-600);
  letter-spacing: 1px;
  white-space: nowrap;
}

.trust-strip__items {
  display: flex;
  gap: 28px;
  font-size: 13px;
  flex-wrap: wrap;
}

.trust-strip__items div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-strip__items i {
  color: var(--blue-600);
  font-size: 15px;
}

/* Section heading */
.section-heading {
  margin-bottom: 28px;
}

.section-heading--center {
  text-align: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-600);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: 24px;
  font-weight: 700;
}

/* Services */
.services {
  padding: 56px 40px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.service-card i {
  color: var(--blue-600);
  font-size: 24px;
}

.service-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 14px 0 6px;
}

.service-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
}

/* Pricing */
.pricing {
  padding: 20px 40px 56px;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.plan-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
}

.plan-card--featured {
  border: 2px solid var(--blue-600);
}

.plan-card__badge {
  position: absolute;
  top: -11px;
  left: 20px;
  background: var(--blue-600);
  color: var(--white);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 10px;
}

.plan-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.plan-card__cadence {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.plan-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.plan-card li {
  padding: 4px 0;
}

.plan-card li::before {
  content: '\2013\0020';
}

/* Certifications */
.certifications {
  background: var(--blue-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.certifications__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 26px 40px;
  font-size: 12.5px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.certifications__inner div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.certifications__inner i {
  font-size: 16px;
  color: var(--blue-600);
}

/* CTA */
.cta {
  padding: 44px 40px;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta__inner h2 {
  font-size: 19px;
  margin-bottom: 6px;
}

.cta__inner p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 420px;
}

/* Interior page header */
.page-header {
  padding: 48px 40px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--blue-bg);
}

.page-header h1 {
  font-size: 30px;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0;
}

/* Link more */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--blue-600);
}

.link-more--center {
  display: flex;
  justify-content: center;
}

/* Service detail (services.html) */
.service-detail {
  padding: 56px 40px;
  border-top: 1px solid var(--border);
}

.service-detail__grid {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  max-width: 720px;
}

.service-detail__grid i {
  font-size: 28px;
  color: var(--blue-600);
}

.service-detail__grid h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.service-detail__grid p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.service-detail:nth-of-type(even) {
  background: var(--blue-bg);
}

/* Process steps (services.html) */
.process {
  padding: 56px 40px;
  border-top: 1px solid var(--border);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.process__step {
  text-align: center;
}

.process__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--blue-600);
  color: var(--blue-600);
  font-family: var(--font-mono);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.process__step h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.process__step p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  padding: 0 8px;
}

/* Compliance page */
.compliance-block {
  padding: 56px 40px;
  border-top: 1px solid var(--border);
}

.compliance-block__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.compliance-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.compliance-item i {
  font-size: 22px;
  color: var(--blue-600);
}

.compliance-item h3 {
  font-size: 15px;
  margin: 12px 0 6px;
}

.compliance-item p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* Contact page */
.contact-layout {
  padding: 56px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h2 {
  font-size: 20px;
  margin-bottom: 18px;
}

.contact-info__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-info__item i {
  font-size: 18px;
  color: var(--blue-600);
  margin-top: 2px;
}

.contact-info__item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.contact-info__item span {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--surface);
  box-shadow: inset 0 1px 2px rgba(13, 22, 34, 0.04);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(22, 87, 166, 0.2);
  border-color: var(--blue-600);
  background: var(--surface);
}

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

.form-status {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.form-status--success {
  color: #107c3e;
}

.form-status--error {
  color: #b42318;
}

.form-status a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* Gallery */
.gallery-page {
  padding: 40px 0 64px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.gallery-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(13, 22, 34, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover,
.gallery-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13, 22, 34, 0.12);
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 19, 31, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__content {
  position: relative;
  max-width: min(92vw, 900px);
  max-height: 90vh;
}

.lightbox__img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #07131f;
  font-size: 1.2rem;
  cursor: pointer;
}

.gallery-card__body {
  padding: 18px 18px 20px;
}

.gallery-card__body h2 {
  font-size: 16px;
  margin-bottom: 8px;
}

.gallery-card__body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.service-media-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Responsive */
@media (max-width: 860px) {
  .services__grid,
  .pricing__grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .site-header .btn--primary {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-nav:not([hidden]) {
    display: flex;
  }

  .utility-bar__inner {
    flex-direction: column;
    gap: 4px;
    padding: 8px 20px;
  }

  .container,
  .hero,
  .services,
  .pricing,
  .cta,
  .site-header__inner,
  .site-footer__inner,
  .trust-strip__inner,
  .certifications__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .logo__mark {
    max-height: 64px; /* larger on mobile */
    width: auto;
    flex: 0 0 auto;
    transform: translateY(3px) scale(1.3);
  }
  /* mobile header uses default flow */

  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .process__grid,
  .compliance-block__grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-detail,
  .process,
  .compliance-block,
  .contact-layout,
  .page-header {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 640px) {
  .utility-bar__inner {
    padding: 8px 16px;
  }

  .site-header__inner {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px 16px;
  }

  .logo {
    margin-left: 0;
    gap: 12px;
    font-size: 15px;
    white-space: normal;
    overflow: hidden;
  }

  .logo__mark {
    max-height: 80px;
    transform: translateY(3px);
  }

  .logo__wordmark {
    font-size: 16px;
    white-space: nowrap;
  }

  .logo__wordmark > span {
    font-size: 12px;
  }

  .nav-toggle {
    margin-left: auto;
  }

  .mobile-nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mobile-nav:not([hidden]) {
    padding: 12px 16px 18px;
  }

  .hero {
    padding: 36px 16px 0;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.2;
  }

  .hero__lead {
    font-size: 15px;
    max-width: none;
  }

  .hero__actions {
    margin-bottom: 28px;
  }

  .badge {
    margin-bottom: 14px;
  }

  .trust-strip__inner,
  .certifications__inner {
    padding: 16px;
  }

  .trust-strip__items {
    gap: 12px 16px;
  }

  .services,
  .pricing,
  .cta,
  .page-header,
  .service-detail,
  .process,
  .compliance-block,
  .contact-layout,
  .site-footer__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .service-detail__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-info__item {
    gap: 10px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }
}
