/* PitchCraft — dark premium corporate digital marketing agency */
:root {
  --bg-graphite: #111418;
  --text-on-dark: #F2F5F8;
  --bg-panel: #1A1F26;
  --bg-slate: #242B33;
  --bg-accent: #3A7A8C;
  --text-on-accent: #F2F5F8;
  --bg-muted: #303841;
  --ice: #7EB8C9;
  --sidebar-w: 260px;
  --font-display: "Manrope", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --radius: 2px;
  --ease: 0.28s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-pitch {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  background: var(--bg-graphite);
  color: var(--text-on-dark);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ice);
  text-decoration: none;
  transition: color var(--ease), opacity var(--ease);
}

a:hover {
  color: #a8d4e0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

.surface-dark {
  background: var(--bg-graphite);
  color: var(--text-on-dark);
}

.surface-slate {
  background: var(--bg-slate);
  color: var(--text-on-dark);
}

.surface-panel {
  background: var(--bg-panel);
  color: var(--text-on-dark);
}

.surface-accent {
  background: var(--bg-accent);
  color: #fff;
}

.surface-accent a {
  color: #fff;
  text-decoration: underline;
}

.surface-accent .stat-num,
.surface-accent .stat-label,
.surface-accent h2,
.surface-accent p {
  color: #fff;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 0.75rem;
}

.surface-accent .eyebrow {
  color: #fff;
  opacity: 0.8;
}

.serial-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ice);
  margin-bottom: 0.85rem;
}

.pitch-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
  border: 1px solid rgba(126, 184, 201, 0.35);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
}

/* Layout shell */
.pitch-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin-left: 0;
  transition: margin-left var(--ease);
}

.pitch-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(242, 245, 248, 0.06);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-on-dark) !important;
  letter-spacing: -0.02em;
}

#sidebarToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(242, 245, 248, 0.15);
  background: var(--bg-panel);
  color: var(--text-on-dark);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}

#sidebarToggle span,
#sidebarToggle span::before,
#sidebarToggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

#sidebarToggle span::before,
#sidebarToggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

#sidebarToggle span::before { top: -6px; }
#sidebarToggle span::after { top: 6px; }

main {
  flex: 1;
}

.section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-wide {
  max-width: 1200px;
  margin: 0 auto;
}

/* Sidebar */
.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  z-index: 60;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(-100%);
  transition: transform var(--ease);
  border-right: 1px solid rgba(242, 245, 248, 0.06);
  overflow-y: auto;
}

.sidebar-nav.is-open {
  transform: translateX(0);
}

.sidebar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-on-dark);
}

.sidebar-nav nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-nav nav a {
  display: block;
  padding: 0.65rem 0.85rem;
  color: var(--text-on-dark);
  border-radius: var(--radius);
  font-weight: 500;
  opacity: 0.85;
}

.sidebar-nav nav a:hover,
.sidebar-nav nav a[aria-current="page"] {
  background: var(--bg-slate);
  color: var(--ice);
  opacity: 1;
}

.sidebar-meta {
  margin-top: auto;
  font-size: 0.8rem;
  opacity: 0.65;
  line-height: 1.5;
}

.sidebar-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 50;
}

.sidebar-scrim[hidden] {
  display: none !important;
}

/* Cards */
.card {
  background: var(--bg-panel);
  color: var(--text-on-dark);
  border-radius: var(--radius);
  border-left: 3px solid var(--ice);
  padding: 32px;
  transition: box-shadow var(--ease), transform var(--ease);
}

.card:hover {
  box-shadow: 0 0 0 1px rgba(126, 184, 201, 0.25), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.surface-slate .card,
.surface-dark .card {
  background: var(--bg-panel);
}

.surface-panel .card {
  background: var(--bg-slate);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid-3 {
  grid-template-columns: 1fr;
}

.card-grid-2 {
  grid-template-columns: 1fr;
}

.card-grid-6 {
  grid-template-columns: 1fr;
}

.pillar-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.85rem;
  color: var(--ice);
}

.pillar-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons / CTAs */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

.btn-accent {
  background: var(--bg-accent);
  color: #fff !important;
}

.btn-accent:hover {
  box-shadow: 0 0 24px rgba(58, 122, 140, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-on-dark) !important;
  border: 1px solid rgba(242, 245, 248, 0.25);
}

.btn-ghost:hover {
  border-color: var(--ice);
  color: var(--ice) !important;
}

.surface-accent .btn-ghost {
  border-color: rgba(242, 245, 248, 0.4);
  color: #fff !important;
}

.surface-accent .btn-ghost:hover {
  border-color: #fff;
  color: #fff !important;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Hero Pattern D */
.hero-d {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero-d-text {
  flex: 0 0 55%;
  display: flex;
  align-items: center;
  padding: 3.5rem 1.5rem 2rem;
  position: relative;
}

.hero-d-text .section-inner {
  width: 100%;
}

.hero-d-photos {
  flex: 0 0 45%;
  min-height: 280px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0 1.5rem 1.5rem;
  position: relative;
}

.hero-d-photos figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  min-height: 220px;
}

.hero-d-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.trust-float {
  position: absolute;
  bottom: 1.75rem;
  right: 2rem;
  z-index: 5;
  background: var(--bg-panel);
  color: var(--text-on-dark);
  border-left: 3px solid var(--ice);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 280px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.trust-line {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-top: 1.25rem;
}

/* Stats */
.stats-strip {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem);
  display: block;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
}

/* Asymmetric case */
.case-arch {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.case-arch figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.case-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

/* FAQ static split */
.faq-split {
  display: grid;
  gap: 1.5rem;
}

.faq-item {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(242, 245, 248, 0.08);
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  margin-bottom: 0;
  opacity: 0.9;
}

/* Programme cards */
.tier {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ice);
  margin: 0.75rem 0;
}

.programme-code {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ice);
  font-weight: 600;
}

/* About sticky rail */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.metric-rail {
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--ice);
}

.metric-rail .metric {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(242, 245, 248, 0.08);
}

.metric-rail .metric:last-child {
  border-bottom: none;
}

.metric-rail strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ice);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.form-panel {
  padding: 2rem;
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid rgba(242, 245, 248, 0.12);
  background: var(--bg-graphite);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--ice);
  outline-offset: 1px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.consent-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.consent-row input {
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.alert-success {
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--ice);
  background: var(--bg-slate);
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
}

.photo-block {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.photo-block img {
  width: 100%;
  object-fit: cover;
  min-height: 280px;
}

.photo-block--sm {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.photo-block--sm img {
  min-height: 0;
  max-height: 360px;
  object-fit: cover;
}

.portrait-lead {
  max-width: 280px;
  width: 100%;
  height: auto;
  min-height: 0 !important;
  object-fit: cover;
  border-radius: var(--radius);
}

.legal-content h2 {
  margin-top: 2.5rem;
}

.legal-content h3 {
  margin-top: 1.75rem;
}

.prose-wide {
  max-width: 780px;
}

/* Footer */
.pitch-footer {
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid rgba(242, 245, 248, 0.06);
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.footer-grid h3 {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 0.85rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-grid a {
  color: var(--text-on-dark);
  opacity: 0.85;
}

.footer-grid a:hover {
  color: var(--ice);
  opacity: 1;
}

.footer-legal {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(242, 245, 248, 0.08);
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(242, 245, 248, 0.1);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.9rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-panel {
  max-width: 1100px;
  margin: 1rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(242, 245, 248, 0.1);
  font-size: 0.9rem;
}

.cookie-panel[hidden] {
  display: none !important;
}

/* Reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3.5rem 1.5rem 2.5rem;
}

.page-hero .section-inner {
  max-width: 900px;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem;
}

/* Desktop ≥1024px */
@media (min-width: 1024px) {
  .sidebar-nav {
    transform: translateX(0);
  }

  #sidebarToggle {
    display: none;
  }

  .pitch-shell {
    margin-left: var(--sidebar-w);
  }

  .sidebar-scrim {
    display: none !important;
  }

  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .case-arch {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .faq-split {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .about-grid {
    grid-template-columns: 1.4fr 0.75fr;
  }

  .metric-rail {
    position: sticky;
    top: 5.5rem;
  }

  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1.1fr;
  }

  .hero-d-text {
    padding: 4rem 2.5rem 2.5rem;
  }

  .hero-d-photos {
    padding: 0 2.5rem 2rem;
  }

  .section {
    padding: 5rem 2.5rem;
  }
}

/* Laptop 900–1023 */
@media (min-width: 900px) and (max-width: 1023px) {
  .card-grid-3,
  .card-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .faq-split {
    grid-template-columns: 1fr 1fr;
  }

  .case-arch {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet */
@media (min-width: 640px) and (max-width: 899px) {
  .card-grid-3,
  .card-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-d-photos {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 639px) {
  .hero-d {
    min-height: auto;
  }

  .hero-d-text {
    flex: none;
    padding-top: 2.5rem;
  }

  .hero-d-photos {
    flex: none;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-d-photos figure {
    min-height: 180px;
  }

  .hero-d-photos figure:first-child {
    min-height: 220px;
  }

  .trust-float {
    position: relative;
    bottom: auto;
    right: auto;
    margin: -0.5rem 1.5rem 1.5rem;
    max-width: none;
  }
}
