/* 1st Soft — main stylesheet */

:root {
  --azure: #16A6E8;
  --azure-dark: #1576C4;
  --navy: #0D1B2E;
  --white: #FFFFFF;
  --black: #111111;
  --grey-light: #F4F6F9;
  --grey-mid: #6B7280;
  --border: #DDE3EB;
  --radius: 6px;
  --max-w: 1100px;
  --section-pad: clamp(3rem, 8vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.375rem); }
p { max-width: 70ch; }

a { color: var(--azure-dark); text-decoration: underline; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--azure);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Layout helpers ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: var(--section-pad); }
.section--blue { background: linear-gradient(160deg, var(--azure-dark) 0%, var(--azure) 100%); color: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }
.section--light { background: var(--grey-light); }

.section--blue h2,
.section--blue h3,
.section--blue p,
.section--navy h2,
.section--navy h3,
.section--navy p { color: var(--white); }

/* ── Accessibility utility ── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── Site header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { background: rgba(255,255,255,0.1); color: var(--white); }

.nav-cta {
  background: var(--azure) !important;
  color: var(--white) !important;
  font-weight: 600;
  padding: 0.4rem 1rem !important;
}
.nav-cta:hover { background: var(--azure-dark) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--white);
}
.nav-toggle svg { display: block; }

@media (max-width: 640px) {
  .nav-toggle { display: flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    gap: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.65rem 0.75rem; font-size: 1rem; }
}

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, var(--azure-dark) 0%, var(--azure) 100%);
  color: var(--white);
  padding-block: clamp(4rem, 10vw, 8rem);
  text-align: center;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.9);
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  border: 2px solid transparent;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: #1a3050; color: var(--white); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn--outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn--blue { background: var(--azure); color: var(--white); }
.btn--blue:hover { background: var(--azure-dark); color: var(--white); }

.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── What we do cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.card-icon {
  width: 44px;
  height: 44px;
  background: var(--azure);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--white);
  flex-shrink: 0;
}
.card h3 { margin-bottom: 0.5rem; color: var(--navy); }
.card p { font-size: 0.9rem; color: var(--grey-mid); max-width: none; }

/* ── About strip ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; } }

.about-grid h2 { margin-bottom: 1rem; }
.about-grid p + p { margin-top: 0.75rem; }
.about-meta { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.about-meta span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.about-meta span::before { content: "✓"; color: var(--azure); font-weight: 700; }

/* ── Contact page ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
  padding-block: var(--section-pad);
}
@media (max-width: 720px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-details h2 { margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.contact-item-icon {
  width: 36px;
  height: 36px;
  background: var(--azure);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.contact-item-text { font-size: 0.95rem; }
.contact-item-text strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey-mid); margin-bottom: 0.2rem; }

/* ── Form ── */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-form-wrap h2 { margin-bottom: 1.5rem; font-size: 1.4rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.form-group label .optional { font-weight: 400; color: var(--grey-mid); margin-left: 0.25rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(22,166,232,0.15); }
.form-group input.invalid,
.form-group textarea.invalid { border-color: #D93025; }
.form-group textarea { resize: vertical; min-height: 130px; }

.field-error { display: none; font-size: 0.8rem; color: #D93025; margin-top: 0.35rem; }
.field-error.visible { display: block; }

/* Honeypot — hidden from humans */
.hp-field { display: none; visibility: hidden; aria-hidden: true; }

.form-submit { width: 100%; padding: 0.85rem; font-size: 1rem; margin-top: 0.5rem; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 1rem;
  font-weight: 500;
}
.form-status.success { display: flex; background: #E6F4EA; color: #1B5E20; border: 1px solid #A8D5B0; gap: 0.5rem; align-items: flex-start; }
.form-status.error { display: flex; background: #FCE8E6; color: #922B21; border: 1px solid #F5B7B1; gap: 0.5rem; align-items: flex-start; }

/* ── Process / how we work ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  counter-reset: process;
}
.process-step { position: relative; padding-top: 1rem; }
.process-step::before {
  counter-increment: process;
  content: "0" counter(process);
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--azure);
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.35;
}
.process-step h3 { margin-bottom: 0.5rem; color: var(--navy); }
.process-step p { font-size: 0.9rem; color: var(--grey-mid); }

/* ── Services page ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.service-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: var(--azure); }
.service-card h3 { color: var(--navy); margin-bottom: 0.6rem; }
.service-card p { font-size: 0.9rem; color: var(--grey-mid); }
.service-card ul { font-size: 0.875rem; color: var(--grey-mid); padding-left: 1.2rem; margin-top: 0.75rem; }
.service-card ul li + li { margin-top: 0.3rem; }

/* ── Stats strip ── */
.stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding-block: 3rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-number { font-size: 2.25rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--grey-mid); margin-top: 0.35rem; }

/* ── Policy / support pages ── */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2rem; margin-bottom: 0.6rem; font-size: 1.3rem; color: var(--navy); }
.prose h3 { margin-top: 1.5rem; margin-bottom: 0.4rem; font-size: 1.05rem; color: var(--navy); }
.prose p + p { margin-top: 0.75rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-block: 0.6rem; }
.prose li + li { margin-top: 0.35rem; }
.prose a { color: var(--azure-dark); }
.prose .updated { font-size: 0.85rem; color: var(--grey-mid); margin-bottom: 2rem; }

/* ── Page header (for inner pages) ── */
.page-header {
  background: linear-gradient(160deg, var(--azure-dark) 0%, var(--azure) 100%);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  color: var(--white);
}
.page-header h1 { color: var(--white); font-size: clamp(1.6rem, 4vw, 2.5rem); }
.page-header p { color: rgba(255,255,255,0.85); margin-top: 0.5rem; }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding-block: 2.5rem;
  font-size: 0.875rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-brand { color: var(--white); font-weight: 700; letter-spacing: 0.06em; }
.footer-brand span { color: var(--azure); }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-copy { width: 100%; text-align: center; margin-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; }
