/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --color-navy: #102A43;
  --color-navy-dark: #0B1D30;
  --color-navy-deep: #071427;
  --color-blue: #1D5FBF;
  --color-blue-dark: #164a99;
  --color-blue-bright: #3B82F6;
  --color-teal: #0E8F8F;
  --color-green: #22C55E;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F4F7FB;
  --color-border: #E1E7EF;
  --color-text: #1B2733;
  --color-text-muted: #4B5A6A;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --radius-lg: 18px;
  --container-width: 1120px;
  --shadow-sm: 0 1px 3px rgba(16, 42, 67, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 42, 67, 0.12);
  --shadow-lg: 0 24px 48px rgba(7, 20, 39, 0.35);
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  color: var(--color-navy);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4.8vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); }
h3 { font-size: 1.15rem; margin-bottom: 0.4em; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

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

ul { padding-left: 0; }

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

.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

main section[id] { scroll-margin-top: 84px; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 20px;
}

.container-narrow { max-width: 780px; }

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

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--color-navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 200;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 8px;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0.75em 1.4em;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.button:active { transform: translateY(1px); }

.button-primary {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
  border-color: var(--color-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(29, 95, 191, 0.28);
}
.button-primary:hover {
  background: linear-gradient(135deg, #2467c9 0%, var(--color-blue-dark) 100%);
  border-color: var(--color-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(29, 95, 191, 0.34);
}

.button-secondary {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.button-secondary:hover { background: var(--color-navy); color: #fff; transform: translateY(-1px); }

.button-lg { padding: 0.95em 1.8em; font-size: 1.05rem; }
.button-sm { padding: 0.55em 1.1em; font-size: 0.9rem; }

.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.03), 0 6px 18px rgba(16, 42, 67, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-navy);
}

.logo-text {
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.logo-accent { color: var(--color-blue); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-navy-deep) 0%, var(--color-navy-dark) 48%, var(--color-navy) 100%);
  color: #fff;
  padding-block: 76px 84px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.hero-glow-blue {
  width: 480px;
  height: 480px;
  top: -160px;
  right: -100px;
  background: var(--color-blue-bright);
  opacity: 0.32;
}

.hero-glow-green {
  width: 360px;
  height: 360px;
  bottom: -160px;
  left: -80px;
  background: var(--color-green);
  opacity: 0.14;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 28% 20%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 28% 20%, black 0%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

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

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #CFE0FF;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.4em 0.9em;
  border-radius: 999px;
  margin-bottom: 1.1em;
}

.hero h1 { color: #fff; }

.hero-sub {
  font-size: 1.14rem;
  color: #C7D3E0;
  max-width: 56ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 1.6em 0 1.3em;
}

.hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.hero .button-secondary:hover {
  background: #fff;
  color: var(--color-navy);
  border-color: #fff;
}

.trust-line {
  font-size: 0.95rem;
  color: #93A6BD;
  margin: 0;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: #B9C8DE;
}

.hero-tags li { position: relative; }

.hero-tags li:not(:first-child)::before {
  content: "\2022";
  position: absolute;
  left: -14px;
  color: rgba(255, 255, 255, 0.3);
}

.hero-visual {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 300px;
}

.hero-panel {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-panel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #E3ECFB;
}

.hero-panel-icon {
  width: 20px;
  height: 20px;
  color: var(--color-blue-bright);
  flex-shrink: 0;
}

.hero-chip {
  position: absolute;
  bottom: -18px;
  left: -18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.65em 1.1em;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}

.hero-chip-icon {
  width: 16px;
  height: 16px;
  color: var(--color-blue);
}

@media (min-width: 960px) {
  .hero-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .hero-visual { display: flex; }
}

/* ---------- Sections ---------- */
.section {
  padding-block: 64px;
}

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

.section-compact { padding-block: 40px; }
.section-compact h2 { font-size: 1.35rem; }
.section-compact p { font-size: 0.98rem; }

.section-heading {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
  margin: 0 auto 18px;
}

.section-heading h2 { margin-bottom: 0.4em; }
.section-heading p { font-size: 1rem; margin: 0; }

/* ---------- Service cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.card:hover, .card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(29, 95, 191, 0.3);
}

.card:hover::after, .card:focus-within::after { transform: scaleX(1); }

.card-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(29, 95, 191, 0.12), rgba(34, 197, 94, 0.1));
  margin-bottom: 18px;
}

.card-icon {
  width: 26px;
  height: 26px;
  color: var(--color-blue);
}

.card h3 { font-size: 1.08rem; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

/* ---------- Common issues ---------- */
.issue-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .issue-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .issue-grid { grid-template-columns: repeat(3, 1fr); }
}

.issue-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.issue-card:hover { transform: translateY(-3px); border-color: rgba(29, 95, 191, 0.3); }

.issue-icon {
  width: 22px;
  height: 22px;
  color: var(--color-blue);
  flex-shrink: 0;
}

.issue-card p {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--color-text);
}

/* ---------- Callout ---------- */
.callout {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-blue-dark) 140%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-top: 28px;
  box-shadow: var(--shadow-md);
}

.callout::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 90% 10%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 70% at 90% 10%, black 0%, transparent 70%);
  pointer-events: none;
}

.callout-icon {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.callout-icon svg { width: 28px; height: 28px; color: #fff; }

.callout-body { position: relative; }
.callout-body h3 { color: #fff; }
.callout-body p { color: #C7D3E0; margin-bottom: 1.2em; }

.callout .button-primary {
  background: #fff;
  background-image: none;
  color: var(--color-navy);
  border-color: #fff;
  box-shadow: none;
}
.callout .button-primary:hover { background: #E8EFFC; transform: translateY(-1px); }

@media (max-width: 640px) {
  .callout { flex-direction: column; }
}

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
}

@media (min-width: 700px) {
  .checklist { grid-template-columns: repeat(2, 1fr); }
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  font-size: 0.96rem;
}

.checklist-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.14);
  flex-shrink: 0;
  margin-top: 1px;
}

.checklist-icon {
  width: 14px;
  height: 14px;
  color: var(--color-green);
}

/* ---------- Contact CTA section ---------- */
.contact-cta { text-align: center; }
.contact-cta h2 { margin-bottom: 0.4em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-dark);
  color: #C7D3E0;
  padding-block: 48px 28px;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--color-blue), var(--color-green)) 1;
}

.site-footer p { color: #C7D3E0; margin: 0 0 0.3em; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 700px) {
  .footer-inner { grid-template-columns: 1.3fr 1fr; align-items: start; }
}

.footer-name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.footer-heading {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #93A6BD;
  margin-bottom: 0.9em;
}

.footer-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-keywords a {
  color: #C7D3E0;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.45em 0.95em;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.footer-keywords a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.footer-copyright {
  margin-top: 20px;
  font-size: 0.82rem;
  color: #8494A6;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 39, 0.6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  z-index: 100;
}

.modal-backdrop[hidden] { display: none; }

body.modal-open { overflow: hidden; }

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  margin: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}

.modal-header h2 { margin: 0; font-size: 1.25rem; }

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 4px 8px;
  border-radius: 6px;
}

.modal-close:hover { color: var(--color-navy); }

.modal-body { padding: 24px; }

.modal-intro { font-size: 0.95rem; }

/* ---------- Form ---------- */
.form-row { margin-bottom: 18px; }

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

@media (min-width: 480px) {
  .form-row-group { grid-template-columns: 1fr 1fr; }
  .form-row-group .form-row { margin-bottom: 0; }
}

label, legend {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-navy);
  margin-bottom: 6px;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 0.65em 0.75em;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: var(--color-blue);
}

.was-validated input:invalid,
.was-validated select:invalid,
.was-validated textarea:invalid {
  border-color: #C0392B;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.radio-option, .checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--color-text);
}

.radio-option input, .checkbox-option input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-row-consent { display: flex; }

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.form-error {
  background: #FDECEA;
  color: #A32E23;
  border: 1px solid #F3B9B2;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

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

.form-success p {
  font-size: 1.02rem;
  color: var(--color-text);
}

#form-submit[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 480px) {
  .hero-ctas .button { width: 100%; }
  .logo-text { font-size: 1.05rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .card, .issue-card { transition: none; }
}
