/* =============================================================
   Critical Impact — static site styles
   Brand palette adapted from the original WordPress theme.
   ============================================================= */

:root {
  --ci-dark-blue:  #013047;
  --ci-deep-blue:  #022b3f;
  --ci-light-blue: #8fcae5;
  --ci-mid-blue:   #4a8fb0;
  --ci-dark-grey:  #4a5359;
  --ci-mid-grey:   #787f81;
  --ci-light-grey: #e9ebee;
  --ci-bg:         #f6f8fa;
  --ci-white:      #ffffff;
  --ci-ink:        #14222b;

  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(1, 48, 71, 0.06), 0 1px 3px rgba(1, 48, 71, 0.08);
  --shadow-md: 0 4px 14px rgba(1, 48, 71, 0.12);
  --shadow-lg: 0 12px 32px rgba(1, 48, 71, 0.18);

  --maxw: 1140px;
  --maxw-narrow: 760px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ci-ink);
  background: var(--ci-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ci-dark-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ci-mid-blue); }

h1, h2, h3, h4 {
  font-family: 'Rokkitt', 'Montserrat', serif;
  color: var(--ci-dark-blue);
  margin: 0 0 .6em;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: var(--maxw-narrow); }
.center { text-align: center; }

/* Accessibility: skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ci-dark-blue); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--ci-light-grey);
}

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

.brand img {
  width: 160px;
  height: auto;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ci-dark-blue);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--ci-light-blue); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ci-dark-blue); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: var(--ci-white);
  padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 12vw, 140px);
  background:
    linear-gradient(135deg, rgba(1, 48, 71, 0.72) 0%, rgba(1, 48, 71, 0.45) 60%, rgba(143, 202, 229, 0.35) 100%),
    url('/assets/hero-bg.jpg') center / cover no-repeat;
  background-color: var(--ci-dark-blue);
}

.hero-inner { position: relative; z-index: 2; max-width: 820px; }

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ci-light-blue);
  margin: 0 0 18px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 18px;
}

.hero .accent { color: var(--ci-light-blue); }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin-bottom: 30px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
}

.btn-primary {
  background: var(--ci-light-blue);
  color: var(--ci-dark-blue);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #b6dcee;
  color: var(--ci-dark-blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* ---------- Intro / sections ---------- */
.intro {
  padding: clamp(64px, 8vw, 96px) 0;
  background: var(--ci-white);
}

.intro h2 {
  margin-bottom: 0.6em;
}

.intro p {
  font-size: 1.08rem;
  color: var(--ci-dark-grey);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head p {
  color: var(--ci-dark-grey);
  font-size: 1.05rem;
}

/* ---------- Services ---------- */
.services {
  padding: clamp(64px, 8vw, 96px) 0;
  background: var(--ci-bg);
  border-top: 1px solid var(--ci-light-grey);
  border-bottom: 1px solid var(--ci-light-grey);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.service-card {
  background: var(--ci-white);
  padding: 28px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--ci-light-grey);
  border-top: 4px solid var(--ci-light-blue);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-top-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--ci-dark-blue);
}

.service-card h3 {
  color: var(--ci-dark-blue);
  margin-bottom: 0.5em;
}

.service-card p {
  margin: 0;
  color: var(--ci-dark-grey);
  font-size: 0.97rem;
}

/* ---------- Final CTA ---------- */
.cta {
  background: var(--ci-dark-blue);
  color: #fff;
  padding: clamp(56px, 7vw, 80px) 0;
  text-align: center;
}

.cta h2 { color: #fff; }

.cta p { color: rgba(255, 255, 255, 0.9); font-size: 1.05rem; }

.cta .btn-primary {
  background: var(--ci-light-blue);
  color: var(--ci-dark-blue);
}

.cta .btn-primary:hover {
  background: #fff;
}

/* ---------- Contact page ---------- */
.page-hero {
  background:
    linear-gradient(135deg, rgba(1, 48, 71, 0.78) 0%, rgba(1, 48, 71, 0.55) 100%),
    url('/assets/hero-bg.jpg') center / cover no-repeat;
  background-color: var(--ci-dark-blue);
  color: #fff;
  padding: clamp(56px, 9vw, 96px) 0;
  text-align: center;
}

.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .hero-sub { margin: 0 auto; }

.contact-section {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--ci-white);
}

.contact-card {
  background: var(--ci-white);
  border: 1px solid var(--ci-light-grey);
  border-top: 4px solid var(--ci-light-blue);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}

.contact-card h2 { margin-top: 0; }
.contact-card .contact-actions { margin: 18px 0 8px; }
.contact-card .btn-primary {
  background: var(--ci-dark-blue);
  color: #fff;
}
.contact-card .btn-primary:hover {
  background: var(--ci-deep-blue);
  color: #fff;
}

.muted { color: var(--ci-mid-grey); }
.small { font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0d1417;
  color: rgba(255, 255, 255, 0.78);
  padding: 28px 0;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a { color: var(--ci-light-blue); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .brand img { width: 140px; }
  .site-nav { gap: 18px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 460px) {
  body { font-size: 16px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 8px; }
  .site-nav a { font-size: 0.9rem; }
}
