/* Cottage Garden School — style.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brown:      #5c3d2e;
  --yellow:     #ffd60a;
  --terracotta: #e07a5f;
  --parchment:  #f5e6c8;
  --olive:      #6b7c3f;
  --dark-brown: #3e2618;
  --light-parch:#fdf3e0;
  --text-dark:  #2e1a0e;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--light-parch);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--brown);
  line-height: 1.3;
}

a { color: var(--terracotta); text-decoration: none; }
a:hover { color: var(--brown); }

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

/* ── NAVIGATION ── */
.nav {
  background: var(--brown);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-logo {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--parchment);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--parchment);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

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

/* ── WOODEN DIVIDER ── */
.wood-divider {
  height: 14px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 18px,
      rgba(255,255,255,0.07) 18px,
      rgba(255,255,255,0.07) 20px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(0,0,0,0.10) 0px,
      rgba(0,0,0,0.10) 2px,
      transparent 2px,
      transparent 6px
    ),
    var(--brown);
  border-top: 2px solid var(--dark-brown);
  border-bottom: 2px solid var(--dark-brown);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?w=1600&q=80');
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(0.8);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(92,61,46,0.72) 0%, rgba(245,230,200,0.18) 100%);
}

.hero-terracotta-stripe {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--terracotta);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  width: 100%;
  flex-wrap: wrap;
}

.hero-text { flex: 1; min-width: 280px; }

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--parchment);
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
  font-family: Georgia, serif;
}

.hero-text p {
  color: var(--parchment);
  font-size: 1.1rem;
  opacity: 0.93;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ── FORM CARD ── */
.form-card {
  background: var(--brown);
  border: 3px solid var(--yellow);
  border-radius: 12px;
  padding: 2rem;
  width: 340px;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.form-card h2 {
  color: var(--parchment);
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
  text-align: center;
  font-family: Georgia, serif;
}

.form-group { margin-bottom: 0.9rem; }

.form-group label {
  display: block;
  color: var(--parchment);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.form-group input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--parchment);
  border-radius: 8px;
  background: var(--parchment);
  color: var(--text-dark);
  font-size: 0.95rem;
  font-family: system-ui, sans-serif;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--yellow);
}

.btn-primary {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 0.5rem;
  transition: background 0.2s, transform 0.15s;
  font-family: Georgia, serif;
  letter-spacing: 0.02em;
}

.btn-primary:hover { background: #c95f44; transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  background: var(--yellow);
  color: var(--brown);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: Georgia, serif;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.btn-secondary:hover { background: #e6c000; transform: translateY(-1px); color: var(--brown); }

#form-success {
  display: none;
  color: var(--yellow);
  text-align: center;
  margin-top: 0.8rem;
  font-weight: 600;
  font-family: Georgia, serif;
}

/* ── STATS ── */
.stats { background: var(--parchment); padding: 3rem 2rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-card {
  background: var(--terracotta);
  color: #fff;
  border-radius: 12px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(224,122,95,0.3);
}

.stat-card .stat-num {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  display: block;
  margin-bottom: 0.3rem;
}

.stat-card .stat-label {
  font-size: 0.95rem;
  opacity: 0.95;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── SECTION COMMON ── */
.section { padding: 4rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--brown);
}
.section-subtitle {
  text-align: center;
  color: #7a5c45;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ── MODULE CARDS ── */
.modules-bg { background: var(--light-parch); }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.module-card {
  background: var(--parchment);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  box-shadow: 0 3px 12px rgba(92,61,46,0.1);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.module-card:hover {
  border-color: var(--olive);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(92,61,46,0.18);
}

.module-card-top {
  background: var(--terracotta);
  height: 8px;
}

.module-card-body { padding: 1.5rem; }

.module-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.module-card-body h3 {
  font-size: 1.15rem;
  color: var(--brown);
  margin-bottom: 0.7rem;
  font-family: Georgia, serif;
}

.module-card-body p { font-size: 0.92rem; color: #5a3e2e; line-height: 1.6; }

/* ── PHOTO GALLERY ── */
.gallery-bg { background: var(--parchment); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--terracotta), 0 6px 20px rgba(92,61,46,0.18);
  aspect-ratio: 4/3;
}

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

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

/* ── PRICING ── */
.pricing-bg { background: var(--light-parch); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  max-width: 1050px;
  margin: 0 auto;
}

.price-card {
  background: var(--parchment);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #d5c4a0;
  box-shadow: 0 4px 16px rgba(92,61,46,0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.price-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(92,61,46,0.18); }

.price-card.featured {
  border-color: var(--terracotta);
  box-shadow: 0 6px 24px rgba(224,122,95,0.25);
}

.price-card-header {
  background: var(--brown);
  color: var(--parchment);
  padding: 1.5rem;
  text-align: center;
}

.price-card.featured .price-card-header { background: var(--terracotta); }

.price-tier {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-tag {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--yellow);
  margin: 0.5rem 0 0.2rem;
}

.price-sub { font-size: 0.85rem; opacity: 0.85; }

.price-card-body { padding: 1.5rem; flex: 1; }

.price-features { list-style: none; }

.price-features li {
  padding: 0.45rem 0;
  border-bottom: 1px dashed #c9b896;
  font-size: 0.93rem;
  color: var(--text-dark);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.price-features li:last-child { border-bottom: none; }

.price-features li::before {
  content: "✦";
  color: var(--terracotta);
  font-size: 0.7rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.price-card-footer { padding: 1.2rem 1.5rem 1.5rem; }
.price-card-footer .btn-primary { margin-top: 0; }

/* ── CTA ── */
.cta-section {
  background: linear-gradient(135deg, var(--brown) 0%, var(--dark-brown) 100%);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,214,10,0.03) 0px, rgba(255,214,10,0.03) 2px,
    transparent 2px, transparent 12px
  );
}

.cta-section h2 {
  color: var(--parchment);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
  position: relative;
}

.cta-section p {
  color: rgba(245,230,200,0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  position: relative;
}

.cta-section .btn-secondary { position: relative; font-size: 1.05rem; padding: 0.9rem 2.5rem; }

/* ── FOOTER ── */
footer {
  background: var(--dark-brown);
  color: var(--parchment);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .footer-logo {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  color: var(--parchment);
  margin-bottom: 0.8rem;
}

.footer-brand p { font-size: 0.88rem; opacity: 0.75; line-height: 1.7; }

.footer-col h4 {
  font-family: Georgia, serif;
  color: var(--yellow);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(245,230,200,0.78); font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid rgba(245,230,200,0.15);
  padding-top: 1.2rem;
  font-size: 0.82rem;
  opacity: 0.65;
  line-height: 1.8;
}

.disclaimer {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(245,230,200,0.15);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(245,230,200,0.6);
  font-style: italic;
}

/* ── COOKIE BANNER ── */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brown);
  border-top: 3px solid var(--parchment);
  color: var(--parchment);
  padding: 1rem 2rem;
  z-index: 9999;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

#cookie-banner p { font-size: 0.9rem; flex: 1; min-width: 200px; }
#cookie-banner p a { color: var(--yellow); }

.cookie-btn {
  background: var(--yellow);
  color: var(--brown);
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: Georgia, serif;
  white-space: nowrap;
  transition: background 0.2s;
}

.cookie-btn:hover { background: #e6c000; }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 22px;
  z-index: 9000;
  background: #25d366;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 22px rgba(0,0,0,0.35); }

.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ── INNER PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--brown) 0%, #7a4a30 100%);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
}

.page-hero h1 { color: var(--parchment); font-size: clamp(1.8rem, 3vw, 2.8rem); }
.page-hero p { color: rgba(245,230,200,0.85); margin-top: 0.7rem; font-size: 1.05rem; }

/* ── CONTENT PAGE ── */
.content-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.content-section h2 {
  font-size: 1.5rem;
  color: var(--brown);
  margin: 2rem 0 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--terracotta);
}

.content-section h2:first-child { margin-top: 0; }

.content-section p { margin-bottom: 1rem; color: #3e2618; }
.content-section ul { margin: 0.5rem 0 1rem 1.5rem; }
.content-section ul li { margin-bottom: 0.4rem; color: #3e2618; }

/* ── CONTACT PAGE ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.company-card {
  background: var(--parchment);
  border-radius: 12px;
  border: 2px solid #d5c4a0;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(92,61,46,0.1);
}

.company-card h3 {
  font-family: Georgia, serif;
  color: var(--brown);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  border-bottom: 2px solid var(--terracotta);
  padding-bottom: 0.5rem;
}

.company-card p { margin-bottom: 0.6rem; font-size: 0.95rem; color: var(--text-dark); }
.company-card strong { color: var(--brown); }

.contact-form-card {
  background: var(--parchment);
  border-radius: 12px;
  border: 2px solid #d5c4a0;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(92,61,46,0.1);
}

.contact-form-card h3 {
  font-family: Georgia, serif;
  color: var(--brown);
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}

.contact-form-card .form-group label { color: var(--brown); }
.contact-form-card .form-group input,
.contact-form-card .form-group textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid #c9b896;
  border-radius: 8px;
  background: #fff;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-family: system-ui, sans-serif;
  transition: border-color 0.2s;
}

.contact-form-card .form-group textarea { resize: vertical; min-height: 100px; }
.contact-form-card .form-group input:focus,
.contact-form-card .form-group textarea:focus { outline: none; border-color: var(--terracotta); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .hero-content { flex-direction: column; padding: 3rem 1.2rem; }
  .form-card { width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  #cookie-banner { flex-direction: column; }
}

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