/* St. Ronald's Home School - Modern Clean Styles */
:root {
  --primary: #1a4b8c;
  --primary-dark: #0f2f5a;
  --secondary: #e8a317;
  --accent: #2e7d32;
  --light: #f8fafc;
  --dark: #1e293b;
  --gray: #64748b;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 14px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark);
  border-radius: 8px;
}

.nav a:hover,
.nav a.active {
  background: var(--primary);
  color: white;
}

.nav-cta {
  background: var(--secondary) !important;
  color: var(--dark) !important;
  font-weight: 600 !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: #d4920f !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  background: linear-gradient(135deg, rgba(15,47,90,0.75) 0%, rgba(26,75,140,0.7) 50%, rgba(42,107,181,0.65) 100%), url('../assets/hero-collage.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,47,90,0.85) 0%, rgba(15,47,90,0.4) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 60px 0;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.hero h1.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .subtitle {
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.3s;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.9);
}

.hero .subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.6s;
}

.hero-btns.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background: #f0b42a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,163,23,0.4);
}

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

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

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

.btn-accent:hover {
  background: #1b5e20;
}

/* Sections */
.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--light);
}

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

.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), #2a6bb5);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

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

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 50px 30px;
  border-radius: var(--radius);
  text-align: center;
  margin: 40px 0;
}

.cta-banner h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cta-banner p {
  margin-bottom: 24px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn {
  margin: 6px;
}

/* Features list */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.feature-item .check {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: bold;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

tr:hover td {
  background: #f1f5f9;
}

/* FAQ */
.faq-item {
  background: white;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-answer {
  padding: 0 22px 18px;
  color: var(--gray);
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-question span {
  transform: rotate(45deg);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
}

.blog-card-body {
  padding: 22px;
}

.blog-card-body .date {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 8px;
}

.blog-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.blog-card-body p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 16px;
}

.contact-info p {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form button {
  width: 100%;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: white;
  padding: 50px 0 20px;
}

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

.footer h4 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer a {
  color: rgba(255,255,255,0.8);
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* Utilities */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; }
.badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .nav.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 420px;
  }
}

@media (max-width: 600px) {
  .hero-btns {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}
