/* =============================================================================
   A11ytek — styles.css
   WCAG 2.1 AA Compliant · Mobile-First Responsive
   Colour contrast ratios verified (WebAIM):
     #005073 on #ffffff  = 8.83:1  (AAA)
     #ffffff on #005073  = 8.83:1  (AAA)
     #4a4a4a on #ffffff  = 9.02:1  (AAA)
     #1a1a1a on #ffffff  = 16.1:1  (AAA)
     #005073 on #e8f4f8  = 7.21:1  (AAA)
     #ffffff on #00333f  = 13.4:1  (AAA)
============================================================================= */

/* ── Custom Properties ────────────────────────────────────────────────────── */
:root {
  --primary:        #005073;
  --primary-dark:   #003d57;
  --primary-light:  #e8f4f8;
  --primary-mid:    #006d8f;
  --footer-bg:      #00333f;
  --text:           #1a1a1a;
  --text-sec:       #4a4a4a;
  --bg:             #ffffff;
  --bg-alt:         #f0f8fa;
  --border:         #c0c0c0;
  --focus:          #d97706;   /* amber — visible on light & dark backgrounds */
  --success:        #166534;
  --error:          #b91c1c;
  --radius:         6px;
  --shadow:         0 2px 8px rgba(0,0,0,.12);
  --trans:          .2s ease;
  --max-w:          1200px;
  --px:             1.25rem;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img  { max-width: 100%; height: auto; display: block; }

/* ── Reduced Motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-inline-start: 1.5rem; }
li { margin-bottom: .375rem; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--primary-dark); }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }
h4 { font-size: 1rem; }
a  { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }

/* ── Focus ────────────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* ── Skip Link ────────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -9999px; left: 0;
  z-index: 9999;
  padding: .875rem 1.5rem;
  background: var(--primary); color: #fff;
  font-weight: 700; font-size: 1rem;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { top: 0; }

/* ── Container ────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--px); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.75rem;
  min-height: 48px;
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--radius);
  transition: background-color var(--trans), border-color var(--trans), color var(--trans);
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.btn-primary  { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover  { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; text-decoration: none; }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: #fff; text-decoration: none; }
.btn-full { width: 100%; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}
.site-logo { display: flex; flex-direction: column; text-decoration: none; }
.site-logo:hover { text-decoration: none; }
.logo-name    { font-size: 1.625rem; font-weight: 800; color: var(--primary); line-height: 1; letter-spacing: -.5px; }
.logo-tagline { font-size: .68rem; font-weight: 500; color: var(--text-sec); letter-spacing: .5px; text-transform: uppercase; }

/* Mobile hamburger */
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 48px; height: 48px; padding: 10px;
  background: none; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle:hover { border-color: var(--primary); background: var(--primary-light); }
.hamburger-line { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--trans), opacity var(--trans); }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg); border-bottom: 2px solid var(--border);
  padding: 1rem; box-shadow: var(--shadow);
}
.main-nav.is-open { display: block; }
.nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .25rem; }
.nav-list a {
  display: flex; align-items: center;
  padding: .75rem 1rem; min-height: 48px;
  color: var(--text); font-weight: 500; text-decoration: none; border-radius: var(--radius);
  transition: background var(--trans), color var(--trans);
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { background: var(--primary-light); color: var(--primary); }
.nav-list a[aria-current="page"] { font-weight: 700; }
.nav-cta-link { background: var(--primary) !important; color: #fff !important; text-align: center; font-weight: 600 !important; }
.nav-cta-link:hover { background: var(--primary-dark) !important; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .main-nav   { display: block !important; position: static; border: none; padding: 0; box-shadow: none; background: none; }
  .nav-list   { flex-direction: row; align-items: center; gap: .25rem; }
  .nav-list a { padding: .5rem .875rem; min-height: 44px; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: #fff; padding: clamp(3rem, 8vw, 5rem) 0; text-align: center;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,.9);
  max-width: 680px; margin-inline: auto; margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero .btn-primary  { background: #fff; color: var(--primary-dark); border-color: #fff; }
.hero .btn-primary:hover  { background: var(--primary-light); border-color: var(--primary-light); color: var(--primary-dark); }
.hero .btn-secondary { border-color: rgba(255,255,255,.8); color: #fff; }
.hero .btn-secondary:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }

/* ── Trust Bar ────────────────────────────────────────────────────────────── */
.trust-bar { background: var(--footer-bg); padding: .875rem 0; }
.trust-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.75rem; }
.trust-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 600; color: #fff; white-space: nowrap;
}
.trust-check { color: #4ade80; font-size: 1rem; aria-hidden: true; }

/* ── Section Scaffolding ──────────────────────────────────────────────────── */
.section      { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-alt  { background: var(--bg-alt); }
.section-dark { background: var(--footer-bg); }
.section-dark h2, .section-dark p { color: #fff; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: .75rem; }
.section-lead { font-size: 1.075rem; color: var(--text-sec); max-width: 660px; margin-inline: auto; }
.section-cta  { text-align: center; margin-top: 2.5rem; }

/* ── Services Grid ────────────────────────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2rem;
}
@media (min-width: 600px)  { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3,1fr); } }

.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
  transition: box-shadow var(--trans), border-color var(--trans);
}
.card:hover { box-shadow: 0 6px 20px rgba(0,80,115,.16); border-color: var(--primary); }
.card-icon {
  width: 52px; height: 52px; background: var(--primary-light); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}
.card h3 { margin-bottom: .625rem; }
.card p  { color: var(--text-sec); font-size: .95rem; margin-bottom: 1rem; }
.card-link { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; color: var(--primary); }
.card-link:hover { text-decoration: underline; }

/* ── Features (Why Us) ────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 600px)  { .features-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4,1fr); } }
.feature { text-align: center; padding: 1.5rem 1rem; }
.feature-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
.feature h3 { margin-bottom: .625rem; }
.feature p  { color: var(--text-sec); font-size: .95rem; }

/* ── Free Report (dark CTA section) ──────────────────────────────────────── */
.report-section { background: var(--primary); padding: clamp(2.5rem,6vw,4rem) 0; }
.report-section h2, .report-section .section-lead { color: #fff; }
.report-form {
  max-width: 560px; margin-inline: auto;
  background: #fff; border-radius: var(--radius); padding: 2rem;
  box-shadow: 0 6px 28px rgba(0,0,0,.2);
  margin-top: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .375rem; color: var(--text); }
.req { color: var(--error); margin-left: .2rem; }
.form-group input,
.form-group textarea,
.form-group select {
  display: block; width: 100%;
  padding: .75rem 1rem; min-height: 48px;
  font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--trans);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); outline: none; }
.form-group input:focus-visible,
.form-group textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-privacy { font-size: .8rem; color: var(--text-sec); text-align: center; margin-top: .625rem; }
.form-success {
  display: none; background: #dcfce7; border: 2px solid var(--success);
  border-radius: var(--radius); padding: 1rem 1.5rem;
  color: var(--success); font-weight: 600; text-align: center; margin-top: 1rem;
}
.form-error-msg { color: var(--error); font-size: .85rem; margin-top: .3rem; display: none; }

/* ── Industries ───────────────────────────────────────────────────────────── */
.industries-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 600px)  { .industries-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .industries-grid { grid-template-columns: repeat(6,1fr); } }
.ind-item {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem .75rem; text-align: center;
  font-weight: 600; font-size: .875rem; color: var(--primary-dark);
  box-shadow: var(--shadow);
}
.ind-icon { font-size: 1.75rem; display: block; margin-bottom: .5rem; }

/* ── CTA Banner ───────────────────────────────────────────────────────────── */
.cta-banner { background: var(--footer-bg); color: #fff; padding: clamp(2.5rem,6vw,4rem) 0; text-align: center; }
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,.85); max-width: 560px; margin-inline: auto; margin-bottom: 2rem; }
.cta-actions   { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta-banner .btn-primary  { background: #fff; color: var(--primary-dark); border-color: #fff; }
.cta-banner .btn-primary:hover  { background: var(--primary-light); border-color: var(--primary-light); }
.cta-banner .btn-secondary { border-color: rgba(255,255,255,.6); color: #fff; }
.cta-banner .btn-secondary:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.85); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 600px)  { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo-name { font-size: 1.5rem; font-weight: 800; color: #fff; display: block; margin-bottom: .5rem; }
.footer-tagline   { font-size: .7rem; text-transform: uppercase; letter-spacing: .5px; color: rgba(255,255,255,.55); margin-bottom: .875rem; }
.footer-desc      { font-size: .875rem; color: rgba(255,255,255,.7); }
.footer-col h3    { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 1rem; }
.footer-nav-list  { list-style: none; padding: 0; margin: 0; }
.footer-nav-list li { margin-bottom: .5rem; }
.footer-nav-list a { color: rgba(255,255,255,.7); font-size: .875rem; text-decoration: none; transition: color var(--trans); }
.footer-nav-list a:hover { color: #fff; text-decoration: underline; }
.footer-contact-item { font-size: .875rem; color: rgba(255,255,255,.7); margin-bottom: .5rem; }
.footer-contact-item a { color: rgba(255,255,255,.9); }
.footer-contact-item a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  font-size: .825rem; color: rgba(255,255,255,.55);
}
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.footer-bottom-links a { color: rgba(255,255,255,.7); font-size: .825rem; text-decoration: none; }
.footer-bottom-links a:hover { color: #fff; text-decoration: underline; }

/* ── Page Hero (inner pages) ──────────────────────────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%); color: #fff; padding: clamp(2rem,5vw,3.5rem) 0; }
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 600px; margin-bottom: 0; }

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.breadcrumb { padding: .875rem 0; font-size: .875rem; border-bottom: 1px solid var(--border); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-right: .25rem; color: var(--text-sec); }
.breadcrumb [aria-current="page"] { color: var(--text-sec); }

/* Breadcrumb inside dark page-hero — override to white */
.page-hero .breadcrumb { border-bottom-color: rgba(255,255,255,.2); margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.85); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb li + li::before { color: rgba(255,255,255,.5); }
.page-hero .breadcrumb [aria-current="page"] { color: rgba(255,255,255,.65); }

/* ── Services page detail ─────────────────────────────────────────────────── */
.service-detail { padding: clamp(2rem,4vw,3rem) 0; border-bottom: 1px solid var(--border); }
.service-detail:last-child { border-bottom: none; }
.service-detail-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .service-detail-grid { grid-template-columns: 3fr 2fr; } }
.service-detail h2 { margin-bottom: 1rem; }
.service-detail ul { margin-bottom: 1rem; }
.meta-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.meta-box h3 { margin-bottom: 1rem; font-size: 1rem; }
.meta-row { display: flex; flex-direction: column; gap: .2rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.meta-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.meta-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-sec); }
.meta-value { font-size: .95rem; color: var(--text); }

/* ── About page ───────────────────────────────────────────────────────────── */
.creds-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.5rem; margin: 1.5rem 0 2rem; }
.cred-card { background: var(--bg-alt); border: 2px solid var(--primary); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.cred-abbr { font-size: 2rem; font-weight: 800; color: var(--primary); display: block; margin-bottom: .5rem; }
.cred-name { font-size: .875rem; color: var(--text-sec); }
.cred-body { font-size: .8rem; color: var(--text-sec); margin-top: .2rem; }
.process-list { list-style: none; padding: 0; counter-reset: step; }
.process-item { display: flex; gap: 1.5rem; margin-bottom: 1.75rem; align-items: flex-start; }
.step-num { counter-increment: step; content: counter(step); flex-shrink: 0; width: 48px; height: 48px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; }
.step-body h3 { margin-bottom: .375rem; }
.step-body p  { color: var(--text-sec); font-size: .95rem; margin: 0; }

/* ── Contact page ─────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 3fr 2fr; } }
.contact-form-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.ci-icon { flex-shrink: 0; width: 44px; height: 44px; background: var(--primary-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.ci-body h3 { font-size: 1rem; margin-bottom: .25rem; }
.ci-body p  { font-size: .875rem; color: var(--text-sec); margin: 0; }
.ci-body a  { color: var(--primary); }
.consult-box { background: var(--primary); border-radius: var(--radius); padding: 2rem; text-align: center; margin-top: 2rem; }
.consult-box h3, .consult-box p { color: #fff; }
.consult-box p { opacity: .9; font-size: .95rem; margin-bottom: 1.5rem; }
.consult-box .btn-primary { background: #fff; color: var(--primary-dark); border-color: #fff; width: 100%; }
.consult-box .btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); }

/* ── Accessibility Statement ──────────────────────────────────────────────── */
.statement-body { max-width: 760px; }
.statement-body h2 { margin-top: 2.5rem; margin-bottom: .875rem; }
.statement-body h2:first-child { margin-top: 0; }
.statement-body ul { margin-bottom: 1rem; }
.conformance-badge {
  display: inline-flex; align-items: center; gap: .75rem;
  background: #dcfce7; border: 2px solid var(--success);
  border-radius: var(--radius); padding: .75rem 1.25rem;
  color: var(--success); font-weight: 700; margin-bottom: 2rem;
}

/* ── Utilities ────────────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* ── Print ────────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .nav-toggle, .hero-actions, .report-section, .cta-banner, .site-footer { display: none; }
  body { font-size: 12pt; color: #000; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
