/**************************************************
 * Play. Learn. Progress. — Global Stylesheet
 * Sections:
 *  1) Root variables & resets
 *  2) Typography
 *  3) Layout helpers
 *  4) Header & navigation
 *  5) Buttons
 *  6) Hero (home)
 *  7) Home sections (about/services)
 *  8) About page (desktop + mobile tweaks)
 *  9) Standard page sections
 * 10) Reviews
 * 11) Forms
 * 12) Responsive adjustments
 **************************************************/

/* ===============================================
   1) ROOT VARIABLES & RESETS
   =============================================== */
:root {
  --primary-blue: #156ac9;
  --primary-green: #10aa2d;
  --primary-orange: #fd9e1b;
  --dark-text: #333333;
  --body-text: #555555;
  --bg-white: #FFFFFF;
  --header-h: 105px; /* Adjust if header height changes */
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-white);
  color: var(--body-text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden; /* prevent horizontal scroll on mobile */
}

/* Media: never overflow container width */
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===============================================
   2) TYPOGRAPHY
   =============================================== */
body {
  font-family: -AppleSystem, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

h1, h2, h3 {
  color: var(--dark-text);
  font-weight: 700;
  margin: 0 0 15px;
}

h1 { font-size: 2.8rem;
        color: #fff;
    }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 20px; }
ul, li { padding-left: 20px; }

/* ===============================================
   3) LAYOUT HELPERS
   =============================================== */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
}

.flex-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
}

/* ===============================================
   4) HEADER & NAVIGATION
   =============================================== */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.header .logo img {
  height: 75px;
  width: auto;
}

/* Primary nav (desktop) */
.main-nav { position: relative; }
.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}
.main-nav li { margin-left: 30px; }
.main-nav a {
  display: block;
  text-decoration: none;
  color: var(--body-text);
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 3px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle:focus { outline: 2px solid #156ac9; outline-offset: 2px; }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-hamburger { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; }

  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    display: none;
    z-index: 1001;
  }
  .main-nav.open {
    display: block;
    animation: dropdownIn .16s ease-out both;
  }
  @keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .main-nav ul { flex-direction: column; padding: 8px 0; }
  .main-nav li { margin: 0; }
  .main-nav a { padding: 14px 20px; border-bottom: 1px solid #f0f0f0; }
  .main-nav a:last-child { border-bottom: none; }

  .header .container { padding: 8px 0; }

  body.no-scroll { overflow: hidden; touch-action: none; }
}

/* ===============================================
   5) BUTTONS
   =============================================== */
.btn {
  display: inline-block;
  background: var(--primary-blue);
  color: var(--bg-white);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color .3s ease, transform .2s ease;
}
.btn:hover { background: #1155a3; transform: translateY(-2px); }

.btn-secondary {
  display: inline-block;
  background: var(--primary-green);
  color: var(--bg-white);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .3s ease, transform .2s ease;
}
.btn-secondary:hover { background: #0d8a24; transform: translateY(-2px); }

/* ===============================================
   6) HERO (HOME)
   =============================================== */
.hero {
  position: relative;
  background-image: url("hero-img.webp");
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: top left;
  background-attachment: fixed;
  background-color: #0f4fa0;

  margin-top: var(--header-h); /* <-- shifts image down below header */
  padding-top: 80px;
  padding-bottom: 60px;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero h1 {
  color: #fff;
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero p {
  color: #fff;
  font-size: 1.25rem;
  margin: 0 auto 35px;
  max-width: 700px;
}

.hero .btn {
  background: var(--bg-white);
  color: #1155a3;
  font-weight: 700;
}
.hero .btn:hover { background: #f0f0f0; color: #1155a3; }

/* ===============================================
   7) HOME SECTIONS
   =============================================== */
.home-about,
.home-services {
  padding: 60px 0;
  text-align: center;
}

.home-services {
  background: var(--primary-green);
  color: var(--bg-white);
}
.home-services h2 { color: var(--bg-white); }

.home-about .container,
.home-services .container { max-width: 900px; }

.service-boxes {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px 0 30px;
}

.service-box {
  background: var(--bg-white);
  border: none;
  border-radius: 8px;
  padding: 30px;
  width: 30%;
  min-width: 280px;
  margin: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.service-box h3 {
  color: var(--primary-orange);
  font-weight: 700;
  margin-top: 0;
  font-size: 1.4rem;
}
.service-box p { color: var(--body-text); }

/* ===============================================
   8) ABOUT PAGE
   =============================================== */
.about-name--desktop { display: inline-block; margin-top: .5rem; }
.about-name--mobile  { display: none; }

@media (min-width: 769px) {
  .about-flex { display: flex; flex-direction: row; align-items: flex-start; }
  .about-bio  { order: 1; flex: 1 1 0; min-width: 0; }
  .about-photo{ order: 2; flex: 0 0 50%; max-width: 50%; margin-left: 20px; }
  .about-photo img { width: 100%; height: auto; border-radius: 12px; }
}

@media (max-width: 768px) {
  .about-name--desktop { display: none; }
  .about-name--mobile  { display: block; text-align: center; margin-top: 8px; }

  .about-flex { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .about-photo { order: 1; width: 50vw; max-width: 360px; margin: 12px auto 0; }
  .about-photo img { width: 100%; border-radius: 12px; }
  .about-bio   { order: 3; width: 100%; }
}

/* ===============================================
   9) STANDARD PAGE SECTIONS
   =============================================== */
.page-header {
  background: var(--primary-blue);
  color: var(--bg-white);
  padding: 50px 0;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.page-header h1 { font-size: 2.8rem; color: #fff;}

.content-section {
  padding: 60px 0;
  background: var(--bg-white);
}
.content-section .container { max-width: 900px; }

/* ===============================================
   10) REVIEWS
   =============================================== */
.testimonial {
  background: var(--primary-orange);
  border-left: 6px solid var(--dark-text);
  padding: 25px 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  color: var(--dark-text);
}
.testimonial p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--dark-text);
}
.testimonial .author {
  font-weight: 600;
  text-align: right;
  color: var(--primary-blue);
}

/* ===============================================
   11) FORMS
   =============================================== */
.contact-form { margin-top: 30px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark-text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
}
.form-group textarea { resize: vertical; }

/* ===============================================
   12) RESPONSIVE ADJUSTMENTS
   =============================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero {
    background-attachment: scroll;
    background-size: auto 100%;
    background-position: left top;
    padding-top: 40px;
    padding-bottom: 24px;
  }
}

/* Mobile: shrink to fit text, shorter image, below header */
@media (max-width: 768px) {
  .hero {
    margin-top: var(--header-h);
    min-height: auto;
    background-size: auto 100%;
    background-position: left top;
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .hero .container { padding: 0; }

  h1, .hero h1, .page-header h1 { font-size: 2.2rem; line-height: 1.2; color: #fff;}
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.3rem; }
  .hero p { font-size: 1.1rem; }

  .home-about, .home-services, .page-header, .content-section { padding: 40px 0; }

  .service-boxes {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
  .service-box { width: 100%; padding: 20px; }
}

/* Very small phones */
@media (max-width: 480px) {
  .hero { background-size: auto 100%; }
}

/* Footer */
.footer-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-btn {
  text-decoration: none;
  text-align: center;
  min-width: 220px;
}
@media (max-width: 768px) {
  .footer-contact { flex-direction: column; gap: 10px; }
  .footer-btn { width: 90%; }
}
