/* ============================================================
   Oxfordshire AV — subpage styles
   Extends design-system tokens + styles.css for static SEO pages
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   Global reset for standalone pages (no #root wrapper needed)
   ───────────────────────────────────────────────────────────── */

html, body {
  margin: 0;
  background: #0b0f14;
  min-height: 100vh;
}

body {
  background:
    radial-gradient(1100px 700px at 30% 5%, rgba(0,66,105,0.28), transparent 60%),
    radial-gradient(800px 500px at 80% 95%, rgba(247,173,92,0.09), transparent 60%),
    #0b0f14;
}

.oav-page {
  --bg: var(--m3-ink);
  --bg-2: #14202a;
  --surface: var(--m3-navy);
  --fg: var(--m3-off-white);
  --fg-muted: var(--m3-mist);
  --accent: var(--m3-orange);
  --accent-deep: var(--m3-orange-deep);
  --rule: rgba(255,255,255,0.10);
  --rule-strong: rgba(255,255,255,0.22);
  --chip-bg: rgba(255,255,255,0.06);

  background: var(--bg);
  color: var(--fg);
  font-family: var(--m3-font-sans);
  width: 100%;
  min-height: 100vh;
}

/* Force heading + paragraph colours inside .oav-page */
.oav-page h1,
.oav-page h2,
.oav-page h3,
.oav-page h4 { color: var(--fg); }
.oav-page p  { color: var(--fg-muted); }

/* ─────────────────────────────────────────────────────────────
   Sticky nav — desktop override in media block below
   ───────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
}

/* ─────────────────────────────────────────────────────────────
   Link style inside page prose
   ───────────────────────────────────────────────────────────── */

.oav-page a:not(.btn):not(.nav-cta):not(.brand):not(.sp-footer-links a):not(.sp-footer-legal a) {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  text-decoration: none;
  transition: color var(--m3-dur-fast) var(--m3-ease-out);
}
.oav-page a:not(.btn):not(.nav-cta):not(.brand):not(.sp-footer-links a):not(.sp-footer-legal a):hover {
  color: var(--accent-deep);
}

/* ─────────────────────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────────────────────── */

.sp-hero {
  padding: 64px 24px 72px;
  max-width: 100%;
}

.sp-hero .eyebrow {
  margin-bottom: 20px;
}

.sp-hero h1 {
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 20px;
  max-width: 18ch;
}

.sp-hero h1 .accent {
  color: var(--accent);
}

.sp-hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 52ch;
  margin: 0 0 32px;
}

/* ─────────────────────────────────────────────────────────────
   HERO — 2-column split (text left, photo right)
   Mobile: single column, photo below text
   ───────────────────────────────────────────────────────────── */

.sp-hero-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-hero-photo {
  margin-top: 32px;
  border-radius: var(--m3-radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-2);
}

.sp-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Map variant — contain so full county is always visible */
.sp-hero-map {
  background: #0d1820;
  border-radius: var(--m3-radius-xl);
  aspect-ratio: 460 / 380;
}
.sp-hero-map img {
  object-fit: contain;
  object-position: center;
}

/* ─────────────────────────────────────────────────────────────
   FEATURES GRID
   ───────────────────────────────────────────────────────────── */

.sp-features {
  padding: 56px 24px;
}

.sp-features > .eyebrow {
  margin-bottom: 20px;
}

.sp-features > h2 {
  margin: 0 0 36px;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.03em;
}

.sp-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sp-feature-card {
  background: var(--chip-bg);
  border: 1px solid var(--rule);
  border-radius: var(--m3-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-feature-icon {
  font-size: 28px;
  line-height: 1;
}

.sp-feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--fg);
}

.sp-feature-card p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: var(--fg-muted);
}

/* ─────────────────────────────────────────────────────────────
   WHY US
   ───────────────────────────────────────────────────────────── */

.sp-why {
  padding: 56px 24px;
}

.sp-why > .eyebrow {
  margin-bottom: 16px;
}

.sp-why > h2 {
  font-size: clamp(26px, 5vw, 42px);
  letter-spacing: -0.03em;
  margin: 0 0 36px;
  max-width: 22ch;
}

.sp-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sp-why-card {
  background: var(--chip-bg);
  border: 1px solid var(--rule);
  border-radius: var(--m3-radius-lg);
  padding: 24px;
}

.sp-why-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--fg);
}

.sp-why-card p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: var(--fg-muted);
}

.sp-why-num {
  display: block;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 8px;
}

/* ─────────────────────────────────────────────────────────────
   PRICING STRIP (used in conference-av.html)
   ───────────────────────────────────────────────────────────── */

.sp-pricing {
  padding: 56px 24px;
}

.sp-pricing > .eyebrow {
  margin-bottom: 16px;
}

.sp-pricing > h2 {
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.sp-pricing > p {
  max-width: 58ch;
  font-size: 16px;
  margin: 0 0 32px;
}

.sp-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sp-price-card {
  background: var(--chip-bg);
  border: 1px solid var(--rule);
  border-radius: var(--m3-radius-lg);
  padding: 24px;
}

.sp-price-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--fg);
}

.sp-price-amount {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 8px;
}

.sp-price-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   FAQ
   ───────────────────────────────────────────────────────────── */

.sp-faq {
  padding: 56px 24px;
}

.sp-faq > .eyebrow {
  margin-bottom: 16px;
}

.sp-faq > h2 {
  font-size: clamp(26px, 5vw, 42px);
  letter-spacing: -0.03em;
  margin: 0 0 36px;
  max-width: 20ch;
}

.sp-faq-list {
  display: flex;
  flex-direction: column;
}

.sp-faq-item {
  border-bottom: 1px solid var(--rule);
}

.sp-faq-item:first-child {
  border-top: 1px solid var(--rule);
}

.sp-faq-q {
  list-style: none;
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  cursor: pointer;
  padding: 20px 32px 20px 0;
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sp-faq-q::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--m3-dur-base) var(--m3-ease-out);
}

details[open] .sp-faq-q::after {
  transform: rotate(45deg);
}

.sp-faq-q::-webkit-details-marker { display: none; }

.sp-faq-a {
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-muted);
  padding: 0 32px 24px 0;
  margin: 0;
  max-width: 65ch;
}

/* ─────────────────────────────────────────────────────────────
   CTA STRIP
   ───────────────────────────────────────────────────────────── */

.sp-cta {
  padding: 64px 24px;
  text-align: center;
  background:
    radial-gradient(600px 400px at 50% 50%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--rule);
}

.sp-cta > .eyebrow {
  justify-content: center;
  margin-bottom: 20px;
}

.sp-cta > h2 {
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: -0.035em;
  margin: 0 auto 16px;
  max-width: 20ch;
}

.sp-cta > p {
  font-size: 17px;
  max-width: 46ch;
  margin: 0 auto 32px;
}

/* ─────────────────────────────────────────────────────────────
   RELATED LINKS (internal nav)
   ───────────────────────────────────────────────────────────── */

.sp-related {
  padding: 48px 24px;
  border-top: 1px solid var(--rule);
}

.sp-related > p.eyebrow {
  margin-bottom: 16px;
}

.sp-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.sp-related-link {
  background: var(--chip-bg);
  border: 1px solid var(--rule-strong);
  border-radius: var(--m3-radius-pill);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none !important;
  border-bottom: 1px solid var(--rule-strong) !important;
  transition: background var(--m3-dur-fast) var(--m3-ease-out),
              border-color var(--m3-dur-fast) var(--m3-ease-out);
}

.sp-related-link:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent) !important;
  color: var(--accent) !important;
}

/* ─────────────────────────────────────────────────────────────
   .nav-meta — suppress prose link colouring on phone number
   ───────────────────────────────────────────────────────────── */

.oav-page .nav-about,
.oav-page .nav-link {
  color: rgba(255,255,255,0.55) !important;
  border-bottom: none !important;
}
.oav-page .nav-about:hover,
.oav-page .nav-link:hover {
  color: rgba(255,255,255,0.95) !important;
}
.oav-page .nav-link.is-active {
  color: rgba(255,255,255,0.9) !important;
}
.oav-page .nav-meta a {
  color: var(--accent) !important;
  border-bottom: none !important;
}
.oav-page .nav-meta a:hover {
  opacity: 0.75;
}

/* ─────────────────────────────────────────────────────────────
   .foot footer — suppress prose link colouring so footer links
   render white/dim, matching the homepage exactly
   ───────────────────────────────────────────────────────────── */

.oav-page .foot a {
  color: rgba(255,255,255,0.65) !important;
  border-bottom: none !important;
  text-decoration: none;
  transition: color var(--m3-dur-fast) var(--m3-ease-out);
}
.oav-page .foot a:hover {
  color: rgba(255,255,255,0.95) !important;
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */

.sp-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  padding: 56px 24px 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.sp-footer-top .brand {
  margin-bottom: 12px;
  display: inline-flex;
}

.sp-footer-top p {
  font-size: 13px;
  color: var(--fg-muted);
  margin: 4px 0;
  line-height: 1.5;
}

.sp-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-footer-links strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 4px;
}

.sp-footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none !important;
  border-bottom: none !important;
  opacity: 0.75;
  transition: opacity var(--m3-dur-fast) var(--m3-ease-out);
}

.sp-footer-links a:hover {
  opacity: 1;
  color: var(--accent) !important;
}

.sp-footer-legal {
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.5;
  margin: 0;
}

.sp-footer-legal a {
  color: inherit !important;
  border-bottom: 1px solid currentColor !important;
}

/* ─────────────────────────────────────────────────────────────
   LOCATION page extras
   ───────────────────────────────────────────────────────────── */

.sp-venue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.sp-venue-chip {
  background: var(--chip-bg);
  border: 1px solid var(--rule);
  border-radius: var(--m3-radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  color: var(--fg-muted);
}

.sp-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0;
}

.sp-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-stat-num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--accent);
  line-height: 1;
}

.sp-stat-label {
  font-size: 13px;
  color: var(--fg-muted);
}

/* ─────────────────────────────────────────────────────────────
   DESKTOP OVERRIDES  ≥ 1024px
   ───────────────────────────────────────────────────────────── */

@media (min-width: 1024px) {

  /* Centering container for all sp- sections */
  .sp-hero,
  .sp-features,
  .sp-why,
  .sp-pricing,
  .sp-faq,
  .sp-cta,
  .sp-related,
  .sp-footer {
    padding-left: max(56px, calc((100% - 1240px) / 2));
    padding-right: max(56px, calc((100% - 1240px) / 2));
  }

  /* Hero image: constrain to content width with rounded corners */
  .sp-hero-img {
    max-width: 1240px;
    margin: 0 auto;
    border-radius: var(--m3-radius-xl);
    aspect-ratio: 21/9;
  }

  /* Nav sticky */
  .nav {
    padding-left: max(56px, calc((100% - 1240px) / 2));
    padding-right: max(56px, calc((100% - 1240px) / 2));
    padding-top: 22px;
    padding-bottom: 22px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* Hero — 2-column split on desktop */
  .sp-hero {
    padding-top: 80px;
    padding-bottom: 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: 64px;
  }

  /* If no photo present (location pages), collapse to single col */
  .sp-hero:not(:has(.sp-hero-photo)) {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .sp-hero-photo {
    margin-top: 0;
    aspect-ratio: 4/3;
  }

  .sp-hero h1 {
    font-size: clamp(48px, 5vw, 72px);
    max-width: 20ch;
  }

  .sp-hero-sub {
    font-size: 19px;
  }

  /* Features grid — 4 col on desktop */
  .sp-features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .sp-feature-card {
    padding: 28px;
  }

  .sp-feature-card h3 {
    font-size: 18px;
  }

  .sp-feature-card p {
    font-size: 14px;
  }

  /* Why — 3 col desktop */
  .sp-why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  /* Pricing — 3 col desktop */
  .sp-pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  /* FAQ — sidebar layout */
  .sp-faq {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    column-gap: 80px;
    align-items: start;
  }

  .sp-faq > .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 12px;
  }

  .sp-faq > h2 {
    grid-column: 1;
    grid-row: 2;
    position: sticky;
    top: 100px;
    margin: 0;
  }

  .sp-faq-list {
    grid-column: 2;
    grid-row: 2;
  }

  .sp-faq-q {
    font-size: 18px;
    padding: 22px 36px 22px 0;
  }

  .sp-faq-a {
    font-size: 16px;
  }

  /* CTA */
  .sp-cta > h2 {
    font-size: clamp(36px, 4vw, 56px);
  }

  /* Footer — multi-column */
  .sp-footer {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 48px;
    align-items: start;
  }

  .sp-footer-top {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    align-items: start;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 8px;
  }

  /* ── .foot footer — desktop 4-column centred layout ── */
  .foot {
    padding-left: max(56px, calc((100% - 1240px) / 2));
    padding-right: max(56px, calc((100% - 1240px) / 2));
    padding-top: 64px;
    padding-bottom: 36px;
  }
  .foot-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-top: 36px;
  }
  .foot .brand { font-size: 22px; }
  .foot-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    padding-top: 24px;
  }

  /* Photo strip — desktop: 2-col next to hero text */
  .sp-photo-strip {
    padding-left: max(56px, calc((100% - 1240px) / 2));
    padding-right: max(56px, calc((100% - 1240px) / 2));
    padding-bottom: 80px;
  }
  .sp-photo-strip-grid {
    grid-template-columns: 3fr 2fr;
    gap: 12px;
  }

}

/* ─────────────────────────────────────────────────────────────
   PHOTO STRIP (service sub-pages)
   ───────────────────────────────────────────────────────────── */

.sp-photo-strip {
  padding: 0 16px 48px;
}

.sp-photo-strip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sp-photo-strip-grid .sp-photo {
  overflow: hidden;
  border-radius: var(--m3-radius-lg);
  background: var(--bg-2);
}

.sp-photo-strip-grid .sp-photo--tall {
  aspect-ratio: 3/4;
}

.sp-photo-strip-grid .sp-photo--wide {
  aspect-ratio: 16/9;
}

.sp-photo-strip-grid .sp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sp-photo-strip-grid .sp-photo:hover img {
  transform: scale(1.03);
}

/* ─────────────────────────────────────────────────────────────
   TEAM page
   ───────────────────────────────────────────────────────────── */

.sp-team {
  padding: 56px 24px;
}
.sp-team-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.sp-team-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sp-team-photo {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-2);
  flex-shrink: 0;
  border: 1px solid var(--rule);
}
.sp-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.sp-team-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #14202a, #1e3040);
}
.sp-team-initials {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.6;
  letter-spacing: -0.04em;
}
.sp-team-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}
.sp-team-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.sp-team-bio {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 52ch;
  margin: 0;
}

@media (min-width: 640px) {
  .sp-team-card {
    flex-direction: row;
    align-items: flex-start;
  }
  .sp-team-photo {
    width: 200px;
    height: 200px;
    border-radius: 20px;
  }
}

@media (min-width: 1024px) {
  .sp-team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .sp-team {
    padding-left: max(56px, calc((100% - 1240px) / 2));
    padding-right: max(56px, calc((100% - 1240px) / 2));
  }
}

/* ─────────────────────────────────────────────────────────────
   LEGAL pages
   ───────────────────────────────────────────────────────────── */
.sp-legal {
  padding: 56px 24px;
}
.sp-legal-body {
  max-width: 72ch;
}
.sp-legal-body h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}
.sp-legal-body .sp-legal-date {
  font-size: 13px;
  color: var(--fg-muted);
  margin: 0 0 48px;
  display: block;
}
.sp-legal-body h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 40px 0 10px;
}
.sp-legal-body p, .sp-legal-body li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-muted);
}
.sp-legal-body ul {
  padding-left: 20px;
  margin: 8px 0 16px;
}
.sp-legal-body a {
  color: var(--accent);
}
@media (min-width: 1024px) {
  .sp-legal {
    padding-left: max(56px, calc((100% - 1240px) / 2));
    padding-right: max(56px, calc((100% - 1240px) / 2));
    padding-top: 80px;
    padding-bottom: 100px;
  }
}

/* ─────────────────────────────────────────────────────────────
   Sticky CTA — always hidden on desktop regardless of load order
   styles-detail.css declares display:flex globally; this override
   ensures sub-pages suppress it at ≥1024px.
   ───────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .sticky-cta { display: none !important; }
}
