/* Responsive layout overrides loaded after the main stylesheet. */
body.menu-open {
  overflow: hidden;
}

.nav-link {
  font-size: 0.88rem;
}

.btn {
  font-size: 0.9rem;
}

.hero-text,
.section-description {
  font-size: 1.06rem;
}

.practice-card p {
  font-size: 0.94rem;
}

.practice-link {
  font-size: 0.84rem;
}

.differential-card p,
.process-step p {
  font-size: 0.92rem;
}

@media (max-width: 1100px) {
  html {
    scroll-padding-top: 76px;
  }

  .nav-menu {
    top: 72px;
    height: calc(100dvh - 72px);
    gap: 8px;
    overflow-y: auto;
    padding: 24px 20px 36px;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    font-size: 1.06rem;
    padding: 12px 0;
  }

  .nav-cta {
    margin-top: 8px;
  }

  .nav-cta .btn {
    font-size: 0.96rem;
    padding: 14px 18px;
  }

  .hero-section {
    min-height: 680px;
    padding: 112px 0 390px;
  }

  .hero-content {
    max-width: min(100%, 620px);
  }

  .hero-title {
    font-size: clamp(3rem, 7vw, 4.4rem);
  }

  .practice-card {
    min-height: 280px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px;
  }

  .map-wrapper {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: clamp(2.35rem, 10vw, 3.2rem);
    line-height: 1;
  }

  .hero-section {
    min-height: 650px;
    padding-top: 100px;
    padding-bottom: 335px;
  }

  .hero-media,
  .hero-media img {
    height: 335px;
  }

  .hero-media img {
    right: 5%;
  }

  .hero-title {
    font-size: clamp(2.7rem, 11vw, 3.5rem);
  }

  .hero-text {
    max-width: 560px;
  }

  .about-grid {
    gap: 36px;
  }

  .about-img {
    height: 390px;
  }

  .differential-card {
    min-height: 0;
  }

  .contact-info-header h3 {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .nav-container {
    height: 68px;
  }

  .header-nav.scrolled .nav-container {
    height: 60px;
  }

  .nav-menu {
    top: 68px;
    height: calc(100dvh - 68px);
  }

  .header-nav.scrolled .nav-menu {
    top: 60px;
    height: calc(100dvh - 60px);
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .logo-main {
    font-size: 1.2rem;
  }

  .logo-sub {
    font-size: 0.5rem;
  }

  .section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .section-subtitle {
    font-size: 0.68rem;
  }

  .hero-section {
    min-height: 620px;
    padding: 92px 0 300px;
  }

  .hero-media,
  .hero-media img {
    height: 300px;
  }

  .hero-media img {
    right: 2%;
  }

  .hero-badge {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .hero-title {
    font-size: clamp(2.55rem, 12vw, 3.05rem);
  }

  .hero-text,
  .section-description {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-trust {
    gap: 8px 14px;
    margin-top: 16px;
  }

  .hero-trust span {
    font-size: 0.82rem;
  }

  .practice-grid {
    gap: 12px;
  }

  .practice-card {
    min-height: 250px;
    padding: 20px;
  }

  .practice-card h3 {
    font-size: 1.7rem;
  }

  .practice-card p {
    font-size: 0.96rem;
  }

  .practice-link {
    font-size: 0.88rem;
    padding: 9px 12px;
  }

  .about-bio .section-title {
    font-size: 2.7rem;
  }

  .about-bio p {
    font-size: 1rem;
  }

  .about-img {
    height: 315px;
  }

  .about-badge-floating {
    max-width: 195px;
  }

  .differential-card {
    padding: 18px;
  }

  .differential-card h3 {
    font-size: 1.45rem;
  }

  .differential-card p,
  .process-step p {
    font-size: 0.96rem;
  }

  .process-list {
    gap: 24px;
  }

  .process-step {
    grid-template-columns: 68px 1fr;
    column-gap: 14px;
  }

  .process-number {
    width: 68px;
    height: 68px;
    font-size: 1.7rem;
  }

  .process-list::before {
    top: 34px;
    bottom: 34px;
  }

  .process-step h3 {
    font-size: 1.45rem;
  }

  .faq-container {
    gap: 12px;
  }

  summary.faq-question {
    font-size: 1.25rem;
    padding: 18px;
  }

  .faq-answer {
    padding: 0 18px 18px;
    font-size: 1rem;
  }

  .contact-grid {
    gap: 30px;
    padding: 22px 18px;
  }

  .contact-methods {
    gap: 18px;
    margin-bottom: 28px;
  }

  .map-wrapper {
    height: 220px;
  }

  .form-control {
    font-size: 1rem;
    padding: 13px 14px;
  }
}

.hero-mobile-portrait {
  display: none;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 0;
    height: auto;
    padding-bottom: 44px;
  }

  .hero-media {
    display: none;
  }

  .hero-mobile-portrait {
    position: relative;
    display: block;
    height: 370px;
    margin-top: 28px;
    overflow: hidden;
    border: 1px solid rgba(221, 188, 120, 0.3);
    background: #0f0f0e;
  }

  .hero-mobile-portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 15, 14, 0.38), transparent 70%), linear-gradient(0deg, rgba(15, 15, 14, 0.32), transparent 36%);
    pointer-events: none;
  }

  .hero-mobile-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 12% center;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding-bottom: 36px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-mobile-portrait {
    height: 315px;
    margin-top: 24px;
  }
}
