:root {
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-surface-2: #f1f5f9;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-primary: #0f4c81;
  --color-primary-dark: #0a3357;
  --color-accent: #f59e0b;
  --color-accent-dark: #d97706;
  --color-border: #e2e8f0;
  --radius: 1rem;
  --radius-sm: 0.5rem;
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img {
  height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
}

.main-nav a:hover {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

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

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

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  background: linear-gradient(135deg, #0a3357 0%, #0f4c81 50%, #155e95 100%);
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    radial-gradient(circle at 20% 20%, #f59e0b 0%, transparent 30%),
    radial-gradient(circle at 80% 80%, #ffffff 0%, transparent 25%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--color-bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

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

.hero-content {
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-actions .btn-primary {
  background: var(--color-accent);
  color: #0f172a;
  border-color: var(--color-accent);
}

.hero-actions .btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.hero-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-meta li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section:nth-child(even) {
  background: var(--color-surface);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 640px;
}

.section-header.center {
  text-align: center;
  margin-inline: auto;
}

.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.section-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.section-text p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.section-text strong {
  color: var(--color-text);
}

/* Cards */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.card-highlight {
  border-top: 4px solid var(--color-accent);
}

.card-highlight h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.card-highlight ul {
  list-style: none;
}

.card-highlight li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}

.card-highlight li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* Grids */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

/* Theme cards */
.theme-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.theme-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.theme-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.theme-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Programme */
.section-programme {
  background: var(--color-surface-2);
}

.programme {
  display: grid;
  gap: 1.5rem;
}

.programme-day {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--color-accent);
}

.programme-day h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.programme-day ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.programme-day li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--color-text-muted);
}

.programme-day li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  background: var(--color-primary);
  border-radius: 50%;
}

.programme-note {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Speakers */
.section-speakers {
  background: var(--color-bg);
}

.speakers-grid {
  gap: 2rem;
}

.speaker-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  align-items: start;
}

.speaker-photo {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-surface-2);
}

.speaker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speaker-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
}

.speaker-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.speaker-role {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.speaker-info p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Info grid */
.section-practice {
  background: var(--color-surface);
}

.info-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.info-card h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.info-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

/* Contact */
.section-contact {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface-2) 100%);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.contact-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.contact-text p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.contact-address {
  font-style: normal;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.contact-address a {
  color: var(--color-primary);
  font-weight: 500;
}

/* Form */
.contact-form {
  display: grid;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--color-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

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

.form-consent label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
}

.form-note code {
  background: var(--color-surface-2);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 420px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-certifs {
  display: flex;
  justify-content: flex-end;
}

.footer-certifs img {
  height: 70px;
  width: auto;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}

.footer-opcos {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.opco-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

.opco-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.opco-list img {
  height: 42px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
  }

  .section-split,
  .contact-wrapper,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .speaker-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .speaker-photo {
    margin: 0 auto;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-certifs {
    justify-content: center;
  }

  .opco-list {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 72px;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .contact-wrapper {
    padding: 1.75rem;
  }
}
