/* ============================================================
   E.N. KIHUNGU & CO. ADVOCATES LLP — Responsive Stylesheet
   ============================================================ */

/* --- Extra Large: 1400px and below --- */
@media (max-width: 1399.98px) {
  .hero-title {
    font-size: 3.8rem;
  }
  .display-heading {
    font-size: 4rem;
  }
}

/* --- Large: 1200px and below --- */
@media (max-width: 1199.98px) {
  :root {
    --section-y: 80px;
  }

  h1 { font-size: 3rem; }
  h2 { font-size: 2.4rem; }

  .hero-title {
    font-size: 3.4rem;
  }

  .section-title {
    font-size: 2.4rem;
  }

  .hero-accent {
    width: 380px;
    height: 380px;
  }

  .practice-dropdown {
    min-width: 480px;
  }

  .cta-section h2 {
    font-size: 2.4rem;
  }
}

/* --- Medium: 992px and below --- */
@media (max-width: 991.98px) {
  :root {
    --section-y: 70px;
  }

  h1 { font-size: 2.6rem; }
  h2 { font-size: 2.1rem; }
  h3 { font-size: 1.7rem; }

  .hero {
    min-height: 80vh;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-accent {
    display: none;
  }

  .hero-stat-number {
    font-size: 2.6rem;
  }

  .section-title {
    font-size: 2.1rem;
  }

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

  /* Navbar mobile */
  .main-navbar .navbar-brand img {
    height: 55px;
  }

  .main-navbar .nav-link {
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--border-light);
  }

  .main-navbar .nav-link::after {
    display: none;
  }

  .main-navbar .navbar-collapse {
    background: var(--white);
    padding: 16px 24px;
    margin-top: 10px;
    border-top: 2px solid var(--gold);
    box-shadow: var(--shadow-lg);
  }

  .main-navbar .dropdown-menu {
    box-shadow: none;
    border-top: none;
    padding-left: 20px;
    border-left: 2px solid var(--gold-muted);
  }

  .practice-dropdown {
    min-width: auto;
  }

  /* About section */
  .about-image-wrapper {
    margin-bottom: 50px;
  }

  .about-experience-badge {
    bottom: -15px;
    right: 10px;
    width: 120px;
    height: 120px;
  }

  .about-experience-badge .number {
    font-size: 2.5rem;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-main {
    padding: 60px 0 40px;
  }

  .footer-brand {
    margin-bottom: 30px;
  }

  .cta-section h2 {
    font-size: 2.1rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  /* Page banner */
  .page-banner {
    padding: 120px 0 50px;
  }

  .page-banner h1 {
    font-size: 2.6rem;
  }
}

/* --- Small: 768px and below --- */
@media (max-width: 767.98px) {
  :root {
    --section-y: 56px;
  }

  body {
    font-size: 15px;
  }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.85rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }

  .hero {
    min-height: 70vh;
  }

  .hero-content {
    padding: 100px 0 50px;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

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

  .hero-buttons a {
    text-align: center;
    justify-content: center;
  }

  .hero-stats {
    margin-top: 40px;
    padding-top: 30px;
  }

  .hero-stat {
    margin-bottom: 20px;
  }

  .hero-stat-number {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .section-label {
    font-size: 0.75rem;
  }

  /* Practice cards */
  .practice-card {
    padding: 30px 24px;
  }

  /* Matter cards */
  .matter-card {
    padding: 24px;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 32px 28px;
  }

  /* Team */
  .team-card-image {
    aspect-ratio: 1/1;
  }

  /* Contact */
  .contact-info-card {
    padding: 20px 0;
  }

  /* CTA */
  .cta-section {
    padding: 50px 0;
    text-align: center;
  }

  .cta-section h2 {
    font-size: 1.85rem;
  }

  .cta-section p {
    margin-left: auto;
    margin-right: auto;
  }

  /* Newsletter */
  .newsletter-section {
    text-align: center;
    padding: 48px 0;
  }

  .newsletter-form {
    flex-direction: column;
    max-width: 100%;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    text-align: center;
  }

  /* Footer */
  .footer-main {
    padding: 48px 0 32px;
  }

  .footer-heading {
    margin-top: 16px;
  }

  .footer-bottom {
    text-align: center;
  }

  /* Page banner */
  .page-banner {
    padding: 110px 0 40px;
  }

  .page-banner h1 {
    font-size: 2.2rem;
  }

  /* Scroll to top */
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }

  /* About image */
  .about-image-border {
    display: none;
  }

  .about-experience-badge {
    bottom: -10px;
    right: 0;
    width: 100px;
    height: 100px;
  }

  .about-experience-badge .number {
    font-size: 2rem;
  }

  .about-experience-badge .text {
    font-size: 0.6rem;
  }
}

/* --- Extra Small: 576px and below --- */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-label {
    font-size: 0.72rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .top-bar {
    display: none;
  }

  .main-navbar .navbar-brand img {
    height: 48px;
  }

  .btn-gold,
  .btn-gold-outline,
  .btn-white-outline,
  .btn-navy {
    padding: 12px 28px;
    font-size: 0.82rem;
  }

  .practice-card {
    padding: 24px 20px;
  }

  .practice-card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    margin-bottom: 18px;
  }

  .practice-card h4 {
    font-size: 1.2rem;
  }

  .testimonial-card {
    padding: 28px 22px;
  }

  .insight-card-body {
    padding: 22px;
  }

  .insight-card-body h5 {
    font-size: 1.15rem;
  }

  .cta-section h2 {
    font-size: 1.6rem;
  }

  .page-banner h1 {
    font-size: 1.85rem;
  }
}

/* --- Print Styles --- */
@media print {
  .top-bar,
  .main-navbar,
  .scroll-top,
  .newsletter-section,
  .cta-section {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}
