/* Capabilities pages: hero and capability grid.
   Deployed to themes/custom/awau_bootstrap/css/capabilities.css (framework library). */

:root {
  --aw-navy-deep: #0E1B2C;
  --aw-navy: #19325a;
  --aw-lime: #b9fb5d;
  --aw-green: #3f6212;
  --aw-grey-bg: #f4f6f9;
  --aw-grey-panel: #e8edf3;
  --aw-line: #dfe6ee;
}

/* The hero headline is the page's h1, so hide Drupal's own title on these pages. */
body:has(.aw-hero) h1.page-header { display: none; }

.aw-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 48px;
  background: var(--aw-navy-deep);
  color: #fff;
  padding: 56px 48px;
  margin: 0 0 40px;
}
.aw-hero h1 {
  color: #fff !important;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 18px;
}
.aw-hero__sub {
  color: #fff;
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 30px;
  opacity: .9;
}
.aw-hero__media img {
  display: block;
  width: 100%;
  height: auto;
}
.aw-hero__actions { margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }

.aw-btn,
.aw-btn:visited {
  display: inline-block;
  font-weight: 800;
  font-size: 17px;
  padding: 13px 26px;
  border: 2px solid var(--aw-lime);
  text-decoration: none !important;
  transition: background-color .15s, color .15s;
}
.aw-btn--primary, .aw-btn--primary:visited { background: var(--aw-lime); color: var(--aw-navy-deep) !important; }
.aw-btn--primary:hover, .aw-btn--primary:focus { background: #fff; border-color: #fff; }
.aw-btn--ghost, .aw-btn--ghost:visited { background: transparent; color: #fff !important; }
.aw-btn--ghost:hover, .aw-btn--ghost:focus { background: var(--aw-lime); color: var(--aw-navy-deep) !important; }
.aw-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---- Body sections under the hero (all 7 capability pages) ---- */
.aw-cap-copy { margin: -40px 0 0; font-size: 17px; line-height: 1.65; color: #22324a; }
.aw-cap-copy p { margin: 0 0 16px; max-width: 70ch; }
.aw-cap-copy p:last-child { margin-bottom: 0; }
.aw-cap-copy h2 { color: var(--aw-navy-deep); font-size: 30px; font-weight: 700; line-height: 1.2; margin: 0 0 24px; }
.aw-cap-copy h3 { color: var(--aw-navy-deep); font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; }

/* Sections: generous padding, alternating white / very light grey. */
.aw-sec { padding: 64px 48px; background: #fff; }
.aw-sec--alt { background: var(--aw-grey-bg); }
.aw-eyebrow { font-size: 14px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--aw-navy) !important; margin: 0 0 12px !important; }
.aw-eyebrow::before { content: ""; display: inline-block; width: 24px; height: 4px; background: var(--aw-lime); vertical-align: middle; margin: -3px 10px 0 0; }

/* 1. Problem (grey panel) + What we do (larger text). */
.aw-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.aw-intro__problem { background: var(--aw-grey-panel); padding: 32px; border-left: 5px solid var(--aw-navy); }
.aw-intro__do p { font-size: 22px; line-height: 1.55; color: var(--aw-navy-deep); }

/* Small lime number badge used by cards and steps. */
.aw-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--aw-lime); color: var(--aw-navy-deep); font-weight: 700; font-size: 18px; margin: 0 0 16px; }

/* 2. Lists as a card grid. */
.aw-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.aw-card { background: #fff; border: 1px solid var(--aw-line); border-top: 4px solid var(--aw-navy); padding: 24px; margin: 0; }
.aw-sec:not(.aw-sec--alt) .aw-card { background: var(--aw-grey-bg); }
.aw-card p { font-size: 16px; line-height: 1.55; }

/* 3. Numbered steps: horizontal strip with arrows. */
.aw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; counter-reset: none; }
.aw-step { position: relative; margin: 0; background: #fff; border: 1px solid var(--aw-line); padding: 24px; }
.aw-sec:not(.aw-sec--alt) .aw-step { background: var(--aw-grey-bg); }
.aw-step p { font-size: 16px; line-height: 1.55; }
.aw-step:not(:last-child)::after {
  content: ""; position: absolute; top: 44px; right: -32px; width: 24px; height: 24px;
  background: no-repeat center / 24px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319325a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* 4. Feature paragraph: navy band (one per page) or a simple callout. */
.aw-band { background: var(--aw-navy-deep); color: #fff; padding: 64px 48px; border-left: 8px solid var(--aw-lime); }
.aw-band h2 { color: #fff !important; }
.aw-band p { color: #fff; font-size: 20px; line-height: 1.6; opacity: .92; }
.aw-callout { background: #fff; border-left: 5px solid var(--aw-lime); padding: 28px 32px; box-shadow: 0 1px 0 var(--aw-line); }
.aw-callout h2 { font-size: 22px; margin-bottom: 10px; }

/* 5. Proof: big stat. */
.aw-proof { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: center; }
.aw-proof__stat { margin: 0 !important; background: var(--aw-navy-deep); color: #fff; padding: 28px 36px; text-align: center; min-width: 220px; }
.aw-proof__num { display: block; font-size: 72px; font-weight: 700; line-height: 1; color: var(--aw-lime); }
.aw-proof__label { display: block; font-size: 18px; font-weight: 700; margin-top: 8px; }
.aw-link-arrow, .aw-link-arrow:visited { font-weight: 700; color: var(--aw-navy) !important; text-decoration: none !important; border-bottom: 3px solid var(--aw-lime); }
.aw-link-arrow::after { content: " \2192"; }
.aw-link-arrow:hover, .aw-link-arrow:focus { background: var(--aw-lime); }

/* 6. Where it fits: Engagement Plan ladder. */
.aw-ladder { list-style: none; margin: 24px 0 0; padding: 0; display: flex; gap: 6px; max-width: 760px; }
.aw-ladder li { flex: 1; margin: 0; }
.aw-ladder a, .aw-ladder a:visited {
  display: block; text-align: center; padding: 12px 6px; font-weight: 700; font-size: 16px;
  background: #fff; color: var(--aw-navy) !important; border: 2px solid var(--aw-line); text-decoration: none !important;
}
.aw-sec:not(.aw-sec--alt) .aw-ladder a { background: var(--aw-grey-bg); }
.aw-ladder li.is-on a { background: var(--aw-lime) !important; border-color: var(--aw-lime); color: var(--aw-navy-deep) !important; }
.aw-ladder a:hover, .aw-ladder a:focus { border-color: var(--aw-navy); }

/* 7. Related as a card list. */
.aw-related { padding: 64px 48px 24px; }
.aw-related h2 { color: var(--aw-navy-deep); font-size: 30px; font-weight: 700; margin: 0 0 24px; }
.aw-related .related-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.aw-related .related-links li { margin: 0; }
.aw-related .related-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%;
  padding: 18px 20px; background: #fff; border: 1px solid var(--aw-line); border-left: 4px solid var(--aw-lime);
  color: var(--aw-navy-deep) !important; font-weight: 700; line-height: 1.35; text-decoration: none !important;
}
.aw-related .related-links a::after { content: "\2192"; color: var(--aw-navy); flex: none; }
.aw-related .related-links a:hover, .aw-related .related-links a:focus { border-color: var(--aw-navy); border-left-color: var(--aw-lime); }

/* "Talk to us" jumps to the form; keep it clear of the admin toolbar. */
#block-getintouch { scroll-margin-top: 100px; }

/* /capabilities: the seven capabilities as a simple grid. */
.aw-cap-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.aw-cap-grid li { margin: 0; }
.aw-cap-grid a {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid #e3eaf3;
  border-top: 5px solid var(--aw-lime);
  padding: 22px 24px 24px;
  color: var(--aw-navy-deep);
  text-decoration: none !important;
  transition: border-color .15s, box-shadow .15s;
}
.aw-cap-grid a:hover, .aw-cap-grid a:focus { border-color: var(--aw-navy); border-top-color: var(--aw-lime); }
.aw-cap-grid__icon { display: block; width: 64px; height: 64px; margin: 0 0 14px; }
.aw-cap-grid h3 { color: var(--aw-navy); font-size: 21px; font-weight: 800; margin: 0 0 8px; }
.aw-cap-grid p { margin: 0; font-size: 16px; line-height: 1.5; color: #46556a; }

@media (max-width: 991px) {
  .aw-hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 28px; }
  .aw-hero h1 { font-size: 36px; }
  .aw-sec, .aw-band { padding: 48px 28px; }
  .aw-related { padding: 48px 28px 16px; }
  .aw-intro { grid-template-columns: 1fr; gap: 28px; }
  /* Steps go vertical, arrows point down. */
  .aw-steps { grid-template-columns: 1fr; gap: 36px; }
  .aw-step:not(:last-child)::after { top: auto; bottom: -32px; right: auto; left: 32px; transform: rotate(90deg); }
  .aw-proof { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .aw-ladder { flex-direction: column; }
}
@media (max-width: 480px) {
  .aw-hero { padding: 32px 16px; margin-left: -15px; margin-right: -15px; }
  .aw-hero h1 { font-size: 30px; }
  .aw-hero__sub { font-size: 18px; }
  .aw-sec, .aw-band { padding: 40px 16px; margin-left: -15px; margin-right: -15px; }
  .aw-related { padding: 40px 0 8px; }
  .aw-cap-copy h2 { font-size: 25px; }
  .aw-intro__problem { padding: 24px 20px; }
  .aw-intro__do p { font-size: 19px; }
  .aw-cards { grid-template-columns: 1fr; }
  .aw-proof__num { font-size: 60px; }
}
