/*
Theme Name: The 4+ Schools Showcase
Theme URI: https://the4plusschoolsshowcase.co.uk
Author: Jakub Nawrocki
Description: A clean, premium theme for The 4+ Schools Showcase event — connecting families with leading 4+ schools.
Version: 1.0.0
Text Domain: fourplus-schools
*/

/* ========================================
   CSS RESET & BASE
   ======================================== */

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

:root {
  /* Brand Colours */
  --coral: #D4594E;
  --coral-dark: #B84840;
  --coral-light: #E8756B;
  --charcoal: #3D3D3D;
  --dark: #2A2A2A;
  --beige: #E8DDD0;
  --beige-light: #F5F0EA;
  --gray-light: #F0EDED;
  --gray-mid: #C5C0BC;
  --white: #FFFFFF;

  /* Typography */
  --font-primary: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-width: 1140px;
  --container-padding: 0 24px;

  /* Transitions */
  --transition: all 0.3s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--coral);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--coral-dark);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  margin-bottom: 0.5em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
}

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

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

.section--dark {
  background-color: var(--charcoal);
  color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.text-center {
  text-align: center;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--coral);
  max-width: 640px;
  margin: 0 auto 1.5em;
}

/* ========================================
   GRID
   ======================================== */

.grid {
  display: grid;
  gap: 32px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark);
}

.site-logo__icon {
  width: 44px;
  height: 44px;
}

.site-logo__text {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-logo__text span {
  color: var(--coral);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  color: var(--charcoal);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--coral);
  background-color: var(--beige-light);
}

.main-nav a.nav-cta {
  background-color: var(--coral);
  color: var(--white);
  font-weight: 600;
}

.main-nav a.nav-cta:hover {
  background-color: var(--coral-dark);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--charcoal);
  margin: 5px 0;
  transition: var(--transition);
}

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

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-primary);
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  line-height: 1.4;
}

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

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

.btn--outline {
  background-color: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn--outline:hover {
  background-color: var(--charcoal);
  color: var(--white);
}

.btn--white {
  background-color: var(--white);
  color: var(--coral);
  border-color: var(--white);
}

.btn--white:hover {
  background-color: var(--beige-light);
  border-color: var(--beige-light);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================
   HERO
   ======================================== */

.hero {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--beige-light) 0%, var(--white) 60%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: var(--coral);
  opacity: 0.06;
  border-radius: 50%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__content h1 {
  margin-bottom: 0.3em;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--coral);
  margin-bottom: 1.5em;
  line-height: 1.6;
}

.hero__image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

.hero__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Placeholder for hero image */
.hero__image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--beige) 0%, var(--gray-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 0;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__content h1 {
    font-size: 2rem;
  }

  .hero__image {
    order: -1;
  }
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  background-color: var(--beige-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--coral);
}

.card__title {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}

.card__text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

/* Value point cards (compact) */
.value-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.value-card__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background-color: var(--beige-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-card__icon svg {
  width: 20px;
  height: 20px;
  color: var(--coral);
}

.value-card__content h4 {
  font-size: 1rem;
  margin-bottom: 0.2em;
}

.value-card__content p {
  font-size: 0.9rem;
  color: #666;
}

/* ========================================
   AUDIENCE PATHS
   ======================================== */

.audience-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.audience-path {
  background: var(--white);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  border: 2px solid var(--gray-light);
  transition: var(--transition);
}

.audience-path:hover {
  border-color: var(--coral);
  box-shadow: 0 8px 32px rgba(212, 89, 78, 0.1);
}

.audience-path__icon {
  width: 64px;
  height: 64px;
  background-color: var(--beige-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.audience-path__icon svg {
  width: 32px;
  height: 32px;
  color: var(--coral);
}

.audience-path h3 {
  margin-bottom: 0.4em;
}

.audience-path p {
  color: #666;
  margin-bottom: 1.5em;
}

@media (max-width: 768px) {
  .audience-paths {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   TALKS PREVIEW
   ======================================== */

.talk-item {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 32px;
  border-left: 4px solid var(--coral);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 16px;
}

.talk-item h4 {
  margin-bottom: 0.3em;
}

.talk-item p {
  font-size: 0.95rem;
  color: #666;
}

.talk-item__meta {
  font-size: 0.85rem;
  color: var(--coral);
  font-weight: 600;
  margin-top: 8px;
}

/* ========================================
   CTA BANNER
   ======================================== */

.cta-banner {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
  padding: 64px 0;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 0.4em;
}

.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   FORMS
   ======================================== */

.form-section {
  max-width: 680px;
  margin: 0 auto;
}

.form-section h2 {
  margin-bottom: 0.3em;
}

.form-section > p {
  color: #666;
  margin-bottom: 2em;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--charcoal);
}

.form-group label .required {
  color: var(--coral);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font-primary);
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  background: var(--white);
  color: var(--charcoal);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(212, 89, 78, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.form-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}

.form-checkbox label {
  font-weight: 400;
  font-size: 0.9rem;
  color: #666;
}

.form-submit {
  margin-top: 28px;
}

.form-submit .btn {
  width: 100%;
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* Form tabs */
.form-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--gray-light);
}

.form-tab {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-primary);
  color: #999;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--transition);
}

.form-tab:hover {
  color: var(--charcoal);
}

.form-tab.active {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

.form-panel {
  display: none;
}

.form-panel.active {
  display: block;
}

/* Form messages */
.form-message {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-weight: 500;
}

.form-message--error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.form-message--success {
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
}

/* ========================================
   THANK YOU PAGE
   ======================================== */

.thank-you {
  text-align: center;
  padding: 120px 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.thank-you__icon {
  width: 80px;
  height: 80px;
  background-color: var(--beige-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.thank-you__icon svg {
  width: 40px;
  height: 40px;
  color: var(--coral);
}

.thank-you h1 {
  font-size: 2.2rem;
  margin-bottom: 0.4em;
}

.thank-you p {
  font-size: 1.1rem;
  color: #666;
  max-width: 560px;
  margin: 0 auto 1em;
}

.thank-you .btn {
  margin-top: 1em;
}

/* ========================================
   PAGE HEADERS
   ======================================== */

.page-header {
  background: linear-gradient(135deg, var(--beige-light) 0%, var(--white) 100%);
  padding: 72px 0 56px;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.3em;
}

.page-header p {
  font-size: 1.15rem;
  color: var(--coral);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */

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

.content-block h2 {
  margin-bottom: 0.6em;
}

.content-block p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.75;
}

.highlight-box {
  background: var(--beige-light);
  border-radius: 12px;
  padding: 32px;
  margin: 32px 0;
}

.highlight-box h3 {
  margin-bottom: 0.4em;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background-color: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

.footer-brand span {
  color: var(--coral);
}

.site-footer p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

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

.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.85rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: var(--white);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ========================================
   UTILITIES
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
