/* ============================================
   RM International — Full-width multi-page
   ============================================ */

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --primary-glow: rgba(14, 165, 233, 0.25);
  --white: #ffffff;
  --bg: #f0f9ff;
  --bg-dark: #0c4a6e;
  --border: #e0f2fe;
  --text: #0c4a6e;
  --text-soft: #0369a1;
  --text-muted: #64748b;
  --success: #059669;
  --error: #dc2626;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 4px 20px rgba(14, 165, 233, 0.12);
  --shadow-hover: 0 12px 32px rgba(14, 165, 233, 0.18);
  --ease: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Full-width container: content can sit in a wide band */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
}

/* —— Header (full width) —— */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(14, 165, 233, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: color var(--ease);
}

.logo:hover {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: var(--bg);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text);
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav a {
  padding: 0.6rem 1rem;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  transition: color var(--ease), background var(--ease);
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: var(--bg);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: var(--white) !important;
}

.nav-cta:hover {
  box-shadow: var(--shadow);
  color: var(--white) !important;
}

/* —— Page hero (full-width with background image) —— */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0ea5e9 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 74, 110, 0.6);
  z-index: 0;
}

.page-hero.hero-short {
  min-height: 38vh;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.page-hero p {
  margin: 0;
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Full-width image banner (no overlay, for section backgrounds) */
.fullwidth-banner {
  width: 100%;
  min-height: 50vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}

.fullwidth-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 74, 110, 0.85) 0%, rgba(12, 74, 110, 0.4) 100%);
  z-index: 0;
}

.fullwidth-banner .container {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.fullwidth-banner h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.fullwidth-banner p {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 520px;
}

/* Two-column layout: image + content (full width) */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
  width: 100%;
}

.split-section.reverse {
  direction: rtl;
}

.split-section.reverse > * {
  direction: ltr;
}

.split-section-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.split-section-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.split-section-content {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}

.split-section-content h2 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}

.split-section-content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.split-section-content p.about-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.split-section-content .about-highlights {
  margin: 1rem 0 0;
  padding: 0 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.split-section-content .about-highlights li {
  margin-bottom: 0.4rem;
}

.split-section-content .about-highlights li:last-child {
  margin-bottom: 0;
}

.split-section-content a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.split-section-content a:hover {
  text-decoration: underline;
}

/* —— About PlayGroup School (theme-matched) —— */
.about-playgroup-section .split-section-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
}

.about-playgroup-content .section-title {
  display: block;
  margin-bottom: 0.5rem;
}

.about-playgroup-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.about-playgroup-body {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.about-playgroup-body:last-of-type {
  margin-bottom: 0;
}

.about-playgroup-highlights {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.about-playgroup-highlights li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.about-playgroup-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.about-playgroup-note {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.about-playgroup-content .about-playgroup-note a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.about-playgroup-content .about-playgroup-note a:hover {
  text-decoration: underline;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-ghost {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--white);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.2);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* —— Home: feature cards (full-width grid) —— */
.feature-strip {
  width: 100%;
  padding: 4rem 0;
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.feature-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease);
}

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

.feature-card-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.feature-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.feature-card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.feature-card-body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.feature-card-body .link-text {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

/* —— Sections —— */
.section {
  width: 100%;
  padding: 4rem 0;
}

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

.section-title {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-title-accent {
  color: var(--primary);
}

.section-intro {
  margin: 0 0 2rem;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
}

/* —— Cards —— */
.card {
  position: relative;
  padding: 2rem 2.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card-featured {
  border-left: 4px solid var(--primary);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.card p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* —— Upcoming grid —— */
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.upcoming-card {
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform var(--ease), box-shadow var(--ease);
}

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

.upcoming-card-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.upcoming-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.upcoming-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* —— Contact grid —— */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform var(--ease), box-shadow var(--ease);
}

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

.contact-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--primary);
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-card p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* —— Contact + Enquiry (single section, less scroll) —— */
.contact-enquiry-section {
  padding: 2.5rem 0 3.5rem;
  text-align: left;
}

.contact-enquiry-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.contact-side {
  padding: 1.5rem 1.25rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: left;
}

.contact-side-title {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 0.75rem;
}

.contact-list li:last-child {
  margin-bottom: 0;
}

.contact-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.6rem 0;
  text-decoration: none;
  color: var(--text);
  border-radius: var(--radius);
  transition: background var(--ease), color var(--ease);
}

.contact-list a:hover {
  background: var(--white);
  color: var(--primary);
}

.contact-list-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.contact-list-label {
  display: block;
  width: 100%;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-list-value {
  font-size: 0.95rem;
  font-weight: 600;
}

.enquiry-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}

.enquiry-form-title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
}

.enquiry-form-desc {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: left;
}

/* —— Enquiry form (redesign) —— */
.enquiry-form {
  max-width: 520px;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.enquiry-form-redesign {
  max-width: 100%;
  width: 100%;
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: left;
}

.enquiry-form-redesign .form-message {
  text-align: left;
}

.form-row-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.form-row-group .form-row {
  margin-bottom: 0;
}

.enquiry-form-redesign .form-row {
  margin-bottom: 1.1rem;
  text-align: left;
}

.enquiry-form-redesign .form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.enquiry-form-redesign .form-row .char-count {
  float: right;
  text-align: right;
}

.enquiry-form-redesign .form-row input,
.enquiry-form-redesign .form-row textarea {
  display: block;
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  text-align: left;
}

.enquiry-form-redesign .form-row textarea {
  min-height: 96px;
  resize: vertical;
}

.enquiry-form-redesign .field-error {
  text-align: left;
}

.enquiry-form-redesign .btn-submit {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.75rem 1.5rem;
  text-align: center;
}

@media (max-width: 900px) {
  .contact-enquiry-wrap {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-side {
    order: 2;
  }

  .enquiry-side {
    order: 1;
  }

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

.form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: none;
}

.form-message.visible {
  display: block;
}

.form-message.success {
  background: #d1fae5;
  color: var(--success);
  border: 1px solid #a7f3d0;
}

.form-message.error {
  background: #fee2e2;
  color: var(--error);
  border: 1px solid #fecaca;
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.required { color: var(--error); }
.optional { font-weight: 500; color: var(--text-muted); font-size: 0.85rem; }
.form-row .char-count { font-weight: 500; color: var(--text-muted); font-size: 0.85rem; float: right; }

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--error);
}

.btn-submit {
  width: 100%;
  max-width: 100%;
  margin-top: 0.5rem;
}

/* —— Footer (full width) —— */
.footer {
  width: 100%;
  padding: 2rem 1.5rem;
  background: var(--bg-dark);
  color: rgba(255,255,255,0.9);
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .split-section {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .split-section.reverse {
    direction: ltr;
  }

  .split-section-image {
    min-height: 280px;
  }

  .split-section-content {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
  }

  .page-hero {
    min-height: 60vh;
  }

  .fullwidth-banner {
    min-height: 40vh;
  }

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

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }
}
