/* ==========================================================
   Telford & Wrekin IDT School Service – shared styles
   Built on Bootstrap 5.3 + Bootstrap Icons
   ========================================================== */

:root {
  --idt-navy: #0f2f3a;
  --idt-navy-2: #15404d;
  --idt-ink: #12323d;
  --idt-text: #4a5a62;
  --idt-orange: #f47c20;
  --idt-orange-dark: #d9650c;
  --idt-orange-soft: #fdeee2;
  --idt-green: #7ed957;
  --idt-green-dark: #2e8b3d;
  --idt-green-soft: #e8f5ea;
  --idt-peach: #f6d5c4;
  --idt-blue: #1a7fb5;
  --idt-blue-soft: #e4f2fa;
  --idt-pink: #d6336c;
  --idt-pink-soft: #fce6ee;
  --idt-purple: #8e3fa8;
  --idt-purple-soft: #f4e8f8;
  --idt-amber: #d18a00;
  --idt-amber-soft: #fff1d6;
  --idt-mint: #eef7f5;
  --idt-border: #e1e8ea;
  --idt-radius: 16px;

  --bs-body-font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  --bs-body-color: var(--idt-text);
  --bs-link-color-rgb: 244, 124, 32;
  --bs-link-hover-color-rgb: 217, 101, 12;
}

body { color: var(--idt-text); background: #fff; }

h1, h2, h3, h4, h5, h6, .display-hero {
  color: var(--idt-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--idt-border); }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-text { line-height: 1.1; color: var(--idt-ink); }
.brand-text small { display: block; font-size: .85rem; font-weight: 500; }
.brand-text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.site-header .nav-link { color: var(--idt-ink); font-weight: 500; }
.site-header .nav-link.active,
.site-header .nav-link:hover { color: var(--idt-orange); }
.link-underline-cta {
  color: var(--idt-ink); font-weight: 800; text-decoration: none;
  border-bottom: 2px solid var(--idt-orange); padding-bottom: .35rem;
}
.link-underline-cta:hover { color: var(--idt-orange); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: .75rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: .75rem;
}
.eyebrow-green { color: var(--idt-green-dark); }
.eyebrow-lime { color: var(--idt-green); }
.eyebrow-orange { color: var(--idt-orange); }
.eyebrow-muted { color: #5b6b72; }
.eyebrow-line::before {
  content: ""; display: inline-block; width: 28px; height: 3px;
  background: var(--idt-green); vertical-align: middle; margin-right: .6rem;
}
.text-orange { color: var(--idt-orange) !important; }
.lead-soft { font-size: 1.1rem; line-height: 1.7; }
.fine-print { font-size: .8rem; color: #6b7a80; }

/* ---------- Buttons ---------- */
.btn-idt {
  --bs-btn-bg: var(--idt-orange); --bs-btn-border-color: var(--idt-orange);
  --bs-btn-color: #fff; --bs-btn-hover-bg: var(--idt-orange-dark);
  --bs-btn-hover-border-color: var(--idt-orange-dark); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--idt-orange-dark); --bs-btn-font-weight: 800;
  --bs-btn-padding-x: 1.4rem; --bs-btn-padding-y: .75rem;
  box-shadow: 0 8px 20px rgba(244, 124, 32, .3);
}
.btn-idt-dark-text { --bs-btn-color: #1b1b1b; --bs-btn-hover-color: #1b1b1b; }
.btn-ghost-light {
  --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.6);
  --bs-btn-hover-bg: rgba(255,255,255,.1); --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: #fff; --bs-btn-font-weight: 800;
  --bs-btn-padding-x: 1.4rem; --bs-btn-padding-y: .75rem;
}
.btn-ghost-dark {
  --bs-btn-color: var(--idt-ink); --bs-btn-border-color: #9cc3c4;
  --bs-btn-hover-bg: var(--idt-mint); --bs-btn-hover-color: var(--idt-ink);
  --bs-btn-font-weight: 800; --bs-btn-padding-x: 1.4rem; --bs-btn-padding-y: .75rem;
}
.rounded-pill-lg { border-radius: 999px; }
.link-arrow { font-weight: 800; color: var(--idt-orange); text-decoration: none; font-size: .9rem; }
.link-arrow:hover { color: var(--idt-orange-dark); text-decoration: underline; }

/* ---------- Dark sections ---------- */
.bg-idt-navy { background: var(--idt-navy); color: rgba(255,255,255,.85); }
.bg-idt-navy h1, .bg-idt-navy h2, .bg-idt-navy h3 { color: #fff; }
.bg-idt-gradient {
  background: radial-gradient(circle at 80% 20%, #1d4d58 0%, var(--idt-navy) 55%);
  color: rgba(255,255,255,.85);
}
.bg-idt-gradient h1, .bg-idt-gradient h2 { color: #fff; }
.bg-idt-mint { background: var(--idt-mint); }
.bg-idt-green-soft { background: var(--idt-green-soft); }

/* Hero with photo */
.hero-photo {
  position: relative; color: #fff;
  background: var(--idt-navy) center / cover no-repeat;
}
.hero-photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,47,58,.96) 0%, rgba(15,47,58,.8) 45%, rgba(15,47,58,.35) 100%);
}
.hero-photo > * { position: relative; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.02; color: #fff; }

/* Glass stats grid in hero */
.glass-grid {
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--idt-radius);
  background: rgba(15,47,58,.55); backdrop-filter: blur(4px); overflow: hidden;
}
.glass-grid .cell {
  display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem;
  border-color: rgba(255,255,255,.12) !important; color: #fff; font-weight: 700; font-size: .9rem;
}
.glass-grid .cell i { font-size: 1.4rem; color: #7fd6c0; }

/* ---------- Icon tiles ---------- */
.icon-tile {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem;
}
.icon-tile.sm { width: 44px; height: 44px; font-size: 1.15rem; }
.tile-orange { background: var(--idt-orange-soft); color: var(--idt-orange); }
.tile-green  { background: var(--idt-green-soft);  color: var(--idt-green-dark); }
.tile-blue   { background: var(--idt-blue-soft);   color: var(--idt-blue); }
.tile-pink   { background: var(--idt-pink-soft);   color: var(--idt-pink); }
.tile-purple { background: var(--idt-purple-soft); color: var(--idt-purple); }
.tile-amber  { background: var(--idt-amber-soft);  color: var(--idt-amber); }

/* ---------- Cards ---------- */
.card-idt {
  border: 1px solid var(--idt-border); border-radius: var(--idt-radius);
  background: #fff; height: 100%; transition: transform .2s, box-shadow .2s;
}
.card-idt:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,47,58,.08); }
.card-idt h3 { font-size: 1.15rem; }
.card-idt p { font-size: .92rem; }
.card-chevron { color: var(--idt-orange); font-size: 1.1rem; }

.panel-soft { background: var(--idt-mint); border-radius: var(--idt-radius); }
.panel-green { background: #eef8f0; border: 1px solid #d7eedb; border-radius: var(--idt-radius); }
.divided > [class*="col"] + [class*="col"] { border-left: 1px solid var(--idt-border); }
@media (max-width: 767.98px) {
  .divided > [class*="col"] + [class*="col"] { border-left: 0; border-top: 1px solid var(--idt-border); }
}

/* Split feature (dark photo + light list) */
.split-panel { border-radius: var(--idt-radius); overflow: hidden; border: 1px solid var(--idt-border); }
.split-panel .split-dark {
  position: relative; color: rgba(255,255,255,.88);
  background: var(--idt-navy) center / cover no-repeat;
}
.split-panel .split-dark::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,47,58,.85), rgba(15,47,58,.95));
}
.split-panel .split-dark > * { position: relative; }
.split-panel .split-dark h2 { color: #fff; }
.split-panel .split-light { background: #f3f8fa; }
.check-list .item + .item { border-top: 1px solid var(--idt-border); }
.check-list h4 { font-size: 1rem; margin-bottom: .15rem; }
.check-list p { font-size: .85rem; margin: 0; }

/* CTA banner */
.cta-banner {
  border-radius: var(--idt-radius);
  background: linear-gradient(120deg, var(--idt-navy) 0%, #1a4b57 100%); color: rgba(255,255,255,.85);
}
.cta-banner h2 { color: #fff; }

/* ---------- CPD page ---------- */
.shape { position: absolute; border-radius: 18px; }
.shape-orange { background: var(--idt-orange); width: 80px; height: 80px; transform: rotate(10deg); }
.shape-green { background: var(--idt-green); width: 54px; height: 54px; transform: rotate(-8deg); }
.mini-app {
  background: #fff; border-radius: 22px; box-shadow: 0 24px 50px rgba(0,0,0,.25); overflow: hidden;
}
.mini-app-head { border-bottom: 1px solid var(--idt-border); }
.mini-app-body { background: var(--idt-mint); }
.mini-tile {
  background: #fff; border: 1px solid var(--idt-border); border-radius: 14px;
  padding: 1rem; height: 100%; min-height: 110px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--idt-ink); font-weight: 700; font-size: .9rem;
}
.mini-tile i { font-size: 1.2rem; }
.mark-grid { display: grid; grid-template-columns: repeat(2, 10px); gap: 3px; }
.mark-grid span { width: 10px; height: 10px; border-radius: 3px; }

.feature-strip { background: #f4f7f8; border-bottom: 1px solid var(--idt-border); }
.feature-strip .item { display: flex; gap: .85rem; align-items: center; }
.feature-strip i { font-size: 1.5rem; }
.feature-strip strong { color: var(--idt-ink); display: block; font-size: .9rem; }
.feature-strip small { font-size: .8rem; }

.loan-feature {
  border-radius: 22px; background: var(--idt-navy); color: rgba(255,255,255,.85);
  position: relative; overflow: hidden; min-height: 400px;
}
.loan-feature::after {
  content: ""; position: absolute; width: 320px; height: 320px; left: -60px; top: 40px;
  border: 26px solid rgba(126, 217, 87, .25); border-radius: 80px; transform: rotate(-30deg);
}
.loan-feature > * { position: relative; z-index: 1; }
.loan-feature h3 { color: #fff; font-size: 2rem; }
.loan-card { border-radius: 22px; background: #fff; box-shadow: 0 14px 32px rgba(15,47,58,.08); }

.partner-wordmark { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.partner-senso { color: var(--idt-ink); }
.partner-senso span { color: #29b6c5; }
.partner-gff { color: var(--idt-green-dark); font-size: 1.5rem; }
.partner-canva { color: #00a3c4; font-family: Georgia, "Times New Roman", serif; font-style: italic; }

.quote-mark { font-size: 3rem; line-height: 1; color: var(--idt-green-dark); font-family: Georgia, serif; font-weight: 700; }
.photo-frame { border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px rgba(15,47,58,.15); }

.step { border-top: 3px solid var(--idt-border); padding-top: 1.5rem; }
.step h3 { font-size: 1.3rem; }

/* ---------- News page ---------- */
.hero-photo-card { position: relative; }
.hero-photo-card .photo-frame { border: 8px solid #fff; border-radius: 26px; }
.hero-photo-card .badge-card {
  position: absolute; left: -20px; bottom: -24px; background: #fff; border-radius: 14px;
  padding: .9rem 1.2rem; box-shadow: 0 14px 30px rgba(0,0,0,.2); max-width: 300px;
}
.hero-photo-card .badge-card strong { color: var(--idt-ink); display: block; }
.hero-photo-card .badge-card small { color: var(--idt-text); }
.hero-photo-card .shape-green { right: -14px; top: 20px; }
@media (max-width: 991.98px) { .hero-photo-card .badge-card { left: 12px; } }

.fb-card { border-radius: 22px; border: 1px solid var(--idt-border); background: #fff; overflow: hidden; }
.fb-card .fb-head { border-bottom: 1px solid var(--idt-border); }
.fb-card .fb-icon {
  width: 40px; height: 40px; border-radius: 8px; background: #1877f2; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.fb-card iframe { width: 100%; min-height: 500px; border: 0; }
.list-card { border: 1px solid var(--idt-border); border-radius: 14px; background: #fff; }
.list-card h4 { font-size: 1.05rem; margin-bottom: .2rem; }
.list-card p { font-size: .88rem; margin: 0; }
.guidance-card { position: relative; }
.guidance-card .ext { position: absolute; top: 1.25rem; right: 1.25rem; color: var(--idt-orange); }
.guidance-card .eyebrow { font-size: .65rem; color: #4d6b5a; }
.notice { background: #eef5f2; border-radius: 12px; font-size: .88rem; }
.notice i { color: var(--idt-green-dark); }

/* ---------- Footer ---------- */
.site-footer { font-size: .85rem; }
.site-footer a { color: var(--idt-orange); font-weight: 700; }

/* Section spacing */
.section { padding: 5rem 0; }
@media (max-width: 767.98px) { .section { padding: 3.5rem 0; } }

/* Hero glass grid dividers */
.glass-grid .cell + .cell { border-top: 1px solid rgba(255,255,255,.12); }
@media (min-width: 768px) {
  .glass-grid .cell:nth-child(2) { border-top: 0; }
  .glass-grid .cell:nth-child(even) { border-left: 1px solid rgba(255,255,255,.12); }
}

/* Heading weight overrides (Bootstrap display/.hN classes default lighter) */
.display-5, .display-6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 800; color: var(--idt-ink); }
.bg-idt-navy .display-6, .bg-idt-gradient .display-5, .bg-idt-gradient .display-6,
.split-dark .display-6, .cta-banner .h1 { color: #fff; }
a.card-idt { color: var(--idt-text); }
a.card-idt h3 { color: var(--idt-ink); }
.site-header .nav-link { font-size: .95rem; white-space: nowrap; }
.brand-text { white-space: nowrap; }
