/* Better Learning UK - Brand Stylesheet */
:root {
  /* Brand blues from logo & flyer */
  --primary: #1a6b9a;          /* main blue */
  --primary-dark: #0f4c75;     /* darker navy-blue */
  --primary-deep: #0a3555;
  --accent: #2eb8e6;           /* bright cyan-blue from owl belly / accents */
  --accent-hover: #1a9fc9;
  --light: #e8f6fc;            /* very light blue background */
  --light-2: #d0eef9;
  --bg: #ffffff;
  --text: #1f2a36;
  --text-muted: #5a6a7a;
  --border: #c8e0ee;
  --success: #059669;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(26, 107, 154, 0.10);
  --shadow-lg: 0 10px 40px rgba(26, 107, 154, 0.14);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

/* Header & Nav */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-dark);
  flex-shrink: 0;
}

.logo img {
  height: 52px;
  width: auto;
}

.logo-text {
  display: none; /* logo image already includes text */
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  background: var(--light);
  color: var(--primary-dark);
}

.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  margin-left: 0.25rem;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary-dark);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* Mobile nav */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  nav.open {
    max-height: 520px;
  }

  nav ul {
    flex-direction: column;
    padding: 0.75rem 1rem 1.25rem;
    gap: 0.15rem;
  }

  nav a {
    padding: 0.7rem 1rem;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }
}

/* Hero */
.hero {
  background: linear-gradient(155deg, #0f4c75 0%, #1a6b9a 45%, #2eb8e6 100%);
  color: white;
  padding: 3.75rem 1.5rem 4.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.7;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-logo {
  margin: 0 auto 1.25rem;
  height: 90px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.hero h1 {
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.12rem;
  opacity: 0.93;
  max-width: 580px;
  margin: 0 auto 1.75rem;
}

.hero-buttons {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: var(--primary-deep);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.45);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  color: white;
}

.btn-accent {
  background: var(--primary);
  color: white;
}

.btn-accent:hover {
  background: var(--primary-dark);
  color: white;
}

/* Sections */
.section {
  padding: 3.75rem 1.5rem;
}

.section-alt {
  background: var(--light);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: white;
  font-size: 1.35rem;
  font-weight: 700;
}

.card h3 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card a {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Features list */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-top: 0.5rem;
}

.feature {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
}

.feature h4 {
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
  color: var(--primary-dark);
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Content pages */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 2.75rem 1.5rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.65rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.page-hero p {
  opacity: 0.92;
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 auto;
}

.content-block {
  max-width: 740px;
  margin: 0 auto;
}

.content-block h2 {
  color: var(--primary-dark);
  font-size: 1.35rem;
  margin: 1.85rem 0 0.65rem;
}

.content-block h3 {
  color: var(--primary);
  font-size: 1.12rem;
  margin: 1.4rem 0 0.5rem;
}

.content-block p,
.content-block ul {
  margin-bottom: 0.9rem;
  color: var(--text);
}

.content-block ul {
  padding-left: 1.35rem;
}

.content-block li {
  margin-bottom: 0.35rem;
}

/* Info boxes / details */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.info-box {
  background: var(--light);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
}

.info-box strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.info-box span {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.price-card {
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 12px;
  padding: 1.4rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.price-card .amount {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.price-card .label {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.price-or {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

/* Topics list */
.topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.topic {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.topic-icon {
  width: 32px;
  height: 32px;
  background: var(--light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  align-items: start;
}

@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  background: white;
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-item {
  display: flex;
  gap: 0.95rem;
  margin-bottom: 1.35rem;
  align-items: flex-start;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  font-size: 1.15rem;
}

.contact-item h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.contact-item a,
.contact-item p {
  font-size: 1.05rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.contact-form {
  background: white;
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-size: 0.93rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 184, 230, 0.18);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 3.25rem 1.5rem;
  text-align: center;
  border-radius: var(--radius);
  margin: 0 1.5rem;
}

.cta-banner h2 {
  font-size: 1.6rem;
  margin-bottom: 0.65rem;
}

.cta-banner p {
  opacity: 0.92;
  margin-bottom: 1.4rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  background: var(--primary-deep);
  color: rgba(255,255,255,0.85);
  padding: 2.75rem 1.5rem 1.35rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 700px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

.footer-brand .logo {
  color: white;
  margin-bottom: 0.65rem;
}

.footer-brand .logo img {
  height: 48px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.92rem;
  opacity: 0.8;
  max-width: 280px;
}

.footer-links h4 {
  color: white;
  font-size: 0.98rem;
  margin-bottom: 0.8rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  display: block;
  padding: 0.25rem 0;
  font-size: 0.93rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 1.75rem; }
.mb-2 { margin-bottom: 1.75rem; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1.4rem;
}

.badge {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

.highlight-box {
  background: var(--light);
  border-left: 4px solid var(--accent);
  padding: 1.15rem 1.35rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.35rem 0;
}

.highlight-box p {
  margin: 0;
  color: var(--text);
}

/* Download / worksheet cards */
.download-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  flex-wrap: wrap;
}

.download-item h4 {
  color: var(--primary-dark);
  font-size: 1.02rem;
  margin-bottom: 0.15rem;
}

.download-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* Link cards for CSSE */
.link-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.link-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.link-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.link-card h3 {
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.link-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.link-card a {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Owl sticker accent */
.owl-accent {
  max-width: 140px;
  margin: 1.5rem auto 0;
  opacity: 0.95;
}