/* ============================================
   JAPRES Online and Physical School
   Professional, modern, responsive styles
   ============================================ */

:root {
  --primary: #147FC0;
  --primary-dark: #0f6aa3;
  --navy: #123D78;
  --navy-deep: #0d2d5a;
  --yellow: #FFC928;
  --yellow-soft: #fff4cc;
  --light: #F4F9FD;
  --white: #FFFFFF;
  --ink: #1a2b3c;
  --muted: #5a6b7d;
  --line: #e2eaf2;
  --success: #0d9f6e;
  --error: #c0392b;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 8px 30px rgba(18, 61, 120, 0.08);
  --shadow-sm: 0 4px 14px rgba(18, 61, 120, 0.06);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--yellow);
  color: var(--navy);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 200;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(20, 127, 192, 0.05);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
  margin-top: 12px;
}

.btn-whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
}

/* Header / Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  height: 76px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--navy));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 16px;
  color: var(--navy);
  letter-spacing: 0.3px;
}

.brand-text small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-cta {
  flex-shrink: 0;
}

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

.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f2d5a 0%, #123D78 45%, #147FC0 100%);
  color: var(--white);
  padding: 80px 0 90px;
  overflow: hidden;
}

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

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-lead {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.15);
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Highlights */
.highlights {
  background: var(--white);
  padding: 0;
  margin-top: -36px;
  position: relative;
  z-index: 5;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  border: 1px solid var(--line);
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px;
}

.highlight-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.highlight-item strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 2px;
}

.highlight-item span {
  font-size: 12px;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 80px 0;
}

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

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-header .eyebrow {
  color: var(--primary);
}

.section-header h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.section-intro {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.about-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.about-card h3 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 8px;
}

.about-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-card.featured {
  border-color: var(--primary);
  box-shadow: 0 12px 36px rgba(20, 127, 192, 0.15);
}

.service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.service-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 8px;
}

.service-rate {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.service-card ul {
  margin-bottom: 24px;
  flex: 1;
}

.service-card li {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0 6px 18px;
  position: relative;
}

.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
}

/* Curriculum */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.curriculum-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.curriculum-card:hover {
  transform: translateY(-3px);
}

.curriculum-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--navy), var(--primary));
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.curriculum-card h3 {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 10px;
}

.curriculum-card p {
  font-size: 13px;
  color: var(--muted);
}

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

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.price-card:hover {
  transform: translateY(-4px);
}

.price-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, #f0f8fd 0%, var(--white) 40%);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
}

.price-card h3 {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 18px;
}

.price {
  margin-bottom: 16px;
}

.price .amount {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.price .period {
  font-size: 13px;
  color: var(--muted);
}

.price-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.55;
}

/* Online Learning */
.online-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.online-content .eyebrow {
  color: var(--primary);
}

.online-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
}

.online-content > p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
}

.check-list {
  margin-bottom: 28px;
}

.check-list li {
  font-size: 14px;
  color: var(--ink);
  padding: 8px 0 8px 28px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  width: 20px;
  height: 20px;
  background: rgba(20, 127, 192, 0.12);
  color: var(--primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

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

.platform-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.platform-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}

.platform-card strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 4px;
}

.platform-card span {
  font-size: 12px;
  color: var(--muted);
}

/* Location & Schedule */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.location-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

.location-card h3 {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 14px;
}

.location-address {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.schedule-time {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin: 8px 0 12px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.small-note {
  margin-top: 10px;
  font-size: 12px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-block {
  margin-bottom: 24px;
}

.contact-block h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-block p,
.contact-block a {
  font-size: 15px;
  color: var(--ink);
}

.contact-block a:hover {
  color: var(--primary);
}

.placeholder-email {
  font-size: 14px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.social-link {
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.social-placeholder {
  cursor: default;
}

.social-link span {
  color: var(--primary);
  font-weight: 800;
  margin-right: 4px;
}

.social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

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

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(20, 127, 192, 0.12);
}

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

.form-notice {
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 13px;
  margin-bottom: 14px;
}

.form-notice.success {
  background: #e6f7f0;
  color: var(--success);
  border: 1px solid #b8e6d4;
}

.form-notice.error {
  background: #fdecea;
  color: var(--error);
  border: 1px solid #f5c6c2;
}

.form-disclaimer {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}

.field-error {
  color: var(--error);
  font-size: 12px;
  margin-top: 6px;
}

.radio-fieldset {
  border: 0;
  margin-bottom: 14px;
}

.radio-fieldset legend {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-option {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.method-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}

.method-card h3 {
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 16px;
}

.method-card p {
  color: var(--muted);
  font-size: 13px;
}

/* Footer */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand-inner {
  margin-bottom: 14px;
}

.footer .brand-mark {
  background: linear-gradient(135deg, var(--primary), #1a5a9e);
}

.footer .brand-text strong {
  color: var(--white);
}

.footer .brand-text small {
  color: rgba(255, 255, 255, 0.6);
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 8px;
}

.footer h4 {
  color: var(--white);
  font-size: 14px;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

.footer-contact p {
  font-size: 13px;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 12px;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

/* Mobile menu open state */
.nav.open {
  display: flex;
}

/* Responsive */
@media (max-width: 1080px) {
  .nav-cta {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    gap: 4px;
  }

  .nav.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .online-grid,
  .contact-grid,
  .methods-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid,
  .pricing-grid,
  .curriculum-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .highlights-grid {
    grid-template-columns: 1fr 1fr;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero {
    padding: 60px 0 70px;
  }

  .hero-visual {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-link {
    padding: 12px 8px;
    font-size: 15px;
    border-radius: 8px;
  }

  .nav-link:hover {
    background: var(--light);
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  .section {
    padding: 60px 0;
  }

  .enquiry-form .form-row {
    grid-template-columns: 1fr;
  }

  .highlights {
    margin-top: -24px;
  }

  .highlights-grid {
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .about-grid,
  .highlights-grid,
  .platform-cards {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    flex-direction: column;
    gap: 8px;
  }

  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }
}
