/* Quaph Consulting Ltd – website styles */

:root {
  --blue: #025696;
  --blue-dark: #01406F;
  --teal: #047796;
  --teal-ink: #036680;
  --green: #68B35E;
  --green-ink: #3B7A33;
  --lime: #89C339;
  --navy: #0B2A4A;
  --navy-2: #12395F;
  --navy-3: #071D33;
  --text: #0B2A4A;
  --text-2: #2E4A63;
  --text-3: #3A5670;
  --text-4: #4A6580;
  --bg-soft: #F4F8FB;
  --line: #E3EBF1;
  --tint-blue: #E6F0F8;
  --tint-teal: #E3F2F6;
  --tint-green: #EAF5E7;
  --brand-gradient: linear-gradient(90deg, #025696 0%, #047796 45%, #68B35E 75%, #89C339 100%);
  --font-head: 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; color: var(--text); font-family: var(--font-body); font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; margin: 0; color: var(--text); }
p { margin: 0; }
section[id] { scroll-margin-top: 96px; }

.container { max-width: 1200px; margin: 0 auto; }
.brand-bar { height: 6px; background: var(--brand-gradient); }
.brand-line { height: 6px; border-radius: 3px; background: var(--brand-gradient); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: #FFF; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.site-header .container { padding: 16px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo-link { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-link img { height: 56px; width: auto; }
.logo-suffix { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--teal); letter-spacing: 0.4px; border-left: 1px solid #D5E1EA; padding-left: 14px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 16px; font-weight: 600; }
.main-nav a { color: var(--text); text-decoration: none; }
.main-nav a:hover { color: var(--blue); }

/* Buttons */
.btn { display: inline-block; text-decoration: none; padding: 16px 28px; border-radius: 999px; font-weight: 700; font-size: 16px; line-height: 1.2; }
.btn-primary { background: var(--blue); color: #FFFFFF; }
.btn-primary:hover { background: var(--blue-dark); color: #FFFFFF; }
.btn-outline { color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--tint-blue); }
.main-nav .btn-small { padding: 12px 22px; background: var(--blue); color: #FFFFFF; border-radius: 999px; font-weight: 700; }
.main-nav .btn-small:hover { background: var(--blue-dark); color: #FFFFFF; }

/* Shared section bits */
.section { padding: 96px 24px; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--teal); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.section-title { font-size: clamp(2rem, 3.5vw, 2.6rem); line-height: 1.15; }
.stack { display: flex; flex-direction: column; gap: 48px; }

/* Hero */
.hero { background: var(--bg-soft); padding: 80px 24px 96px; }
.hero .container { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); line-height: 1.08; letter-spacing: -0.5px; }
.hero .brand-line { width: 120px; }
.hero-lead { font-size: 19px; line-height: 1.6; color: var(--text-3); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cred-card { flex: 1 1 340px; min-width: 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 12px 32px rgba(2, 86, 150, 0.08); }
.cred-card h2 { font-size: 19px; }
.cred-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.cred-list li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.55; color: var(--text-2); }
.tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #EFF7EA; display: flex; align-items: center; justify-content: center; margin-top: 1px; }

/* Stats */
.stats { background: #FFFFFF; border-bottom: 1px solid var(--line); padding: 44px 24px; }
.stats .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.stat-value { font-family: var(--font-head); font-weight: 800; font-size: 44px; }
.stat-label { color: var(--text-3); line-height: 1.5; margin-top: 4px; }
.c-blue { color: var(--blue); }
.c-teal { color: var(--teal); }
.c-teal-ink { color: #03708A; }
.c-green { color: var(--green-ink); }

/* Services */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.service-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.service-card h3 { font-size: 21px; }
.service-card p { line-height: 1.6; color: var(--text-3); }
.num-badge { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 17px; }
.tint-blue { background: var(--tint-blue); color: var(--blue); }
.tint-teal { background: var(--tint-teal); color: var(--teal-ink); }
.tint-green { background: var(--tint-green); color: var(--green-ink); }

/* Expertise */
.two-col { display: flex; flex-wrap: wrap; gap: 56px; }
.two-col > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.intro { font-size: 17px; line-height: 1.6; color: var(--text-3); }
.pills { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.two-col h3 { font-size: 22px; }
.assignments { list-style: none; margin: 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 8px 24px; }
.assignments li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); line-height: 1.55; color: var(--text-2); }
.assignments li:last-child { border-bottom: none; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 8px; }
.dot-blue { background: var(--blue); }
.dot-teal { background: var(--teal); }
.dot-green { background: var(--green); }
.orgs { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--text-4); }

/* Approach */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step-bar { height: 5px; border-radius: 3px; }
.step-num { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--teal); }
.step h3 { font-size: 20px; }
.step p { line-height: 1.6; color: var(--text-3); }

/* About */
.about { background: var(--bg-soft); border-top: 1px solid var(--line); }
.about .container { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.about-photo { flex: 1 1 320px; min-width: 0; max-width: 420px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 28px; height: auto; }
.about-photo .brand-line { width: 60%; margin: 16px auto 0; }
.about-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-copy > p { font-size: 18px; line-height: 1.65; color: var(--text-2); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.fact-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.fact-card h3 { font-family: var(--font-body); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.fact-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-weight: 600; line-height: 1.5; }
.top-blue { border-top: 5px solid var(--blue); }
.top-blue h3 { color: var(--blue); }
.top-teal { border-top: 5px solid var(--teal); }
.top-teal h3 { color: var(--teal); }
.top-green { border-top: 5px solid var(--green); }
.top-green h3 { color: var(--green-ink); }
.linkedin-link { font-weight: 700; margin-top: 4px; }

/* Testimonials */
.testimonials { padding: 0 24px 96px; background: var(--bg-soft); }
.testimonials .stack { gap: 32px; }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.quote { margin: 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.quote .brand-line { width: 80px; }
.quote-blue .brand-line { background: linear-gradient(90deg, #025696, #047796); }
.quote-green .brand-line { background: linear-gradient(90deg, #68B35E, #89C339); }
.quote blockquote { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 21px; line-height: 1.5; flex-grow: 1; }
.quote figcaption { display: flex; flex-direction: column; gap: 2px; }
.q-name { font-weight: 700; }
.q-role { font-weight: 600; }
.quote-blue .q-role { color: var(--teal-ink); }
.quote-green .q-role { color: var(--green-ink); }
.q-note { color: var(--text-4); font-size: 14px; margin-top: 4px; }

/* Contact */
.contact { padding: 96px 24px; background: var(--navy); color: #FFFFFF; }
.contact .container { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact .eyebrow { color: #A9D98A; }
.contact h2 { color: #FFFFFF; }
.contact-copy > p { font-size: 18px; line-height: 1.6; color: #C7D6E3; }
.contact-links { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; font-size: 17px; }
.contact-links a { color: #A9D98A; }
.contact-links a.plain { color: #FFFFFF; text-decoration: none; }
.contact-form { flex: 1 1 420px; min-width: 0; background: var(--navy-2); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; color: #D7E3EE; }
.field input, .field textarea { border-radius: 12px; border: 1px solid #3D6286; background: var(--navy); color: #FFFFFF; padding: 0 14px; font-size: 16px; font-family: var(--font-body); }
.field input { height: 48px; }
.field textarea { padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid #A9D98A; outline-offset: 1px; }
.hp-field { position: absolute; left: -9999px; }
.contact-form button { height: 52px; border: none; border-radius: 999px; background: linear-gradient(90deg, #025696, #047796 50%, #3B8F4E); color: #FFFFFF; font-size: 16px; font-weight: 700; font-family: var(--font-body); cursor: pointer; }
.contact-form button:hover { filter: brightness(1.08); }
.form-note { font-size: 13px; color: #9FB3C6; line-height: 1.5; }
.form-note a { color: #C7D6E3; }
.contact-form button:disabled { cursor: wait; opacity: 0.75; }
.form-status, .form-error { font-weight: 700; line-height: 1.5; }
.form-status:not(:empty), .form-error:not(:empty) { margin-bottom: 10px; }
.form-status { color: #EAF5E7; }
.form-error { color: #FFD6D6; }

/* Footer */
.site-footer { background: var(--navy-3); color: #9FB3C6; padding: 32px 24px; font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; line-height: 1.6; }
.site-footer a { color: #C7D6E3; }


/* Cookie consent */
.cookie-settings {
  align-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: #C7D6E3;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}
.cookie-settings:hover { color: #FFF; }
.cookie-banner[hidden], .cookie-settings[hidden] { display: none; }
.cookie-banner {
  position: fixed;
  z-index: 70;
  inset-inline: 16px;
  bottom: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  max-width: 880px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin-inline: auto;
  padding: clamp(16px, 4vw, 24px);
  overflow: auto;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 12px;
  background: #FFF;
  box-shadow: 0 8px 32px rgba(7, 29, 51, 0.18);
  color: var(--text-2);
}
.cookie-copy { flex: 1 1 320px; line-height: 1.55; }
.cookie-copy h2 { font-size: 1.25rem; margin-bottom: 4px; }
.cookie-actions { flex: 1 1 315px; display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: #FFF;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cookie-actions button:hover { background: var(--tint-blue); }
.cookie-actions button:focus-visible, .cookie-settings:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Privacy page */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) 24px clamp(56px, 8vw, 96px);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-2);
}
.legal-header {
  padding: clamp(20px, 4vw, 36px);
  border-top: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--bg-soft);
}
.legal h1 { margin: 6px 0 12px; font-size: clamp(2.125rem, 5vw, 3rem); line-height: 1.12; }
.legal-updated { font-size: 0.9375rem; color: var(--text-3); }
.legal section { margin-top: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal h2 { margin-bottom: 12px; font-size: clamp(1.25rem, 3vw, 1.5rem); line-height: 1.3; }
.legal section p + p, .legal section p + ul, .legal section ul + p { margin-top: 12px; }
.legal ul { margin: 0; padding-inline-start: 1.5em; }
.legal li + li { margin-top: 6px; }
.legal li::marker { color: var(--teal-ink); }
.legal a { overflow-wrap: anywhere; text-underline-offset: 0.15em; }
.legal-back { margin-top: 32px; font-weight: 700; }

@media (max-width: 640px) {
  .site-header { position: static; }
  section[id] { scroll-margin-top: 0; }
  .section, .hero, .contact { padding-top: 64px; padding-bottom: 64px; }
  .logo-link img { height: 44px; }
  .main-nav { gap: 8px 18px; font-size: 15px; }
  .quote, .cred-card, .service-card, .contact-form { padding: 24px; }
  .quote blockquote { font-size: 19px; }
  .stat-value { font-size: 38px; }
}

@media (max-width: 396px) {
    .main-nav .btn-small {
  padding: 6px 12px;
    }
  .main-nav {
    font-size: 14px;
  }    
}
