/* ==========================================================================
   SK DREAMERS ACADEMY - SOFT NEO-BRUTALIST DESIGN SYSTEM (PRD v3.0)
   ========================================================================== */

/* === GOOGLE FONTS IMPORT === */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* === COLOR & DESIGN SYSTEM TOKENS === */
:root {
  /* Core Brand Purple */
  --color-primary:        #6B21A8;   /* Deep Royal Purple */
  --color-primary-light:  #9333EA;   /* Bright Purple */
  --color-primary-dark:   #4C1D95;   /* Dark Purple */
  --color-primary-glow:   #A855F7;   /* Soft Purple accent */
  --color-accent:         #E9D5FF;   /* Lavender Tint */

  /* Neutrals */
  --color-white:          #FFFFFF;
  --color-off-white:      #FAF5FF;   /* Page background */
  --color-text-dark:      #1E1B4B;   /* Body text + "ink" for borders/shadows */
  --color-text-mid:       #4B5563;   /* Secondary text */
  --color-text-light:     #9CA3AF;   /* Captions, meta text */

  /* Accent */
  --color-gold:           #F59E0B;   /* Stars, certificates, CTAs */
  --color-gold-soft:      #FDE9C8;   /* Highlight marker fill */
  --color-success:        #10B981;   /* Form success */

  /* Neo-Brutalist "Ink" */
  --ink:                  #1E1B4B;

  /* Flat offset shadows — no blur */
  --shadow-sm:            4px 4px 0 var(--ink);
  --shadow-md:            6px 6px 0 var(--ink);
  --shadow-lg:            10px 10px 0 var(--ink);
  --shadow-gold:          6px 6px 0 var(--color-gold);

  /* Borders */
  --border-thick:         3px solid var(--ink);
  --border-thin:          2px solid var(--ink);

  /* Border Radii */
  --radius-btn:           12px;
  --radius-card:          20px;
  --radius-img:           16px;
  --radius-pill:          999px;

  /* Container Widths */
  --container-max:        1240px;
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--color-off-white);
  color: var(--color-text-dark);
  line-height: 1.5;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Sora', sans-serif;
  color: var(--color-text-dark);
}

p, label, button, a, li, input, select, textarea, .font-body {
  font-family: 'DM Sans', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* === LAYOUT UTILITIES === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
}

.section-padding {
  padding: 96px 0;
}

@media (max-width: 1023px) {
  .section-padding {
    padding: 64px 0;
  }
}

@media (max-width: 640px) {
  .section-padding {
    padding: 48px 0;
  }
}

/* === TYPOGRAPHY CLASSES === */
.text-hero {
  font-size: 56px;
  line-height: 64px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.01em;
}

.text-h2 {
  font-size: 40px;
  line-height: 48px;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
}

.text-h3 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
}

.text-h4 {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
}

.text-feature {
  font-size: 18px;
  line-height: 28px;
  color: var(--color-text-mid);
  font-family: 'DM Sans', sans-serif;
}

.text-body {
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-mid);
  font-family: 'DM Sans', sans-serif;
}

.text-caption {
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-light);
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
}

@media (max-width: 1023px) {
  .text-hero { font-size: 44px; line-height: 52px; }
  .text-h2 { font-size: 34px; line-height: 42px; }
}

@media (max-width: 640px) {
  .text-hero { font-size: 34px; line-height: 42px; }
  .text-h2 { font-size: 28px; line-height: 36px; }
}

/* === NEO-BRUTALIST CARDS === */
.nb-card {
  background: var(--color-white);
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 32px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nb-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
}

.nb-card:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 var(--ink);
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--color-gold);
  color: var(--color-text-dark);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border: var(--border-thick);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 31px;
  background: var(--color-white);
  color: var(--color-text-dark);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  border: var(--border-thick);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-outline:hover {
  background: var(--color-accent);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.btn-outline:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}

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

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

/* === CHIP / TAG === */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: 2px 2px 0 var(--ink);
  width: fit-content;
}

.chip-gold {
  background: var(--color-gold);
  color: var(--color-text-dark);
}

.chip-white {
  background: var(--color-white);
  color: var(--color-text-dark);
}

/* === IMAGE FRAME === */
.nb-image {
  border: var(--border-thick);
  border-radius: var(--radius-img);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
  background: var(--color-accent);
}

.nb-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === PAPER TEAR DIVIDER === */
.paper-tear-wrapper {
  position: relative;
  width: 100%;
  background: inherit;
  z-index: 5;
  margin-top: -1px;
}

.paper-tear {
  position: relative;
  width: 100%;
  height: 48px;
  overflow: visible;
}

.paper-tear svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tape-sticker {
  position: absolute;
  top: 6px;
  left: 20%;
  width: 90px;
  height: 32px;
  background: var(--color-gold-soft);
  border: 2px solid var(--ink);
  transform: rotate(-4deg);
  box-shadow: 2px 2px 0 var(--ink);
  z-index: 10;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-primary-dark);
}

.tape-sticker.right {
  left: auto;
  right: 18%;
  transform: rotate(3deg);
}

/* === HIGHLIGHT MARKER (scroll-triggered) === */
.highlight {
  position: relative;
  display: inline;
  background-image: linear-gradient(var(--color-gold-soft), var(--color-gold-soft));
  background-repeat: no-repeat;
  background-size: 0% 60%;
  background-position: 0 85%;
  transition: background-size 0.6s ease-in-out, color 0.3s ease;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.highlight.in-view {
  background-size: 100% 60%;
  color: var(--color-text-dark);
}

.highlight-purple {
  background-image: linear-gradient(var(--color-gold), var(--color-gold));
  color: var(--color-text-dark) !important;
}

/* === FLOATING ENQUIRY STICKER === */
.float-enquiry {
  position: fixed;
  top: auto;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--color-gold);
  color: var(--color-text-dark);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border: var(--border-thick);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transform: rotate(-2deg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.float-enquiry:hover {
  transform: rotate(0deg) translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

body.drawer-open .float-enquiry,
.nav-drawer.open ~ .float-enquiry,
.drawer-overlay.open ~ .float-enquiry {
  display: none !important;
}

@media (max-width: 640px) {
  .float-enquiry {
    top: auto;
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 13px;
    box-shadow: var(--shadow-sm);
  }
}

/* === WHY CHOOSE US GRID & CARDS === */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-choose-card {
  position: relative;
  overflow: hidden;
  padding: 36px 24px 28px;
  text-align: center;
  background: var(--color-white);
  border: var(--border-thick);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 4px Gold Top Accent Bar */
.why-choose-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-gold);
}

.why-choose-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
}

/* 64x64 Icon Box Container */
.why-choose-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background-color: var(--color-accent);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--color-primary);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.why-choose-icon-box svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-primary);
  fill: none;
  transition: stroke 0.25s ease;
}

/* Hover Invert Treatment */
.why-choose-card:hover .why-choose-icon-box {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.why-choose-card:hover .why-choose-icon-box svg {
  stroke: var(--color-white);
}

.why-choose-card .text-h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.why-choose-card .text-caption {
  font-size: 14px;
  color: var(--color-text-mid);
  line-height: 1.5;
  font-weight: 500;
}

@media (max-width: 992px) {
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .why-choose-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* === SITE FOOTER & FOOTER GRID === */
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 48px;
  text-align: left;
  margin-top: 0;
}

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

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* === CONTACT INFO CARD & FORM CARD RESPONSIVE FIXES === */
.contact-info-card {
  background-color: var(--color-primary-dark) !important;
  color: var(--color-white) !important;
  padding: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-form-card {
  background-color: var(--color-white);
  padding: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-info-card * {
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-phone-number {
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 640px) {
  .contact-info-card, .contact-form-card {
    padding: 24px 16px !important;
  }

  .contact-phone-number {
    font-size: 24px !important;
    line-height: 32px !important;
  }
}

/* === FOUNDER PHOTO CARD RESPONSIVE FIXES === */
.founder-image-frame {
  height: 560px;
  width: 100%;
  max-width: 100%;
  transform: rotate(-2deg);
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .founder-image-frame {
    height: 380px !important;
    transform: none !important;
    max-width: calc(100% - 6px) !important;
  }
  
  .hero-image-wrapper, .nb-image {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

.site-footer, footer {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  border-top: 4px solid var(--color-gold);
  padding-top: 64px;
  padding-bottom: 48px;
}

@media (max-width: 640px) {
  .site-footer, footer {
    padding-top: 48px !important;
    padding-bottom: 88px !important; /* Extra bottom padding so floating enquiry button never covers content */
  }
}

/* === MAP EMBED FRAME === */
.map-embed-frame {
  height: 450px;
  width: 100%;
  overflow: hidden;
  border: var(--border-thick);
  border-radius: var(--radius-img);
  box-shadow: var(--shadow-lg);
}

.map-embed-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 640px) {
  .map-embed-frame {
    height: 320px;
  }
}

/* === FORM INPUTS (Brutalist Hard Focus) === */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-dark);
  font-family: 'Sora', sans-serif;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--color-white);
  border: var(--border-thick);
  border-radius: 12px;
  font-size: 15px;
  color: var(--color-text-dark);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-sm);
}

.form-control::placeholder {
  color: var(--color-text-light);
}

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

/* Dark Section Form Controls */
.bg-dark .form-label {
  color: var(--color-white);
}

/* === TOAST FEEDBACK === */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
}

.toast {
  background: var(--color-gold);
  color: var(--color-text-dark);
  border: var(--border-thick);
  border-radius: 12px;
  padding: 16px 24px;
  box-shadow: var(--shadow-md);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(-100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* === STAR RATING === */
.stars-row {
  display: flex;
  gap: 4px;
  color: var(--color-gold);
  font-size: 20px;
}
