/* Ermiş Dental — Minimalist Antrasit/Beyaz Tema */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f4f5;
  --color-primary: #2b2e33; /* antrasit gri */
  --color-primary-soft: #55595f;
  --color-border: #e2e2e4;
  --color-white: #ffffff;
  --color-navbar: #212b32; /* logo arka plan rengi */
  --radius: 4px;
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

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

ul { list-style: none; }

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

/* Header */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  background: rgba(33, 43, 50, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 48px;
  height: 84px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-white);
}

.logo-mark {
  height: 60px;
  width: auto;
  flex-shrink: 0;
  animation: logo-float 3.6s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-mark { animation: none; }
}

.logo span { color: rgba(255, 255, 255, 0.62); font-weight: 400; }

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

.nav-links a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-white);
  border-color: var(--color-white);
}

.nav-links a.nav-cta {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-navbar);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: none;
}

.nav-links a.nav-rb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #14b8a6;
  color: var(--color-white);
  padding: 9px 18px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: none;
  box-shadow: 0 6px 16px -8px rgba(20, 184, 166, 0.6);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  margin-left: auto;
}
.nav-links a.nav-rb:hover { background: #0d9488; border-color: transparent; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

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

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--color-primary-soft);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 780px;
  margin: 0 auto 20px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--color-primary-soft);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--color-primary-soft);
  max-width: 640px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--color-primary);
  transition: opacity 0.2s ease;
}

.btn:hover { opacity: 0.85; }

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

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

/* Sections */
.section {
  padding: 72px 0;
}

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

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p { color: var(--color-primary-soft); }

/* Image placeholder box */
.img-box {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  overflow: hidden;
  border-radius: var(--radius);
}

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

.img-box.ratio-16-9 { aspect-ratio: 16 / 9; }
.img-box.ratio-1-1 { aspect-ratio: 1 / 1; }
.img-box.ratio-4-5 { aspect-ratio: 4 / 5; }

/* Grids */
.grid {
  display: grid;
  gap: 32px;
}

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

/* Cards */
.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--color-white);
}

.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--color-primary-soft); font-size: 0.95rem; }

.service-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.service-card .num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary-soft);
  margin-bottom: 12px;
  display: block;
}

.service-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.service-card p { color: var(--color-primary-soft); font-size: 0.92rem; }

/* Doctor card */
.doctor-card {
  padding: 32px 0;
  border-bottom: 1px solid var(--color-border);
}

.doctor-card:last-child { border-bottom: none; }

.doctor-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.doctor-card .role {
  color: var(--color-primary-soft);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.doctor-card ul { margin-top: 12px; }
.doctor-card ul li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--color-primary-soft);
  margin-bottom: 6px;
}
.doctor-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* Info list (contact/hours) */
.info-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.info-list li span:first-child { color: var(--color-primary-soft); }
.info-list li strong { font-weight: 600; }

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

/* Form */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--color-primary);
  background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-note { font-size: 0.82rem; color: var(--color-primary-soft); margin-top: 8px; }

.honeypot { position: absolute; left: -9999px; }

/* Map */
.map-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 56px 0 28px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: #c9cbcd;
}

.footer-grid p, .footer-grid li { font-size: 0.92rem; color: #d8d9da; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--color-white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  font-size: 0.82rem;
  color: #c9cbcd;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Placeholder text highlight (fills to update by user) */
.tbd {
  background: #fff3cd;
  color: #664d03;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}

/* Header scrolled state */
.site-header.scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 12px 28px -20px rgba(0, 0, 0, 0.25);
}

/* Scroll reveal — visible by default; only hidden-then-revealed when the
   "js" class (set synchronously in <head>) confirms JS actually ran, so a
   blocked/failed script can never leave content permanently invisible. */
.reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

.reveal-1 { transition-delay: 0.08s; }
.reveal-2 { transition-delay: 0.16s; }
.reveal-3 { transition-delay: 0.24s; }
.reveal-4 { transition-delay: 0.32s; }
.reveal-5 { transition-delay: 0.4s; }
.reveal-6 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Card hover motion */
.card, .service-card, .gallery-item {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover, .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 32px -22px rgba(20, 22, 26, 0.35);
  border-color: #cfd1d4;
}

/* Split hero (video background, 3D model + text overlaid) */
.hero-split {
  position: relative;
  padding: 88px 0;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-align: left;
  color: var(--color-white);
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: var(--color-primary);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 17, 20, 0.48) 0%, rgba(15, 17, 20, 0.66) 100%);
}

.hero-split-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.hero-visual {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-visual model-viewer { width: 100%; height: 100%; display: block; --poster-color: transparent; }

.hero-content-split .eyebrow { color: #e9eaeb; }
.hero-content-split h1 { margin: 0 0 20px; max-width: none; color: var(--color-white); }
.hero-content-split p { margin: 0 0 32px; max-width: 520px; color: rgba(255, 255, 255, 0.88); }
.hero-content-split .hero-actions { justify-content: flex-start; }

.hero-content-split .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}
.hero-content-split .btn-outline:hover { background: rgba(255, 255, 255, 0.14); }

@media (max-width: 860px) {
  .hero-split-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  .hero-split { padding: 56px 0 40px; min-height: 560px; text-align: center; }
  .hero-content-split .hero-actions { justify-content: center; }
  .hero-content-split p { margin-left: auto; margin-right: auto; }
}

/* Media band (full-width photo with caption) */
.media-band { position: relative; }
.media-band .img-box { position: relative; }
.media-band figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--color-primary-soft);
  font-size: 0.92rem;
}

/* Intro media (video + image side by side) */
.intro-media {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.portrait-video-box {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  aspect-ratio: 2 / 3;
}
.portrait-video-box video { width: 100%; height: 100%; object-fit: cover; display: block; }

.intro-media-text h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 14px; }
.intro-media-text p { color: var(--color-primary-soft); margin-bottom: 16px; }

/* Mini gallery + lightbox */
.mini-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  display: block;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 16, 18, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 1000;
}
.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(900px, 100%);
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

/* 3D model viewer */
.model-viewer-wrap {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  overflow: hidden;
}

.model-viewer-wrap model-viewer {
  width: 100%;
  height: 440px;
  display: block;
  --poster-color: transparent;
}

.model-viewer-hint {
  text-align: center;
  color: var(--color-primary-soft);
  font-size: 0.85rem;
  margin-top: 12px;
}

/* Decorative floating tooth graphic */
.decor-tooth {
  position: absolute;
  width: 220px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  animation: float-tooth 7s ease-in-out infinite;
}
.decor-tooth.decor-right { right: -20px; top: -10px; }

@keyframes float-tooth {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@media (prefers-reduced-motion: reduce) {
  .decor-tooth { animation: none; }
}

@media (max-width: 860px) {
  .mini-gallery { grid-template-columns: repeat(2, 1fr); }
  .intro-media { grid-template-columns: 1fr; }
  .portrait-video-box { max-width: 320px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .mini-gallery { grid-template-columns: repeat(2, 1fr); }
  .model-viewer-wrap model-viewer { height: 320px; }
  .decor-tooth { display: none; }
}

/* Patient reviews — single-image carousel */
.reviews-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.reviews-viewport {
  overflow: hidden;
  width: 500px;
  max-width: 100%;
  border-radius: var(--radius);
}

.reviews-track {
  display: flex;
  transition: transform 0.4s ease;
}

.review-card {
  flex: 0 0 100%;
  width: 500px;
  max-width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px -16px rgba(20, 22, 26, 0.3);
}

.reviews-arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.reviews-arrow:hover { background: var(--color-primary); color: #fff; }

@media (max-width: 640px) {
  .reviews-viewport { width: 91vw; }
  .review-card { width: 91vw; }
  .reviews-arrow { width: 36px; height: 36px; }
  .reviews-carousel { gap: 10px; }
}

/* Randevum Burda embed */
.rb-embed-wrap {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
}

.rb-embed-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
  height: 480px;
  min-height: 380px;
  transition: height 0.15s ease;
}

/* Floating WhatsApp / call buttons */
.floating-contacts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.fab {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45);
  animation: fab-bounce 2.6s ease-in-out infinite;
}

.fab:hover { opacity: 0.9; }

.fab-whatsapp { background: #25d366; }
.fab-whatsapp img { width: 30px; height: 30px; }

.fab-call {
  background: var(--color-navbar);
  color: var(--color-white);
  animation-delay: 0.3s;
}

.fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  opacity: 0.55;
  animation: fab-pulse 2.2s ease-out infinite;
}

.fab-call::before { animation-delay: 0.3s; }

@keyframes fab-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fab, .fab::before { animation: none; }
}

@media (max-width: 640px) {
  .floating-contacts { right: 16px; bottom: 16px; gap: 12px; }
  .fab { width: 50px; height: 50px; }
  .fab-whatsapp img { width: 26px; height: 26px; }
}

.floating-contacts.with-cookie-banner { bottom: 108px; }
@media (max-width: 640px) {
  .floating-contacts.with-cookie-banner { bottom: 148px; }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: var(--color-navbar);
  color: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -12px 28px -20px rgba(0, 0, 0, 0.4);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-inner p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  flex: 1 1 420px;
}

.cookie-banner-inner a { text-decoration: underline; color: var(--color-white); }

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.cookie-banner .btn { padding: 11px 22px; font-size: 0.88rem; white-space: nowrap; }

.cookie-banner .btn-primary {
  background: var(--color-white);
  color: var(--color-navbar);
  border-color: var(--color-white);
}

.cookie-banner .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}
.cookie-banner .btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

@media (max-width: 640px) {
  .cookie-banner-inner { padding: 16px 20px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* Footer legal links row */
.footer-legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-legal a:hover { color: var(--color-white); }

/* Footer credit watermark */
.footer-credit {
  text-align: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}
.footer-credit a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  transition: color 0.2s ease;
}
.footer-credit a:hover { color: var(--color-white); }

/* Legal page prose (KVKK / Gizlilik Politikası) */
.legal-content h2 {
  font-size: 1.25rem;
  margin: 40px 0 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--color-primary-soft); margin-bottom: 14px; }
.legal-content ul { margin: 0 0 14px; }
.legal-content ul li {
  position: relative;
  padding-left: 18px;
  color: var(--color-primary-soft);
  margin-bottom: 8px;
}
.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}
.legal-content strong { color: var(--color-primary); }
.legal-content .updated-note {
  font-size: 0.85rem;
  color: var(--color-primary-soft);
  margin-bottom: 36px;
}

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

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--color-navbar);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px 24px;
    gap: 16px;
  }

  .site-header.open .nav-rb,
  .site-header.open .nav-cta {
    justify-content: center;
    width: 100%;
  }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
}
