/* A&P Advisory – site stylesheet */
:root {
  --navy: #0E2841;
  --navy-2: #13345A;
  --blue: #215F9A;
  --blue-light: #D3E4F5;
  --blue-pale: #EAF2FA;
  --blue-mid: #A9C8E6;
  --slate: #476475;
  --ink-2: #2E4150;
  --grey: #F5F5F5;
  --peach: #FBE5D6;
  --orange: #E97132;
  --white: #FFFFFF;
  --on-dark: #E6EEF6;
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
  --gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 4px;
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--grey); border-bottom: 4px solid var(--blue-light); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 18px; padding-bottom: 18px; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; color: var(--blue); text-decoration: none; white-space: nowrap; }
.logo:hover { color: var(--navy); }
.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; font-family: var(--font-display); font-size: 16px; font-weight: 500; }
.site-nav a { color: var(--navy); text-decoration: none; }
.site-nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.site-nav a[aria-current="page"] { color: var(--blue); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border-radius: 4px; font-family: var(--font-display); font-size: 17px; font-weight: 600; text-decoration: none;
  border: 1.5px solid transparent; transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--blue-light); color: var(--navy); }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.site-nav .btn { min-height: 44px; padding: 0 20px; color: var(--white); }
.site-nav .btn:hover { color: var(--white); text-decoration: none; }

/* Section basics */
.section { padding-top: 104px; padding-bottom: 104px; }
.section-head { align-items: end; margin-bottom: 48px; }
.section-head h2 { grid-column: span 6; }
.section-head .lede { grid-column: 8 / span 5; }
.h2 { font-weight: 700; font-size: 44px; line-height: 1.08; letter-spacing: -0.025em; color: var(--blue); }
.lede { color: var(--ink-2); }
.text-link { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--blue); }
.band-grey { background: var(--grey); border-top: 4px solid var(--blue-light); }
.band-navy { background: var(--navy); color: var(--white); }

/* Hero */
.hero { padding-top: 96px; padding-bottom: 88px; align-items: center; }
.hero-copy { grid-column: span 7; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-weight: 700; font-size: 60px; line-height: 1.06; letter-spacing: -0.03em; color: var(--navy); }
.hero-lede { max-width: 34em; font-size: 21px; color: var(--ink-2); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.matrix { grid-column: 9 / span 4; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.matrix-body { display: flex; gap: 12px; align-items: stretch; }
.axis { font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--slate); text-align: center; }
.axis-y { writing-mode: vertical-rl; transform: rotate(180deg); }
.axis-x, .matrix figcaption { padding-left: 28px; }
.matrix-grid { flex-grow: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.matrix-grid span { aspect-ratio: 1 / 1; border-radius: 2px; }
.matrix figcaption { font-size: 15px; color: var(--slate); line-height: 1.5; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 48px; margin: 0 auto; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; margin: 0; }
.stat dd { margin: 0; font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.stat dt { font-size: 16px; color: var(--blue-light); }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
.service { padding: 24px 0 28px; border-top: 1.5px solid var(--blue); display: flex; flex-direction: column; gap: 8px; }
.service h3 { font-size: 21px; font-weight: 600; }
.service p { font-size: 17px; color: var(--ink-2); }

/* Why */
.why { row-gap: 48px; }
.why-head { grid-column: span 4; display: flex; flex-direction: column; gap: 20px; }
.why-grid { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.why-card { background: var(--white); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.why-card h3 { font-size: 21px; font-weight: 600; color: var(--navy); }
.why-card p { font-size: 17px; color: var(--ink-2); }

/* Case studies */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.case { background: var(--white); border: 1px solid var(--blue-light); border-top: 4px solid var(--blue); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.case-sector { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--slate); }
.case h3 { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.case p { font-size: 16px; color: var(--ink-2); }
.case-outcome { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--blue-light); display: flex; flex-direction: column; gap: 4px; }
.case-outcome strong { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--blue); }
.case-outcome p { color: var(--navy); }

/* Directors */
.band-navy .h2 { color: var(--white); }
.band-navy .lede { color: var(--blue-light); }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.director { background: var(--navy-2); border-top: 4px solid var(--blue-light); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.director h3 { font-size: 30px; font-weight: 700; letter-spacing: -0.015em; color: var(--white); }
.director-role { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--blue-light); }
.director-bio { display: flex; flex-direction: column; gap: 14px; font-size: 17px; color: var(--on-dark); }
.director-quals { margin-top: auto; padding-top: 18px; border-top: 1px solid #2F5680; display: flex; flex-direction: column; gap: 4px; }
.director-quals h4 { margin: 0; font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--peach); }
.director-quals p { font-size: 16px; color: var(--on-dark); }
.director-quals .prev { font-size: 15px; color: var(--blue-light); }

/* News tiles */
.news-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.news-tile a { padding: 16px 0 20px; border-top: 1px solid var(--blue-mid); display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--navy); height: 100%; }
.news-tile a:hover .news-title { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.news-date { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--slate); }
.news-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.3; }
.news-summary { font-size: 15px; line-height: 1.45; color: var(--slate); }

/* Contact */
.contact { padding-top: 104px; padding-bottom: 112px; }
.contact-card { background: var(--blue); color: var(--white); border-radius: 4px; padding: 64px; align-items: center; row-gap: 32px; }
.contact-copy { grid-column: span 7; display: flex; flex-direction: column; gap: 16px; }
.contact-copy h2 { font-weight: 700; font-size: 44px; line-height: 1.08; letter-spacing: -0.025em; }
.contact-copy p { font-size: 19px; color: var(--on-dark); }
.contact-people { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 14px; font-family: var(--font-display); }
.person { display: flex; flex-direction: column; gap: 10px; }
.person + .person { padding-top: 14px; border-top: 1px solid #6F9FCC; }
.person-name { font-size: 18px; font-weight: 600; }
.person a.tel { font-size: 16px; color: var(--white); }

.contact-inner { padding-top: 24px; }
.page-head-story .page-head-main { grid-column: span 10; }

/* Footer */
.site-footer { background: var(--grey); border-top: 4px solid var(--blue-light); }
.site-footer .wrap { padding-top: 32px; padding-bottom: 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; font-family: var(--font-display); font-size: 15px; color: var(--slate); }
.site-footer a { color: var(--blue); font-weight: 600; }

/* Inner pages */
.page-head { padding-top: 80px; padding-bottom: 56px; align-items: end; row-gap: 24px; }
.page-head-main { grid-column: span 7; display: flex; flex-direction: column; gap: 20px; }
.page-head h1 { font-weight: 700; font-size: 52px; line-height: 1.08; letter-spacing: -0.03em; color: var(--navy); }
.page-head-side { grid-column: 8 / span 5; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--slate); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--blue-mid); }
.breadcrumb a { color: var(--blue); }
.meta { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.meta time { color: var(--slate); }
.tag { padding: 2px 10px; background: var(--peach); color: var(--navy); border-radius: 2px; }
.story { padding-bottom: 80px; }
.story-body { border-top: 4px solid var(--blue); padding-top: 40px; }
.story-body article { grid-column: 4 / span 9; display: flex; flex-direction: column; gap: 18px; max-width: 46em; }
.story-body article > p { font-size: 19px; color: var(--ink-2); }
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.panel { background: var(--grey); border-top: 3px solid var(--blue-light); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.panel h2 { font-size: 17px; font-weight: 600; color: var(--navy); }
.panel ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.pager { margin-top: 56px; border-top: 1px solid var(--blue-light); border-bottom: 1px solid var(--blue-light); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.pager a { padding: 20px 0; display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.pager .next { text-align: right; grid-column: 2; }
.pager small { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--slate); }
.pager span { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--blue); }
.pager a:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* Community */
.community { padding-bottom: 80px; }
.c-block { border-top: 4px solid var(--blue); padding-top: 32px; padding-bottom: 48px; row-gap: 24px; }
.c-side { grid-column: span 3; display: flex; flex-direction: column; gap: 24px; }
.c-side h2 { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
.c-main { grid-column: 4 / span 9; display: flex; flex-direction: column; gap: 18px; max-width: 46em; font-size: 19px; color: var(--ink-2); }
.c-main ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.c-main a { font-weight: 600; }
.graphic { background: var(--blue-pale); border-radius: 2px; height: 200px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; }
.graphic-radio { border-top: 4px solid var(--orange); }
.graphic-board { border-top: 4px solid var(--blue); }
.wave { display: flex; align-items: center; gap: 6px; height: 140px; }
.wave i { display: block; width: 8px; border-radius: 4px; }
.graphic-label { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--blue); }
.seats { display: flex; justify-content: center; gap: 22px; }
.seat { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-mid); }
.board-row { display: flex; align-items: center; gap: 14px; }
.table { width: 150px; height: 56px; border-radius: 28px; background: var(--navy); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--blue-light); }

/* 404 */
.notfound { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.notfound h1 { font-size: 52px; font-weight: 700; letter-spacing: -0.03em; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav ul { gap: 20px; font-size: 15px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .hero-copy { grid-column: 1 / -1; }
  .matrix { grid-column: 1 / span 6; margin-top: 48px; max-width: 360px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid, .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-head, .why-grid { grid-column: 1 / -1; }
  .section-head h2, .section-head .lede { grid-column: 1 / -1; }
  .section-head { row-gap: 16px; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-card { display: flex; flex-direction: column; align-items: stretch; }
  .contact-copy, .contact-people { grid-column: 1 / -1; }
  .contact-people { max-width: 420px; }
  .page-head-main, .page-head-side { grid-column: 1 / -1; }
  .story-body article { grid-column: 1 / -1; }
  .c-side, .c-main { grid-column: 1 / -1; }
  .c-side .graphic { max-width: 360px; width: 100%; }
}

/* Collapsible navigation (only when JavaScript is available) */
@media (max-width: 960px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
    background: var(--white); color: var(--navy); border: 1.5px solid var(--navy); border-radius: 4px;
    font-family: var(--font-display); font-size: 16px; font-weight: 600; cursor: pointer;
  }
  .nav-toggle-bars { width: 18px; height: 12px; position: relative; display: inline-block; }
  .nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars i { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; }
  .nav-toggle-bars::before { top: 0; } .nav-toggle-bars i { top: 5px; } .nav-toggle-bars::after { bottom: 0; }
  .site-header .wrap { flex-wrap: wrap; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 4px; font-size: 18px; }
  .site-nav li a { display: block; padding: 12px 0; border-top: 1px solid #DDE3E8; }
  .site-nav li:last-child a { margin-top: 12px; border-top: 0; text-align: center; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .grid12 { column-gap: 16px; }
  body { font-size: 17px; }
  html { scroll-padding-top: 92px; }
  .logo { font-size: 22px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .hero { padding-top: 56px; padding-bottom: 56px; }
  .hero h1 { font-size: 40px; }
  .hero-lede { font-size: 19px; }
  .matrix { grid-column: 1 / -1; }
  .h2, .contact-copy h2 { font-size: 32px; }
  .stats { gap: 24px; padding-top: 36px; padding-bottom: 36px; }
  .stat dd { font-size: 32px; }
  .service-grid, .case-grid, .why-grid, .news-grid, .panel-grid { grid-template-columns: 1fr; }
  .case, .why-card { padding: 24px; }
  .director { padding: 28px 24px; }
  .director h3 { font-size: 26px; }
  .contact { padding-top: 64px; padding-bottom: 72px; }
  .contact-card { padding: 36px 24px; }
  .page-head { padding-top: 48px; padding-bottom: 36px; }
  .page-head h1 { font-size: 34px; }
  .story-body article > p, .c-main { font-size: 17px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; text-align: left; border-top: 1px solid var(--blue-light); }
  .c-side h2 { font-size: 26px; }
  .btn-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .nav-toggle, .skip-link { position: static; }
  .site-nav, .btn-row, .contact-people .btn { display: none; }
  .band-navy, .director, .contact-card { background: #FFFFFF !important; color: #000000 !important; }
  .director h3, .director-bio, .director-quals p { color: #000000 !important; }
}
