@media screen and (max-width: 1024px) {
  :root {
    --h1: 50px;
    --h2: 35px;
    --h3: 25px;
    --h4: 22px;
    --h5: 20px;
    --h6: 18px;
    --counter:40px;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --h1: 40px;
    --h2: 30px;
    --h3: 22px;
    --h4: 20px;
    --h5: 18px;
    --h6: 16px;
    --counter:50px;
  }
}


   @media screen and (max-width: 1024px) {
       
       
       
       .how-we-serve.section {
         padding: var(--pad-y-md) var(--pad-x-lg)!important;
         padding-bottom: 0!important;
       }
       
       .primary-text {
           font-size:13px;
       }
       
       .section {
           padding:var(--pad-y-md) var(--pad-x-lg);
       }
       
       
     .why-we-exist.section .container {
         gap: 80px;
     }
  .contact-us-grid {
    flex-direction: column;
    gap: var(--gutter);
  }

  .contact-us-left,
  .contact-us-right {
    width: 100%;
    padding-right: 0;
  }

  .contact-us-aside {
   
    box-sizing: border-box;
  }
  
  .contact-us-form .field-half {
    flex: 1 1 100%;
  }
  
  .carousel-slide { width: 300px; height: 220px; }
  .carousel-slide { width: 260px; height: 180px; }
  .services-grid-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    
    .how-we-serve-media-col {
        height: 380px;
    }
    
 .how-we-serve-sections-top,
    .how-we-serve-sections-main {
        gap: 40px;
    }
    
    .highlights-grid {
        flex-wrap: wrap;
        gap:var(--gutter);
    }
    
    .highlights-left {
        width:100%;
    }
    
    .highlights-right {
        width:100%;
    }

  .highlights-heading {
    max-width: 600px;
    margin-bottom: 10px;
  }
  
  .stats-grid {
    gap: 40px 20px;
  }
  
  .founders-message {
    padding-top: 120px;
    padding-bottom: 80px;
  }

  .founders-message-bg {
    padding: 60px 20px;
    min-height: 65vh!important;
  }
  
  .wealth-services-sections-row {
    grid-template-columns: 1fr; 
    gap: 40px;
  }

  .wealth-services-sections-left p {
    max-width: 100%;
  }
  
  .how-we-work-heading h3 {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .how-we-work-heading {
    margin-bottom: 3rem;
  }

  .how-we-work-items {
    gap: 40px;
    grid-template-columns: repeat(3, 1fr); 
  }

  .how-we-work-item h4 {
    font-size: 24px;
  }
  
   .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .brand-col {
        grid-column: 1 / -1;
        margin-bottom: 20px;
    }
    
    .call-to-action {
    padding: 100px 20px;
  }

}
   
/* Mobile */

@media (max-width: 768px) {
    
     .core-values.section {
         padding-top: 0!important;
     }
    
    .how-we-serve-grid {
        flex-wrap: wrap;
        gap: var(--gutter);
    }
    
    .how-we-serve-list {
        width:100%;
    }
    
    .how-we-serve-media-col {
        width: 100%;
    }
    
    .section {
           padding:var(--pad-y-sm) var(--pad-x-lg);
       }
    
    .hero-content {
        min-height: 30vh;
    }
    
    .services-grid-card-body p {
        font-size: var(--text-sm);
    }
    
    .button-primary, .button-secondary, .button-outline-primary, .button-outline-secondary, .button-white {
        font-size:12px;
        padding: 10px 25px;
    }
    
    .secondary-text {
        font-size: var(--base);
    }
    
    .primary-text {
        font-size:var(--text-xs);
    }
    
    .why-we-exist.section .container {
         gap: 40px;
     }
    
    .why-we-exist-media .logo {
    max-width: 80px;
   }
   
  
   
   
   .why-we-exist-media {
       gap: var(--gutter);
   }
    .services-grid-items {
        grid-template-columns: 1fr;
    }
    .services-grid-card {
        height: 350px;
    }
    
    /* Why we exist Section */
    
    .why-we-exist-text {
        flex-wrap: wrap;
        gap: var(--gutter);
    }
    
    .why-we-exist-left {
        width:100%;
    }
    
    .why-we-exist-right {
        width:100%;
    }
    
    .stats-grid {
    grid-template-columns: 1fr; 
    gap: 40px;
  }

  .stat-number {
    font-size: clamp(32px, 8vw, 48px);
  }
  
  .how-we-serve-sections {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .how-we-serve-sections-top {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 30px;
        margin-bottom: 40px;
    }

    /* Stack Main Content */
    .how-we-serve-sections-main {
        grid-template-columns: 1fr;
        gap: 50px;
    }

   
    .how-we-serve-sections-media {
        order: -1; 
        height: 300px; 
    }

    .how-we-serve-sections-blurbs {
        padding-right: 0;
    }
    
    .hero-search-bar {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
        gap: 10px;
        border-radius: 16px;
    }
    .inline-search-label {
        width: 100%;
        margin-bottom: 5px;
        font-size: 16px;
    }
    .inline-search-input {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.3);
        padding-bottom: 5px;
        margin-bottom: 10px;
    }
    .submit-btn-inline { width: 100%; height: 50px; justify-content: center; }
    .mic-icon { display: none; }
    
    .founders-message {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .founders-message-bg {
    padding: 50px 20px;
    background-position: top center;
    min-height: 40vh!important;
  }

  .founders-message-content h3 {
    font-size: 26px; 
  }

  
  .founders-message-shape {
    background-size: cover; 
  }
  
  .wealth-services-sections-gallery {
    grid-template-columns: 1fr; 
    gap: 15px;
  }

  .wealth-services-sections-top {
    margin-bottom: 2rem;
  }
  
  .wealth-services-sections-left h3 {
    font-size: 32px;
  }
  
  .how-we-work-items {
    grid-template-columns: 1fr; 
    gap: 50px;
  }

  .how-we-work-item p {
    max-width: 100%; 
  }

  .how-we-work-heading h3 {
    font-size: 32px;
  }
  
   .footer-newsletter .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .bottom-flex {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
  
  .contact-us-left h2 {
    font-size: 28px;
  }
  
  
  .contact-us-links {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .call-to-action {
    padding: 80px 20px;
  }

  .call-to-action-buttons {
    width: 100%;
  }
}

/* GLOBAL HEADER */

@media (max-width: 1200px) {
    .header-container {
        display: block; 
        padding: 0 var(--gutter);
    }

    .mobile-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: var(--header-height);
        width: 100%;
    }
    
    .mobile-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--primary);
        cursor: pointer;
    }
    
    .site-logo.desktop-only { display: none; }
    
    .nav-left, .nav-right {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--bg);
        flex-direction: column;
        display: none;
        padding: 0;
        overflow-y: auto;
        max-height: calc(100vh - var(--header-height));
        border-top: 1px solid var(--line);
    }

    .schmidt-header.mobile-active .nav-left,
    .schmidt-header.mobile-active .nav-right {
        display: flex;
    }
    
    .schmidt-header.mobile-active .nav-right {
        position: relative;
        top: 0;
        border-top: none;
        padding-bottom: 40px;
    }
    
    .schmidt-header.mobile-active .nav-left {
        position: relative; 
        top: 0;
    }

    .nav-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .menu-item {
        width: 100%;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid var(--line);
    }

    .menu-link {
        width: 100%;
        padding: 20px var(--gutter);
        justify-content: space-between;
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--line);
        background-color: var(--surface2); 
        width: 100%;
        padding: 0;
        display: none;
    }
    
    .menu-item.open .sub-menu { display: block; }
    
    .sub-menu li a {
        padding: 15px 40px;
    }

    .nav-right .menu-item { border: none; padding: 10px var(--gutter); }
    .header-btn { width: 100%; justify-content: center; }
}

@media (max-width: 991px) {
    .core-values article .container {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: var(--pad-y-md) 0;
    }

    
    .core-values article h4,
    .core-values article p,
    .core-values article .button-primary {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
    }
    
     
    
    .core-values article .button-primary {
        margin-top: 15px;
        flex: 0 0 auto; 
        width: auto;
        display: none; 
    }
    
    .core-values article:hover .button-primary {
        display: inline-flex;
    }
}