/* =========================
   src/style.css
   ========================= */

:root {
  --primary: #008eca;
  --sage: #6fae8b;
  --navy: #071b33;
  --navy-2: #0b2a4f;

  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e5e7eb;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);

  --radius: 18px;
  --radius-sm: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(135deg, rgba(0, 142, 202, 0.14), rgba(31, 183, 229, 0.08));

  line-height: 1.65;
}



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

.container {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  z-index: 60;
}
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 250, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #1fb7e5);
  box-shadow: 0 12px 26px rgba(0, 142, 202, 0.22);
}
.brand-text { display: grid; }
.brand-name { font-weight: 900; letter-spacing: -0.02em; }
.brand-tag { font-size: 12px; color: var(--muted); }

.nav { position: relative; display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 10px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
}
.nav-link:hover { background: rgba(0, 142, 202, 0.08); color: var(--text); }
.nav-link.is-active { color: var(--text); background: rgba(0, 142, 202, 0.12); }

.nav-cta {
  color: var(--text);
  background: var(--sage);
  border: 1px solid rgba(111, 174, 139, 0.55);
}
.nav-cta:hover { background: rgba(111, 174, 139, 0.92); color: var(--text); }

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 800;
  color: var(--muted);
}
.theme-toggle:hover { background: rgba(0, 142, 202, 0.08); color: var(--text); }

.hero {
  padding: 72px 0 34px;
  background:
    radial-gradient(900px 420px at 12% 10%, rgba(0, 142, 202, 0.14), transparent 60%),
    radial-gradient(760px 380px at 88% 26%, rgba(111, 174, 139, 0.14), transparent 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 26px;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(34px, 3.5vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero-subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
  max-width: 58ch;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-proof { display: flex; gap: 10px; flex-wrap: wrap; }

.pill {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--sage);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  color: var(--muted);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.card-title { margin: 0; font-size: 16px; letter-spacing: -0.01em; }
.card-note { margin: 0; color: var(--muted); font-size: 13px; }

.section { padding: 72px 0; }
.section.alt { background: #eef2f6; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 22px; }
.section-head h2 { margin: 0 0 10px; font-size: 28px; letter-spacing: -0.02em; }
.section-head p { margin: 0; color: var(--muted); max-width: 72ch; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
}

.card h2, .card h3 { margin: 0 0 10px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); }

.text-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  margin: 0 0 12px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 142, 202, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background-position 240ms ease;
}

@keyframes sheen {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.btn-primary {
  background: linear-gradient(120deg, rgba(111, 174, 139, 1), rgba(0, 142, 202, 0.55), rgba(111, 174, 139, 1));
  background-size: 220% 220%;
  color: var(--text);
  border-color: rgba(111, 174, 139, 0.60);
  box-shadow: 0 12px 26px rgba(111, 174, 139, 0.22);
}
.btn-primary:hover {
  background-position: 100% 0%;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(111, 174, 139, 0.28);
}

.btn-secondary {
  background: rgba(0, 142, 202, 0.10);
  color: var(--text);
  border-color: rgba(0, 142, 202, 0.35);
}
.btn-secondary:hover { background: rgba(0, 142, 202, 0.16); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: rgba(0, 142, 202, 0.08); transform: translateY(-1px); }

.card-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.checklist, .bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.checklist li, .bullets li { margin: 10px 0; }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(0, 142, 202, 0.10);
  color: var(--primary);
  font-weight: 900;
}
.step-body h3 { margin: 0 0 6px; }
.step-body p { margin: 0; color: var(--muted); }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(0, 142, 202, 0.10), rgba(111, 174, 139, 0.10));
}
.cta-copy h2 { margin: 0 0 8px; }
.cta-copy p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.page-hero { padding: 48px 0 22px; }
.page-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.page-hero h1 { margin: 0 0 12px; font-size: clamp(30px, 3vw, 42px); letter-spacing: -0.03em; }
.lead { margin: 0; color: var(--muted); font-size: 18px; max-width: 78ch; }
.page-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.service-block {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
  align-items: start;
}
.service-hero { border-left: 5px solid var(--sage); }
.service-hero h3, .service-list h3 { margin: 0 0 10px; }
.service-hero .btn { margin-top: 12px; }

.notice {
  margin-top: 22px;
  padding: 18px;
  background: rgba(0, 142, 202, 0.08);
  border: 1px solid rgba(0, 142, 202, 0.18);
  border-radius: var(--radius);
}
.notice p { margin: 0 0 12px; color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 8px; }
label { font-weight: 900; }

input, select, textarea {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(0, 142, 202, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 142, 202, 0.12);
}

.checkbox {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 800;
  color: var(--muted);
}
.checkbox input { width: 18px; height: 18px; margin-top: 2px; }

.field-help {
  margin: 0;
  min-height: 16px;
  font-size: 13px;
  color: #b91c1c;
}

.form-actions { display: grid; gap: 10px; }
.form-success {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(111, 174, 139, 0.55);
  background: rgba(111, 174, 139, 0.12);
}
.small { font-size: 13px; }
.muted { color: var(--muted); }

.contact-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  margin-top: 12px;
}
.contact-box p { margin: 0 0 8px; }
.contact-box p:last-child { margin: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: rgba(255, 255, 255, 0.65);
}
.footer-grid{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}
.footer-brand{max-width:52ch;}
.footer-name{display:block;font-weight:900;letter-spacing:-0.02em;}
.footer-payoff{margin:8px 0 0;}

.footer-actions{
  display:grid;
  gap:10px;
  justify-items:end;
  text-align:right;
}

.footer-nav{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.footer-nav a{
  text-decoration:none;
  font-weight:900;
  color:var(--text);
  opacity:0.85;
}

.footer-nav a:hover{
  opacity:1;
  text-decoration:underline;
  text-decoration-color:rgba(111,174,139,0.75);
}

.footer-email{
  text-decoration:none;
  font-weight:900;
  color:var(--primary);
}

.footer-email:hover{text-decoration:underline;}
.footer-meta{margin:0;}

.scroll-top{
  position:fixed;
  right:18px;
  bottom:18px;
  width:46px;
  height:46px;
  border-radius:16px;
  border:1px solid var(--line);
  background:var(--sage);
  color:#0b1b12;
  font-size:18px;
  font-weight:900;
  cursor:pointer;
  display:none;
  align-items:center;
  justify-content:center;
  box-shadow:var(--shadow);
  transition:opacity 120ms ease,transform 120ms ease,background-color 120ms ease;
  z-index:60;
}

.scroll-top:hover{ transform:translateY(-2px); }
.scroll-top.is-visible{ display:flex; }

/* =========================
   Dark Mode
   ========================= */

body.theme-dark {
  --bg: var(--navy);
  --surface: rgba(255, 255, 255, 0.07);
  --text: #eaf2ff;
  --muted: rgba(234, 242, 255, 0.74);
  --line: rgba(234, 242, 255, 0.14);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

body.theme-dark {
  background:
    radial-gradient(1000px 520px at 18% 8%, rgba(0, 142, 202, 0.30), transparent 60%),
    radial-gradient(900px 480px at 86% 22%, rgba(111, 174, 139, 0.16), transparent 55%),
    linear-gradient(180deg, var(--navy-2), var(--navy));
}

body.theme-dark .site-header {
  background: rgba(7, 27, 51, 0.70);
  border-bottom: 1px solid var(--line);
}

body.theme-dark .nav-toggle { background: rgba(255, 255, 255, 0.06); }
body.theme-dark .nav-toggle-line { background: var(--text); }

body.theme-dark .pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

body.theme-dark .badge {
  background: rgba(0, 142, 202, 0.14);
  border-color: var(--line);
}

body.theme-dark .section.alt {
  background: rgba(255, 255, 255, 0.04);
}

body.theme-dark .notice {
  background: rgba(0, 142, 202, 0.14);
  border-color: rgba(0, 142, 202, 0.28);
}

body.theme-dark .btn-secondary {
  background: rgba(0, 142, 202, 0.16);
  border-color: rgba(0, 142, 202, 0.34);
}

body.theme-dark .btn-ghost {
  border-color: var(--line);
}

body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--text);
}

body.theme-dark .site-footer {
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid var(--line);
}

body.theme-dark .card {
  border-color: rgba(111, 174, 139, 0.55);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
body.theme-dark .card:hover {
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
}

body.theme-dark .hero {
  background:
    radial-gradient(900px 420px at 12% 10%, rgba(0, 142, 202, 0.20), transparent 60%),
    radial-gradient(760px 380px at 88% 26%, rgba(111, 174, 139, 0.14), transparent 55%);
}

body.theme-dark .cta-band {
  border-color: rgba(111, 174, 139, 0.45);
}

body.theme-dark .theme-toggle {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

body.theme-dark .theme-toggle:hover {
  background: rgba(0, 142, 202, 0.14);
  color: var(--text);
}

/* Contact page: dark mode readability + brand borders */
body[data-page="contact"] .card,
body[data-page="contact"] .contact-box{
  border-color: rgba(0, 142, 202, 0.40);
}

body[data-page="contact"] input,
body[data-page="contact"] select,
body[data-page="contact"] textarea{
  border-color: rgba(0, 142, 202, 0.35);
}

body.theme-dark[data-page="contact"] select option{
  background: var(--navy);
  color: #eaf2ff;
}

/* Keep direct-contact boxes readable in dark mode */
body.theme-dark[data-page="contact"] .contact-box{
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border-color: rgba(0, 142, 202, 0.40);
}
body.theme-dark[data-page="contact"] .contact-box p,
body.theme-dark[data-page="contact"] .contact-box strong,
body.theme-dark[data-page="contact"] .contact-box li{
  color: #0f172a;
}
body.theme-dark[data-page="contact"] .contact-box a{
  color: var(--primary);
}
body.theme-dark[data-page="contact"] .contact-box .muted{
  color: #475569;
}

/* =========================
   Responsive
   ========================= */

@media (min-width: 980px) {
  .section { padding: 84px 0; }
  .grid-4, .grid-3, .grid-2 { gap: 24px; }
  .two-col { gap: 24px; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .page-hero-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .container { width: min(var(--max), calc(100% - 40px)); }

  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    right: 0;
    top: 52px;
    width: min(320px, calc(100vw - 24px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .nav-menu.is-open { display: flex; }

  .footer-grid{flex-direction:column;gap:14px;}
  .footer-actions{justify-items:start;text-align:left;}
  .footer-nav{justify-content:flex-start;}
}
