/* ═══════════════════════════════════════════
   Priority Education Ltd. — Modern Replica
   ═══════════════════════════════════════════ */

:root {
  --navy: #000a26;
  --navy-light: #0a1a46;
  --gold: #d4a853;
  --white: #ffffff;
  --grey-bg: #f6f6f6;
  --text: #151515;
  --text-light: #575757;
  --text-muted: #949494;
  --border: #e2e2e2;
  --green: #0d7b4a;
  --orange: #e65100;
  --red: #c62828;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ══════ NAVBAR ══════ */
.navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.logo img {
  border-radius: 6px;
  width: 48px;
  height: 48px;
}
.logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--white); }
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
}

/* ══════ HERO ══════ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #001a4d 50%, #0a2463 100%);
  color: var(--white);
  padding: 100px 24px 80px;
  text-align: center;
}
.hero-content { max-width: 720px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0.85;
  margin-bottom: 36px;
  text-wrap: balance;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════ BUTTONS ══════ */
.btn-primary, .btn-outline {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,168,83,0.3);
}
.btn-outline {
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* ══════ SECTIONS ══════ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 16px;
}
.section > p {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ══════ SERVICES ══════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.service-icon { font-size: 40px; margin-bottom: 16px; }
.service-card h3 { font-size: 20px; color: var(--navy); margin-bottom: 4px; }
.service-tag {
  display: inline-block;
  background: var(--grey-bg);
  color: var(--text-light);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.service-card p { color: var(--text-light); margin-bottom: 16px; }
.card-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.card-link:hover { text-decoration: underline; }

/* ══════ ABOUT ══════ */
.about { background: var(--grey-bg); max-width: none; }
.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-grid h2 { text-align: left; margin-bottom: 20px; }
.about-grid p { margin-bottom: 14px; color: var(--text-light); }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  font-weight: 600;
  color: var(--text-light);
}
.stat-num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

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

/* ══════ TESTIMONIALS ══════ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-grid blockquote {
  background: var(--grey-bg);
  border-left: 4px solid var(--gold);
  padding: 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.testimonial-grid p {
  font-style: italic;
  font-size: 16px;
  margin-bottom: 12px;
}
.testimonial-grid cite {
  font-size: 14px;
  color: var(--text-light);
  font-style: normal;
  font-weight: 600;
}

/* ══════ CALCULATOR PROMO ══════ */
.calculator-promo {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  text-align: center;
  max-width: none;
  border-radius: 0;
}
.calculator-promo h2 { color: var(--white); }
.calculator-promo p { color: rgba(255,255,255,0.8); }
.calculator-promo .btn-primary { margin-top: 16px; }

/* ══════ CONTACT FORM ══════ */
.contact { text-align: center; }
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
  width: 100%;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.contact-form button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  margin-top: 8px;
}

/* ══════ FOOTER ══════ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 60px 24px 32px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 16px;
}
.footer-grid a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 14px;
}
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

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

/* ══════ PAGE HEADER (subpages) ══════ */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 60px 24px;
  text-align: center;
}
.page-header h1 { font-size: clamp(28px, 5vw, 40px); }
.page-header p { opacity: 0.8; margin-top: 8px; }

/* ══════ CONTENT SECTION (subpages) ══════ */
.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}
.content-section h2 {
  font-size: 24px;
  color: var(--navy);
  margin: 40px 0 16px;
}
.content-section h2:first-child { margin-top: 0; }
.content-section p { margin-bottom: 16px; color: var(--text-light); }
.content-section ul {
  margin: 0 0 24px 20px;
  color: var(--text-light);
}
.content-section li { margin-bottom: 8px; }

/* ══════ PRICING CARDS ══════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.pricing-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow);
}
.pricing-card.featured {
  border-color: var(--gold);
  background: #fffdf7;
}
.pricing-card h3 { font-size: 20px; color: var(--navy); }
.pricing-card .price {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  margin: 12px 0;
}
.pricing-card .price span { font-size: 16px; color: var(--text-light); }
.pricing-card ul {
  list-style: none;
  margin: 20px 0;
  text-align: left;
  color: var(--text-light);
}
.pricing-card li { padding: 6px 0; }
.pricing-card li::before { content: '✓ '; color: var(--green); font-weight: 700; }
