/* Base */

:root {
  --bg-main: #f4f7fb;
  --bg-card: #ffffff;
  --bg-accent: #e1effa;
  --bg-cta: #0c4a6e;
  --bg-cta-light: #e0f2fe;
  --text-main: #0f172a;
  --text-muted: #4b5563;
  --border-soft: #d1d5db;
  --accent: #0369a1;
  --accent-soft: #c7e0f8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
}

/* Layout */

header {
  background-color: #0b1120;
  color: #e5e7eb;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-wrap img {
  max-height: 56px;
  width: auto;
}

.site-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.site-title .small {
  font-weight: 400;
  font-size: 0.8rem;
  color: #cbd5f5;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

nav a:hover,
nav a.active {
  background-color: #1e293b;
}

/* CTA bar */

.cta-bar {
  background-color: var(--bg-cta);
  color: #e5e7eb;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.cta-bar-link {
  color: #facc15;
  font-weight: 600;
  text-decoration: none;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.6);
  background-color: rgba(15, 23, 42, 0.2);
}

.cta-bar-link:hover {
  background-color: rgba(15, 23, 42, 0.45);
}

/* Main content */

main {
  max-width: 1100px;
  margin: 1.25rem auto 2.5rem;
  padding: 0 1rem;
}

.section-card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Center section headings by default */
.section-card h2 {
  text-align: center;
}

/* Hero */

.hero {
  margin-bottom: 1.25rem;
}

.hero-inner {
  background: linear-gradient(135deg, #e0f2fe, #fef9c3);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.hero h1 {
  margin-top: 0;
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.hero-text {
  font-size: 1rem;
  max-width: 40rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.1rem;
}

.hero-ctas-center {
  justify-content: center;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.badge {
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.08);
  color: #111827;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn-lg {
  padding: 0.7rem 1.2rem;
  font-size: 0.98rem;
}

.btn-primary {
  background-color: var(--bg-cta);
  color: #f9fafb;
  border-color: #0b3b55;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.25);
}

.btn-primary:hover {
  background-color: #082f49;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.4);
}

.btn-outline {
  background-color: #f9fafb;
  color: var(--bg-cta);
  border-color: var(--bg-cta);
}

.btn-outline:hover {
  background-color: var(--bg-cta-light);
}

.btn-secondary {
  background-color: #eff6ff;
  color: var(--bg-cta);
  border-color: var(--accent-soft);
  margin-top: 0.5rem;
}

.btn-secondary:hover {
  background-color: #dbeafe;
}

/* Grids */

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Service stack (vertical 3 sections) */

.service-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.service-block {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  background-color: #f9fafb;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-align: left;
}

.service-block h3 {
  margin-top: 0;
}

/* Check-list style (for senior page, etc.) */

.check-list {
  list-style: none;
  margin: 0.4rem 0 0.6rem;
  padding-left: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.3rem;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.9rem;
  color: var(--accent);
}

/* FAQ */

.faq-item + .faq-item {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.faq-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

/* Final CTA */

.final-cta {
  text-align: center;
}

/* Tables */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem;
  text-align: left;
}

th {
  background-color: #eef2ff;
}

/* Typography */

h1,
h2,
h3 {
  color: var(--text-main);
}

h2 {
  font-size: 1.25rem;
  margin-top: 0;
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0.2rem 0 0.6rem;
}

ul {
  margin: 0.2rem 0 0.6rem 1.2rem;
  padding: 0;
}

.small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Links */

a {
  color: var(--accent);
}

a:hover {
  text-decoration: underline;
}

/* Footer */

footer {
  background-color: #020617;
  color: #e5e7eb;
  padding: 1.25rem 1rem 1.5rem;
  margin-top: 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.85rem;
}

.footer-inner a {
  color: #bfdbfe;
}

/* Forms */

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.75rem 0.9rem 1rem;
}

legend {
  padding: 0 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  margin-bottom: 0.15rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="file"],
select,
textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 0.45rem 0.55rem;
  font-size: 0.9rem;
}

input[type="file"] {
  padding: 0.3rem 0.2rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.2rem;
}

/* Responsive tweaks */

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    justify-content: flex-start;
  }

  .hero-inner {
    padding: 1.25rem 1rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .hero-ctas {
    flex-direction: column;
  }
}
