:root {
  --color-primary: #0b4da3;
  --color-primary-dark: #073b7f;
  --color-navy: #0a2a57;
  --color-accent: #f5b800;
  --color-bg: #ffffff;
  --color-bg-alt: #eef4fc;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-error: #dc2626;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-width: 1100px;
}

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

html {
  scroll-padding-top: 64px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

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

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

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.logo-subtitle {
  color: var(--color-text);
  font-weight: 400;
}

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

.site-nav a {
  font-weight: 500;
  color: var(--color-text-muted);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
}

.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .site-nav.is-open { display: flex; }
}

.hero {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--color-bg-alt), var(--color-bg));
}

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

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  color: var(--color-accent);
}

.hero-subtext {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 46ch;
}

.hero .cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 20px 40px rgba(11, 77, 163, 0.2);
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual-overlay {
  position: absolute;
  inset: 0;
  bottom: 76px;
  background: linear-gradient(180deg, rgba(10, 42, 87, 0.05) 0%, rgba(10, 42, 87, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.hero-visual-overlay h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-visual-btn {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
}

.hero-feature-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 76px;
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: space-around;
  text-align: center;
}

.hero-feature {
  display: flex;
  flex-direction: column;
}

.hero-feature strong {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-feature span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 340px; }
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid transparent;
}

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

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

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

.btn-secondary:hover {
  background: var(--color-bg-alt);
}

.courses {
  padding: 4rem 0;
}

.courses h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2rem;
}

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

.course-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  background: var(--color-bg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.course-card:hover,
.course-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 12px 24px rgba(11, 77, 163, 0.12);
}

.course-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.course-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.course-card p {
  color: var(--color-text-muted);
  font-size: 0.925rem;
}

@media (max-width: 900px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.gallery {
  padding: 4rem 0;
  background: var(--color-bg-alt);
}

.gallery h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2rem;
}

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

.gallery-grid figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery-grid figure:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 12px 24px rgba(11, 77, 163, 0.12);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.06);
}

.gallery-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(180deg, rgba(10, 42, 87, 0) 0%, rgba(10, 42, 87, 0.85) 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.result {
  padding: 4rem 0;
  text-align: center;
}

.result h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.result-intro {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.result-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.result-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
}

.result-form button {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.result-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.result-error {
  margin-top: 1rem;
  color: var(--color-error);
  font-weight: 500;
}

.result-card {
  margin: 2rem auto 0;
  max-width: 360px;
}

.result-card img {
  border-radius: 12px;
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.contact {
  padding: 4rem 0;
  text-align: center;
  background: var(--color-bg-alt);
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact-numbers {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.phone-link {
  font-size: 1.125rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  color: var(--color-primary);
}

.phone-link:hover {
  background: var(--color-primary);
  color: #fff;
}

.contact-address {
  margin-top: 1.5rem;
  font-style: normal;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.map-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
}

.map-link:hover {
  text-decoration: underline;
}

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

.map-embed iframe {
  display: block;
}
