/* Base theme: Light, Human, Black & Gold accents */
:root {
  /* New inviting palette */
  --bg: #003654;       /* deep navy */
  --panel: #A8DADC;    /* light teal panels */
  --gold: #F5BD02;     /* warm accent (buttons/links) */
  --text: #e9eaee;     /* light text on dark body */
  --muted: #A8DADC;    /* secondary text on dark */
  --stroke: #3A668C;   /* cool border on light panels */
  --accent: #E76F51;   /* coral accent for small highlights */
  --shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.08);

  /* Services card theme */
  --services-card-bg: #A8DADC;
  --services-card-border: #3A668C;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  /* Deep navy background */
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: inline-block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-600); }

.container { width: min(1100px, 92%); margin: 0 auto; }
.section { padding: 4rem 0; }
.mt { margin-top: 1.5rem; }
.center { text-align: center; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 2rem; }

/* SPA content fade */
main#main { transition: opacity .2s ease; }
main#main.is-loading { opacity: .25; }

/* Skeleton shimmer */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton-line {
  height: 14px;
  border-radius: 8px;
  margin: .6rem 0;
  background: linear-gradient(90deg, rgba(220,225,235,.6) 25%, rgba(240,243,248,.9) 37%, rgba(220,225,235,.6) 63%);
  background-size: 800px 100%;
  animation: shimmer 1.2s infinite linear;
}
.skeleton-card {
  height: 120px;
  border-radius: .9rem;
  background: linear-gradient(90deg, rgba(220,225,235,.6) 25%, rgba(240,243,248,.9) 37%, rgba(220,225,235,.6) 63%);
  background-size: 800px 100%;
  animation: shimmer 1.2s infinite linear;
}

@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--gold); color: #111; padding: .5rem .75rem; border-radius: .4rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #003654; border-bottom: 1px solid rgba(255,255,255,.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; }
.brand { display: inline-flex; gap: .6rem; align-items: center; font-weight: 700; color: var(--text); }
.brand .logo { width: 28px; height: 28px; }
.brand-text { letter-spacing: .5px; }

/* Header color overrides for dark header */
.site-header .brand { color: #fff; }
.site-header .site-nav a { color: #fff; }
.site-header .nav-toggle { color: #fff; }

.site-nav ul { list-style: none; display: flex; gap: 1rem; padding: 0; margin: 0; align-items: center; }
.site-nav a { color: var(--text); padding: .4rem .5rem; border-radius: .33rem; }
.site-nav a.active { color: #003654; background: var(--gold); }

.btn,
.btn-secondary,
.btn-outline {
  display: inline-block;
  border: 1px solid #303941; /* subtle definition using provided dark */
  color: #003654;
  background: var(--gold);
  background-image: linear-gradient(180deg, #F5BD02 0%, #F5BD02 82%, #E76F51 130%);
  padding: .7rem 1rem;
  border-radius: .6rem;
  font-weight: 650;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 20px rgba(231,111,81,.18);
}
.btn:hover,
.btn-secondary:hover,
.btn-outline:hover {
  filter: brightness(1.03);
  box-shadow: 0 2px 0 rgba(0,0,0,.05), 0 10px 26px rgba(231,111,81,.24);
}

.btn:focus-visible,
.btn-secondary:focus-visible,
.btn-outline:focus-visible { outline: 2px solid #3A668C; outline-offset: 2px; }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: transparent; border: 0; cursor: pointer; padding: .5rem; color: var(--text); }
.nav-toggle .bar { width: 24px; height: 2px; background: currentColor; display: block; }

/* Hide hamburger on desktop */
@media (min-width: 821px) { .nav-toggle { display: none; } }

@media (max-width: 820px) {
  .site-nav { position: fixed; inset: 56px 0 auto 0; transform: translateY(-140%); transition: transform .25s ease; background: var(--panel); border-bottom: 1px solid var(--stroke); }
  .site-nav.open { transform: translateY(0); }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .site-nav li { width: 100%; }
  .site-nav a, .site-nav .btn { display: block; width: 100%; padding: 1rem 1.25rem; border-radius: 0; border: 0; box-shadow: none; }
  /* Ensure dark text on light teal mobile menu */
  .site-header .site-nav a { color: #003654; }
  .site-header .site-nav .btn { color: #003654; }
}

/* Safety: if the nav ever opens on desktop, keep contrast high */
@media (min-width: 821px) {
  .site-nav.open { background: #000; }
  .site-header .site-nav.open a { color: #fff; }
}

/* Hero */
.hero { padding: 5.5rem 0 3rem; background:
  radial-gradient(1000px 400px at 80% -200px, rgba(168,218,220,.25), transparent 60%),
  radial-gradient(700px 300px at -100px -150px, rgba(231,111,81,.10), transparent 60%);
}
.hero-content { text-align: left; max-width: 760px; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); line-height: 1.08; margin: 0 0 .5rem; }
.hero p { font-size: 1.1rem; color: var(--muted); margin: 0 0 1rem; }
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .75rem; }
.trust-points { display: flex; gap: 1rem; padding: 0; margin: 1rem 0 0; list-style: none; color: var(--muted); flex-wrap: wrap; }
.trust-points li::before { content: "✔"; color: var(--gold); margin-right: .5rem; }

/* Cards and grids */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--panel); border: 1px solid var(--stroke); border-radius: .9rem; padding: 1.1rem 1.3rem; box-shadow: var(--shadow); color: #14161a; }
/* Slightly darker boxes on Services page */
.services-list .card { background: var(--services-card-bg); border-color: var(--services-card-border); }

/* Alternate looks to try:
   Add one of these classes to the <body> to preview.
   Example: <body class="services-deep"> or <body class="services-steel">
*/
body.services-deep {
  --services-card-bg: #d8e0ea; /* deep gray */
  --services-card-border: #bcc9da;
}
body.services-steel {
  --services-card-bg: #d4dbe6; /* steel blue-gray */
  --services-card-border: #b6c2d4;
}
.card h3, .card h2 { margin-top: .25rem; }

/* Page hero */
.page-hero { padding: 4rem 0 2rem; background: linear-gradient(180deg, rgba(168,218,220,.25), transparent); border-bottom: 1px solid var(--stroke); }
.page-hero h1 { margin-bottom: .25rem; }
.checklist { padding-left: 1rem; }
.checklist li { margin: .35rem 0; }

/* Services */
.services-list { display: grid; gap: 1rem; }
.services-list .card + .card { margin-top: .25rem; }

/* CTA banner */
.cta-banner { background: linear-gradient(90deg, rgba(245,189,2,.30), rgba(168,218,220,.25)); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.cta-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--stroke); background: #A8DADC; margin-top: 2rem; color: #003654; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 0; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.footer-brand .logo { width: 22px; height: 22px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: .35rem 0; }
.footer-bottom { border-top: 1px solid var(--stroke); padding: .75rem 0 1.5rem; color: var(--muted); }

/* Forms */
label span { display: inline-block; margin-bottom: .35rem; color: var(--muted); font-size: .95rem; }
/* Ensure readable labels on light panel cards */
.card label span { color: #003654; }
input, select, textarea { width: 100%; background: #ffffff; color: #000; border: 1px solid var(--stroke); border-radius: .6rem; padding: .65rem .75rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(212,175,55,.35); border-color: var(--gold); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: .9rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-status { color: var(--muted); margin-top: .5rem; min-height: 1.2rem; }
/* Higher contrast status text inside cards */
.card .form-status { color: #003654; }

/* Ensure placeholders are readable on white inputs */
input::placeholder, textarea::placeholder { color: #303941; opacity: .8; }

/* Utilities */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
/* Conversion helpers */
.trust-bar { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin-top: 1rem; }
.badge { display: inline-block; padding: .35rem .6rem; border-radius: 999px; border: 1px solid rgba(230,233,242,.35); color: var(--text); background: rgba(255,255,255,.06); font-size: .9rem; }
.steps { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--panel); color: #14161a; border: 1px solid var(--stroke); border-radius: .9rem; padding: 1rem; box-shadow: var(--shadow); }
.step h3 { margin: .25rem 0 .25rem; font-size: 1.05rem; }
.floating-cta { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; }
@media (max-width: 640px) { .floating-cta { left: 1rem; right: 1rem; bottom: .75rem; } .floating-cta .btn { width: 100%; text-align: center; } }

/* Article polish */
.meta { color: var(--muted); font-size: .95rem; margin-top: .25rem; }
.post-hero-figure { margin: 1rem 0 2rem; }
.post-hero-figure img { width: 100%; height: auto; border-radius: 8px; display: block; }

/* Insights list */
.post-list .post-item { padding: 1rem 0; border-top: 1px solid var(--stroke); }
.post-list .post-item:first-child { border-top: 0; }
.post-list .btn { margin-top: .25rem; }

/* Related links */
.related-list { padding-left: 1.2rem; }
