/* =====================================================
   WIZARD WASHING — styles.css
   Colors: #1E4E9E (Primary Blue) | #49C5EF (Magic Cyan) | #FDB813 (Gold)
   Fonts: Fredoka One (headings) | Nunito (body)
===================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  overflow-y: visible !important;
}

body {
  font-family: 'Nunito', sans-serif;
  color: #1A2B4A;
  background: #fff;
  overflow: visible !important;
}

h1, h2, h3, h4 {
  font-family: 'Fredoka One', cursive;
  line-height: 1.2;
}

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

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

/* ─── UTILITY ─── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gold { color: #FDB813; }

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.btn--gold {
  background: #FDB813;
  color: #1A2B4A;
  box-shadow: 0 6px 20px rgba(253, 184, 19, 0.45);
}

.btn--gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(253, 184, 19, 0.55);
}

.btn--full { width: 100%; }

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 0.5rem;
  color: #1E4E9E;
}

.section-title.light { color: #fff; }

.section-sub {
  text-align: center;
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 3rem;
  font-weight: 600;
}

.section-sub.light { color: rgba(255,255,255,0.85); }

/* ─── WAVE DIVIDERS ─── */
/* Each section is position:relative with overflow:visible so the wave pseudo can
   bleed out. We use an <div class="wave-divider"> at the bottom of each section. */

.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 140px; /* tall enough to surround wizard feet naturally */
  mask-image: url('brand_assets/Waves.png');
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  pointer-events: none;
  z-index: 6; /* above hero bg, but below wizard (z-index 10) */
}

/* Color variants — each matches the NEXT section's background */
.wave-divider--white  { background-color: #ffffff; }
.wave-divider--blue   { background-color: #1E4E9E; }
.wave-divider--cyan   { background-color: #49C5EF; }
.wave-divider--light  { background-color: #EFF8FF; }

/* Flip horizontally for alternating wave direction */
.wave-divider--flip {
  transform: scaleX(-1);
  left: auto;
  right: 0;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 0.6rem 0;
}

.nav.scrolled {
  background: #1E4E9E;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  padding: 0.25rem 0;
}

.nav.scrolled .nav__logo img {
  height: 108px; /* 180px × 0.6 — 40% smaller */
}

.nav__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__logo img {
  height: 180px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
  transition: height 0.3s ease;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav__links a {
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  transition: color 0.2s;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.nav__links a:hover { color: #FDB813; }

.nav__cta {
  background: #FDB813 !important;
  color: #1A2B4A !important;
  padding: 0.65rem 1.8rem;
  border-radius: 50px;
  font-family: 'Fredoka One', cursive !important;
  font-size: 1.5rem !important;
  box-shadow: 0 4px 14px rgba(253,184,19,0.4);
  text-shadow: none !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(253,184,19,0.5) !important;
  color: #1A2B4A !important;
}

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

.nav__hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  background: linear-gradient(160deg, #1E4E9E 0%, #49C5EF 100%);
  overflow: visible !important;
  clip-path: none !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.sparkle {
  position: absolute;
  color: #FDB813;
  font-size: 1.4rem;
  opacity: 0;
  animation: float-sparkle 3s ease-in-out infinite;
}

.s1  { top: 15%; left: 8%;  animation-delay: 0s;    font-size: 1.2rem; }
.s2  { top: 30%; left: 55%; animation-delay: 0.7s;  font-size: 1.8rem; }
.s3  { top: 10%; left: 80%; animation-delay: 1.3s;  font-size: 1rem; }
.s4  { top: 60%; left: 20%; animation-delay: 0.4s;  font-size: 2rem; }
.s5  { top: 70%; left: 70%; animation-delay: 1.8s;  font-size: 1.4rem; }
.s6  { top: 45%; left: 45%; animation-delay: 2.1s;  font-size: 1rem; }
.s7  { top: 25%; left: 35%; animation-delay: 0.9s;  font-size: 1.6rem; }
.s8  { top: 80%; left: 50%; animation-delay: 1.5s;  font-size: 1.2rem; }
.s9  { top: 5%;  left: 50%; animation-delay: 2.5s;  font-size: 0.9rem; }
.s10 { top: 50%; left: 88%; animation-delay: 3.0s;  font-size: 1.8rem; }
.s11 { top: 85%; left: 28%; animation-delay: 0.3s;  font-size: 1.0rem; }
.s12 { top: 20%; left: 65%; animation-delay: 1.1s;  font-size: 2.2rem; }
.s13 { top: 65%; left: 5%;  animation-delay: 2.8s;  font-size: 1.5rem; }
.s14 { top: 40%; left: 93%; animation-delay: 1.6s;  font-size: 1.3rem; }

@keyframes float-sparkle {
  0%, 100% { opacity: 0; transform: translateY(0)   scale(0); }
  40%       { opacity: 1; transform: translateY(-18px) scale(1); }
  70%       { opacity: 0.7; transform: translateY(-28px) scale(0.8); }
}


/* Hero text column — centered (above decorative images) */
.hero__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9rem 2rem 5rem;
  position: relative;
  z-index: 4;
  text-align: center;
}

.hero__text {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.hero__text h1 {
  font-size: clamp(2.5rem, 3.5vw, 4rem);
  color: #fff;
  margin-bottom: 1.2rem;
  line-height: 1.1;
  text-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

.hero__text p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  font-weight: 600;
}

@keyframes wizard-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ─── SERVICES ─── */
.services {
  position: relative;
  background: #ffffff;
  margin-top: -2px;    /* prevent any sub-pixel gap at the wave join */
  padding-top: 180px;  /* clears the 160px services::before wave + 20px breathing room */
  padding-bottom: 5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  overflow: visible !important;
}

/* Wave-shaped top edge — paints the hero gradient in a wave curve at the services boundary */
.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
  /* Same gradient as hero so the wave shape blends seamlessly into the blue above */
  background: linear-gradient(135deg, #1E4E9E 0%, #49C5EF 100%);
  /* Waves.png acts as mask: opaque (wave shape) = blue visible; transparent = white shows through */
  mask-image: url('brand_assets/Waves.png');
  -webkit-mask-image: url('brand_assets/Waves.png');
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid #FDB813;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  color: #1E4E9E;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.65;
}

/* ─── ABOUT ─── */
.about {
  position: relative;
  background: #1E4E9E;
  padding: 5rem 1.5rem 5rem;
}

.about__inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about__text {
  flex: 1;
}

.about__text p {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.about__logo {
  flex: 0 0 240px;
  text-align: center;
}

.about__logo img {
  width: 100%;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
  animation: wizard-float 5s ease-in-out infinite;
}

/* ─── QUOTE SECTION ─── */
.quote-section {
  position: relative;
  background: #EFF8FF;
  padding: 5rem 1.5rem 5rem;
}

.quote-form-container {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 3rem 2.5rem;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.form__row { display: flex; gap: 1.25rem; }
.form__row--two > .form__group { flex: 1; }

.form__group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form__group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1A2B4A;
  margin-bottom: 0.4rem;
}

.required { color: #e53e3e; }
.optional  { color: #718096; font-weight: 400; font-size: 0.82rem; }

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: #1A2B4A;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  appearance: none;
}

.form__group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231A2B4A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: #49C5EF;
  box-shadow: 0 0 0 3px rgba(73, 197, 239, 0.2);
}

.form__group input.error,
.form__group select.error,
.form__group textarea.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.form__group textarea { resize: vertical; min-height: 110px; }

/* Success state */
.form__success {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
  position: relative;
}

.form__success.visible { display: block; }

.form__success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce-in 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes bounce-in {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.form__success h3 {
  font-size: 1.8rem;
  color: #1E4E9E;
  margin-bottom: 0.75rem;
}

.form__success p {
  color: #4a5568;
  font-size: 1.05rem;
}

/* Sparkle burst on success */
.form__success-sparkles {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  pointer-events: none;
}

.burst {
  position: absolute;
  color: #FDB813;
  font-size: 1.4rem;
  opacity: 0;
  top: 50%; left: 50%;
}

.form__success.visible .burst {
  animation: sparkle-burst 0.8s ease-out forwards;
}

.burst.b1 { animation-delay: 0s;    --dx: -60px; --dy: -50px; }
.burst.b2 { animation-delay: 0.05s; --dx:  60px; --dy: -50px; }
.burst.b3 { animation-delay: 0.1s;  --dx: -80px; --dy:  10px; }
.burst.b4 { animation-delay: 0.15s; --dx:  80px; --dy:  10px; }
.burst.b5 { animation-delay: 0.2s;  --dx: -40px; --dy:  60px; }
.burst.b6 { animation-delay: 0.25s; --dx:  40px; --dy:  60px; }

@keyframes sparkle-burst {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(0); }
  60%  { opacity: 1; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx) * 1.4), calc(-50% + var(--dy) * 1.4)) scale(0.6); }
}

/* ─── REVIEWS ─── */
.reviews {
  position: relative;
  background: #49C5EF;
  padding: 5rem 1.5rem 5rem;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.review-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.3s ease;
}

.review-card:hover { transform: translateY(-6px); }

.review-card__stars {
  color: #FDB813;
  font-size: 1.3rem;
  letter-spacing: 2px;
}

.review-card__quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #1A2B4A;
  font-style: italic;
  flex: 1;
}

.review-card__name {
  font-weight: 700;
  color: #1E4E9E;
  font-size: 0.9rem;
}

/* ─── FAQ ─── */
.faq {
  position: relative;
  background: #ffffff;
  padding: 5rem 1.5rem 5rem;
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq__item {
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq__item.open { border-color: #49C5EF; }

.faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #1A2B4A;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: background 0.2s;
}

.faq__question:hover { background: #EFF8FF; }
.faq__item.open .faq__question { background: #EFF8FF; color: #1E4E9E; }

.faq__chevron {
  font-size: 0.75rem;
  color: #49C5EF;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq__item.open .faq__chevron { transform: rotate(180deg); }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq__item.open .faq__answer { max-height: 300px; }

.faq__answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.7;
}

.faq__answer a {
  color: #1E4E9E;
  font-weight: 700;
  text-decoration: underline;
}

/* ─── FOOTER ─── */
.footer {
  background: #1E4E9E;
  padding: 4rem 1.5rem 2rem;
  color: #fff;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer__logo {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  margin-bottom: 1rem;
}

.footer__tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

.footer__links h4,
.footer__contact h4 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: #FDB813;
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.footer__links a:hover { color: #FDB813; }

.footer__contact p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.5rem;
}

.footer__contact a {
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}

.footer__contact a:hover { color: #FDB813; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .reviews__grid  { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .about__inner   { flex-direction: column; text-align: center; }
  .about__logo    { flex: 0 0 180px; }
  .footer__inner  { grid-template-columns: 1fr 1fr; }
}

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

  .nav__links {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 80vw);
    height: 100vh;
    background: #1E4E9E;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    z-index: 200;
  }

  .nav__links.open { right: 0; }
  .nav__links a { font-size: 1.2rem; }

  .hero {
    min-height: 100vh;
    padding-top: 6rem; /* clear the fixed nav */
  }

.hero__inner {
    padding: 3rem 1.5rem 4rem;
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__text p { margin: 0 auto 2rem; }

  .form__row--two { flex-direction: column; }

  .quote-form-container { padding: 2rem 1.25rem; }

  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__links { align-items: center; }
}

@media (max-width: 480px) {
  .hero__text h1 { font-size: 2.2rem; }
  .services__grid,
  .reviews__grid  { grid-template-columns: 1fr; }
}
