@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Karla:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --green: #15803D;
  --ivory: #FFFBEB;
  --slate: #0F172A;
  --wood: #92400E;
  --ochre: #CA8A04;
  --white: #ffffff;
  --border: rgba(21, 128, 61, 0.22);
  --shadow: rgba(15, 23, 42, 0.08);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--slate);
  background: var(--ivory);
}

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

a { color: var(--green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ochre); }
a:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.28;
  color: var(--slate);
}

h1 { font-size: clamp(2rem, 4vw, 2.85rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.22rem; margin-bottom: 0.65rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4rem 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--slate); color: var(--ivory); }
.section-dark h2, .section-dark h3 { color: var(--ivory); }
.section-dark a { color: var(--ochre); }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-header p { color: var(--wood); }

.roman-label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 0.5rem;
}

/* Header */
.site-header {
  background: var(--ivory);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  gap: 1rem;
}

.logo { display: flex; flex-direction: column; gap: 0.125rem; }

.logo-main {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate);
}

.logo-main span { color: var(--green); }

.logo-slogan {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--wood);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--green);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  flex-wrap: wrap;
  align-items: center;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate);
  padding: 0.5rem 0.7rem;
  border-radius: 4px;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(21, 128, 61, 0.1);
  color: var(--green);
}

.header-cta {
  margin-left: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--green);
  color: var(--ivory);
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--ochre);
  border-color: var(--ochre);
  color: var(--slate);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--ivory);
}

.btn-ochre {
  background: var(--ochre);
  color: var(--slate);
  border-color: var(--ochre);
}

.btn-ochre:hover {
  background: var(--green);
  color: var(--ivory);
  border-color: var(--green);
}

/* Hero */
.hero {
  background: linear-gradient(145deg, var(--slate) 0%, #1e293b 55%, var(--green) 100%);
  color: var(--ivory);
  padding: 4.5rem 0;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 28px,
    rgba(255, 251, 235, 0.03) 28px,
    rgba(255, 251, 235, 0.03) 29px
  );
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 { color: var(--ivory); margin-bottom: 0.75rem; }

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ochre);
  margin-bottom: 1.25rem;
}

.hero-text { font-size: 1.05rem; opacity: 0.92; margin-bottom: 1.5rem; }

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(202, 138, 4, 0.2);
  border: 1px solid var(--ochre);
  color: var(--ochre);
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.hero-image {
  border: 3px solid var(--ochre);
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.syllabus-panel {
  background: var(--ivory);
  color: var(--slate);
  border-left: 4px solid var(--green);
  padding: 1.25rem 1.5rem;
  border-radius: 0 4px 4px 0;
}

.syllabus-panel h3 {
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.syllabus-panel ol {
  margin-left: 1.25rem;
  font-size: 0.9rem;
}

.syllabus-panel li { margin-bottom: 0.35rem; }

/* Trust bar */
.trust-bar {
  background: var(--green);
  color: var(--ivory);
  padding: 0.85rem 0;
  font-size: 0.875rem;
  text-align: center;
}

.trust-bar strong { color: var(--ochre); }

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-item {
  background: var(--white);
  border: 2px solid var(--border);
  border-top: 3px solid var(--ochre);
  padding: 1.5rem 1rem;
  text-align: center;
  border-radius: 4px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wood);
  line-height: 1.35;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--ivory);
  border: 2px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--green);
  box-shadow: 0 6px 24px var(--shadow);
}

.card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ochre);
  color: var(--slate);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.card-ref {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wood);
  margin-top: 0.75rem;
}

.card-price {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green);
  margin-top: 0.5rem;
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.figure-block img {
  border: 2px solid var(--border);
  border-radius: 4px;
}

.figure-caption {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--wood);
  margin-top: 0.5rem;
}

/* Steps */
.steps-list {
  list-style: none;
  counter-reset: step;
}

.steps-list li {
  counter-increment: step;
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 1.75rem;
}

.steps-list li::before {
  content: counter(step, upper-roman);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--green);
  color: var(--ivory);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

/* Reasons */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.reason-item {
  background: var(--white);
  border-left: 4px solid var(--green);
  padding: 1.25rem 1.5rem;
  border-radius: 0 4px 4px 0;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  background: var(--white);
  border: 2px solid var(--border);
  padding: 1.5rem;
  border-radius: 4px;
  font-style: italic;
}

.testimonial-author {
  font-style: normal;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--wood);
  margin-top: 0.75rem;
}

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }

details.faq-item {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

details.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--green);
  flex-shrink: 0;
  margin-left: 1rem;
}

details.faq-item[open] summary::after { content: '−'; }

details.faq-item .faq-answer {
  padding: 0 1.25rem 1.1rem;
  border-top: 1px solid var(--border);
}

/* Disclaimer */
.disclaimer-box {
  background: rgba(21, 128, 61, 0.08);
  border: 2px solid var(--green);
  border-left: 5px solid var(--ochre);
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  font-size: 0.9375rem;
}

.disclaimer-box strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--green);
}

/* Program catalog */
.program-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border: 2px solid var(--border);
  border-radius: 20px;
  color: var(--slate);
  background: var(--white);
}

.program-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.program-card img { width: 100%; height: 200px; object-fit: cover; }

.program-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }

.program-card-body .btn { margin-top: auto; align-self: flex-start; }

/* Services */
.service-block {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--wood);
  margin: 1rem 0;
}

.service-meta span {
  background: var(--ivory);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
}

.service-not-included {
  background: rgba(146, 64, 14, 0.08);
  border-left: 3px solid var(--wood);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.team-member {
  background: var(--white);
  border: 2px solid var(--border);
  padding: 1.5rem;
  border-radius: 4px;
  text-align: center;
}

.team-role {
  font-size: 0.8125rem;
  color: var(--green);
  font-weight: 600;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-block {
  background: var(--white);
  border: 2px solid var(--border);
  padding: 1.75rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.contact-info-block h3 {
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 0.75rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 2px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--slate);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

.form-group textarea { min-height: 140px; resize: vertical; }

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

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.875rem;
}

.form-consent input { width: auto; margin-top: 0.25rem; }

.form-note {
  font-size: 0.8125rem;
  color: var(--wood);
  margin-top: 0.75rem;
}

.form-status {
  padding: 1rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.form-status.hidden { display: none; }

.form-status--success {
  background: rgba(21, 128, 61, 0.12);
  border: 2px solid var(--green);
  color: var(--green);
}

.form-status--error {
  background: rgba(146, 64, 14, 0.1);
  border: 2px solid var(--wood);
  color: var(--wood);
}

.form-status--flood {
  background: rgba(202, 138, 4, 0.12);
  border: 2px solid var(--ochre);
  color: var(--slate);
}

.map-embed {
  border: 2px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
}

.map-embed iframe { width: 100%; height: 220px; border: 0; }

/* Legal pages */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }

.legal-content ul, .legal-content ol { margin: 0.75rem 0 1rem 1.5rem; }

.legal-content li { margin-bottom: 0.35rem; }

.page-hero {
  background: var(--slate);
  color: var(--ivory);
  padding: 2.5rem 0;
  text-align: center;
}

.page-hero h1 { color: var(--ivory); }

.page-hero p { opacity: 0.85; max-width: 640px; margin: 0.5rem auto 0; }

.breadcrumb {
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.breadcrumb a { color: var(--ochre); }

/* 404 */
.error-page {
  text-align: center;
  padding: 5rem 0;
}

.error-code {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.error-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  background: var(--slate);
  color: rgba(255, 251, 235, 0.85);
  padding: 3rem 0 1.5rem;
  font-size: 0.875rem;
}

.site-footer a { color: var(--ochre); }
.site-footer a:hover { color: var(--ivory); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo-main { color: var(--ivory); font-size: 1.1rem; }

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

.footer-nav li { margin-bottom: 0.4rem; }

.footer-legal {
  border-top: 1px solid rgba(255, 251, 235, 0.15);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.65;
}

.footer-legal p { margin-bottom: 0.65rem; }

.footer-copy {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 251, 235, 0.1);
  font-size: 0.78rem;
  opacity: 0.7;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--slate);
  color: var(--ivory);
  padding: 1rem 1.25rem;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.cookie-text {
  flex: 1;
  min-width: 260px;
  font-size: 0.875rem;
  line-height: 1.55;
}

.cookie-text a { color: var(--ochre); }

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-actions .btn { font-size: 0.8125rem; padding: 0.5rem 1rem; }

.btn-cookie-refuse {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(255, 251, 235, 0.4);
}

.btn-cookie-refuse:hover {
  background: rgba(255, 251, 235, 0.1);
  color: var(--ivory);
}

/* Animations */
.slide-up, .fade-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

html.js .slide-up, html.js .fade-in {
  opacity: 0;
  transform: translateY(24px);
}

html.js .slide-up.visible, html.js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .two-col, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .reasons-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

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

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 2px solid var(--border);
    padding: 1rem;
  }

  .main-nav.open { display: block; }

  .main-nav ul { flex-direction: column; }

  .header-cta { display: none; }

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

  .cookie-inner { flex-direction: column; align-items: stretch; }
}
