:root {
  --navy-900: #0A1F3C;
  --navy-800: #0F2A52;
  --blue-700: #173F6B;
  --blue-600: #1D4E89;
  --accent: #F5A524;
  --accent-600: #E0940F;
  --ink: #1A2433;
  --muted: #5A6B82;
  --white: #FFFFFF;
  --surface: #F4F8FC;
  --border: #E2E8F0;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1120px;

  --shadow-sm: 0 1px 2px rgba(10, 31, 60, .06);
  --shadow-md: 0 8px 24px rgba(10, 31, 60, .10);
  --shadow-lg: 0 20px 48px rgba(10, 31, 60, .16);

  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 5rem;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Colour schemes ---------- */
:root[data-scheme="classic"] {
  --navy-900: #0A1F3C;
  --navy-800: #0F2A52;
  --blue-700: #173F6B;
  --blue-600: #1D4E89;
  --accent: #F5A524;
  --accent-600: #E0940F;
}

:root[data-scheme="logo"] {
  --navy-900: #063D59;
  --navy-800: #0A5075;
  --blue-700: #1785B8;
  --blue-600: #29ABE2;
  --accent: #FFDD00;
  --accent-600: #E6C400;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 var(--space-2);
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--space-2);
}

a {
  color: var(--blue-600);
}

img, svg {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1100;
  background: var(--navy-900);
  color: var(--white);
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  transition: top .2s ease;
}

.skip-link:focus {
  top: 1rem;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  padding: .85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn-sm {
  padding: .6rem 1.1rem;
  font-size: .95rem;
}

.btn-block {
  width: 100%;
}

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

.btn-primary:hover {
  background: var(--accent-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--navy-900);
}

.brand-mark {
  display: block;
  width: 52px;
  height: 52px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--accent-600);
}

.primary-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.primary-nav a:not(.btn):hover {
  color: var(--blue-600);
}

.nav-cta {
  color: var(--navy-900);
}

.scheme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  margin-right: .75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--navy-900);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.scheme-toggle:hover {
  background: var(--surface);
  border-color: var(--blue-600);
}

.scheme-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--navy-900);
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--blue-700) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.hero-graphic {
  width: min(520px, 55%);
  height: auto;
  transform: translateX(12%);
  opacity: .9;
}

.hero-graphic .hero-bolt-a {
  stop-color: var(--accent);
}

.hero-graphic .hero-bolt-b {
  stop-color: var(--accent-600);
}

.hero-inner {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, .88);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.hero-trust {
  font-size: .95rem;
  color: rgba(255, 255, 255, .75);
  margin: 0;
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section-alt {
  background: var(--surface);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
}

.section-intro {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-media {
  position: relative;
  aspect-ratio: 16 / 10;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-icon {
  position: absolute;
  left: 1.25rem;
  bottom: -28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--navy-900), var(--blue-600));
  color: var(--accent);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-body {
  padding: 2.25rem 1.75rem 1.75rem;
}

.service-card h3 {
  font-size: 1.25rem;
}

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

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .9rem 1rem .8rem;
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  background: linear-gradient(to top, rgba(10, 31, 60, .85), rgba(10, 31, 60, 0));
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content p {
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: .9rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 500;
  color: var(--ink);
}

.feature-list .check {
  flex: none;
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy-900);
}

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

.stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-value {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--blue-600);
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: .35rem;
  font-size: .9rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-subhead {
  font-size: 1.2rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-ic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--blue-600);
}

.contact-ic svg {
  width: 22px;
  height: 22px;
}

.contact-key {
  display: block;
  font-weight: 600;
  color: var(--navy-900);
  font-size: .9rem;
}

.contact-list a {
  color: var(--blue-600);
  text-decoration: none;
}

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

/* ---------- Form ---------- */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.field {
  margin-bottom: 1.1rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy-900);
}

.req {
  color: var(--accent-600);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: .75rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(29, 78, 137, .15);
}

.field input.invalid,
.field textarea.invalid {
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .12);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  font-size: .95rem;
  min-height: 1.4em;
}

.form-status.is-error {
  color: #C0392B;
}

.form-status.is-success {
  color: #1E7A46;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .82);
  padding-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-brand .brand-name span {
  color: var(--accent);
}

.footer-brand .brand-mark {
  width: 44px;
  height: 44px;
  vertical-align: middle;
  margin-right: .5rem;
}

.footer-note {
  margin-top: .75rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer-nav a,
.footer-contact a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--accent);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .95rem;
}

.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: .5rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .82);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--navy-900);
  border-color: var(--accent);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.25rem;
}

.footer-legal p {
  margin: 0;
  font-size: .88rem;
  color: rgba(255, 255, 255, .6);
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
  }

  .primary-nav.open {
    max-height: 420px;
  }

  .primary-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1.25rem 1.25rem;
  }

  .primary-nav .nav-list li {
    border-bottom: 1px solid var(--border);
  }

  .primary-nav .nav-list li:last-child {
    border-bottom: 0;
    margin-top: .75rem;
  }

  .primary-nav a:not(.btn) {
    display: block;
    padding: .9rem .25rem;
  }

  .nav-cta {
    text-align: center;
  }

  .hero-graphic {
    opacity: .35;
  }
}

@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .hero-actions .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .gallery-item:hover img {
    transform: none;
  }
}
