/* =====================================================
   BRILLIANT BRAIN ACADEMY — Main Stylesheet
   Theme: Clean, flat blues & white — no gradients
   ===================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --blue-950:  #0d1f3c;
  --blue-900:  #162944;
  --blue-800:  #1e4a7a;
  --blue-700:  #2563c4;
  --blue-600:  #3b82f6;
  --blue-500:  #60a5fa;
  --blue-400:  #93c5fd;
  --blue-300:  #bfdbfe;
  --blue-100:  #dbeafe;
  --blue-50:   #eff6ff;
  --white:     #ffffff;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-600:  #475569;
  --gray-800:  #1e293b;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(30,58,95,.12);
  --shadow-lg:  0 16px 48px rgba(30,58,95,.16);

  --transition: .26s cubic-bezier(.4,0,.2,1);
  --max-width: 1180px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }

/* ---------- Utility ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 96px 0; }

/* Accent text — flat colour, no gradient */
.accent-text { color: var(--blue-600); }

.section-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.2;
  color: var(--blue-900);
  margin-bottom: 20px;
}
.section-subtitle {
  font-size: 1.03rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto 56px;
  text-align: center;
}
.body-text {
  color: var(--gray-600);
  margin-bottom: 16px;
  font-size: 1.02rem;
  line-height: 1.75;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.btn-lg { padding: 15px 34px; font-size: 1rem; }

.btn-primary {
  background: var(--blue-700);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--blue-400);
}
.btn-outline:hover {
  background: var(--blue-50);
  border-color: var(--blue-700);
}
.btn-outline-blue {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--blue-300);
  padding: 10px 22px;
  font-size: .9rem;
}
.btn-outline-blue:hover {
  background: var(--blue-700);
  color: var(--white);
  border-color: var(--blue-700);
}
.btn-white {
  background: var(--white);
  color: var(--blue-800);
}
.btn-white:hover {
  background: var(--blue-50);
  transform: translateY(-2px);
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo { display: flex; align-items: center; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-900);
}
.logo-accent { color: var(--blue-600); }
.logo-img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .93rem;
  color: var(--gray-600);
  transition: all var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--blue-700); background: var(--blue-50); }
.nav-cta { margin-left: 16px; font-size: .88rem; padding: 10px 22px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--blue-900); border-radius: 2px;
  transition: all var(--transition);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 4px;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--gray-600);
}
.mobile-link:hover { background: var(--blue-50); color: var(--blue-700); }

/* ===================== HERO ===================== */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  background: var(--blue-900);
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
/* Subtle flat overlay shapes — no blur gradients */
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .06;
  background: var(--white);
}
.shape-1 { width: 480px; height: 480px; top: -120px; left: -120px; }
.shape-2 { width: 360px; height: 360px; bottom: -60px; right: 8%; }
.shape-3 { width: 260px; height: 260px; top: 38%; left: 42%; }

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--blue-300);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  width: fit-content;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--blue-300);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.75;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}
.hero .btn-outline {
  color: var(--blue-300);
  border-color: rgba(191,219,254,.35);
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--blue-300);
  color: var(--white);
}
.hero-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: .88rem;
  font-weight: 500;
  transition: all var(--transition);
}
.hero-card:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.3);
  transform: translateY(-2px);
}
.hero { flex-direction: row; gap: 40px; justify-content: center; max-width: 100%; }
.hero-visual { flex: 0 0 360px; display: flex; align-items: center; justify-content: center; }
.brain-svg { width: 100%; max-width: 360px; animation: float 6s ease-in-out infinite; opacity: .85; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* ===================== ABOUT ===================== */
.about { background: var(--gray-50); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 340px; }
.about-img-placeholder {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/3;
  background: var(--blue-100);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  font-size: .9rem;
  font-weight: 600;
  border: 2px dashed var(--blue-300);
  text-align: center;
  padding: 24px;
}
/* ✏️ LOGO / IMAGE: Replace .about-img-placeholder with your actual <img> tag */
.about-text .section-title { margin-top: 12px; }
.about-pillars { display: flex; flex-direction: column; gap: 18px; margin: 28px 0; }
.pillar { display: flex; align-items: flex-start; gap: 16px; }
.pillar-icon {
  font-size: 1.2rem;
  background: var(--blue-100);
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--blue-700);
}
.pillar strong { display: block; color: var(--blue-900); margin-bottom: 3px; font-size: .95rem; }
.pillar p { color: var(--gray-600); font-size: .88rem; margin: 0; }

/* ===================== WAVE DIVIDER ===================== */
.wave-divider { background: var(--gray-50); }
.wave-divider svg { display: block; width: 100%; height: 70px; }
.divider-inner {
  background: var(--blue-900);
  padding: 56px 24px;
  text-align: center;
}
.divider-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  color: var(--blue-300);
  font-style: italic;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}
.divider-quote span {
  display: block;
  font-size: .82rem;
  font-style: normal;
  font-family: var(--font-body);
  color: var(--blue-400);
  margin-top: 12px;
  letter-spacing: .06em;
  font-weight: 500;
}

/* ===================== TESTIMONIALS ===================== */
.testimonials { background: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.testimonial-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--blue-200);
}
.testimonial-featured {
  background: var(--blue-800);
  border-color: transparent;
  color: var(--white);
}
.testimonial-featured .testimonial-quote { color: var(--blue-200); }
.testimonial-featured .testimonial-stars { color: #facc15; }
.testimonial-featured strong { color: var(--white); }
.testimonial-featured span { color: var(--blue-300); }
.testimonial-stars { color: #f59e0b; font-size: .95rem; margin-bottom: 14px; }
.testimonial-quote {
  color: var(--gray-600);
  font-size: .96rem;
  line-height: 1.7;
  margin-bottom: 22px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 13px; }
.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--white);
  font-size: .83rem; flex-shrink: 0;
}
.testimonial-featured .author-avatar { background: var(--blue-500); }
.testimonial-author strong { display: block; font-size: .93rem; }
.testimonial-author span { font-size: .81rem; color: var(--gray-600); }

.credentials-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 36px 40px;
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--blue-100);
}
.credential-item {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--blue-800); font-size: .88rem;
}
.credential-icon { font-size: 1.2rem; }

/* ===================== SERVICES (Homepage) ===================== */
.services { background: var(--gray-50); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.services-grid-7 { grid-template-columns: repeat(4, 1fr); }
.services-grid-7 .service-card:nth-child(5) { grid-column: 1; }
.services-grid-7 .service-card:nth-child(6) { grid-column: 2; }
.services-grid-7 .service-card:nth-child(7) { grid-column: 3; }

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-300);
}
/* Flat solid colour headers — no gradients */
.service-card-header { height: 72px; }
.service-1 { background: var(--blue-700); }
.service-2 { background: var(--blue-800); }
.service-3 { background: #3730a3; }   /* indigo */
.service-4 { background: #0369a1; }   /* sky */
.service-5 { background: var(--blue-600); }
.service-6 { background: #1e40af; }
.service-7 { background: #0284c7; }

.service-card-body { padding: 22px 24px 26px; }
.service-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--blue-900);
  margin-bottom: 9px;
}
.service-card-body p {
  color: var(--gray-600);
  font-size: .88rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

/* ===================== INNER PAGE HERO ===================== */
.page-hero {
  padding: 136px 24px 76px;
  background: var(--blue-900);
  text-align: center;
  color: var(--white);
}
.page-hero .section-label { color: var(--blue-400); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
  color: var(--white);
}
.page-hero h1 span { color: var(--blue-400); }
.page-hero p {
  color: var(--blue-300);
  font-size: 1.08rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===================== INNER PAGE CONTENT ===================== */
.page-content { padding: 80px 0; }

/* Feature cards on inner pages — same tile style as homepage */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 64px;
}
.feature-grid-3 { grid-template-columns: repeat(3, 1fr); }
.feature-grid-2 { grid-template-columns: repeat(2, 1fr); }

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-300);
}
.feature-card-bar {
  height: 6px;
}
.bar-1 { background: var(--blue-700); }
.bar-2 { background: var(--blue-800); }
.bar-3 { background: #3730a3; }
.bar-4 { background: #0369a1; }
.bar-5 { background: var(--blue-600); }
.bar-6 { background: #1e40af; }
.feature-card-body { padding: 22px 24px 26px; }
.feature-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--blue-900);
  margin-bottom: 8px;
}
.feature-card-body p {
  color: var(--gray-600);
  font-size: .88rem;
  line-height: 1.65;
  margin: 0;
}

/* Info box (subjects, credentials, age groups etc) */
.info-box {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  margin-bottom: 64px;
  text-align: center;
}
.info-box h2 { margin-bottom: 24px; }
.info-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--blue-900);
  margin-bottom: 20px;
}

/* Tag chips (subjects etc) */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.tag {
  background: var(--white);
  border: 1px solid var(--blue-200);
  border-radius: 100px;
  padding: 7px 18px;
  font-weight: 500;
  color: var(--blue-800);
  font-size: .88rem;
}

/* Language tiles — flat, no gradient */
.lang-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.lang-tile {
  background: var(--blue-800);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 26px;
  min-width: 120px;
  text-align: center;
}
.lang-tile .flag { font-size: 1.8rem; margin-bottom: 6px; }
.lang-tile strong { display: block; font-size: .92rem; font-weight: 600; }

/* Age group tiles */
.age-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-top: 28px; }
.age-card {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-md);
  padding: 20px;
}
.age-card strong { display: block; color: var(--blue-800); margin-bottom: 4px; }
.age-card .age-range { font-size: .82rem; font-weight: 600; color: var(--blue-600); margin-bottom: 8px; display: block; }
.age-card p { color: var(--gray-600); font-size: .86rem; margin: 0; }

/* Page CTA block */
.page-cta {
  text-align: center;
  padding: 16px 0 8px;
}
.page-cta h2 { margin-bottom: 14px; }
.page-cta p { max-width: 480px; margin: 0 auto 28px; }

/* ===================== CTA BANNER ===================== */
.cta-section {
  background: var(--blue-900);
  padding: 80px 0;
}
.cta-inner {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--white);
  margin-bottom: 14px;
}
.cta-inner p { color: var(--blue-300); margin-bottom: 32px; font-size: 1.03rem; }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--blue-950);
  color: var(--blue-200);
  padding: 68px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand p { font-size: .88rem; line-height: 1.7; margin-top: 10px; color: var(--blue-300); }
.footer-logo { color: var(--white); }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-link {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-300);
  font-size: .82rem; font-weight: 700;
  transition: all var(--transition);
}
.social-link:hover { background: var(--blue-700); color: var(--white); border-color: var(--blue-700); }
.footer-col h4 {
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--white); margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block; font-size: .88rem;
  color: var(--blue-300); margin-bottom: 9px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 22px 24px;
  text-align: center;
  font-size: .82rem;
  color: var(--blue-400);
}

/* ===================== CONTACT FORM ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--blue-900);
  margin-bottom: 14px;
}
.contact-info p { color: var(--gray-600); margin-bottom: 28px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.contact-detail-icon {
  font-size: 1.2rem; width: 42px; height: 42px;
  background: var(--blue-50); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-detail strong { display: block; color: var(--blue-900); margin-bottom: 2px; font-size: .93rem; }
.contact-detail span { color: var(--gray-600); font-size: .9rem; }
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-weight: 600;
  font-size: .86rem; color: var(--gray-800); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 15px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .94rem;
  color: var(--gray-800); background: var(--gray-50);
  transition: border-color var(--transition); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none; padding: 14px;
  background: #dcfce7; border: 1px solid #86efac;
  border-radius: var(--radius-sm); color: #166534;
  font-weight: 600; text-align: center; margin-top: 14px;
}

/* ===================== SCROLL ANIMATIONS ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .services-grid,
  .services-grid-7,
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid-7 .service-card:nth-child(5),
  .services-grid-7 .service-card:nth-child(6),
  .services-grid-7 .service-card:nth-child(7) { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .hero { flex-direction: column; }
  .hero-visual { display: none; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .services-grid,
  .services-grid-7,
  .feature-grid,
  .feature-grid-3,
  .feature-grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .info-box { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .section-padding { padding: 60px 0; }
  .hero-cards { flex-direction: column; }
}

/* ===================== SERVICE ROWS (sideways tiles on homepage) ===================== */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-row {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}
.service-row:hover {
  border-color: var(--blue-400);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.service-row-bar {
  width: 8px;
  min-width: 8px;
  align-self: stretch;
}
.bar-7 { background: #0369a1; }
.service-row-content {
  flex: 1;
  padding: 22px 24px;
}
.service-row-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--blue-900);
  margin-bottom: 6px;
}
.service-row-content p {
  color: var(--gray-600);
  font-size: .9rem;
  line-height: 1.6;
  margin: 0;
}
.service-row-arrow {
  font-size: 1.2rem;
  color: var(--blue-400);
  padding: 0 24px;
  flex-shrink: 0;
  transition: all var(--transition);
}
.service-row:hover .service-row-arrow {
  color: var(--blue-700);
  transform: translateX(4px);
}
@media (max-width: 600px) {
  .service-row-arrow { display: none; }
  .service-row-content { padding: 18px; }
}

/* ===================== PHOTO BACKGROUNDS — MINIMAL OVERLAY FOR READABILITY ===================== */

/* Hero */
.hero {
  background-image: url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?w=1600&q=80');
  background-size: cover;
  background-position: center top;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 50, 0.52);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-title  { color: var(--white); }
.hero-subtitle { color: rgba(255,255,255,0.88); }
.hero-badge { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); color: var(--white); }

/* About section image — no overlay needed, sits beside white text on white bg */
.about-img-placeholder { display: none; }
.about-photo {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Wave divider */
.divider-inner {
  background-image: url('https://images.unsplash.com/photo-1427504494785-3a9ca7044f45?w=1400&q=75');
  background-size: cover;
  background-position: center;
  position: relative;
}
.divider-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 50, 0.58);
}
.divider-inner > * { position: relative; z-index: 1; }
.divider-quote { color: var(--white); }
.divider-quote span { color: rgba(255,255,255,0.8); }

/* Page heroes */
.page-hero {
  background-size: cover;
  background-position: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 50, 0.52);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1  { color: var(--white); }
.page-hero p   { color: rgba(255,255,255,0.88); }
.page-hero .section-label { color: rgba(255,255,255,0.7); letter-spacing: .16em; }

/* CTA banner */
.cta-section {
  background-image: url('https://images.unsplash.com/photo-1509062522246-3755977927d7?w=1400&q=75');
  background-size: cover;
  background-position: center;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 50, 0.58);
}
.cta-section > * { position: relative; z-index: 1; }
.cta-inner h2 { color: var(--white); }
.cta-inner p  { color: rgba(255,255,255,0.85); }

/* ===================== FEATURE CARDS WITH SIDE IMAGE ===================== */
/* Override old feature-grid to be 2-col large cards */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 64px;
}
.feature-grid-3 {
  grid-template-columns: 1fr 1fr;
}
.feature-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-300);
}
/* Remove the coloured top bar — replaced by side image */
.feature-card-bar { display: none; }

.feature-card-body {
  flex: 1;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--blue-900);
  margin-bottom: 10px;
}
.feature-card-body p {
  color: var(--gray-600);
  font-size: .9rem;
  line-height: 1.65;
  margin: 0;
}

/* Right-side image on feature cards */
.feature-card-img {
  width: 180px;
  min-width: 180px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
  .feature-grid,
  .feature-grid-3 { grid-template-columns: 1fr; }
  .feature-card { flex-direction: column; min-height: unset; }
  .feature-card-img { width: 100%; min-width: unset; height: 180px; }
}
