/* ============================================================
   CYCLE SCHOOL SG — Main Stylesheet
   Brand: Bold, warm, trustworthy. Red + deep charcoal + cream.
   Font: Nunito (friendly, rounded) + Playfair Display (authority)
   ============================================================ */

/* ── Self-hosted fonts — no external requests ── */
@font-face {
  font-family: 'Nunito';
  src: url('/css/fonts/nunito-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/css/fonts/nunito-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/css/fonts/nunito-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/css/fonts/nunito-700-italic.woff2') format('woff2');
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/css/fonts/nunito-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/css/fonts/nunito-900.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/css/fonts/playfair-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/css/fonts/playfair-700-italic.woff2') format('woff2');
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/css/fonts/playfair-900.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ── CSS Variables ── */
:root {
  --red:        #D32F2F;
  --red-dark:   #B71C1C;
  --red-light:  #FFEBEE;
  --charcoal:   #1C1C1E;
  --dark:       #2D2D2D;
  --mid:        #5C5C5C;
  --light:      #F5F3EE;
  --cream:      #FFFDF8;
  --white:      #FFFFFF;
  --border:     #E8E4DC;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.16);
  --radius:     12px;
  --radius-lg:  20px;
  --font-body:  'Nunito', sans-serif;
  --font-head:  'Playfair Display', serif;
  --max-width:  1140px;
  --whatsapp:   #25D366;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--red);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}
.nav-links a {
  font-weight: 700;
  font-size: 0.76rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
  border-bottom-color: var(--red);
  text-decoration: none;
}
.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  border-bottom: none !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }
.nav-burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-burger span { width: 24px; height: 2px; background: var(--dark); display: block; transition: 0.3s; }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}
.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(28,28,30,0.75) 40%, rgba(28,28,30,0.2));
  display: flex;
  align-items: center;
}
.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  background: rgba(255,255,255,0.1);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--white);
  line-height: 1.15;
  max-width: 620px;
  margin-bottom: 20px;
}
.hero h1 em {
  color: var(--red);
  font-style: normal;
}
.hero-sub {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 32px;
  font-weight: 600;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  text-decoration: none !important;
  color: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--red) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 16px rgba(211,47,47,0.4);
}
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 6px 20px rgba(211,47,47,0.5); }
.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }
.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn-outline:hover { background: var(--red-light); }
.btn-wa {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
}
.btn-wa:hover { background: #1fba59; box-shadow: 0 6px 20px rgba(37,211,102,0.5); }

/* ── Trust Bar ── */
.trust-bar {
  background: var(--red);
  color: var(--white);
  padding: 16px 24px;
}
.trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-stat {
  text-align: center;
}
.trust-stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  font-family: 'Playfair Display', serif !important;
}
.trust-stat span {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
  font-family: 'Nunito', sans-serif !important;
  display: block;
}

/* ── Section Layout ── */
.section {
  padding: 72px 24px;
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-light { background: var(--light); }
.section-cream { background: var(--cream); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-red { background: var(--red); color: var(--white); }

/* ── Section Headers ── */
.section-label {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 10px;
}
.section-dark .section-label { color: rgba(255,255,255,0.6); }
.section-red .section-label { color: rgba(255,255,255,0.8); }

h2.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 16px;
}
.section-dark h2.section-title { color: var(--white); }
.section-red h2.section-title { color: var(--white); }

.section-intro {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 600px;
  margin-bottom: 48px;
}
.section-dark .section-intro { color: rgba(255,255,255,0.75); }
.section-red .section-intro { color: rgba(255,255,255,0.88); }

/* ── USP Strip ── */
.usp-strip {
  background: var(--charcoal);
  padding: 48px 24px;
}
.usp-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.usp-item { text-align: center; }
.usp-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  display: block;
}
.usp-item strong {
  display: block;
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 6px;
}
.usp-item p {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ── Programme Cards ── */
.programmes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.programme-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.programme-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.programme-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.programme-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.programme-tag {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 8px;
}
.programme-card-body h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.programme-card-body p {
  color: var(--mid);
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 20px;
}
.programme-card-body .btn { align-self: flex-start; }

/* ── Reviews Section ── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--red);
  position: relative;
}
.review-stars {
  color: #F59E0B;
  font-size: 1rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.review-text {
  font-size: 0.92rem;
  color: var(--dark);
  line-height: 1.65;
  margin-bottom: 14px;
  font-style: italic;
}
.review-author {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--charcoal);
}
.review-date {
  font-size: 0.78rem;
  color: var(--mid);
}
.reviews-placeholder {
  background: var(--light);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  border: 2px dashed var(--border);
}
.reviews-placeholder p { color: var(--mid); font-size: 0.9rem; }

/* ── FAQ Accordion ── */
.faq-list { max-width: 780px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question:hover { color: var(--red); }
.faq-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.3s, background 0.2s;
}
.faq-item.open .faq-arrow {
  transform: rotate(45deg);
  background: var(--red);
  color: white;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 0 20px 0;
  color: var(--mid);
  line-height: 1.7;
}

/* ── Pricing Table ── */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.pricing-table th {
  background: var(--charcoal);
  color: var(--white);
  padding: 14px 20px;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pricing-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:hover td { background: var(--light); }
.price-amount {
  font-weight: 900;
  color: var(--red);
  font-size: 1.1rem;
}

/* ── Contact Form ── */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  max-width: 620px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--charcoal);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--cream);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none;
  background: #E8F5E9;
  border: 2px solid #4CAF50;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: #2E7D32;
  font-weight: 700;
}

/* ── Blog / Article Cards ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-body { padding: 24px; }
.blog-date {
  font-size: 0.78rem;
  color: var(--mid);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.blog-card-body h3 {
  font-family: 'Nunito', sans-serif !important;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 10px;
  line-height: 1.35;
}
.blog-card-body p {
  color: var(--mid);
  font-size: 0.88rem;
  margin-bottom: 16px;
  line-height: 1.6;
}
.read-more {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Testimonial Page ── */
.testimonial-content {
  max-width: 720px;
  margin: 0 auto;
}
.testimonial-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--dark);
  margin-bottom: 32px;
}
.testimonial-body p { margin-bottom: 16px; }

/* ── Article Page ── */
.article-content {
  max-width: 720px;
  margin: 0 auto;
}
.article-content h2 { font-family: var(--font-head); margin: 32px 0 12px; font-size: 1.5rem; color: var(--charcoal); }
.article-content h3 { font-family: var(--font-head); margin: 24px 0 10px; font-size: 1.2rem; color: var(--charcoal); }
.article-content p { margin-bottom: 18px; line-height: 1.8; color: var(--dark); }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 18px; }
.article-content li { margin-bottom: 8px; color: var(--dark); }
.article-content a { color: var(--red); font-weight: 600; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: var(--charcoal);
  padding: 56px 24px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(211,47,47,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ── Curriculum Table ── */
.curriculum-section { margin: 40px 0; }
.curriculum-level {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.curriculum-level-header {
  background: var(--charcoal);
  color: var(--white);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.curriculum-level-header h3 {
  font-size: 1rem;
  font-weight: 800;
}
.curriculum-level-header span {
  font-size: 0.8rem;
  opacity: 0.75;
}
.curriculum-table {
  width: 100%;
  border-collapse: collapse;
}
.curriculum-table th {
  background: var(--light);
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  color: var(--mid);
}
.curriculum-table td {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  vertical-align: top;
}
.curriculum-table td:first-child { font-weight: 700; color: var(--red); width: 40%; }

/* ── WhatsApp Float ── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.65);
}
.wa-float svg { width: 30px; height: 30px; fill: white; }

/* ── Footer ── */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 56px 24px 28px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { height: 40px; margin-bottom: 16px; filter: brightness(1.8); }
.footer-brand p { font-size: 0.88rem; line-height: 1.65; }
.footer-col h4 {
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--light);
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--mid);
}
.breadcrumb a { color: var(--mid); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb-sep { margin: 0 8px; }

/* ── Schema / SEO hidden elements ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--red);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .hero-img { height: 340px; }
  .trust-bar-inner { gap: 24px; }
  .usp-strip-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .section { padding: 48px 20px; }
  .contact-form { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .usp-strip-inner { grid-template-columns: 1fr; }
  .trust-bar-inner { gap: 20px; }
  .hero h1 { font-size: 1.8rem; }
  .wa-float { bottom: 18px; right: 18px; }
}
