:root {
  --color-primary: #e30613;
  --color-primary-dark: #b8050f;
  --color-secondary: #8e9093;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5c5e;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-footer: #111111;
  --color-border: #e0e0e2;
  --font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  --container-max: 1100px;
  --header-height: 72px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-footer);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1rem;
}

.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 48px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: var(--transition);
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.site-nav a {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, #fff 50%, var(--color-bg-alt) 100%);
  padding: 4.5rem 0 5rem;
  border-bottom: 4px solid var(--color-primary);
}

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

.hero-visual {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 3px solid var(--color-primary);
  aspect-ratio: 3 / 2;
  background: var(--color-bg-alt);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-content {
  text-align: left;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero h1 .brand-akademi {
  color: var(--color-secondary);
}

.hero h1 .brand-optik {
  color: var(--color-primary);
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 0 2rem;
  font-weight: 400;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--color-primary);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  border: 2px solid var(--color-primary);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 6, 19, 0.35);
}

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

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

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

.section-header h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  margin: 0.75rem auto 0;
}

.section-header p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0.75rem auto 0;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
}

.about-content p:last-child {
  margin-bottom: 0;
}

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

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), transform var(--transition);
}

.section-alt .service-card {
  background: #fff;
}

.service-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

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

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

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

.branch-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.branch-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-bg-alt);
}

.branch-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.branch-detail:last-child {
  margin-bottom: 0;
}

.branch-detail svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--color-secondary);
}

.branch-detail a {
  word-break: break-word;
}

.branch-detail address {
  font-style: normal;
  line-height: 1.5;
}

/* Contact */
.contact-summary {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--color-text-muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.contact-links a {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  background: #fff;
}

.contact-links a:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-alt);
}

/* Footer */
.site-footer {
  background: var(--color-footer);
  color: rgba(255, 255, 255, 0.75);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer strong {
  color: #fff;
}

.site-footer a {
  color: #fff;
}

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

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-footer);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 280px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.25rem 1.25rem;
  }

  .site-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
  }

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

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

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    max-width: 100%;
  }

  .section {
    padding: 3rem 0;
  }
}

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

  .btn:hover,
  .service-card:hover {
    transform: none;
  }
}
