/* ================================================================
   Solid State Academy — style.css
   Build Brief: Poppins + Inter | Teal #3389a2 | Dark #003741
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Inter:wght@400;500&display=swap');

/* === RESET & ROOT === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:        #3389a2;
  --teal-dark:   #003741;
  --teal-hover:  #2874a6;
  --black:       #000000;
  --white:       #ffffff;
  --bg-focus:    #ced1d2;
  --bg-services: #dce4e7;
  --bg-mission:  #ebfaff;
  --bg-value:    #e1edf1;
  --nav-h:       65px;
  --max-w:       1220px;
  --radius:      16px;
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ================================================================
   TYPOGRAPHY
================================================================ */
h1, h2, h3, h4, nav a, button {
  font-family: 'Poppins', sans-serif;
  color: var(--black);
}

h1 { font-weight: 600; font-size: clamp(24px, 4vw, 34px); line-height: 1.25; }
h2 { font-weight: 600; font-size: clamp(25px, 3.5vw, 30px); line-height: 1.3; }
h3 { font-weight: 600; font-size: 18px; line-height: 1.4; }
h4 { font-weight: 600; font-size: 16px; line-height: 1.4; }

p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
}

/* ================================================================
   LAYOUT
================================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

section { padding: 70px 0; }

/* ================================================================
   BUTTONS
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
  border: none;
  white-space: nowrap;
  line-height: 1;
}

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

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--white); }

.btn-icon { width: 26px; height: 26px; object-fit: contain; }

/* ================================================================
   CARD
================================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

/* ================================================================
   NAVIGATION
================================================================ */
#nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 10px rgba(0,0,0,0.04);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 16px;
}

.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo-img { height: 42px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav__links a {
  font-size: 14px;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--black);
  transition: background 0.18s, color 0.18s;
}

.nav__links a:hover { background: rgba(51,137,162,0.08); color: var(--teal); }

.nav__links a.active {
  background: var(--teal-dark);
  color: var(--white);
  padding: 8px 16px;
}

.nav__login {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav__login-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 400;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--black);
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.1);
  transition: background 0.18s;
  white-space: nowrap;
}

.nav__login-btn:hover { background: rgba(0,0,0,0.08); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Mobile Menu Link Styling Fixes
   ============================================================ */
/* Hide mobile menu by default */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  padding: 20px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

/* Show mobile menu when opened */
.nav__mobile.open {
  display: flex;
}

.nav__mobile .nav__login-btn {
  display: block;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-size: inherit;
  font-weight: 500;
  color: inherit;
  text-align: left;
  box-shadow: none;
  width: auto;
}

.nav__mobile .btn-primary {
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

/* ================================================================
   SECTION HEADER
================================================================ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 { margin-bottom: 0; }

/* ================================================================
   HERO
================================================================ */
.hero {
  position: relative;
  background-image: url('images/Landing_background.png');
  background-size: cover;
  background-position: center;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.58);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 60px 20px;
}

.hero__logo {
  height: 200px;
  width: auto;
  object-fit: contain;
}

.hero h1 { max-width: 640px; text-align: center; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.12);
  color: var(--black);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hero__chip-icon { width: 22px; height: 22px; object-fit: contain; }

.hero__cta { margin-top: 8px; }

/* ================================================================
   WHAT WE FOCUS ON
================================================================ */
.focus { background: var(--bg-focus); }

.focus__inner {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: start;
}

.focus__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.focus__img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: var(--radius);
}

.focus__pricing {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.focus__pricing h4 { font-size: 17px; margin-bottom: 4px; }

.focus__pricing p { font-size: 14px; }

.focus__pricing-note {
  font-size: 13px;
  color: rgba(0,0,0,0.55);
  font-style: italic;
  margin-top: 4px;
}

.focus__right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.focus__right > h2 { margin-bottom: 4px; }

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

.focus__step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.focus__step-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.focus__step h4 { font-size: 15px; }
.focus__step p { font-size: 13px; }

/* ================================================================
   SERVICES
================================================================ */
.services { background: var(--bg-services); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.service-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.service-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.service-card__body h3 { font-size: 17px; }
.service-card__body p { font-size: 14px; line-height: 1.65; flex: 1; }

.service-card__price {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  background: rgba(51,137,162,0.08);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
}

/* ================================================================
   MISSION & VISION
================================================================ */
.mission-vision { background: var(--bg-mission); }

.mv-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}

.mv__img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
}

.mv__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mv__intro { font-size: 15px; line-height: 1.7; }

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mv-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mv-card h3 { font-size: 18px; }
.mv-card > p { font-size: 14px; }

.mv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mv-list li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--black);
  padding-left: 14px;
  position: relative;
}

.mv-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ================================================================
   WHY PARENTS VALUE US
================================================================ */
.why-us { background: var(--bg-value); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.why-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.why-card__icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.why-card h3 { font-size: 17px; }
.why-card p { font-size: 14px; line-height: 1.65; }

/* ================================================================
   TESTIMONIALS
================================================================ */
.testimonials { background: var(--bg-value); }

.testimonials-wrap {
  display: flex;
  align-items: flex-end;
  gap: 32px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  flex: 1;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonial-quote {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.testimonial-card blockquote {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.4;
}

.testimonial-card > p { font-size: 14px; line-height: 1.65; flex: 1; }

.testimonial-stars-img {
  width: 110px;
  height: auto;
  object-fit: contain;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 500;
  color: rgba(0,0,0,0.55);
  font-family: 'Inter', sans-serif;
}

.testimonials-decor {
  width: 320px;
  height: 240px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ================================================================
   CONTACT
================================================================ */
.contact { background: var(--bg-mission); }

.contact__inner {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 0;
  align-items: start;
  min-height: 420px;
}

.contact__img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: var(--radius) 0 0 var(--radius);
  -webkit-mask-image: linear-gradient(to right, black 55%, transparent 95%);
  mask-image: linear-gradient(to right, black 55%, transparent 95%);
}

.contact__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 40px;
}

.contact__body h2 { margin-bottom: 4px; }
.contact__body > p { font-size: 14px; line-height: 1.7; }

.contact__form-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  margin-top: 8px;
}

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

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

.form-group label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(51,137,162,0.12);
}

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

.contact__form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ================================================================
   FOOTER
================================================================ */
.footer {
  background: var(--teal-dark);
  padding: 56px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__logo {
  height: 110px;
  width: auto;
  object-fit: contain;
  background: var(--white);
  border-radius: 10px;
  padding: 10px 16px;
  align-self: flex-start;
}

.footer__brand p {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  line-height: 1.65;
  max-width: 260px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col ul li a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  transition: color 0.18s;
}

.footer__col ul li a:hover { color: var(--white); }

.footer__contact-col { gap: 14px; }

.footer__contact-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__contact-items a,
.footer__contact-items span {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  transition: color 0.18s;
}

.footer__contact-items a:hover { color: var(--white); }

.footer__socials {
  width: 160px;
  height: auto;
  object-fit: contain;
  margin-top: 10px;
}

.footer__bottom {
  padding: 18px 0;
  text-align: center;
}

.footer__bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

/* ================================================================
   FADE-UP ANIMATION
================================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-up.d1 { transition-delay: 0.08s; }
.fade-up.d2 { transition-delay: 0.16s; }
.fade-up.d3 { transition-delay: 0.24s; }
.fade-up.d4 { transition-delay: 0.32s; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1100px) {
  .focus__inner      { grid-template-columns: 360px 1fr; }
  .mv-inner          { grid-template-columns: 280px 1fr; }
  .footer__grid      { grid-template-columns: 1fr 1fr; gap: 32px; }
  .testimonials-decor { display: none; }
}

@media (max-width: 900px) {
  .services-grid     { grid-template-columns: 1fr 1fr; }
  .why-grid          { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .focus__inner      { grid-template-columns: 1fr; }
  .focus__img        { height: 220px; }
  .mv-inner          { grid-template-columns: 1fr; }
  .mv__img           { height: 260px; }
  .contact__inner    { grid-template-columns: 1fr; }
  .contact__img      { display: none; }
  .contact__body     { padding-left: 0; }
}

@media (max-width: 768px) {
  section { padding: 55px 0; }
  .container { padding: 0 20px; }

  .nav__links, .nav__login { display: none; }
  .nav__hamburger { display: flex; }

  h1 { font-size: 26px; }
  h2 { font-size: 25px; }
  p { font-size: 14px; }

  .hero__logo { height: 140px; }
  .focus__steps { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  section { padding: 40px 0; }
  .form-row { grid-template-columns: 1fr; }
  .contact__form-actions { flex-direction: column; }
  .hero__meta { flex-direction: column; align-items: center; }
}
