@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600;700;800&display=swap');

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

:root {
  --teal: #0D9488;
  --teal-dark: #0F766E;
  --slate: #1E293B;
  --surface: #F1F5F9;
  --green: #10B981;
  --coral: #FB7185;
  --white: #FFFFFF;
  --muted: #64748B;
  --border: #E2E8F0;
  --font-head: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--surface);
}

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

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--slate);
}

h1 { font-size: clamp(2rem, 4.5vw, 2.85rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin-bottom: 1rem; font-weight: 700; }
h3 { font-size: 1.2rem; margin-bottom: 0.65rem; font-weight: 700; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(30, 41, 59, 0.06);
}

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

.logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--slate);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--slate);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--slate);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--slate);
  border-radius: 6px;
}

.btn {
  display: inline-block;
  padding: 0.72rem 1.45rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

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

.btn-primary:hover {
  background: var(--teal-dark);
  text-decoration: none;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--slate);
  border: 2px solid var(--slate);
}

.btn-outline:hover {
  background: var(--slate);
  color: var(--white);
  text-decoration: none;
}

.header-cta { white-space: nowrap; }

main { padding-top: 72px; }

/* Hero hub-tech */
.hero {
  background: linear-gradient(135deg, var(--slate) 0%, #0F172A 55%, var(--teal-dark) 100%);
  color: var(--white);
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(13, 148, 136, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero h1 { color: var(--white); margin-bottom: 1.25rem; }

.hero-subtitle {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #CBD5E1;
  margin-bottom: 1.75rem;
  max-width: 34rem;
}

.hero-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.hero-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.hub-nodes {
  position: absolute;
  bottom: -12px;
  left: -12px;
  right: -12px;
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(30, 41, 59, 0.15);
}

.hub-node {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate);
  border-radius: 8px;
  background: var(--surface);
}

.hub-node.active { background: var(--teal); color: var(--white); }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--white); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header p { color: var(--muted); margin-top: 0.5rem; }

.trust-strip {
  background: var(--teal);
  color: var(--white);
  text-align: center;
  padding: 0.85rem 0;
  font-size: 0.9rem;
  font-weight: 500;
}

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

.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 12px 32px rgba(30, 41, 59, 0.08);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(13, 148, 136, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  background: rgba(13, 148, 136, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.card-price {
  font-weight: 600;
  color: var(--teal);
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Sectors strip */
.sectors-strip {
  background: var(--slate);
  color: var(--white);
  padding: 2.5rem 0;
}

.sectors-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  list-style: none;
}

.sectors-list li {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

/* Editorial quote */
.editorial-quote {
  background: var(--coral);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.editorial-quote blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.45;
}

.editorial-quote cite {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-style: normal;
  opacity: 0.9;
}

/* Split layout */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split-section img {
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(30, 41, 59, 0.12);
}

.case-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  margin-bottom: 0.75rem;
}

/* Hub features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
}

.feature-num {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Steps */
.steps-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  counter-reset: step;
  list-style: none;
}

.steps-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
}

.step-num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* Testimonials carousel */
.testimonial-carousel {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.4s ease;
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 1rem;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  padding: 2rem;
}

.testimonial p {
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--slate);
}

.testimonial cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--slate);
  transition: background 0.2s;
}

.carousel-btn:hover { background: var(--surface); }

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active { background: var(--teal); }

/* Mini FAQ */
.mini-faq { max-width: 720px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.faq-item p { color: var(--muted); font-size: 0.95rem; }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255, 255, 255, 0.9); margin-bottom: 1.5rem; max-width: 520px; margin-left: auto; margin-right: auto; }

.cta-section .btn-primary {
  background: var(--white);
  color: var(--teal);
}

.cta-section .btn-primary:hover {
  background: var(--surface);
  color: var(--teal-dark);
}

/* Disclaimer box */
.disclaimer-box {
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.9rem;
  color: var(--slate);
}

.disclaimer-box strong { color: var(--teal-dark); }

/* Page hero */
.page-hero {
  background: var(--slate);
  color: var(--white);
  padding: 3rem 0;
}

.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: #CBD5E1; max-width: 600px; }

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

.contact-detail { margin-bottom: 1.25rem; }
.contact-detail strong { display: block; margin-bottom: 0.25rem; color: var(--slate); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.req { color: var(--coral); }

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

.form-group input.error,
.form-group textarea.error { border-color: var(--coral); }

.field-error {
  color: var(--coral);
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.checkbox-group {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.checkbox-group input { width: auto; margin-top: 0.25rem; }

.form-success {
  display: none;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--green);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.form-success.visible { display: block; }

.map-container {
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

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

/* FAQ page */
.faq-list { max-width: 780px; }

.faq-list .faq-item:first-child { border-top: 1px solid var(--border); }

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

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.legal-content p,
.legal-content li {
  margin-bottom: 0.85rem;
  color: var(--muted);
}

.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }

/* Courses table */
.course-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.course-table th,
.course-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.course-table th {
  background: var(--slate);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
}

.course-table tr:last-child td { border-bottom: none; }

.course-code {
  font-weight: 600;
  color: var(--teal);
  font-family: monospace;
  font-size: 0.9rem;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 6rem 0;
  min-height: 50vh;
}

.error-code {
  font-family: var(--font-head);
  font-size: 5rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}

/* Footer */
.site-footer {
  background: var(--slate);
  color: #CBD5E1;
  padding: 3.5rem 0 1.5rem;
}

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

.footer-brand .logo { color: var(--white); margin-bottom: 1rem; display: inline-block; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }

.footer-links h3 { color: var(--white); font-size: 0.95rem; margin-bottom: 0.75rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { color: #CBD5E1; font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }

.footer-disclaimers {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-disclaimers p { margin-bottom: 0.75rem; }
.footer-disclaimers strong { color: var(--white); }

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  text-align: center;
}

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

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

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

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

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

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

.btn-cookie-accept {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.88rem;
}

.btn-cookie-reject {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.88rem;
}

.btn-cookie-manage {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

.btn-cookie-manage:hover { text-decoration: none; background: rgba(255, 255, 255, 0.1); }

/* Animations */
.js .slide-up,
.js .fade-in {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .slide-up { transform: translateY(28px); }
.js .fade-in { transform: translateY(12px); }

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

@media (prefers-reduced-motion: reduce) {
  .js .slide-up,
  .js .fade-in { opacity: 1; transform: none; transition: none; }
  .testimonial-track { transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .split-section,
  .contact-grid { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }

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

  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.75rem; }

  .features-grid { grid-template-columns: 1fr; }
  .steps-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .course-table { display: block; overflow-x: auto; }

  .hub-nodes { flex-wrap: wrap; }
}

/* Honeypot field — hidden from humans, visible to naive bots */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Error notice shown after a failed PHP form delivery */
.form-error-box {
  display: none;
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  background: #FFF1F2;
  border-left: 4px solid #BE123C;
  border-radius: 6px;
  color: #881337;
}
.form-error-box.visible { display: block; }
.form-error-box h3 { margin: 0 0 0.5rem 0; color: #881337; }
.form-error-box p { margin: 0; line-height: 1.6; }
