/* ============================================
   Silver Linings Education Services
   Warm, organic aesthetic
   ============================================ */

:root {
  /* Blue & Green palette */
  --primary: #2EA3F2;
  --primary-dark: #1a8ad4;
  --primary-light: #5cb8f5;
  --sage: #6BBF7A;
  --sage-light: #8fd19b;
  --gold: #2EA3F2;
  --gold-light: #5cb8f5;
  --gold-soft: #d6edfb;
  --cream: #f0f6fb;
  --cream-dark: #e2edf5;
  --warm-white: #f7fafc;
  --dark: #1c2b3a;
  --dark-soft: #2a3d50;
  --text: #3a4a5a;
  --text-light: #6a7a8a;
  --text-warm: #4a5a6a;
  --white: #ffffff;
  --border: #d8e4ed;
  --rose: #e06050;
  --rose-soft: #fce8e6;
  --font-body: 'Nunito', Arial, sans-serif;
  --font-heading: 'Patrick Hand', cursive;
  --font-accent: 'Caveat', cursive;
  --shadow: 0 2px 16px rgba(30,60,90,0.06);
  --shadow-md: 0 4px 20px rgba(30,60,90,0.08);
  --shadow-lg: 0 8px 36px rgba(30,60,90,0.1);
  --shadow-warm: 0 4px 24px rgba(46,163,242,0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: all 0.25s ease; }
a:hover { color: var(--primary-light); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- Top Bar ---- */
.top-bar {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  padding: 9px 0;
  letter-spacing: 0.3px;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a {
  color: var(--gold-light);
  font-weight: 600;
}
.top-bar a:hover { color: var(--gold); }
.top-bar .separator { margin: 0 14px; opacity: 0.3; }

/* ---- Header ---- */
.site-header {
  background: var(--warm-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(196,169,98,0.1);
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(44,40,35,0.12);
  background: rgba(247,250,252,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  font-weight: 700;
  font-size: 20px;
}
.logo:hover { color: var(--dark); }
.logo-icon {
  font-size: 30px;
  color: var(--gold);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  color: var(--text-warm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: relative;
}
.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.main-nav a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 11px 24px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.nav-cta:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46,163,242,0.3);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  text-align: center;
  font-family: var(--font-body);
  letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,163,242,0.25);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-full { width: 100%; }

/* ---- Decorative Elements ---- */
.section-ornament {
  display: block;
  text-align: center;
  color: var(--gold);
  font-size: 28px;
  margin-bottom: 12px;
  letter-spacing: 12px;
  opacity: 0.6;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--dark) 0%, #1a3050 35%, var(--primary-dark) 70%, var(--primary) 100%);
  color: var(--white);
  padding: 110px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(46,163,242,0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(107,191,122,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 22px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub {
  font-size: 18px;
  opacity: 0.88;
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 52px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-accent);
  font-size: 44px;
  font-weight: 700;
  color: var(--gold-light);
}
.stat-label {
  font-size: 12px;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/* ---- Problem / Solution ---- */
.problem-solution {
  padding: 90px 0;
  background: var(--cream);
}
.ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.ps-problem, .ps-solution {
  padding: 44px;
  border-radius: var(--radius-lg);
}
.ps-problem {
  background: var(--white);
  border-left: 4px solid var(--rose);
  box-shadow: var(--shadow-md);
}
.ps-solution {
  background: var(--white);
  border-left: 4px solid var(--sage);
  box-shadow: var(--shadow-md);
}
.ps-problem h2, .ps-solution h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  margin-bottom: 18px;
  color: var(--dark);
}
.ps-problem p, .ps-solution p {
  margin-bottom: 14px;
}
.quote {
  font-style: italic;
  color: var(--text-light);
  border-left: 3px solid var(--gold-soft);
  padding-left: 18px;
  margin-top: 18px;
}
.pillars-list {
  padding-left: 20px;
  margin-top: 14px;
}
.pillars-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}
.pillars-list li::marker {
  color: var(--sage);
}

/* ---- Section Titles ---- */
.section-title {
  font-family: var(--font-heading);
  font-size: 42px;
  text-align: center;
  color: var(--dark);
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 17px;
  margin-bottom: 52px;
  font-weight: 300;
}

/* ---- About ---- */
.about {
  padding: 100px 0;
  background: var(--warm-white);
}
.about-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
}
.enid-photo {
  width: 280px;
  height: 350px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-text h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  color: var(--dark);
  margin-bottom: 4px;
}
.about-title {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 22px;
  font-size: 15px;
  letter-spacing: 0.3px;
}
.about-text p {
  margin-bottom: 16px;
}
.about-text blockquote {
  font-family: var(--font-accent);
  font-size: 28px;
  color: var(--primary);
  margin-top: 24px;
  padding-left: 22px;
  border-left: 3px solid var(--sage);
  line-height: 1.3;
}

/* ---- Services ---- */
.services {
  padding: 100px 0;
  background: var(--cream);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(46,163,242,0.08);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(46,163,242,0.2);
}
.service-card.featured {
  border-top: 4px solid var(--gold);
  background: linear-gradient(180deg, rgba(46,163,242,0.05) 0%, var(--white) 30%);
}
.service-badge {
  position: absolute;
  top: -1px;
  right: 28px;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 0 0 8px 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.service-icon {
  font-size: 38px;
  margin-bottom: 18px;
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 14px;
}
.service-price {
  margin-bottom: 18px;
}
.price {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-accent);
}
.original {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 8px;
}
.service-desc {
  margin-bottom: 18px;
  color: var(--text-light);
  font-size: 15px;
}
.service-card ul {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}
.service-card li {
  padding: 7px 0;
  padding-left: 24px;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
}
.service-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
  font-size: 15px;
}
.service-card .btn {
  margin-top: auto;
}

/* ---- Philosophy ---- */
.philosophy {
  padding: 100px 0;
  background: var(--warm-white);
  position: relative;
}
.phil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.phil-card {
  padding: 32px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.phil-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.phil-card:hover::before { opacity: 1; }
.phil-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.phil-card h4 {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--dark);
  margin-bottom: 12px;
}
.phil-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-light);
}
.phil-quote {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 40px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
}
.phil-quote::before {
  content: '\201C';
  font-family: var(--font-accent);
  font-size: 120px;
  color: var(--gold-soft);
  position: absolute;
  top: -10px;
  left: 30px;
  line-height: 1;
}
.phil-quote blockquote {
  font-family: var(--font-accent);
  font-size: 24px;
  color: var(--dark-soft);
  font-style: italic;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ---- Results ---- */
.results {
  padding: 100px 0;
  background: linear-gradient(160deg, #e8f4f0 0%, #eaf4fb 50%, #e6f7ec 100%);
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.results::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(107,191,122,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(46,163,242,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.results .container { position: relative; z-index: 1; }
.results .section-title { color: var(--dark); }
.results .section-subtitle { color: var(--text-light); }
.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 52px;
}
.result-card {
  text-align: center;
  padding: 36px 22px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}
.result-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(46,163,242,0.2);
}
.result-metric {
  font-family: var(--font-accent);
  font-size: 54px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}
.result-card:nth-child(even) .result-metric {
  color: var(--sage);
}
.result-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-light);
}
.results-research {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.results-research h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 18px;
  color: var(--primary);
}
.results-research ul { list-style: none; }
.results-research li {
  padding: 10px 0;
  padding-left: 22px;
  position: relative;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.results-research li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  background: var(--sage);
  border-radius: 50%;
}

/* ---- Testimonials ---- */
.testimonials {
  padding: 100px 0;
  background: var(--warm-white);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--cream);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-warm);
  transform: translateY(-3px);
}
.stars {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 3px;
  margin-bottom: 18px;
}
.testimonial-card blockquote {
  font-family: var(--font-accent);
  font-size: 20px;
  line-height: 1.7;
  color: var(--dark-soft);
  font-style: italic;
  margin-bottom: 18px;
}
.testimonial-card cite {
  color: var(--primary);
  font-weight: 600;
  font-style: normal;
  font-size: 14px;
}

/* ---- Community ---- */
.community {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.community::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.community-inner { position: relative; z-index: 1; }
.community h2 {
  font-family: var(--font-heading);
  font-size: 38px;
  margin-bottom: 14px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.community p {
  max-width: 580px;
  margin: 0 auto 28px;
  opacity: 0.92;
  line-height: 1.75;
}
.community .btn-primary {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.community .btn-primary:hover {
  background: var(--cream);
  border-color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* ---- Contact ---- */
.contact {
  padding: 100px 0;
  background: var(--cream);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 52px;
}
.contact-info {
  padding-top: 8px;
}
.contact-item {
  margin-bottom: 28px;
  padding-left: 0;
}
.contact-item h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 6px;
}
.contact-item a,
.contact-item p {
  color: var(--text);
  font-size: 15px;
}
.contact-item a:hover { color: var(--primary); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--cream);
  transition: all 0.25s ease;
  color: var(--dark);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(107,191,122,0.15);
}
.contact-form textarea { resize: vertical; }

/* ---- Footer ---- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand .logo-icon {
  font-size: 24px;
  margin-right: 8px;
  color: var(--gold);
}
.footer-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
.footer-brand p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
}
.site-footer h4 {
  color: var(--gold-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  font-family: var(--font-body);
}
.footer-links a,
.footer-services a,
.footer-resources a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  padding: 5px 0;
  transition: all 0.25s ease;
}
.footer-links a:hover,
.footer-services a:hover,
.footer-resources a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero h1 { font-size: 42px; }
  .ps-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .top-bar-hours { display: none; }

  .mobile-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--warm-white);
    flex-direction: column;
    padding: 20px 28px;
    box-shadow: 0 8px 24px rgba(44,40,35,0.1);
    gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .main-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta {
    text-align: center;
    margin-top: 10px;
    border-bottom: none;
  }

  .hero { padding: 64px 0; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .hero-stats { gap: 24px; }
  .stat-number { font-size: 28px; }

  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-photo { display: flex; justify-content: center; }
  .about-text blockquote { margin-left: auto; margin-right: auto; }

  .services-grid { grid-template-columns: 1fr; }
  .phil-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }

  .section-title { font-size: 34px; }
  .section-subtitle { font-size: 15px; }
}
