/* ================================================
   Access Insight Group — styles.css
   Colors: Navy #0b3d60 | Teal #108a98
   Fonts: Outfit (headings) / DM Sans (body)
================================================ */

:root {
  --navy: #0b3d60;
  --navy-dark: #082d47;
  --teal: #108a98;
  --teal-light: #e6f5f7;
  --teal-mid: #c2e8ed;
  --text: #1a2733;
  --text-muted: #5a6a75;
  --error: #CD201F;
  --border: #dde6ea;
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(11, 61, 96, 0.08);
  --shadow-md: 0 4px 24px rgba(11, 61, 96, 0.12);
  --max-w: 1100px;
  --font-head: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.2s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

/* ---- HEADER ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}
.logo-img { width: 40px; height: 40px; object-fit: contain; }
.logo-text-wrap { line-height: 1.2; }
.logo-name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.logo-name strong { font-weight: 700; }
#main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
#main-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
#main-nav a:hover { background: var(--bg-alt); color: var(--navy); }
.nav-cta {
  background: var(--navy) !important;
  color: #fff !important;
  padding: 0.45rem 1rem !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover { background: var(--teal) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--navy); text-decoration: none; color: #fff; }
.btn-ghost { background: transparent; color: white; border-color: white; }
.btn-ghost:hover { background: var(--navy); color: #fff; text-decoration: none; }
.btn-block { width: 100%; }

.btn.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn.loading::after { 
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  transform: translate(-50%, -50%);
}
@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ---- SECTION LAYOUT ---- */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ---- HERO ---- */
#hero {
  background: linear-gradient(135deg, var(--navy) 0%, #155a80 60%, #1a7a8a 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
#hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 80px solid rgba(255,255,255,0.04);
  pointer-events: none;
}
.hero-content, .hero-visual {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem 2rem;
}
.hero-content {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.hero-badge {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 1.25rem;
}
#hero h1 {
  grid-column: 1;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.accent { color: #5dd9e8; }
.hero-sub {
  grid-column: 1;
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-actions {
  grid-column: 1;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-visual {
  display: grid;
  align-items: center;
  justify-items: center;
  width: 100%;
}

/* Audit preview card */
.audit-preview {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 80%;
  overflow: hidden;
}
.audit-header {
  background: #f1f5f9;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }
.audit-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 0.5rem;
  font-family: var(--font-body);
}
.audit-body { padding: 1rem; }
.audit-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid #f0f4f6;
}
.audit-row:last-of-type { border-bottom: none; }
.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.pass-badge { background: #dcfce7; color: #166534; }
.fail-badge { background: #fee2e2; color: #991b1b; }
.audit-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal-light);
  border-radius: var(--radius);
  padding: 0.75rem;
  margin-top: 0.75rem;
}
.score-label { font-size: 12px; color: var(--text-muted); flex: 1; }
.score-num { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--navy); }
.score-sub { font-size: 11px; color: var(--text-muted); }

/* Hero Stats */
.hero-stats {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: #5dd9e8;
  line-height: 1;
}
.stat-label { font-size: 16px; color: rgba(255,255,255,0.7); }
.stat-sep { width: 1px; height: 48px; background: rgba(255,255,255,0.2); }

/* ---- SERVICES ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}
.card-badge {
  position: absolute;
  top: -12px;
  left: 1.5rem;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--teal-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--navy);
}
.card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.625rem;
}
.card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; margin-bottom: 1rem; }
.card-list { display: flex; flex-direction: column; gap: 0.4rem; }
.card-list li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}
.card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
  font-size: 12px;
}

/* ---- WHY IT MATTERS ---- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.why-copy h2 { margin-bottom: 0.75rem; }
.why-copy > p { color: var(--text-muted); margin-bottom: 2rem; font-size: 16px; }
.why-list { display: flex; flex-direction: column; gap: 1.25rem; }
.why-list li { display: flex; gap: 1rem; align-items: flex-start; }
.why-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--teal-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-top: 2px;
}
.why-list strong { display: block; font-weight: 600; color: var(--navy); font-size: 15px; margin-bottom: 2px; }
.why-list p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* WCAG Card */
.wcag-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.wcag-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.wcag-bars { display: flex; flex-direction: column; gap: 1rem; }
.wcag-row { display: flex; flex-direction: column; gap: 4px; }
.wcag-row span { font-size: 13px; font-weight: 500; color: var(--text); }
.wcag-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.wcag-fill { height: 100%; width: var(--w); background: linear-gradient(90deg, var(--teal), var(--navy)); border-radius: 4px; }
.wcag-note { font-size: 11px; color: var(--text-muted); margin-top: 1.25rem; font-style: italic; }

/* ---- PROCESS ---- */
.process-list { display: flex; flex-direction: column; gap: 0; counter-reset: process; }
.process-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.process-item:last-child { border-bottom: none; }
.process-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--teal-mid);
  line-height: 1;
  min-width: 60px;
  flex-shrink: 0;
}
.process-body h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.process-body p { font-size: 15px; color: var(--text-muted); }

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: flex-start;
}
.contact-copy h2 { margin-bottom: 0.75rem; }
.contact-copy > p { font-size: 15px; color: var(--text-muted); margin-bottom: 1.5rem; }
.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--navy);
  font-size: 15px;
  text-decoration: none;
}
.contact-email-link:hover { color: var(--teal); text-decoration: underline; }

/* Form */
form { display: flex; flex-direction: column; gap: 1rem; }
label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input, textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.875rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16, 138, 152, 0.15);
}
textarea { resize: vertical; min-height: 110px; }
.req { color: var(--teal); }
.form-note { font-size: 12px; color: var(--text-muted); }

/* ---- FOOTER ---- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-brand .logo-name { color: #fff; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.55); margin-top: 0.75rem; max-width: 280px; }
.footer-logo { width: 36px; height: 36px; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 1.25rem 1.5rem;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; }
  .hero-content { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { display: none; }
  .hero-badge, #hero h1, .hero-sub, .hero-actions { grid-column: 1; }
  .cards-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row-2 { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  #main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-md);
  }
  #main-nav.open { display: flex; }
  #main-nav a { width: 100%; padding: 0.65rem 0.75rem; }
  header { position: relative; }
  .hero-stats { flex-direction: column; gap: 1.25rem; align-items: unset; }
  .stat-sep { width: 48px; height: 1px; }
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.contact-grid label span {
  display: inline;
}

#contact-form-message {
  transition: opacity var(--transition), max-height var(--transition);
  opacity: 1;
  max-height: 100px;
}

#contact-form-message:empty, #contact-form-message.empty {
  opacity: 0;
  max-height: 0;
}

#contact-form-message.error {
  color: var(--error);
}

input.been-filled:invalid {
  border-color: var(--error);
}