/* ============================================================
   THE SPARKLE CO. — Main Stylesheet
   Brand: Teal #086D7A / Sky #49C5E0 / Cream #FFF6DB / Dark #343434
   Fonts: Rubik (body) / Pacifico (display)
   Icons: retro stroke SVG sprite, inline in index.html
============================================================ */

:root {
  --teal:       #086D7A;
  --teal-dark:  #065a65;
  --teal-light: #e6f4f6;
  --sky:        #49C5E0;
  --sky-light:  #d0f1f8;
  --dark:       #343434;
  --cream:      #FFF6DB;
  --white:      #FFFFFF;
}

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

body {
  font-family: 'Rubik', sans-serif;
  font-weight: 300;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

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

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--teal); color: white;
  padding: 0.65rem 1.5rem; border-radius: 50px;
  font-family: 'Rubik', sans-serif; font-weight: 500;
  font-size: 0.9rem; border: none; cursor: pointer;
  text-decoration: none; transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(8,109,122,0.3);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(8,109,122,0.4);
}
.btn-full { width: 100%; justify-content: center; padding: 0.85rem; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--teal);
  padding: 0.65rem 1.5rem; border-radius: 50px;
  font-family: 'Rubik', sans-serif; font-weight: 500;
  font-size: 0.9rem; border: 2px solid var(--teal); cursor: pointer;
  text-decoration: none; transition: all 0.25s ease;
}
.btn-outline:hover {
  background: var(--teal); color: white;
  box-shadow: 0 4px 14px rgba(8,109,122,0.25);
}

/* ---- Navbar ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.3s ease; padding: 0 2rem;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(8,109,122,0.1);
  backdrop-filter: blur(10px);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-right { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-family: 'Rubik', sans-serif; font-weight: 400;
  color: var(--dark); text-decoration: none; font-size: 0.95rem;
  position: relative; transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--sky); transform: scaleX(0);
  transition: transform 0.2s; border-radius: 2px;
}
.nav-links a:hover::after { transform: scaleX(1); }

.hamburger-btn {
  background: none; border: none; cursor: pointer;
  display: none; color: var(--dark); padding: 0.25rem; align-items: center;
}
.icon-btn {
  background: none; border: none; cursor: pointer;
  color: var(--dark); padding: 0.25rem; display: flex; align-items: center;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: white; display: none; flex-direction: column; padding: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-nav-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem;
}
.mobile-nav-header img { height: 40px; width: auto; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.mobile-nav-link {
  padding: 1rem; border-radius: 12px;
  font-family: 'Rubik', sans-serif; font-weight: 500;
  font-size: 1.1rem; color: var(--dark); text-decoration: none; transition: background 0.2s;
}
.mobile-nav-link:hover { background: var(--teal-light); color: var(--teal); }
.mobile-cta { justify-content: center; margin-top: 1.5rem; }

/* ---- Hero ---- */
.hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; align-items: center; padding-top: 72px;
}
.hero-fallback {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #e6f7f9 0%, #f0fafb 45%, #f5f0e4 100%);
}
.hero-bg-circle {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(73,197,224,0.10) 0%, transparent 70%);
  pointer-events: none; z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 5rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center; width: 100%;
}
.hero-text-col { display: flex; flex-direction: column; }
.hero-logo-col {
  display: flex; align-items: center; justify-content: center;
}
.hero-logo-img {
  width: 100%; max-width: 520px; height: auto;
  filter: drop-shadow(0 24px 48px rgba(8,109,122,0.15));
  animation: hero-float 5s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: white; border: 1.5px solid var(--sky-light);
  color: var(--teal); font-size: 0.82rem; font-weight: 500;
  padding: 0.35rem 0.9rem; border-radius: 50px; margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(8,109,122,0.08);
}
.hero-title {
  font-family: 'Rubik', sans-serif; font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--dark); line-height: 1.2; margin-bottom: 1.25rem;
}
.hero-accent {
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  color: var(--sky); display: block; line-height: 1.3;
  margin-bottom: 2.5rem;
}
.hero-sub {
  font-family: 'Rubik', sans-serif; font-weight: 300;
  font-size: 1.05rem; color: #555; line-height: 1.7;
  margin-bottom: 2.5rem; max-width: 480px;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Sections shared ---- */
.section { padding: 6rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header-center { text-align: center; max-width: 560px; margin: 0 auto; }
.section-tag {
  font-family: 'Pacifico', cursive; color: var(--sky);
  font-size: 1rem; margin-bottom: 0.5rem; display: block;
}
.section-title {
  font-family: 'Rubik', sans-serif; font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--dark); line-height: 1.25; margin-bottom: 1rem;
}
.section-body {
  font-family: 'Rubik', sans-serif; font-weight: 300;
  font-size: 1rem; color: #666; line-height: 1.75;
}

/* ---- About ---- */
.about-section { background: white; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-image-block { position: relative; padding-bottom: 1.5rem; }
.about-img-main {
  width: 100%; border-radius: 24px; aspect-ratio: 4/3; object-fit: cover;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--sky-light) 100%);
}
.about-badge {
  position: absolute; bottom: 0; right: -1.5rem;
  background: var(--teal); color: white;
  border-radius: 16px; padding: 1rem 1.25rem;
  box-shadow: 0 8px 24px rgba(8,109,122,0.3); text-align: center;
}
.about-badge-num { font-family: 'Rubik', sans-serif; font-weight: 500; font-size: 1.8rem; line-height: 1; }
.about-badge-label { font-size: 0.72rem; opacity: 0.85; margin-top: 0.2rem; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2.5rem 0; }
.about-stat {
  text-align: center; padding: 1.25rem;
  background: var(--teal-light); border-radius: 16px;
}
.about-stat-icon { display: flex; align-items: center; justify-content: center; color: var(--teal); margin-bottom: 0.4rem; }
.about-stat-val { font-family: 'Pacifico', cursive; color: var(--teal); font-size: 1.3rem; }
.about-stat-lbl { font-size: 0.78rem; color: #777; margin-top: 0.25rem; font-weight: 400; }

/* ---- Why Choose Us ---- */
.why-section { background: var(--cream); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.why-card {
  background: white; border-radius: 20px; padding: 2rem;
  border: 1px solid rgba(8,109,122,0.08);
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.why-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--sky));
  transform: scaleX(0); transition: transform 0.3s ease; transform-origin: left;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(8,109,122,0.12); }
.why-card:hover::after { transform: scaleX(1); }
.why-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.why-title { font-family: 'Rubik', sans-serif; font-weight: 500; font-size: 1.05rem; color: var(--dark); margin-bottom: 0.5rem; }
.why-desc { font-size: 0.9rem; color: #777; line-height: 1.6; font-weight: 300; }

/* ---- Services ---- */
.services-section { background: white; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.service-card {
  border-radius: 20px; overflow: hidden; position: relative;
  aspect-ratio: 4/3; cursor: pointer; transition: transform 0.3s ease;
  display: flex; align-items: flex-end;
  background: linear-gradient(135deg, var(--teal-light), var(--sky-light));
}
.service-card:hover { transform: scale(1.02); }
.service-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.service-card-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); opacity: 0.22;
}
.service-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,109,122,0.85) 0%, transparent 60%);
  z-index: 1;
}
.service-card-content { position: relative; z-index: 2; padding: 1.25rem; }
.service-card-title { color: white; font-family: 'Rubik', sans-serif; font-weight: 500; font-size: 0.95rem; }

/* ---- How It Works ---- */
.how-section {
  background: linear-gradient(135deg, var(--teal) 0%, #0a8a9a 100%);
  position: relative; overflow: hidden; padding: 6rem 2rem;
}
.how-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.how-section .section-inner { position: relative; z-index: 1; }
.how-section .section-tag { color: var(--sky); }
.how-title-white { color: white !important; }
.how-body-white { color: rgba(255,255,255,0.7) !important; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3.5rem; position: relative; }
.how-connector {
  position: absolute; top: 40px; left: calc(12.5% + 28px); right: calc(12.5% + 28px);
  height: 2px; background: rgba(255,255,255,0.2); z-index: 0;
}
.how-card {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px; padding: 2rem 1.5rem; text-align: center;
  backdrop-filter: blur(10px); transition: all 0.3s ease; position: relative; z-index: 1;
}
.how-card:hover { background: rgba(255,255,255,0.18); transform: translateY(-4px); }
.how-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: white; color: var(--teal);
  font-family: 'Rubik', sans-serif; font-weight: 500; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.how-icon { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.85); margin-bottom: 0.75rem; }
.how-title { font-family: 'Rubik', sans-serif; font-weight: 500; color: white; font-size: 1rem; margin-bottom: 0.5rem; }
.how-desc { color: rgba(255,255,255,0.7); font-size: 0.85rem; line-height: 1.6; }

/* ---- CTA ---- */
.cta-banner { background: var(--cream); padding: 5rem 2rem; }
.cta-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.cta-body { margin-bottom: 2rem; }
.cta-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-info-row { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: #555; }
.contact-info-row svg { flex-shrink: 0; margin-top: 1px; }
.contact-info-row.phone span { color: var(--teal); font-weight: 500; }
.cta-form-card {
  background: white; border-radius: 24px; padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(8,109,122,0.12); border: 1px solid rgba(8,109,122,0.08);
}
.form-heading { font-family: 'Rubik', sans-serif; font-weight: 500; font-size: 1.25rem; color: var(--dark); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block; font-size: 0.8rem; font-weight: 500;
  color: var(--teal); margin-bottom: 0.35rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.form-input {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid #e8e8e8; border-radius: 10px;
  font-family: 'Rubik', sans-serif; font-size: 0.9rem;
  color: var(--dark); transition: border-color 0.2s; outline: none;
}
.form-input:focus { border-color: var(--sky); }
.form-input::placeholder { color: #bbb; }

/* ---- Footer ---- */
.footer { background: var(--dark); padding: 4rem 2rem 2rem; color: rgba(255,255,255,0.7); }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo-wrap { margin-bottom: 1rem; }
.footer-logo { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-desc { font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-social {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; cursor: pointer; border: none; text-decoration: none;
}
.footer-social:hover { background: var(--teal); color: white; }
.footer-social svg { width: 20px; height: 20px; }
.footer-social-nd { font-weight: 700; font-size: 0.65rem; color: rgba(255,255,255,0.7); }
.footer-heading { font-family: 'Rubik', sans-serif; font-weight: 500; color: white; font-size: 0.95rem; margin-bottom: 1.25rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--sky); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.footer-contact-item svg { flex-shrink: 0; margin-top: 1px; color: var(--sky); width: 20px; height: 20px; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin-bottom: 1.5rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 0.5rem; }
.footer-made { display: inline-flex; align-items: center; gap: 0.4rem; color: rgba(255,255,255,0.4); }
.footer-made svg { color: var(--sky); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .how-connector { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta-desktop, .nav-right { display: none; }
  .hamburger-btn { display: flex; }
  .hero-content { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
  .hero-logo-col { order: -1; }
  .hero-logo-img { max-width: 320px; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-badge { right: 1rem; }
  .why-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 4rem 1.5rem; }
}
@media (max-width: 480px) {
  .services-grid, .how-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
}
