:root {
  --navy: #07162b;
  --navy-2: #0b2039;
  --blue: #0a6fb0;
  --blue-bright: #1997e6;
  --silver: #c0c4c9;
  --mist: #eef3f7;
  --ink: #102238;
  --white: #ffffff;
  --page-bg: #07162b;
  --header-bg: linear-gradient(135deg, #061326, #081b31);
  --footer-bg: #030d1c;
  --surface-text: #ffffff;
  --muted-text: #bac6d3;
  --section-bg: #081b31;
  --section-alt: #0b2039;
  --card-bg: linear-gradient(150deg, #0d2744, #081a2f);
  --card-border: rgba(192,196,201,.2);
  --copy-text: #bac6d3;
  --hero-shade: linear-gradient(90deg, rgba(3,16,34,.97) 0%, rgba(4,23,45,.88) 43%, rgba(4,18,34,.58) 73%, rgba(4,18,34,.42) 100%);
  --hero-text: #ffffff;
  --trust-bg: rgba(7,27,50,.97);
}

:root[data-theme="light"] {
  --page-bg: #f4f7fa;
  --header-bg: linear-gradient(135deg, #ffffff, #edf4fa);
  --footer-bg: #e6eef5;
  --surface-text: #102238;
  --muted-text: #526578;
  --section-bg: #ffffff;
  --section-alt: #eef3f7;
  --card-bg: linear-gradient(150deg, #ffffff, #f4f8fb);
  --card-border: #dbe3eb;
  --copy-text: #526578;
  --hero-shade: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(247,250,252,.9) 47%, rgba(240,246,250,.74) 76%, rgba(238,244,248,.6) 100%);
  --hero-text: #102238;
  --trust-bg: rgba(255,255,255,.98);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page-bg); color: var(--surface-text); font-family: Montserrat, "Segoe UI", Arial, sans-serif; transition: background .25s ease, color .25s ease; }
a { color: inherit; text-decoration: none; }
.container { width: min(1450px, calc(100% - 84px)); margin-inline: auto; }
.opening-banner { position: relative; z-index: 20; background: linear-gradient(90deg, #0877bb, #12a2e9); color: #fff; box-shadow: 0 7px 24px rgba(0,0,0,.2); }
.opening-banner__inner { min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 14px 22px; text-align: center; font-size: 17px; letter-spacing: .01em; }
.opening-banner__inner strong { font-family: "Times New Roman", Trajan, serif; font-size: 24px; font-weight: 500; text-transform: uppercase; letter-spacing: .045em; }
.site-header { position: relative; z-index: 10; background: var(--header-bg); border-bottom: 1px solid rgba(192,196,201,.22); transition: background .25s ease; }
.utility { min-height: 190px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-controls { display: flex; align-items: center; gap: 10px; }
.logo-link { display: flex; flex: 0 0 auto; align-items: center; gap: 20px; }
.brand-copy { display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--surface-text); }
.brand-name { white-space: nowrap; font-family: "Times New Roman", Trajan, serif; font-size: 29px; line-height: 1; letter-spacing: .045em; text-transform: uppercase; }
.brand-tagline { font-size: 13px; line-height: 1; letter-spacing: .19em; text-transform: uppercase; }
.brand-logo { display: block; object-fit: contain; }
.brand-logo--horizontal { width: 174px; height: 174px; }
.brand-logo--badge { width: 390px; height: 390px; filter: drop-shadow(0 22px 25px rgba(0,0,0,.35)); }
.utility-links { display: flex; align-items: center; gap: 0; font-size: 16px; }
.utility-links > a:not(.button) { padding: 20px 20px; border-left: 1px solid rgba(192,196,201,.22); white-space: nowrap; }
.header-phone { color: #fff; font-weight: 700; white-space: nowrap; }
.theme-toggle { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: currentColor; font-size: 14px; opacity: .04; cursor: pointer; transition: opacity .2s ease, transform .2s ease; }
.theme-toggle:hover, .theme-toggle:focus-visible { opacity: .85; transform: scale(1.06); }
.button { min-height: 56px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; border-radius: 8px; font-weight: 650; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button span { font-size: 28px; line-height: 1; font-weight: 300; }
.button--primary { color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-bright)); box-shadow: 0 8px 24px rgba(10,111,176,.22); }
.button--outline { border: 2px solid var(--blue-bright); background: color-mix(in srgb, var(--section-bg) 75%, transparent); color: var(--hero-text); }
.utility-links .button { margin-left: 20px; white-space: nowrap; }
.primary-nav { border-top: 1px solid rgba(192,196,201,.22); }
.nav-inner { min-height: 82px; display: flex; justify-content: space-around; align-items: stretch; }
.primary-nav a { position: relative; display: flex; align-items: center; padding: 0 17px; font-size: 18px; }
.primary-nav a::after { content: ""; position: absolute; left: 17px; right: 17px; bottom: 0; height: 3px; background: var(--blue-bright); transform: scaleX(0); transition: transform .2s; }
.primary-nav a:hover::after, .primary-nav a.active::after { transform: scaleX(1); }
.primary-nav a.active { color: #38a9f0; }
.menu-toggle { display: none; background: none; border: 0; padding: 12px; }
.menu-toggle span { display: block; width: 29px; height: 2px; margin: 6px; background: #fff; }
.hero { position: relative; min-height: 600px; isolation: isolate; background: var(--page-bg) url('/atlantic-sunrise.jpg') center/cover no-repeat; color: var(--hero-text); overflow: hidden; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: var(--hero-shade); }
.hero-grid { min-height: 600px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 48px; padding-block: 64px 86px; }
.hero-copy { max-width: 760px; }
.eyebrow, .card-eyebrow { margin: 0 0 20px; color: #38a9f0; text-transform: uppercase; letter-spacing: .22em; font-size: 17px; font-weight: 600; }
.hero h1, .section h2 { font-family: "Times New Roman", Trajan, serif; text-transform: uppercase; font-weight: 400; letter-spacing: .025em; }
.hero h1 { margin: 0; font-size: clamp(46px, 4.2vw, 70px); line-height: 1.05; }
.rule { width: 330px; height: 32px; display: flex; align-items: center; gap: 14px; color: #38a9f0; }
.rule::before { content: ""; height: 2px; flex: 1; background: #38a9f0; }
.hero-intro { max-width: 655px; color: var(--copy-text); font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; gap: 22px; margin-top: 28px; }
.hero-badge { justify-self: center; }
.trust-wrap { position: relative; z-index: 3; margin-top: -58px; padding-bottom: 72px; }
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--trust-bg); border: 1px solid var(--card-border); border-radius: 20px; box-shadow: 0 24px 55px rgba(1,9,20,.24); }
.trust-item { min-height: 165px; display: flex; gap: 22px; align-items: center; padding: 34px 30px; }
.trust-item + .trust-item { border-left: 1px solid rgba(192,196,201,.18); }
.trust-icon { flex: 0 0 58px; color: #38a9f0; font-size: 39px; font-weight: 300; text-align: center; }
.trust-item h2 { margin: 0 0 10px; font-size: 18px; }
.trust-item p { margin: 0; color: var(--copy-text); line-height: 1.55; }
.section { padding: 110px 0; }
.section--light { background: var(--section-bg); color: var(--surface-text); }
.section--mist { background: var(--section-alt); color: var(--surface-text); }
.section-heading { max-width: 770px; margin: 0 auto 58px; text-align: center; }
.section-heading h2, .split-layout h2 { margin: 0 0 20px; font-size: clamp(38px, 4vw, 57px); line-height: 1.07; }
.section-heading > p:last-child { color: var(--copy-text); line-height: 1.8; font-size: 18px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { min-height: 330px; padding: 38px; border: 1px solid var(--card-border); background: var(--card-bg); box-shadow: 0 14px 40px rgba(1,9,20,.18); }
.service-card h3, .process-step h3 { margin: 8px 0 18px; font-family: "Times New Roman", serif; font-size: 30px; font-weight: 400; }
.service-card > p:not(.card-eyebrow), .process-step p { color: var(--copy-text); line-height: 1.75; }
.service-card a { display: inline-flex; gap: 14px; margin-top: 12px; color: var(--blue); font-weight: 700; }
.partner-section { background: var(--section-alt); color: var(--surface-text); }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.partner-copy { color: var(--copy-text); line-height: 1.8; font-size: 18px; }
.partner-copy ul { margin: 28px 0 36px; padding: 0; list-style: none; }
.partner-copy li { margin: 13px 0; padding-left: 28px; position: relative; }
.partner-copy li::before { content: "✓"; position: absolute; left: 0; color: #38a9f0; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process-step { position: relative; padding: 35px 28px; border: 1px solid var(--card-border); border-top: 3px solid var(--blue); background: var(--card-bg); }
.process-step > span { color: var(--blue); font-family: "Times New Roman", serif; font-size: 20px; letter-spacing: .1em; }
.site-footer { padding: 72px 0 24px; background: var(--footer-bg); color: var(--muted-text); transition: background .25s ease, color .25s ease; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 90px; }
.footer-brand { margin: 0 0 10px; color: #fff; font-family: "Times New Roman", serif; text-transform: uppercase; letter-spacing: .12em; font-size: 28px; }
.footer-label { color: #38a9f0; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; }
.footer-grid a { color: #fff; display: block; width: fit-content; margin-bottom: 10px; }
.footer-phone { font-size: 22px; font-weight: 700; }
.footer-bottom { margin-top: 55px; padding-top: 22px; border-top: 1px solid rgba(192,196,201,.18); font-size: 13px; }

:root[data-theme="light"] .site-header,
:root[data-theme="light"] .primary-nav { color: #102238; }
:root[data-theme="light"] .header-phone,
:root[data-theme="light"] .footer-grid a,
:root[data-theme="light"] .footer-brand { color: #102238; }
:root[data-theme="light"] .menu-toggle span { background: #102238; }
:root[data-theme="light"] .hero .button--outline { background: rgba(255,255,255,.62); }

@media (max-width: 1100px) {
  .container { width: min(100% - 42px, 1000px); }
  .brand-logo--horizontal { width: 154px; height: 154px; }
  .brand-name { font-size: 24px; }
  .brand-tagline { font-size: 11px; letter-spacing: .14em; }
  .utility-links > a:not(.button) { display: none; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; border-top: 1px solid rgba(192,196,201,.18); }
  .trust-item:nth-child(4) { border-top: 1px solid rgba(192,196,201,.18); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 32px, 680px); }
  .opening-banner__inner { min-height: 88px; flex-direction: column; gap: 4px; padding-block: 14px; font-size: 14px; line-height: 1.35; }
  .opening-banner__inner strong { font-size: 20px; }
  .utility { min-height: 112px; }
  .brand-logo--horizontal { width: 108px; height: 108px; }
  .logo-link { gap: 12px; }
  .brand-name { font-size: clamp(14px, 4vw, 18px); }
  .brand-tagline { font-size: 8px; letter-spacing: .1em; }
  .utility-links { display: none; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; }
  .primary-nav.is-open { display: block; }
  .nav-inner { display: flex; min-height: auto; flex-direction: column; padding: 12px 16px 24px; }
  .primary-nav a { padding: 15px 0; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 60px; }
  .hero h1 { font-size: clamp(39px, 12vw, 54px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .trust-wrap { margin-top: 0; padding-bottom: 0; }
  .trust-strip, .card-grid, .split-layout, .process-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-strip { border-radius: 0; width: 100%; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid rgba(192,196,201,.18); }
  .section { padding: 80px 0; }
  .section-heading { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Floating back-to-top button */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 1000;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: linear-gradient(135deg, #0a6fb0, #1997e6);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover,
.back-to-top:focus-visible { transform: translateY(-2px); }

@media (max-width: 760px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }
}
