/* ===================================
   Silver Side School — Styles
   Colours derived from school logo
   =================================== */

:root {
  --blue: #2568B2;
  --blue-dark: #1A4F8C;
  --blue-light: #E8F0FA;
  --teal: #1F4E5F;
  --red: #D42027;
  --orange: #E8922A;
  --green: #1D8B3C;
  --purple: #4B2D6E;
  --bg: #FAF8F5;
  --bg-white: #FFFFFF;
  --text: #2D2D2D;
  --text-light: #5A6370;
  --border: #E2E6EA;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Nunito', sans-serif;
  line-height: 1.3;
}

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

a:hover {
  color: var(--blue-dark);
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: all var(--transition);
  padding: 16px 0;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 8px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: white;
  transition: color var(--transition);
}

.navbar.scrolled .nav-logo {
  color: var(--teal);
}

.nav-logo img {
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.navbar.scrolled .nav-links a {
  color: var(--text);
}

.nav-links a:hover {
  color: var(--orange);
}

.nav-cta {
  background: var(--blue) !important;
  color: white !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700 !important;
  transition: all var(--transition) !important;
}

.nav-cta:hover {
  background: var(--blue-dark) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--text);
}

/* ===================================
   Hero
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 50%, var(--blue-dark) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 50%, rgba(212,32,39,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(232,146,42,0.1) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(29,139,60,0.1) 0%, transparent 50%),
    radial-gradient(circle at 30% 80%, rgba(75,45,110,0.1) 0%, transparent 50%);
  animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 20px 80px;
}

.hero-logo {
  border-radius: 50%;
  margin-bottom: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero-motto {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 4px;
}

.hero-slogan {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: rgba(255,255,255,0.75);
  font-style: italic;
  margin-bottom: 4px;
}

.hero-location {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.limited-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 10px 24px;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background: #d4800f;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,146,42,0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: white;
  border-color: white;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1.05rem;
}

/* ===================================
   Sections (shared)
   =================================== */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--teal);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ===================================
   About
   =================================== */
.about {
  background: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text .lead {
  font-size: 1.15rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 16px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-light);
}

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.value-tag {
  background: var(--blue-light);
  color: var(--blue);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.about-image-placeholder {
  background: linear-gradient(135deg, var(--blue-light), #f0e8fa);
  border-radius: var(--radius);
  padding: 60px;
  text-align: center;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.placeholder-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.6;
}

.about-image-placeholder p {
  color: var(--text-light);
  font-style: italic;
}

/* ===================================
   Values Banner
   =================================== */
.values-banner {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.values-image {
  position: absolute;
  inset: 0;
}

.values-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.values-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31,78,95,0.85) 0%, rgba(37,104,178,0.8) 100%);
}

.values-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 20px;
  max-width: 750px;
  margin: 0 auto;
}

.values-content h2 {
  color: white;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 20px;
}

.values-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ===================================
   Features
   =================================== */
.features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  transition: all var(--transition);
}

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

.feature-red { border-top-color: var(--red); }
.feature-orange { border-top-color: var(--orange); }
.feature-green { border-top-color: var(--green); }
.feature-purple { border-top-color: var(--purple); }

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 36px;
  height: 36px;
}

.feature-red .feature-icon {
  background: rgba(212, 32, 39, 0.1);
  color: var(--red);
}

.feature-orange .feature-icon {
  background: rgba(232, 146, 42, 0.1);
  color: var(--orange);
}

.feature-green .feature-icon {
  background: rgba(29, 139, 60, 0.1);
  color: var(--green);
}

.feature-purple .feature-icon {
  background: rgba(75, 45, 110, 0.1);
  color: var(--purple);
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--teal);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===================================
   Fees
   =================================== */
.fees {
  background: var(--bg-white);
}

.fees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.fee-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.fee-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.fee-card-featured {
  border-color: var(--blue);
  background: linear-gradient(180deg, var(--blue-light) 0%, white 40%);
}

.fee-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fee-level {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 16px;
}

.fee-amount {
  font-family: 'Nunito', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}

.fee-period {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.fee-desc {
  color: var(--text-light);
  font-size: 0.9rem;
}

.fees-extras {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 40px;
}

.fees-extras h3 {
  font-size: 1.2rem;
  color: var(--teal);
  margin-bottom: 20px;
  text-align: center;
}

.extras-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.extra-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.extra-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.extra-item strong {
  display: block;
  color: var(--teal);
  font-size: 0.95rem;
}

.extra-price {
  color: var(--blue);
  font-weight: 700;
  font-size: 1.1rem;
}

.extra-price small {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.8rem;
}

.fees-cta {
  text-align: center;
}

.fees-cta p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

/* ===================================
   Gallery
   =================================== */
.gallery {
  background: var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-placeholder {
  background: white;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--text-light);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gallery-placeholder span {
  font-size: 2rem;
}

.gallery-placeholder p {
  font-size: 0.85rem;
  font-style: italic;
}

/* Gallery with actual images */
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 24px 16px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* About photo */
.about-photo {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ===================================
   Contact
   =================================== */
.contact {
  background: var(--bg-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: var(--bg);
  padding: 36px;
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 20px;
}

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

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--teal);
}

.required {
  color: var(--red);
}

.hidden-field {
  display: none;
}

input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: white;
  color: var(--text);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
}

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

.contact-card {
  background: linear-gradient(135deg, var(--teal), var(--blue-dark));
  color: white;
  padding: 36px;
  border-radius: var(--radius);
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  opacity: 0.9;
}

.contact-detail strong {
  display: block;
  font-size: 0.85rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.contact-detail p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-detail a {
  color: white;
}

.contact-detail a:hover {
  color: var(--orange);
}

.contact-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.btn-whatsapp, .btn-facebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition);
  color: white;
}

.btn-whatsapp {
  background: #25D366;
}

.btn-whatsapp:hover {
  background: #1fb855;
  color: white;
  transform: translateY(-2px);
}

.btn-facebook {
  background: #1877F2;
}

.btn-facebook:hover {
  background: #0d65d9;
  color: white;
  transform: translateY(-2px);
}

/* ===================================
   Map
   =================================== */
.map-container {
  margin-top: 48px;
}

.map-title {
  font-size: 1.3rem;
  color: var(--teal);
  text-align: center;
  margin-bottom: 20px;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-embed iframe {
  display: block;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--teal);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-brand img {
  border-radius: 50%;
  margin-bottom: 12px;
}

.footer-brand strong {
  color: white;
  font-size: 1.1rem;
}

.footer-motto {
  font-style: italic;
  opacity: 0.7;
  margin-top: 4px;
}

.footer-slogan {
  opacity: 0.6;
  font-size: 0.85rem;
  font-style: italic;
}

.footer-location {
  opacity: 0.6;
  font-size: 0.9rem;
}

.footer h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: color var(--transition);
}

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

.footer-contact p {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.footer-contact a {
  color: rgba(255,255,255,0.8);
}

.footer-contact a:hover {
  color: var(--orange);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

.footer-social a:hover {
  color: var(--orange);
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer-domain {
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* ===================================
   Floating WhatsApp
   =================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: all var(--transition);
  animation: whatsappBounce 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  background: #1fb855;
  color: white;
  transform: scale(1.1);
  animation: none;
}

@keyframes whatsappBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===================================
   Scroll Reveal Animations
   =================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===================================
   Mobile Responsive
   =================================== */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    color: var(--text) !important;
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }

  .nav-links a:hover {
    background: var(--blue-light);
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero-content {
    padding: 100px 16px 60px;
  }

  .hero-logo {
    width: 120px !important;
    height: 120px !important;
  }

  .section {
    padding: 60px 0;
  }

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

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

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

  .contact-form {
    padding: 24px;
  }

  .contact-card {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .fee-amount {
    font-size: 2.2rem;
  }

  .limited-badge {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
}
