/* ===== TABLET (900px) ===== */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .compare { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col .sidebar-card { position: static; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; align-items: start; }
  .profile-sidebar .btn { grid-column: 1 / -1; }

  /* Header */
  .header__nav { display: none; }
  .header__cta { display: none; }
  .header__burger { display: flex; }

  /* Mobile menu */
  .mobile-menu.active { display: flex; }
}

/* ===== MOBILE (768px) ===== */
@media (max-width: 768px) {
  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .profile-sidebar { grid-template-columns: 1fr; text-align: center; }
  .profile-photo { max-width: 250px; margin: 0 auto 1.5rem; }

  .trust-bar__list { gap: 1.25rem; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Mobile bottom nav */
  .mobile-nav { display: block; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }

  /* Back to top adjusts for mobile nav */
  .back-to-top { bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }

  /* Toast adjusts for mobile nav */
  .toast { bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); left: 1rem; right: 1rem; max-width: none; }

  /* Map */
  .map-embed { height: 300px; }

  /* Stats */
  .stats { gap: 1rem; }
  .stat { min-width: 120px; padding: 1rem; }
  .stat__number { font-size: 1.5rem; }
}

/* ===== SMALL MOBILE (480px) ===== */
@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .section { padding: 2.5rem 0; }
  .section__header { margin-bottom: 2rem; }
  .btn { padding: 0.75rem 1.5rem; font-size: 0.85rem; }
  .service-card { padding: 1.25rem; }
  .pricing-card { padding: 1.5rem; }
  .pricing-card__amount { font-size: 2rem; }
  .trust-bar__list { flex-direction: column; gap: 0.75rem; }
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--g200);
  transition: all 0.3s var(--motion-easing);
}
.header.scrolled {
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
  transition: padding 0.3s;
}
.header.scrolled .header__inner {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.header__logo-img {
  height: 52px;
  width: auto;
  transition: height 0.3s var(--motion-easing);
}
.header.scrolled .header__logo-img {
  height: 40px;
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header__nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--g600);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.header__nav a:hover,
.header__nav a.active {
  color: var(--red);
}
.header__nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}
/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
  position: relative;
}
.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--g600);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  cursor: pointer;
}
.nav-dropdown__trigger:hover,
.nav-dropdown__trigger.active {
  color: var(--red);
}
.nav-dropdown__trigger.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}
.nav-dropdown__chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--motion-easing);
}
.nav-dropdown:hover .nav-dropdown__chevron {
  transform: rotate(180deg);
}
.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--motion-easing), visibility 0.2s;
  z-index: 100;
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
}
.nav-dropdown__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  min-width: 540px;
}
.nav-dropdown__item {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--g700);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown__item:hover {
  background: var(--blue-lt);
  color: var(--blue);
}
.nav-dropdown__footer {
  border-top: 1px solid var(--g200);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  text-align: center;
}
.nav-dropdown__footer a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.nav-dropdown__footer a:hover {
  background: var(--blue-lt);
}

.header__cta {
  flex-shrink: 0;
}
.header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.header__burger svg {
  width: 24px;
  height: 24px;
  stroke: var(--g800);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  flex-direction: column;
  background: var(--white);
}
.mobile-menu.active {
  display: flex;
}
.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--container-pad);
  border-bottom: 1px solid var(--g200);
}
.mobile-menu__close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.mobile-menu__close svg {
  width: 24px;
  height: 24px;
  stroke: var(--g800);
}
.mobile-menu__nav {
  flex: 1;
  padding: 1.5rem var(--container-pad);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu__nav a {
  display: block;
  padding: 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--g800);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}
.mobile-menu__nav a:hover,
.mobile-menu__nav a.active {
  background: var(--red-lt);
  color: var(--red);
}
/* Mobile menu expandable group */
.mobile-menu__group {
  display: flex;
  flex-direction: column;
}
.mobile-menu__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--g800);
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
}
.mobile-menu__toggle:hover,
.mobile-menu__toggle.active {
  background: var(--red-lt);
  color: var(--red);
}
.mobile-menu__toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--motion-easing);
}
.mobile-menu__group.open .mobile-menu__toggle svg {
  transform: rotate(180deg);
}
.mobile-menu__sub {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
}
.mobile-menu__group.open .mobile-menu__sub {
  display: flex;
}
.mobile-menu__sub-link {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--g600);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.mobile-menu__sub-link:hover {
  background: var(--blue-lt);
  color: var(--blue);
}

.mobile-menu__footer {
  padding: 1.5rem var(--container-pad);
  border-top: 1px solid var(--g200);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--g900);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__brand-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
  color: rgba(255,255,255,0.6);
}
.footer__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer__links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer__links a:hover {
  color: var(--white);
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer__copy a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.footer__copy a:hover {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
}
.footer__social {
  display: flex;
  gap: 1rem;
}
.footer__social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.footer__social a:hover {
  background: var(--blue);
}
/* Footer logo */
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.footer__logo-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
}
.footer__social svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}
