/* ==========================================================================
   Lynn's Playpen Website - Modern Core Stylesheet
   Preserving original brand identity, fonts, yellow/blue palette & layout
   ========================================================================== */

:root {
  --primary-yellow: #fac51c;
  --primary-blue: #149dcc;
  --secondary-blue: #1b85ac;
  --accent-orange: #ff7f50;
  --text-dark: #232323;
  --text-muted: #656565;
  --bg-light: #f6f8fa;
  --bg-white: #ffffff;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --border-radius: 16px;
  --font-heading: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Muli', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary-blue);
  text-decoration: underline;
}

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

/* Decorative Line Backgrounds */
.line-bg-warning {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.line-bg-warning::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: -4px;
  right: -4px;
  height: 12px;
  background-color: var(--primary-yellow);
  z-index: -1;
  opacity: 0.85;
  border-radius: 4px;
}

/* Container & Grid */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 30px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 15px; }
.col-lg-6 { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }

@media (max-width: 992px) {
  .col-lg-4, .col-lg-6 { flex: 0 0 100%; max-width: 100%; }
}

@media (max-width: 768px) {
  .col-md-6 { flex: 0 0 100%; max-width: 100%; }
  .container-fluid { padding: 0 15px; }
}

.justify-content-center { justify-content: center; }
.align-center { text-align: center; }
.my-auto { margin-top: auto; margin-bottom: auto; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  padding: 12px 0;
  transition: all 0.3s ease;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo img {
  height: 65px;
  width: auto;
  transition: transform 0.2s ease;
}

.navbar-logo img:hover {
  transform: scale(1.04);
}

.navbar-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
}

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

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue);
  background-color: rgba(20, 157, 204, 0.08);
  text-decoration: none;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.mobile-nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 992px) {
  .mobile-nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .nav-menu.is-active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* Hero Section with Rich Background Images */
.hero-section {
  position: relative;
  padding-top: 140px;
  padding-bottom: 90px;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 380px;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

/* Page Specific Hero Backgrounds */
.hero-home {
  background-image: url('../assets/images/img-584-2000x1500.jpg');
}

.hero-about {
  background-image: url('../assets/images/img-560-2000x1500.jpg');
}

.hero-classes {
  background-image: url('../assets/images/img-665-1600x1200.jpg');
}

.hero-forms {
  background-image: url('../assets/images/img-675-1600x1200.jpg');
}

.hero-gallery {
  background-image: url('../assets/images/img-579-2000x1500.jpg');
}

.hero-contact {
  background-image: url('../assets/images/img-584-2000x1500.jpg');
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-title {
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  color: #ffffff;
  font-size: 1.25rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-primary {
  background-color: var(--primary-yellow);
  color: var(--text-dark);
}

.btn-primary:hover {
  background-color: #e5b214;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(250, 197, 28, 0.35);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--primary-blue);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--secondary-blue);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20, 157, 204, 0.35);
  text-decoration: none;
}

/* Section Blocks */
.section-padding {
  padding: 70px 0;
}

.section-title-wrapper {
  margin-bottom: 48px;
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Feature Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.feature-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 32px 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.feature-card .card-image {
  margin-bottom: 20px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card .card-image img {
  max-height: 120px;
  object-fit: contain;
}

.feature-card .card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.feature-card .card-text {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Modern Form Styling */
.form-container {
  background-color: var(--bg-white);
  padding: 36px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  border: 2px solid #e1e8ed;
  border-radius: 10px;
  background-color: #fafbfc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(20, 157, 204, 0.12);
}

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

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

@media (max-width: 600px) {
  .form-row-2 { grid-template-columns: 1fr; gap: 0; }
}

/* Modals for Interactive Online Forms */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.is-open .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f0f3f6;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: #e2e8f0;
}

/* Footer */
.site-footer {
  background-color: #1a1a1a;
  color: #cccccc;
  padding: 60px 0 30px;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 70px;
  margin-bottom: 16px;
}

.footer-title {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

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

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

.footer-links a {
  color: #bbbbbb;
}

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

.footer-bottom {
  border-top: 1px solid #333333;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #888888;
}
