:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --text: #111111;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --header-h: 4.25rem;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(17, 17, 17, 0.08);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

::selection {
  background: var(--text);
  color: #ffffff;
}

.container {
  width: min(1100px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 0.35rem 1rem;
  padding-block: 0.45rem;
}

.brand {
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  inset-inline: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-menu {
  display: flex;
  flex: 1 1 100%;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  display: block;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.nav-menu a:hover {
  background: var(--surface);
}

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

.js .nav-menu {
  display: none;
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 0.35rem);
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(16px);
}

.js .nav-menu.is-open {
  display: flex;
}

section {
  scroll-margin-top: 4.75rem;
}

.hero {
  position: relative;
  padding-block: 5.5rem 4.5rem;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 2rem;
}

.hero-copy {
  width: 100%;
  max-width: 40rem;
}

.hero-photo {
  display: block;
  width: 260px;
  max-width: 100%;
}

.hero-photo img {
  width: 100%;
  height: auto;
  border: 1px solid #e5e5e5;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.08);
}

.handle {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0.4rem 0 0.75rem;
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: 1.15;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 14px;
  border: 1px solid #111111;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: #111111;
  color: #ffffff;
}

.btn-primary:hover {
  background: #000000;
}

.btn-ghost {
  background: #ffffff;
  color: #111111;
}

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

.section {
  padding-block: 5rem;
}

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

.section h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.3;
}

.about-text {
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
}

.group-title {
  margin: 1.75rem 0 1rem;
  font-size: 1.2rem;
  color: var(--text);
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.card {
  padding: 1.25rem 1.3rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  color: #111111;
  background: #ffffff;
  border: 1px solid var(--line);
}

.card-icon svg,
.contact-link svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 700;
}

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 76px;
  padding: 1rem 1.15rem;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.2s ease;
}

.contact-link:hover {
  box-shadow: var(--shadow);
}

.contact-link svg {
  flex: 0 0 auto;
  color: #333333;
}

.contact-name {
  display: block;
  font-weight: 700;
  line-height: 1.4;
}

.contact-meta {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.site-footer {
  padding-block: 1.75rem 2.25rem;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }

  .hero-photo {
    width: 390px;
    flex: 0 0 390px;
  }
}

@media (min-width: 800px) {
  .nav-toggle,
  .js .nav-toggle {
    display: none;
  }

  .nav-menu,
  .js .nav-menu {
    display: flex;
    flex: 0 1 auto;
    flex-direction: row;
    align-items: center;
    position: static;
    padding: 0;
    border: 0;
    background: transparent;
    gap: 0.15rem;
  }

  .nav-menu a {
    min-height: 0;
    padding: 0.4rem 0.7rem;
  }
}

@media (min-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card,
  .contact-link {
    transition: none;
  }
}
