/* ============================================
   Chadderton Learning Centre – Shared Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  --red:        #C8102E;
  --red-dark:   #9e0c24;
  --red-light:  #fdecea;
  --dark:       #1a1a2e;
  --grey:       #4a4a5a;
  --light:      #f6f6f8;
  --white:      #ffffff;
  --border:     #e0e0e8;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.10);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.07);
  --transition: 0.25s ease;
  --max-width:  1180px;
  --font-head:  'Montserrat', sans-serif;
  --font-body:  'Inter', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Utility ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,16,46,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--red);
  transform: translateY(-2px);
}
.btn-outline-red {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline-red:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}
.section-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title span { color: var(--red); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 640px;
  line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ── Header / Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-badge {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-logo-text .name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--red);
  letter-spacing: -0.01em;
}
.nav-logo-text .tagline {
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--dark);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
  background: var(--red-light);
}
.nav-links .nav-cta {
  background: var(--red);
  color: var(--white) !important;
  margin-left: 8px;
}
.nav-links .nav-cta:hover {
  background: var(--red-dark) !important;
  color: var(--white) !important;
}
/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Page Hero ── */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2d1a20 50%, var(--red-dark) 100%);
  color: var(--white);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 340px; height: 340px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.12;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 260px; height: 260px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.08;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-hero h1 span { color: var(--red); filter: brightness(1.5); }
.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  line-height: 1.7;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* ── Sections ── */
.section {
  padding: 88px 0;
}
.section-alt {
  background: var(--light);
}
.section-red {
  background: var(--red);
  color: var(--white);
}
.section-dark {
  background: var(--dark);
  color: var(--white);
}

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 52px; height: 52px;
  background: var(--red-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; color: var(--red); }
.card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 10px;
}
.card p {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.65;
}

/* ── Grid layouts ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Value pills ── */
.value-pill {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: 10px;
  border-left: 4px solid var(--red);
  box-shadow: var(--shadow-sm);
}
.value-pill .pill-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.value-pill h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 4px;
}
.value-pill p {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ── Tier cards ── */
.tier-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.tier-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.tier-card-header {
  background: var(--red);
  color: var(--white);
  padding: 24px 28px 20px;
}
.tier-number {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 6px;
}
.tier-card-header h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.tier-card-header .tier-avail {
  font-size: 0.8rem;
  opacity: 0.75;
  font-style: italic;
}
.tier-card-body { padding: 28px; }
.tier-card-body p {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 20px;
}
.tier-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--dark);
  line-height: 1.5;
}
.tier-features li::before {
  content: '';
  width: 18px; height: 18px;
  background: var(--red-light);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8102E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Steps / Referral process ── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 40px;
}
.step:last-child { padding-bottom: 0; }
.step-num {
  width: 52px; height: 52px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), var(--red-light));
}
.step:last-child::before { display: none; }
.step-content { padding-top: 4px; }
.step-content h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 6px;
}
.step-content p {
  font-size: 0.93rem;
  color: var(--grey);
  line-height: 1.65;
}

/* ── Timetable ── */
.timetable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  border-radius: 10px;
  overflow: hidden;
}
.timetable thead tr {
  background: var(--red);
  color: var(--white);
}
.timetable th {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 20px;
  text-align: left;
}
.timetable td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
  color: var(--grey);
}
.timetable td:first-child {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--red);
  white-space: nowrap;
}
.timetable td:nth-child(2) {
  font-weight: 600;
  color: var(--dark);
  min-width: 160px;
}
.timetable tbody tr:nth-child(even) { background: var(--light); }
.timetable tbody tr:hover { background: var(--red-light); }

/* ── Contact form ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.10);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── Info box ── */
.info-box {
  background: var(--light);
  border-radius: 12px;
  padding: 32px;
  border-left: 4px solid var(--red);
}
.info-box h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 16px;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.93rem;
  color: var(--grey);
}
.info-item svg {
  width: 18px; height: 18px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 12px;
  line-height: 1.2;
}
.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.88;
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .nav-logo-text .name { color: white; }
.footer-brand .nav-logo-text .tagline { color: rgba(255,255,255,0.5); }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
  color: rgba(255,255,255,0.6);
}
.footer-col h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: white; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); padding: 16px 24px 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); gap: 4px; z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ── Divider ── */
.red-divider {
  width: 56px; height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin: 16px 0 24px;
}
.center .red-divider { margin-left: auto; margin-right: auto; }

/* ── Stat blocks ── */
.stat-block {
  text-align: center;
  padding: 32px 20px;
}
.stat-block .stat-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2.8rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-block .stat-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--white);
  letter-spacing: 0.04em;
}

/* ── Pill tag ── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--red-light);
  color: var(--red);
  border-radius: 20px;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.tag-white {
  background: rgba(255,255,255,0.15);
  color: white;
}
