:root {
  --brand-900: #6b1d16;
  --brand-800: #912820;
  --brand-700: #b8332a;
  --brand-600: #c9453c;
  --brand-500: #d9554c;
  --brand-100: #fde8e6;
  --brand-50: #fff8f7;
  --white: #ffffff;
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(145, 40, 32, 0.1);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --header-h: 72px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}

.section-lead {
  margin-top: 12px;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

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

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

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-800);
}

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

.nav-desktop a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav-desktop a:hover {
  color: var(--brand-700);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary {
  background: var(--brand-700);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(184, 51, 42, 0.28);
}

.btn-primary:hover {
  background: var(--brand-800);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--brand-700);
  border: 1.5px solid var(--brand-200, #f5c4c0);
}

.btn-outline:hover {
  background: var(--brand-50);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  font-size: 1.375rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  z-index: 99;
  border-top: 1px solid var(--border);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text);
}

.mobile-nav a:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}

/* Hero */
.hero {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-800);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--brand-700);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--brand-100) 0%, #e8eef5 100%);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
}

.hero-float-card i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
}

.hero-float-card strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text);
}

.hero-float-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Services */
.services {
  padding: 80px 0;
}

.services-header {
  text-align: center;
  margin-bottom: 48px;
}

.services-header .section-lead {
  margin-inline: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(184, 51, 42, 0.15);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-600) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Location */
.location {
  padding: 80px 0;
  background: var(--white);
}

.location-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.location-image {
  border-radius: var(--radius-lg);
  min-height: 420px;
  background:
    linear-gradient(rgba(107, 29, 22, 0.55), rgba(107, 29, 22, 0.25)),
    url('../images/background3.jpg') center / cover no-repeat;
  box-shadow: var(--shadow-lg);
}

.location-content h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.location-content h2 em {
  font-style: normal;
  color: var(--brand-700);
}

.location-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.location-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.location-detail i {
  color: var(--brand-700);
  font-size: 1.25rem;
  margin-top: 2px;
}

.location-detail strong {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 2px;
}

.location-detail span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Exams */
.exams {
  padding: 80px 0;
}

.exams-header {
  text-align: center;
  margin-bottom: 48px;
}

.exams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.exam-category {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.exam-category:hover {
  box-shadow: var(--shadow-md);
}

.exam-category-head {
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-600) 100%);
  color: var(--white);
}

.exam-category-head h3 {
  font-size: 1rem;
  font-weight: 700;
}

.exam-category ul {
  padding: 16px 18px 20px;
}

.exam-category li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.exam-category li:last-child {
  border-bottom: none;
}

.exam-category li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
}

/* CTA */
.cta {
  padding: 0 0 80px;
}

.cta-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.cta-image {
  min-height: 320px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url('../images/background2.jpg') center / cover no-repeat;
}

.cta-content {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--text);
}

.cta-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1rem;
}

.btn-whatsapp {
  align-self: flex-start;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.9);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-item {
  text-align: center;
}

.footer-item i {
  font-size: 1.75rem;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-item p,
.footer-item a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .nav-desktop,
  .header-actions .btn-outline {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-grid,
  .location-grid,
  .cta-card {
    grid-template-columns: 1fr;
  }

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

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

  .hero-float-card {
    left: 16px;
    bottom: 16px;
  }

  .cta-content {
    padding: 32px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .exams-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--header-h) + 24px);
  }

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
