/* ========================================
   BASE STYLES
   ======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #4a90e2;
  --secondary-color: #f39c12;
  --dark-color: #2c3e50;
  --light-color: #f4f6f8;
  --white: #ffffff;
  --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-color);
  background: var(--white);
  line-height: 1.6;
}

/* ========================================
   LAYOUT HELPERS
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 70px 20px; /* consistent spacing across all sections */
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  background: var(--white);
  padding: 18px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
}

.main-menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.main-menu a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 600;
  transition: 0.3s;
}

.main-menu a:hover {
  color: var(--primary-color);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--primary-color), #2c5aa0);
  color: var(--white);
  text-align: center;
  padding: 110px 20px 90px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  border: none;
}

.btn-primary {
  background: var(--secondary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: #e67e22;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background: #357abd;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  background: var(--light-color);
  padding: 60px 20px; /* smaller height for better balance */
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.about-text h3 {
  color: var(--dark-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.about-text p {
  margin-bottom: 20px;
}

.about-image {
  flex: 1;
  text-align: center;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* ========================================
   SUBJECTS
   ======================================== */
.subjects {
  background: var(--white);
}

.subjects h2 {
  text-align: center;
  font-size: 2.4rem;
  color: var(--dark-color);
  margin-bottom: 40px;
}

.subjects-category {
  margin-bottom: 55px;
}

.subjects-category h3 {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.subject-card {
  background: linear-gradient(135deg, var(--primary-color), #357abd);
  color: var(--white);
  padding: 25px 15px;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.subject-card:hover {
  transform: translateY(-5px);
}

/* Yellow gradient for KS3 & GCSE block */
.subjects-category:nth-of-type(2) .subject-card {
  background: linear-gradient(135deg, var(--secondary-color), #e67e22);
}

/* ========================================
   ENQUIRY / CONTACT FORM
   ======================================== */
.contact {
  background: var(--light-color);
  text-align: center;
}

.contact h2 {
  font-size: 2.4rem;
  color: var(--dark-color);
  margin-bottom: 15px;
}

.contact p {
  color: #555;
  margin-bottom: 25px;
}

.booking-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark-color);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.confirmation {
  color: var(--secondary-color);
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background: var(--dark-color);
  color: var(--white);
  text-align: center;
  padding: 50px 20px;
}

footer p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .subjects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .booking-form {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .subjects-grid {
    grid-template-columns: 1fr;
  }
}
/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */
:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
}

/* ========================================
   MOBILE MENU
   ======================================== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-color);
  cursor: pointer;
}

@media (max-width: 768px) {
  .main-menu ul {
    display: none;
    flex-direction: column;
    background: var(--white);
    box-shadow: var(--shadow);
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
  }

  .main-menu.open ul {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}
/* ================= CONTACT INFO SECTION ================= */
.contact-info {
  background: var(--white);
  text-align: center;
  padding: 70px 20px;
  border-top: 1px solid #eee;
}

.contact-info h2 {
  color: var(--dark-color);
  font-size: 2.4rem;
  margin-bottom: 15px;
}

.contact-info p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--dark-color);
}

.contact-details li {
  margin-bottom: 10px;
}

.contact-details a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Social links */
.social-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links a {
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.social-links a:hover {
  color: var(--primary-color);
}

/* ================= LOGO STYLING ================= */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  height: 65px;          /* larger for visibility */
  width: auto;
  border-radius: 6px;
  object-fit: contain;
}

.logo h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* ================= FOOTER PROFILE ================= */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.footer-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-photo {
  width: 40px;           /* smaller, fits inline neatly */
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary-color);
  flex-shrink: 0;
}

.footer-profile p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--white);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .subjects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .booking-form {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .subjects-grid {
    grid-template-columns: 1fr;
  }
}
