/*************************************************************
  Star Import Service – Reimagined Home Page CSS
  Improved & Professional Revision
  - Refined header typography & spacing for a more formal look
  - Redesigned contact form area into a clean card-style layout
  - Added a placeholder style for images
  - Maintained the parallax hero and subtle animations
*************************************************************/

/* ------------------------------
   1) GLOBAL RESET & VARIABLES
------------------------------ */
/* At the very top of your CSS (e.g., styles.css) */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  :root {
    /* Colors */
    --color-blue-light: #3F5EB5; /* Example lighter shade */
    --color-blue: #1a30cb;
    --color-blue-dark: #0D1F47;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-light: #f9f9f9;
    --color-gray-medium: #cccccc;
    --color-gray-dark: #333333;
    --color-shadow: rgba(0, 0, 0, 0.2);
  
    /* Fonts */
    --font-body: "Open Sans", Arial, sans-serif;
    --font-heading: "Open Sans", Arial, sans-serif;
  
    /* Spacing & sizing */
    --max-width: 1200px;
    --transition-speed: 0.3s;
    --border-radius: 4px;
  
    /* Animation */
    --fade-duration: 1.2s;
    --fade-ease: ease-in-out;
  }
  
  /* ------------------------------
     2) BASE STYLES
  ------------------------------ */
  body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-gray-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  
  .container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.75rem;
    /* For a formal look, add subtle letter spacing */
    letter-spacing: 0.5px;
  }
  
  p {
    margin-bottom: 1rem;
    color: var(--color-gray-dark);
  }
  
  a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
  }
  
  a:hover {
    color: var(--color-blue-dark);
  }
  
  /* Buttons */
  .btn-hero-cta,
  .btn-submit,
  .btn-subscribe {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-blue-dark);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed) ease,
                transform var(--transition-speed) ease;
  }
  
  .btn-submit:hover,
  .btn-subscribe:hover {
    background-color: var(--color-black);
    transform: translateY(-2px);
  }
  
  .btn-hero-cta:hover {
    background-color: var(--color-white);
    transform: translateY(-2px);
  }

  /* Fade-in animation */
  @keyframes fadeIn {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* ------------------------------
     3) HEADER & BRAND BAR
  ------------------------------ */
  #top-header {
    background-color: var(--color-blue);
    color: var(--color-white);
    padding: 0rem 0;
  }
  
  #brand-contact-bar {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    overflow: auto;
  }
  
  /* Logo styling */
  .logo-wrapper img {
    max-height: 150px;  /* Increase this value to enlarge */
    width: auto;        /* Maintains aspect ratio */
    height: auto;       /* Maintains aspect ratio */
    display: block;     /* Ensures it behaves as a block-level element */
    margin-left: auto;  /* Pushes the image to the right */
    margin-top: 2rem;
    margin-bottom: -130px;
  }

  .brand-logo {
    float: left;
    width: 50%;
  }
  
  .brand-logo h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0.5rem 0;
    font-family: 'Times New Roman', serif;
    margin-top: 30px;
  }
  
  /* contact.css */
  #top-header .brand-logo p {
    color: var(--color-white); /* or any style override you want */
    font-weight: 700;
    font-size: 1.75rem;
    font-family: 'Times New Roman', serif;
  }

  .quick-contact {
    /* Use flex to keep items on one line and right-align them */
    display: flex;
    align-items: center;       /* Vertically center the items */
    justify-content: flex-end; /* Right-align within parent container */
    
    /* Reduce top margin so it’s closer to the nav bar */
    margin-top: 9.05rem;
    
    /* Control spacing between the two links (email & phone) */
    gap: 3rem;
  }
  
  .quick-contact p {
    color: var(--color-white);
  }

  /* Style the links */
  .quick-contact a {
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;  /* no underline by default */
    
    /* Smooth color transition on hover */
    transition: color var(--transition-speed) ease;
    
    /* If you have icons and text side by side, inline-flex helps align them */
    display: inline-flex;
    align-items: center;
    
    /* Spacing between icon and text */
    gap: 0.5rem;
  }
  
  /* On hover: change color, underline text */
  .quick-contact a:hover {
    color: var(--color-gray-medium);
    text-decoration: underline;
  }
  
  /* Main Navigation */
  #main-nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: var(--color-black);
    box-shadow: 0 2px 5px var(--color-shadow);
  }
  
  #main-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
  }
  
  #main-nav li {
    margin: 0 1rem;
  }
  
  #main-nav a {
    color: var(--color-white);
    font-weight: 600;
    padding: 1rem 0.75rem;
    display: block;
    transition: background-color var(--transition-speed) ease;
  }
  
  #main-nav a:hover {
    background-color: var(--color-blue-dark);
  }
  
  #main-nav .active {
    background-color: var(--color-blue-dark);
  }

  /* 🍔 Hamburger Menu Styling */
  .hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--color-white) !important; /* White color */
    cursor: pointer;
    z-index: 1000;
    margin-right: auto; /* Pushes it to the right */
  }
  
  @media (min-width: 1349px) {
    .nav-logo {
        width: 50px; /* Adjust size as needed */
        height: auto;
        position: absolute;
        top: 6.5%;
        transform: translateY(-50%);
    }

    .nav-logo-left {
        left: 5%;
    }

    .nav-logo-right {
        right: 5%;
    }

    @keyframes spinLogo {
      from {
          transform: rotate(0deg);
      }
      to {
          transform: rotate(360deg);
      }
    }
    
    .nav-logo {
        animation: spinLogo 8.5s linear infinite; /* Spins every 10 seconds */
    }
  }

  /* ------------------------------
     4) HERO SECTION – PARALLAX
  ------------------------------ */
  #hero-section {
    position: relative;
    min-height: 71vh;
    background-size: cover;
    background-attachment: fixed;
    animation: fadeIn var(--fade-duration) var(--fade-ease) forwards;
  }
  
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .hero-text {
    color: var(--color-white);
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
  }
  
  .hero-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeIn var(--fade-duration) var(--fade-ease) forwards;
    font-family: 'Times New Roman', serif;
  }
  
  .hero-text h3 {
    font-size: 1.93rem;
    margin-bottom: 2rem;
    animation: fadeIn var(--fade-duration) var(--fade-ease) 0.3s forwards;
    font-family: 'Times New Roman', serif;
  }

  /* New hero image container */
  .hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Keep it behind the text overlay */
  }

  /* The hero image itself */
  #hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures it fills the section without distortion */
    transition: opacity 2s ease-in-out; /* Smooth fade effect */
  }
  
  /* ------------------------------
     5) SPECIALISTS SECTION
  ------------------------------ */
  #specialists-section {
    background-color: var(--color-gray-light);
    padding: 3rem 1rem;
    animation: fadeIn var(--fade-duration) var(--fade-ease) 0.2s forwards;
  }
  
  .specialists-wrapper {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
  }
  
  .specialists-wrapper .section-title {
    margin-bottom: 1rem;
    color: var(--color-blue-dark);
    font-size: 2.35rem;
  }
  
  .specialists-wrapper .section-subtitle {
    font-size: 1.23rem;
    color: var(--color-gray-dark);
    margin-bottom: 2rem;
  }
  
  .specialists-figure {
    margin: 0 auto;
    max-width: 600px;
    position: relative;
    overflow: hidden;     /* Hide parts of the image that exceed the container */
  }
  
  .specialists-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
  }
  
  .specialists-figure img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .specialists-figure figcaption {
    margin-top: 0.5rem;
    font-style: italic;
    color: var(--color-gray-dark);
    font-size: 1.17rem;
  }
  
  /* ------------------------------
     6) INTRO/OVERVIEW SECTION
  ------------------------------ */
  #intro-overview {
    padding: 3rem 1rem;
    background-color: var(--color-white);
    animation: fadeIn var(--fade-duration) var(--fade-ease) 0.4s forwards;
  }
  
  #intro-overview .intro-content {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: left;
  }
  
  #intro-overview h2 {
    margin-bottom: 1rem;
    font-size: 2.15rem;
    color: var(--color-blue-dark);
    font-family: 'Libre Baskerville', serif;
    text-align: center;
  }
  
  #intro-overview p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-align: center;
    font-size: 1.23rem;
  }
  
  /* ------------------------------
     7) SERVICES & SCHEDULING
  ------------------------------ */
  #services-scheduling {
    background-color: var(--color-gray-light);
    padding: 3rem 1rem;
    text-align: center;
    animation: fadeIn var(--fade-duration) var(--fade-ease) 0.6s forwards;
  }
  
  #services-scheduling .section-title {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    color: var(--color-blue-dark);
    font-family: 'Libre Baskerville', serif;
  }
  
  .services-grid {
    display: grid;
    /* Exactly 2 columns, each 300px wide */
    grid-template-columns: repeat(3, 500px);
    gap: 1.5rem;
    /* Optionally center the columns if there's extra space */
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto 2rem;
  }
  
  .service-box {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
  }
  
  .service-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  
  .service-box h3 {
    margin-bottom: 0.5rem;
    color: var(--color-blue-dark);
    font-size: 1.5rem;
  }
  
  .service-box p {
    font-size: 1.23rem;
  }
  
  #sprinter-service {
    text-align: center;
    margin-left: auto;
    margin-right: 0;
    display: block;
  }

  .scheduling-info {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: 1.23rem;
  }
  
  .scheduling-info a {
    font-weight: 700;
  }

  /* For iPhones and iPads between 330px and 768px width, with pixel ratios of 2 and 3 */
  @media only screen and (min-width: 768px) and (max-width: 1024px) and (-webkit-min-device-pixel-ratio: 2), 
  only screen and (min-width: 768px) and (max-width: 1024px) and (-webkit-min-device-pixel-ratio: 3) {
    .services-grid {
      display: grid;
      /* Exactly 2 columns, each 300px wide */
      grid-template-columns: repeat(1, 500px);
      gap: 1.5rem;
      /* Optionally center the columns if there's extra space */
      justify-content: center;
      text-align: center;
      width: 100%;
      max-width: var(--max-width);
      margin: 0 auto 2rem;
    }
    
    .service-box {
      background-color: var(--color-white);
      border-radius: var(--border-radius);
      padding: 1.5rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
      transition: transform var(--transition-speed) ease,
                  box-shadow var(--transition-speed) ease;
    }
  }
  
  /* For iPhones and iPads between 330px and 768px width, with pixel ratios of 2 and 3 */
  @media only screen and (min-width: 550px) and (max-width: 1600px) {
    .services-grid {
      display: grid;
      grid-template-columns: repeat(1, 500px);
      text-align: center;
    }
  
    .service-box {
      background-color: var(--color-white);
      border-radius: var(--border-radius);
      padding: 1.5rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
      transition: transform var(--transition-speed) ease,
                  box-shadow var(--transition-speed) ease;
    }

    .sprinter-center {
      /* If you want it to remain in its grid cell, center its content */
      margin: center;
    }
  }

  /* Additional breakpoint for 450px–549px */
  @media only screen and (min-width: 485px) and (max-width: 549px) {
    /* Keep the same base rules, but apply a scale transform to shrink the layout */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(1, 500px);
      text-align: center;
      
      /* Scale everything down ~90% to avoid horizontal scrolling 
        or make it more comfortable on narrower screens */
      transform: scale(0.9);
      transform-origin: top center;
    }

    .service-box {
      background-color: var(--color-white);
      border-radius: var(--border-radius);
      padding: 1.5rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
      transition: transform var(--transition-speed) ease,
                  box-shadow var(--transition-speed) ease;
    }

    .sprinter-center {
      /* If you want it to remain in its grid cell, center horizontally */
      margin: 0 auto;
    }

    .scheduling-info {
      margin-top: -25px;
      font-size: 1.23rem;
    }
  }

  @media only screen and (min-width: 435px) and (max-width: 484px) {
    .services-grid {
      display: grid;
      grid-template-columns: repeat(1, 500px);
      text-align: center;
      /* Scale down to 85% */
      transform: scale(0.81);
      transform-origin: top center;
    }
  
    .service-box {
      background-color: var(--color-white);
      border-radius: var(--border-radius);
      padding: 1.5rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
      transition: transform var(--transition-speed) ease,
                  box-shadow var(--transition-speed) ease;
    }
  
    .sprinter-center {
      margin: 0 auto;
    }

    .scheduling-info {
      margin-top: -95px;
      font-size: 1.10rem;
    }
  }

  @media only screen and (min-width: 385px) and (max-width: 434px) {
    .services-grid {
      display: grid;
      grid-template-columns: repeat(1, 500px);
      text-align: center;
      /* Scale down to 80% */
      transform: scale(0.7);
      transform-origin: top center;
    }
  
    .service-box {
      background-color: var(--color-white);
      border-radius: var(--border-radius);
      padding: 1.5rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
      transition: transform var(--transition-speed) ease,
                  box-shadow var(--transition-speed) ease;
    }
  
    .sprinter-center {
      margin: 0 auto;
    }

    .scheduling-info {
      margin-top: -180px;
      margin-bottom: -20px;
      font-size: 1.00rem;
    }
  }
  
  @media only screen and (min-width: 335px) and (max-width: 384px) {
    .services-grid {
      display: grid;
      grid-template-columns: repeat(1, 500px);
      text-align: center;
      /* Scale down to 75% */
      transform: scale(0.62);
      transform-origin: top center;
    }
  
    .service-box {
      background-color: var(--color-white);
      border-radius: var(--border-radius);
      padding: 1.5rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
      transition: transform var(--transition-speed) ease,
                  box-shadow var(--transition-speed) ease;
    }
  
    .sprinter-center {
      margin: 0 auto;
    }

    .scheduling-info {
      margin-top: -245px;
      margin-bottom: -30px;
      font-size: 1.00rem;
    }
  }

  @media only screen and (min-width: 300px) and (max-width: 334px) {
    .services-grid {
      display: grid;
      grid-template-columns: repeat(1, 500px);
      text-align: center;
      /* Scale down to 70% */
      transform: scale(0.55);
      transform-origin: top center;
    }
  
    .service-box {
      background-color: var(--color-white);
      border-radius: var(--border-radius);
      padding: 1.5rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
      transition: transform var(--transition-speed) ease,
                  box-shadow var(--transition-speed) ease;
    }
  
    .sprinter-center {
      margin: 0 auto;
    }

    .scheduling-info {
      margin-top: -285px;
      margin-bottom: -30px;
      font-size: 0.85rem;
    }

    .hours-list {
      list-style: none;
      padding: 0.5rem;
      font-size: 1.10rem !important;
      color: var(--color-white);
      font-family: 'Libre Baskerville', serif;
    }
  }
  
  /* ------------------------------
     8) HOURS OF OPERATION
  ------------------------------ */
  #hours-operation {
    padding: 3rem 1rem;
    background-color: var(--color-blue);
    text-align: center;
    font-size: 1.5rem;
    font-family: 'Libre Baskerville', serif !important;
    animation: fadeIn var(--fade-duration) var(--fade-ease) 0.8s forwards;
  }
  
  #hours-operation h2.section-title {
    font-family: 'Libre Baskerville', serif !important;
  }
  
  .hours-wrapper {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    font-family: 'Libre Baskerville', serif !important;
  }
  
  .hours-list {
    list-style: none;
    padding: 0.5rem;
    font-size: 1.3rem;
    color: var(--color-white);
    font-family: 'Libre Baskerville', serif;
  }
  
  .hours-list li {
    margin-bottom: 0.5rem;
  }
  
  /* ------------------------------
     9) LOCATION & MAP
  ------------------------------ */
  #location-map {
    background-color: var(--color-gray-light);
    padding: 3rem 1rem;
    text-align: center;
    animation: fadeIn var(--fade-duration) var(--fade-ease) 1s forwards;
  }
  
  #location-map .section-title {
    margin-bottom: 1rem;
    color: var(--color-blue-dark);
    font-size: 2.25rem;
    font-family: 'Libre Baskerville', serif;
  }
  
  .map-instructions {
    margin-bottom: 2rem;
    font-size: 1.23rem;
  }
  
  .map-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
  }
  
  .map-container iframe {
    width: 100%;
    border: 0;
    border-radius: var(--border-radius);
    height: 450px;
  }
  
  /* ------------------------------
     10) CONTACT FORM SECTION
  ------------------------------ */
  #contact-form-section {
    padding: 3rem 1rem;
    background-color: var(--color-gray-light);
    text-align: center;
    animation: fadeIn var(--fade-duration) var(--fade-ease) 1.2s forwards;
    font-size: 1.23rem;
  }
  
  #contact-form-section .section-title {
    margin-bottom: 1rem;
    color: var(--color-blue-dark);
    font-size: 2.25rem;
    font-family: 'Libre Baskerville', serif;
  }
  
  .contact-content {
    width: 90%;
    max-width: 1175px; /* Same as your intro section max */
    margin: 0 auto;
    text-align: center;
  }
  
  .contact-instructions {
    line-height: 1.7;
    font-size: 1.23rem;
    margin-bottom: 3%;
  }  
  
  /* Card-style wrapper for the contact form */
  #contact-form {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
  }
  
  .form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-right: auto;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--color-gray-medium);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 5px rgba(26, 60, 141, 0.3);
  }
  
  .form-group.full-width {
    grid-column: 1 / -1;
  }
  
  .btn-submit {
    grid-column: 1 / -1;
    justify-self: center;
    width: 150px;
    margin-top: 1rem;
  }

  .custom-notification {
    position: fixed;
    top: 337px;
    right: 727px;
    background: #002b47;  /* Navy background */
    color: #fff;         /* White text */
    padding: 15px 25px;
    border-radius: 5px;
    z-index: 1000;
    opacity: 1;
    transition: opacity 1s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transform: scale(1.75);
  }
  
  .custom-notification.fade-out {
    opacity: 0;
  }

  .contact-extra-verification {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
  }

  .manual-review-flag {
    position: absolute;
    left: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
  }

  .visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: 0;
  }
  
  /* Responsive Adjustments for 300px - 328px */
  @media (min-width: 300px) and (max-width: 328px) {
    .contact-instructions {
        margin-bottom: 3rem;
    }

    #contact-form {
        grid-template-columns: 1fr; /* Single column layout */
        max-width: none !important;
        width: 100% !important;
        padding: 1.5rem; /* Adjust padding */
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.89rem; /* Slightly reduce input text size */
        padding: 0.65rem; /* Reduce padding for compact fields */
    }

    .btn-submit {
        width: 130px; /* Make button smaller for better fit */
    }
  }

  /* Responsive Adjustments for 329px - 357px */
  @media (min-width: 329px) and (max-width: 357px) {
    .contact-instructions {
        margin-bottom: 3rem;
    }

    #contact-form {
        grid-template-columns: 1fr;
        max-width: none !important;
        width: 100% !important;
        padding: 1.7rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 0.7rem;
    }

    .btn-submit {
        width: 135px;
    }
  }

  /* Responsive Adjustments for 358px - 386px */
  @media (min-width: 358px) and (max-width: 386px) {
    .contact-instructions {
        margin-bottom: 3rem;
    }

    #contact-form {
        grid-template-columns: 1fr;
        max-width: none !important;
        width: 100% !important;
        padding: 1.8rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 1rem;
        padding: 0.75rem;
    }

    .btn-submit {
        width: 140px;
    }
  }

  /* Responsive Adjustments for 387px - 415px */
  @media (min-width: 387px) and (max-width: 415px) {
    .contact-instructions {
        margin-bottom: 3rem;
    }

    #contact-form {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        max-width: none !important;
        width: 100% !important;
        padding: 2rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 1.05rem;
        padding: 0.8rem;
    }

    .btn-submit {
        width: 145px;
    }
  }

  /* Responsive Adjustments for 416px - 445px */
  @media (min-width: 416px) and (max-width: 445px) {
    .contact-instructions {
        margin-bottom: 3rem;
    }

    #contact-form {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        max-width: none !important;
        width: 100% !important;
        padding: 2.2rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 1.1rem;
        padding: 0.85rem;
    }

    .btn-submit {
        width: 150px;
    }
  }

  /* ------------------------------
     11) SUBSCRIBE SECTION
  ------------------------------ */
  #subscribe-section {
    background-color: var(--color-gray-light);
    padding: 3rem 1rem;
    text-align: center;
    animation: fadeIn var(--fade-duration) var(--fade-ease) 1.4s forwards;
  }
  
  #subscribe-section .section-title {
    margin-bottom: 1rem;
    color: var(--color-blue-dark);
    font-size: 2.25rem;
    font-family: 'Libre Baskerville', serif;
  }
  
  #subscribe-form {
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .subscribe-group {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .subscribe-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    margin-right: auto;
    margin-left: 0.2rem;
  }
  
  .subscribe-group input {
    padding: 0.75rem;
    border: 1px solid var(--color-gray-medium);
    border-radius: var(--border-radius);
    font-size: 1rem;
  }
  
  .btn-subscribe {
    margin-top: 1rem;
  }

  .custom-notification2 {
    position: fixed;
    top: 337px;
    right: 727px;
    background: #002b47;  /* Navy background */
    color: #fff;         /* White text */
    padding: 15px 25px;
    border-radius: 5px;
    z-index: 1000;
    opacity: 1;
    transition: opacity 1s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transform: scale(1.75);
  }
  
  .custom-notification.fade-out {
    opacity: 0;
  }
  
  .form-opt-verify {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
  }

  .confirm-optin-wrapper {
    position: absolute;
    left: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
  }
  
  @media (min-width: 1101px) and (max-width: 1926px) {
    .custom-notification,
    .custom-notification2 {
      position: fixed;
      top: 337px;
      right: calc(50% - 230px); /* Adjusted to match your right: 530px at your target resolution */
      background: #002b47;
      color: #fff;
      padding: 15px 25px;
      border-radius: 5px;
      z-index: 1000;
      opacity: 1;
      transition: opacity 1s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transform: scale(1.55);
    }
  }

  @media (min-width: 900px) and (max-width: 1100px) {
    .custom-notification,
    .custom-notification2 {
      position: fixed;
      top: 437px;
      right: calc(50% - 230px); /* Adjusted to match your right: 530px at your target resolution */
      background: #002b47;
      color: #fff;
      padding: 15px 25px;
      border-radius: 5px;
      z-index: 1000;
      opacity: 1;
      transition: opacity 1s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transform: scale(1.35);
    }
  }

  @media (min-width: 850px) and (max-width: 900px) {
    .custom-notification,
    .custom-notification2 {
      position: fixed;
      top: 400px;
      right: calc(50% - 230px); /* Adjusted to match your right: 530px at your target resolution */
      background: #002b47;
      color: #fff;
      padding: 15px 25px;
      border-radius: 5px;
      z-index: 1000;
      opacity: 1;
      transition: opacity 1s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transform: scale(1.15);
    }
  }

  @media (min-width: 800px) and (max-width: 851px) {
    .custom-notification,
    .custom-notification2 {
      position: fixed;
      top: 400px;
      right: calc(50% - 230px); /* Adjusted to match your right: 530px at your target resolution */
      background: #002b47;
      color: #fff;
      padding: 15px 25px;
      border-radius: 5px;
      z-index: 1000;
      opacity: 1;
      transition: opacity 1s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transform: scale(1.15);
    }
  }

  @media (min-width: 750px) and (max-width: 800px) {
    .custom-notification,
    .custom-notification2 {
      position: fixed;
      top: 365px;
      right: calc(50% - 230px); /* Adjusted to match your right: 530px at your target resolution */
      background: #002b47;
      color: #fff;
      padding: 15px 25px;
      border-radius: 5px;
      z-index: 1000;
      opacity: 1;
      transition: opacity 1s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transform: scale(1.10);
    }
  }

  @media (min-width: 710px) and (max-width: 750px) {
    .custom-notification,
    .custom-notification2 {
      position: fixed;
      top: 325px;
      right: calc(50% - 230px); /* Adjusted to match your right: 530px at your target resolution */
      background: #002b47;
      color: #fff;
      padding: 15px 25px;
      border-radius: 5px;
      z-index: 1000;
      opacity: 1;
      transition: opacity 1s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transform: scale(1.10);
    }
  }

  @media (min-width: 707px) and (max-width: 710px) {
    .custom-notification,
    .custom-notification2 {
      position: fixed;
      top: 325px;
      right: calc(50% - 230px); /* Adjusted to match your right: 530px at your target resolution */
      background: #002b47;
      color: #fff;
      padding: 15px 25px;
      border-radius: 5px;
      z-index: 1000;
      opacity: 1;
      transition: opacity 1s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transform: scale(1.10);
    }
  }

  @media (min-width: 694px) and (max-width: 707px) {
    .custom-notification,
    .custom-notification2 {
      position: fixed;
      top: 315px;
      right: calc(50% - 230px); /* Adjusted to match your right: 530px at your target resolution */
      background: #002b47;
      color: #fff;
      padding: 15px 25px;
      border-radius: 5px;
      z-index: 1000;
      opacity: 1;
      transition: opacity 1s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transform: scale(1.10);
    }
  }

  @media (min-width: 650px) and (max-width: 694px) {
    .custom-notification,
    .custom-notification2 {
      position: fixed;
      top: 290px;
      right: calc(50% - 230px); /* Adjusted to match your right: 530px at your target resolution */
      background: #002b47;
      color: #fff;
      padding: 15px 25px;
      border-radius: 5px;
      z-index: 1000;
      opacity: 1;
      transition: opacity 1s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transform: scale(1.00);
    }
  }

  @media (min-width: 600px) and (max-width: 650px) {
    .custom-notification,
    .custom-notification2 {
      position: fixed;
      top: 290px;
      right: calc(50% - 230px); /* Adjusted to match your right: 530px at your target resolution */
      background: #002b47;
      color: #fff;
      padding: 15px 25px;
      border-radius: 5px;
      z-index: 1000;
      opacity: 1;
      transition: opacity 1s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transform: scale(1.00);
    }
  }

  @media (min-width: 549px) and (max-width: 600px) {
    .custom-notification,
    .custom-notification2 {
      position: fixed;
      top: 287px;
      right: calc(50% - 230px); /* Adjusted to match your right: 530px at your target resolution */
      background: #002b47;
      color: #fff;
      padding: 15px 25px;
      border-radius: 5px;
      z-index: 1000;
      opacity: 1;
      transition: opacity 1s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transform: scale(1.00);
    }
  }

  @media (min-width: 500px) and (max-width: 549px) {
    .custom-notification,
    .custom-notification2 {
      position: fixed;
      top: 275px;
      right: calc(50% - 230px); /* Adjusted to match your right: 530px at your target resolution */
      background: #002b47;
      color: #fff;
      padding: 15px 25px;
      border-radius: 5px;
      z-index: 1000;
      opacity: 1;
      transition: opacity 1s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transform: scale(1.00);
    }
  }

  @media (min-width: 450px) and (max-width: 500px) {
    .custom-notification,
    .custom-notification2 {
      position: fixed;
      top: 280px;
      right: calc(50% - 230px); /* Adjusted to match your right: 530px at your target resolution */
      background: #002b47;
      color: #fff;
      padding: 15px 25px;
      border-radius: 5px;
      z-index: 1000;
      opacity: 1;
      transition: opacity 1s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transform: scale(0.95);
    }
  }

  @media (min-width: 408px) and (max-width: 450px) {
    .custom-notification,
    .custom-notification2 {
      position: fixed;
      top: 255px;
      right: calc(50% - 199px); /* Adjusted to match your right: 530px at your target resolution */
      background: #002b47;
      color: #fff;
      padding: 15px 25px;
      border-radius: 5px;
      z-index: 1000;
      opacity: 1;
      transition: opacity 1s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transform: scale(0.95);
      /* New additions */
      text-align: center;
      font-size: 14px;
    }
  }

  @media (min-width: 380px) and (max-width: 407px) {
    .custom-notification,
    .custom-notification2 {
      position: fixed;
      top: 255px;
      right: calc(50% - 199px); /* Adjusted to match your right: 530px at your target resolution */
      background: #002b47;
      color: #fff;
      padding: 15px 25px;
      border-radius: 5px;
      z-index: 1000;
      opacity: 1;
      transition: opacity 1s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transform: scale(0.85);
      /* New additions */
      text-align: center;
      font-size: 14px;
    }
  }

  @media (min-width: 350px) and (max-width: 380px) {
    .custom-notification,
    .custom-notification2 {
      position: fixed;
      top: 240px;
      right: calc(50% - 189px); /* Adjusted to match your right: 530px at your target resolution */
      background: #002b47;
      color: #fff;
      padding: 15px 25px;
      border-radius: 5px;
      z-index: 1000;
      opacity: 1;
      transition: opacity 1s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transform: scale(0.85);
      /* New additions */
      text-align: center;
      font-size: 14px;
    }
  }

  @media (min-width: 300px) and (max-width: 350px) {
    .custom-notification,
    .custom-notification2 {
      position: fixed;
      top: 255px;
      right: calc(50% - 161px); /* Adjusted to match your right: 530px at your target resolution */
      background: #002b47;
      color: #fff;
      padding: 15px 25px;
      border-radius: 5px;
      z-index: 1000;
      opacity: 1;
      transition: opacity 1s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transform: scale(0.85);
      /* New additions */
      text-align: center;
      font-size: 14px;
    }
  }

  /* ------------------------------
     12) FOOTER
  ------------------------------ */
  /* FOOTER */
  #main-footer {
    background-color: var(--color-blue-dark);
    color: var(--color-white);
    /* Increased top/bottom padding slightly for more vertical space */
    padding: 3rem 1rem;
    animation: fadeIn var(--fade-duration) var(--fade-ease) 1.6s forwards;
  }

  /* Wrapper to control layout of columns */
  .footer-wrapper {
    display: flex;
    flex-wrap: wrap;
    /* Space columns more evenly with a larger gap */
    justify-content: space-evenly; /* or space-around, depending on preference */
    gap: 4rem; /* increased from 3rem to 4rem */
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
  }

  /* Each column in the footer */
  .footer-col {
    /* Keep columns flexible but ensure a decent min width */
    flex: 1 1 150px;
    /* If you want columns not to stretch too wide, uncomment:
      max-width: 300px; */
  }

  /* Headings in each footer column */
  .footer-col h3 {
    margin-bottom: 1rem; /* increased from 0.5rem */
    font-size: 1.55rem;
    text-decoration: underline;
    text-decoration-color: var(--color-white);
  }

  /* Regular text and links in the footer */
  .footer-col p,
  .footer-col a {
    margin-bottom: 1rem; /* increased from 0.5rem */
    color: var(--color-white);
    text-decoration: none;
    font-size: 1.25rem;
  }

  .footer-col p:hover,
  .footer-col a:hover {
    text-decoration: underline;
  }

  /* Footer bottom area (copyright, etc.) */
  .footer-bottom {
    text-align: center;
    margin-top: 4rem; /* unchanged to keep copyright placement */
    color: var(--color-white);
    font-size: 0.9rem;
    opacity: 0.8;
  }

  .footer-bottom p {
    color: var(--color-white);
    font-size: 1.25rem; /* unchanged */
  }
  
  p img {
    width: 27px !important;     /* scales the image to match the font size */
    height: auto !important;       /* keeps the aspect ratio intact */
    vertical-align: middle;  /* aligns the image with the text */
    margin-left: 0.4rem; /* adds spacing between the text and the icon */
    transition: transform 0.3s ease; /* smooth transition for scaling */
  }
  
  .flag-image {
    width: 75px !important;
    height: auto !important;
    display: inline-block !important;
    margin-bottom: -2rem;
  }

  p img:hover {
    transform: scale(1.1); /* scales the image up by 10% on hover */
  }

  /* ------------------------------
     13) PLACEHOLDER IMAGES
  ------------------------------ */
  /* Use this class on <img> elements when an image isn’t available */
  .placeholder-image {
    background: #eee url('https://via.placeholder.com/600x400?text=Image+Placeholder') no-repeat center;
    background-size: cover;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
  }
  
  /* ------------------------------
     14) MEDIA QUERIES
  ------------------------------ */
  @media (max-width: 1100px) {
    /* Let the brand and contact stack or center rather than float side-by-side */
    .brand-logo,
    .logo-wrapper,
    .quick-contact {
      float: none;       /* stops floating left */
      width: 100%;       /* full width so each block is on its own row */
      text-align: center;
      margin-top: 1rem;  /* reduce big spacing */
    }
  
    /* Scale down the negative margin on the logo so it doesn't overlap */
    .logo-wrapper img {
      margin-top: 1rem; 
      margin-bottom: 0;  /* remove or reduce the negative margin to avoid overlap */
      max-height: 130px; /* slightly smaller if needed */
      margin-left: auto;
      margin-right: auto;
    }
  
    .brand-logo h1 {
      font-size: 2.5rem;    /* was 3rem; reduce so text doesn’t wrap too early */
      margin-top: 0.5rem;  
    }
    #top-header .brand-logo p {
      font-size: 1.4rem;    /* was 1.75rem; shrink a bit */
    }
  
    /* Make email/phone more flexible */
    .quick-contact {
      margin-top: 1.5rem; 
      gap: 1.5rem;         /* narrower gap to prevent wrap */
      justify-content: center; /* center them horizontally */
    }
    .quick-contact p {
      font-size: 1rem;     /* was 1.2rem */
    }
    .quick-contact a {
      font-size: 1rem;     /* reduce slightly */
    }
  
    /* Nav bar: allow wrapping if there's not enough horizontal space */
    #main-nav ul {
      flex-wrap: wrap; 
    }
    #main-nav li {
      margin: 0.5rem;  /* smaller margin so items fit better */
    }
    #main-nav a {
      font-size: 1rem;      /* reduce from 1.2rem if needed */
      padding: 0.75rem 0.75rem;
    }
  }
  
  @media (min-width: 939px) and (max-width: 998px) {
    /* Stack & center brand/logo/contact */
    .brand-logo,
    .logo-wrapper,
    .quick-contact {
      float: none;
      width: 100%;
      text-align: center;
      margin-top: 1rem; /* increased from 0.8rem for a bit more space */
    }
  
    /* Slightly more padding to increase overall header height */
    #top-header {
      padding: 0.6rem 0; /* was 0.4rem 0 */
    }
  
    /* Logo bigger than before but still smaller than full size */
    .logo-wrapper img {
      margin-top: 0.6rem;   /* was 0.4rem */
      margin-bottom: 0;
      max-height: 120px;    /* was 100px */
      margin-left: auto;
      margin-right: auto;
    }
  
    /* Brand text larger than before */
    .brand-logo h1 {
      font-size: 2.3rem;  /* was 2rem */
      margin-top: 0.3rem; /* was 0.2rem */
    }
    #top-header .brand-logo p {
      font-size: 1.3rem;  /* was 1.1rem */
    }
  
    /* Quick-contact slightly bigger text */
    .quick-contact {
      margin-top: 1rem; /* was 0.8rem */
      gap: 1rem;        /* was 0.8rem */
      justify-content: center;
    }
    .quick-contact p,
    .quick-contact a {
      font-size: 1rem;  /* was 0.85rem */
    }
  
    /* Nav bar with a bit more padding & font size than before */
    #main-nav {
      padding: 0.4rem 0; /* was 0.2rem 0 */
    }
  
    #main-nav ul {
      flex-wrap: wrap;
    }
    #main-nav li {
      margin: 0.4rem; /* was 0.3rem */
    }
    #main-nav a {
      font-size: 1rem;         /* was 0.85rem */
      padding: 0.6rem 0.6rem;  /* was 0.4rem 0.4rem */
    }
  }  
  
  @media (min-width: 888px) and (max-width: 939px) {
    .brand-logo,
    .logo-wrapper,
    .quick-contact {
      float: none;
      width: 100%;
      text-align: center;
      margin-top: 1rem;
    }
  
    #top-header {
      padding: 0.57rem 0; /* ~95% of 0.6rem */
    }
  
    .logo-wrapper img {
      margin-top: 0.57rem;
      max-height: 114px; /* ~95% of 120px */
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 0;
    }
  
    .brand-logo h1 {
      font-size: 2.185rem; /* ~95% of 2.3rem */
      margin-top: 0.285rem; 
    }
    #top-header .brand-logo p {
      font-size: 1.235rem;  /* ~95% of 1.3rem */
    }
  
    .quick-contact {
      margin-top: 0.95rem;
      gap: 0.95rem;
      justify-content: center;
    }
    .quick-contact p,
    .quick-contact a {
      font-size: 0.95rem; /* ~95% of 1rem */
    }
  
    #main-nav {
      padding: 0.38rem 0; /* ~95% of 0.4rem */
    }
  
    #main-nav ul {
      flex-wrap: wrap;
    }
    #main-nav li {
      margin: 0.38rem; /* ~95% of 0.4rem */
    }
    #main-nav a {
      font-size: 0.95rem;     
      padding: 0.57rem 0.57rem; /* ~95% of 0.6rem */
    }
  }

  @media (min-width: 845px) and (max-width: 890px) {
    .brand-logo,
    .logo-wrapper,
    .quick-contact {
      float: none;
      width: 100%;
      text-align: center;
      margin-top: 0.95rem;
    }
  
    #top-header {
      padding: 0.54rem 0;
    }
  
    .logo-wrapper img {
      margin-top: 0.54rem;
      max-height: 108px; /* ~95% of 114px */
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 0;
    }
  
    .brand-logo h1 {
      font-size: 2.075rem; 
      margin-top: 0.27rem; 
    }
    #top-header .brand-logo p {
      font-size: 1.175rem; 
    }
  
    .quick-contact {
      margin-top: 0.9rem;
      gap: 0.9rem;
      justify-content: center;
    }
    .quick-contact p,
    .quick-contact a {
      font-size: 0.9rem; 
    }
  
    #main-nav {
      padding: 0.36rem 0; 
    }
  
    #main-nav ul {
      flex-wrap: wrap;
    }
    #main-nav li {
      margin: 0.36rem; 
    }
    #main-nav a {
      font-size: 0.9rem;     
      padding: 0.54rem 0.54rem;
    }
  }

  @media (min-width: 801px) and (max-width: 845px) {
    .brand-logo,
    .logo-wrapper,
    .quick-contact {
      float: none;
      width: 100%;
      text-align: center;
      margin-top: 0.9rem;
    }
  
    #top-header {
      padding: 0.51rem 0;
    }
  
    .logo-wrapper img {
      margin-top: 0.51rem;
      max-height: 102px; 
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 0;
    }
  
    .brand-logo h1 {
      font-size: 1.97rem; 
      margin-top: 0.26rem; 
    }
    #top-header .brand-logo p {
      font-size: 1.115rem; 
    }
  
    .quick-contact {
      margin-top: 0.85rem;
      gap: 0.85rem;
      justify-content: center;
    }
    .quick-contact p,
    .quick-contact a {
      font-size: 0.85rem; 
    }
  
    #main-nav {
      padding: 0.34rem 0; 
    }
  
    #main-nav ul {
      flex-wrap: wrap;
    }
    #main-nav li {
      margin: 0.34rem; 
    }
    #main-nav a {
      font-size: 0.85rem;     
      padding: 0.51rem 0.51rem;
    }
  }

  @media (min-width: 752px) and (max-width: 801px) {
    .brand-logo,
    .logo-wrapper,
    .quick-contact {
      float: none;
      width: 100%;
      text-align: center;
      margin-top: 0.85rem;
    }
  
    #top-header {
      padding: 0.48rem 0;
    }
  
    .logo-wrapper img {
      margin-top: 0.48rem;
      max-height: 97px; 
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 0;
    }
  
    .brand-logo h1 {
      font-size: 1.87rem; 
      margin-top: 0.24rem; 
    }
    #top-header .brand-logo p {
      font-size: 1.06rem; 
    }
  
    .quick-contact {
      margin-top: 0.8rem;
      gap: 0.8rem;
      justify-content: center;
    }
    .quick-contact p,
    .quick-contact a {
      font-size: 0.8rem; 
    }
  
    #main-nav {
      padding: 0.32rem 0; 
    }
  
    #main-nav ul {
      flex-wrap: wrap;
    }
    #main-nav li {
      margin: 0.32rem; 
    }
    #main-nav a {
      font-size: 0.8rem;     
      padding: 0.48rem 0.48rem;
    }
  }

  @media (min-width: 707px) and (max-width: 752px) {
    .brand-logo,
    .logo-wrapper,
    .quick-contact {
      float: none;
      width: 100%;
      text-align: center;
      margin-top: 0.8rem;
    }
  
    #top-header {
      padding: 0.45rem 0;
    }
  
    .logo-wrapper img {
      margin-top: 0.45rem;
      max-height: 92px; 
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 0;
    }
  
    .brand-logo h1 {
      font-size: 1.78rem; 
      margin-top: 0.23rem; 
    }
    #top-header .brand-logo p {
      font-size: 1.0rem; 
    }
  
    .quick-contact {
      margin-top: 0.75rem;
      gap: 0.75rem;
      justify-content: center;
    }
    .quick-contact p,
    .quick-contact a {
      font-size: 0.75rem; 
    }
  
    #main-nav {
      padding: 0.3rem 0; 
    }
  
    #main-nav ul {
      flex-wrap: wrap;
    }
    #main-nav li {
      margin: 0.3rem; 
    }
    #main-nav a {
      font-size: 0.75rem;     
      padding: 0.45rem 0.45rem;
    }
  }

  @media (min-width: 668px) and (max-width: 707px) {
    .brand-logo,
    .logo-wrapper,
    .quick-contact {
      float: none;
      width: 100%;
      text-align: center;
      margin-top: 0.75rem;
    }
  
    #top-header {
      padding: 0.43rem 0;
    }
  
    .logo-wrapper img {
      margin-top: 0.43rem;
      max-height: 87px; 
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 0;
    }
  
    .brand-logo h1 {
      font-size: 1.69rem; 
      margin-top: 0.22rem; 
    }
    #top-header .brand-logo p {
      font-size: 0.95rem; 
    }
  
    .quick-contact {
      margin-top: 0.7rem;
      gap: 0.7rem;
      justify-content: center;
    }
    .quick-contact p,
    .quick-contact a {
      font-size: 0.7rem; 
    }
  
    #main-nav {
      padding: 0.28rem 0; 
    }
  
    #main-nav ul {
      flex-wrap: wrap;
    }
    #main-nav li {
      margin: 0.28rem; 
    }
    #main-nav a {
      font-size: 0.75rem;     
      padding: 0.33rem 0.33rem;
    }
  }

  @media (min-width: 664px) and (max-width: 667px) {
    .brand-logo,
    .logo-wrapper,
    .quick-contact {
      float: none;
      width: 100%;
      text-align: center;
      margin-top: 0.75rem;
    }
  
    #top-header {
      padding: 0.43rem 0;
    }
  
    .logo-wrapper img {
      margin-top: 0.43rem;
      max-height: 87px; 
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 0;
    }
  
    .brand-logo h1 {
      font-size: 1.69rem; 
      margin-top: 0.22rem; 
    }
    #top-header .brand-logo p {
      font-size: 0.95rem; 
    }
  
    .quick-contact {
      margin-top: 0.7rem;
      gap: 0.7rem;
      justify-content: center;
    }
    .quick-contact p,
    .quick-contact a {
      font-size: 0.7rem; 
    }
  
    #main-nav {
      padding: 0.28rem 0; 
    }
  
    #main-nav ul {
      flex-wrap: wrap;
    }
    #main-nav li {
      margin: 0.28rem; 
    }
    #main-nav a {
      font-size: 0.835rem;     
      padding: 0.33rem 0.33rem;
    }
  }

  @media (min-width: 588px) and (max-width: 663px) {
    .brand-logo,
    .logo-wrapper,
    .quick-contact {
      float: none;
      width: 100%;
      text-align: center;
      margin-top: 0.7rem;
    }
  
    #top-header {
      padding: 0.41rem 0;
    }
  
    .logo-wrapper img {
      margin-top: 0.41rem;
      max-height: 83px; 
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 0;
    }
  
    .brand-logo h1 {
      font-size: 1.61rem; 
      margin-top: 0.21rem; 
    }
    #top-header .brand-logo p {
      font-size: 0.9rem; 
    }
  
    .quick-contact {
      margin-top: 0.65rem;
      gap: 0.65rem;
      justify-content: center;
    }
    .quick-contact p,
    .quick-contact a {
      font-size: 0.65rem; 
    }
  
    #main-nav {
      padding: 0.26rem 0; 
    }
  
    #main-nav ul {
      flex-wrap: wrap;
    }
    #main-nav li {
      margin: 0.26rem; 
    }
    #main-nav a {
      font-size: 0.92rem;     
      padding: 0.41rem 0.41rem;
    }
  }

  @media (min-width: 538px) and (max-width: 587px) {
    .brand-logo,
    .logo-wrapper,
    .quick-contact {
      float: none;
      width: 100%;
      text-align: center;
      margin-top: 0.65rem;
    }
  
    #top-header {
      padding: 0.39rem 0;
    }
  
    .logo-wrapper img {
      margin-top: 0.39rem;
      max-height: 79px; 
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 0;
    }
  
    .brand-logo h1 {
      font-size: 1.53rem; 
      margin-top: 0.2rem; 
    }
    #top-header .brand-logo p {
      font-size: 0.85rem; 
    }
  
    .quick-contact {
      margin-top: 0.6rem;
      gap: 0.6rem;
      justify-content: center;
    }
    .quick-contact p,
    .quick-contact a {
      font-size: 0.6rem; 
    }
  
    #main-nav {
      padding: 0.24rem 0; 
    }
  
    #main-nav ul {
      flex-wrap: wrap;
    }
    #main-nav li {
      margin: 0.24rem; 
    }
    #main-nav a {
      font-size: 0.92rem;     
      padding: 0.39rem 0.39rem;
    }
  }

  @media (min-width: 488px) and (max-width: 537px) {
    .brand-logo,
    .logo-wrapper,
    .quick-contact {
      float: none;
      width: 100%;
      text-align: center;
      margin-top: 0.6rem;
    }
  
    #top-header {
      padding: 0.37rem 0;
    }
  
    .logo-wrapper img {
      margin-top: 0.37rem;
      max-height: 75px; 
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 0;
    }
  
    .brand-logo h1 {
      font-size: 1.46rem; 
      margin-top: 0.19rem; 
    }
    #top-header .brand-logo p {
      font-size: 0.8rem; 
    }
  
    .quick-contact {
      margin-top: 0.55rem;
      gap: 0.55rem;
      justify-content: center;
    }
    .quick-contact p,
    .quick-contact a {
      font-size: 0.60rem; 
    }
  
    #main-nav {
      padding: 0.22rem 0; 
    }
  
    #main-nav ul {
      flex-wrap: wrap;
    }
    #main-nav li {
      margin: 0.22rem; 
    }
    #main-nav a {
      font-size: 0.85rem;     
      padding: 0.37rem 0.37rem;
    }
  }

  @media (min-width: 438px) and (max-width: 487px) {
    .brand-logo,
    .logo-wrapper,
    .quick-contact {
      float: none;
      width: 100%;
      text-align: center;
      margin-top: 0.55rem;
    }
  
    #top-header {
      padding: 0.35rem 0;
    }
  
    .logo-wrapper img {
      margin-top: 0.35rem;
      max-height: 71px; 
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 0;
    }
  
    .brand-logo h1 {
      font-size: 1.39rem; 
      margin-top: 0.18rem; 
    }
    #top-header .brand-logo p {
      font-size: 0.76rem; 
    }
  
    .quick-contact {
      margin-top: 0.5rem;
      gap: 0.5rem;
      justify-content: center;
    }
    .quick-contact p,
    .quick-contact a {
      font-size: 0.70rem; 
    }
  
    #main-nav {
      padding: 0.2rem 0; 
    }
  
    #main-nav ul {
      flex-wrap: wrap;
    }
    #main-nav li {
      margin: 0.2rem; 
    }
    #main-nav a {
      font-size: 0.85rem;     
      padding: 0.35rem 0.35rem;
    }
  }

  @media (min-width: 388px) and (max-width: 437px) {
    .brand-logo,
    .logo-wrapper,
    .quick-contact {
      float: none;
      width: 100%;
      text-align: center;
      margin-top: 0.5rem;
    }
  
    #top-header {
      padding: 0.33rem 0;
    }
  
    .logo-wrapper img {
      margin-top: 0.33rem;
      max-height: 68px; 
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 0;
    }
  
    .brand-logo h1 {
      font-size: 1.32rem; 
      margin-top: 0.17rem; 
    }
    #top-header .brand-logo p {
      font-size: 0.72rem; 
    }
  
    .quick-contact {
      margin-top: 0.45rem;
      gap: 0.45rem;
      justify-content: center;
    }
    .quick-contact p,
    .quick-contact a {
      font-size: 0.66rem; 
    }
  
    #main-nav {
      padding: 0.18rem 0; 
    }
  
    #main-nav ul {
      flex-wrap: wrap;
    }
    #main-nav li {
      margin: 0.18rem; 
    }
    #main-nav a {
      font-size: 0.85rem;     
      padding: 0.31rem 0.31rem;
    }
  }

  @media (min-width: 338px) and (max-width: 387px) {
    .brand-logo,
    .logo-wrapper,
    .quick-contact {
      float: none;
      width: 100%;
      text-align: center;
      margin-top: 0.45rem;
    }
  
    #top-header {
      padding: 0.31rem 0;
    }
  
    .logo-wrapper img {
      margin-top: 0.31rem;
      max-height: 64px; 
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 0;
    }
  
    .brand-logo h1 {
      font-size: 1.26rem; 
      margin-top: 0.16rem; 
    }
    #top-header .brand-logo p {
      font-size: 0.695rem; 
    }
  
    .quick-contact {
      margin-top: 0.4rem;
      gap: 0.4rem;
      justify-content: center;
    }
    .quick-contact p,
    .quick-contact a {
      font-size: 0.60rem; 
    }
  
    #main-nav {
      padding: 0.16rem 0; 
    }
  
    #main-nav ul {
      flex-wrap: wrap;
    }
    #main-nav li {
      margin: 0.16rem; 
    }
    #main-nav a {
      font-size: 0.935rem;     
      padding: 0.65rem 0.65rem;
    }
  }

  @media (min-width: 300px) and (max-width: 337px) {
    .brand-logo,
    .logo-wrapper,
    .quick-contact {
      float: none;
      width: 100%;
      text-align: center;
      margin-top: 0.4rem;
    }
  
    #top-header {
      padding: 0.3rem 0;
    }
  
    .logo-wrapper img {
      margin-top: 0.3rem;
      max-height: 60px; 
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 0;
    }
  
    .brand-logo h1 {
      font-size: 1.2rem; 
      margin-top: 0.15rem; 
    }
    #top-header .brand-logo p {
      font-size: 0.67rem; 
    }
  
    .quick-contact {
      margin-top: 0.35rem;
      gap: 0.35rem;
      justify-content: center;
    }
    .quick-contact p,
    .quick-contact a {
      font-size: 0.55rem; 
    }
  
    #main-nav {
      padding: 0.15rem 0; 
    }
  
    #main-nav ul {
      flex-wrap: wrap;
    }
    #main-nav li {
      margin: 0.15rem; 
    }
    #main-nav a {
      font-size: 0.89rem;     
      padding: 0.45rem 0.45rem;
    }
  }
  
  /* Responsive Adjustments for 300px - 337px */
  @media (min-width: 300px) and (max-width: 337px) {
    .hero-text h2,
    .specialists-wrapper .section-title {
        font-size: 2rem;
    }

    .hero-text h3,
    .specialists-wrapper .section-subtitle {
        font-size: 1.25rem;
    }

    .specialists-figure figcaption {
        font-size: 0.8rem; /* Reduced proportionally */
    }

    .btn-hero-cta {
        padding: 0.50rem 0.7rem;
        font-size: 0.75rem;
        letter-spacing: 0.3px;
    }
  }

  /* Responsive Adjustments for 338px - 412px */
  @media (min-width: 338px) and (max-width: 412px) {
      .hero-text h2,
      .specialists-wrapper .section-title {
          font-size: 2.2rem;
      }

      .hero-text h3,
      .specialists-wrapper .section-subtitle {
          font-size: 1.4rem;
      }

      .specialists-wrapper .section-subtitle {
          font-size: 1.35rem;
      }

      .specialists-figure figcaption {
          font-size: 0.9rem; /* Slightly larger but still subtle */
      }

      .btn-hero-cta {
          padding: 0.55rem 0.85rem;
          font-size: 0.8rem;
          letter-spacing: 0.35px;
      }
  }

  /* Responsive Adjustments for 413px - 487px */
  @media (min-width: 413px) and (max-width: 487px) {
      .hero-text h2,
      .specialists-wrapper .section-title {
          font-size: 2.4rem;
      }

      .hero-text h3,
      .specialists-wrapper .section-subtitle {
          font-size: 1.55rem;
      }

      .specialists-figure figcaption {
          font-size: 1.03rem; /* Keeping proportional to original size */
      }

      .btn-hero-cta {
          padding: 0.6rem 1rem;
          font-size: 0.85rem;
          letter-spacing: 0.4px;
      }
  }

  /* Responsive Adjustments for 488px - 562px */
  @media (min-width: 488px) and (max-width: 562px) {
      .hero-text h2 {
          font-size: 2.6rem;
      }

      .hero-text h3 {
          font-size: 1.72rem;
      }

      .specialists-figure figcaption {
          font-size: 1.15rem;
      }

      .btn-hero-cta {
          padding: 0.62rem 1.10rem;
          font-size: 0.9rem;
          letter-spacing: 0.43px;
      }
  }

  /* Responsive Adjustments for 563px - 637px */
  @media (min-width: 563px) and (max-width: 637px) {
      .hero-text h2 {
          font-size: 2.8rem;
      }

      .hero-text h3 {
          font-size: 1.87rem;
      }

      .specialists-figure figcaption {
          font-size: 1.16rem;
      }
  }

  /* Responsive Adjustments for 638px - 712px */
  @media (min-width: 638px) and (max-width: 712px) {
      .hero-text h2 {
          font-size: 3rem;
      }

      .hero-text h3 {
          font-size: 1.93rem;
      }

      .specialists-figure figcaption {
          font-size: 1.17rem; /* Back to original size at larger screens */
      }
  }


  @media (max-width: 1010px) and (max-width: 1010px) {
    #main-footer {
      background-color: var(--color-blue-dark);
      color: var(--color-white);
      /* 90% of 3rem → 2.7rem; 90% of 1rem → 0.9rem */
      padding: 2.7rem 0.9rem;
      animation: fadeIn var(--fade-duration) var(--fade-ease) 1.6s forwards;
    }
    
    .footer-wrapper {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-evenly; /* or space-around, depending on preference */
      /* 90% of 4rem → 3.6rem */
      gap: 3.6rem;
      width: 90%;
      max-width: var(--max-width);
      margin: 0 auto;
      text-align: center;
    }
    
    .footer-col {
      /* 90% of 150px → 135px (optional if you want the columns narrower) */
      flex: 1 1 135px;
    }
    
    .footer-col h3 {
      /* 90% of 1rem → 0.9rem */
      margin-bottom: 0.9rem;
      /* 90% of 1.55rem → ~1.395rem */
      font-size: 1.395rem;
      text-decoration: underline;
      text-decoration-color: var(--color-white);
    }
    
    .footer-col p,
    .footer-col a {
      /* 90% of 1rem → 0.9rem */
      margin-bottom: 0.9rem;
      color: var(--color-white);
      text-decoration: none;
      /* 90% of 1.25rem → 1.125rem */
      font-size: 1.125rem;
    }
    
    .footer-col p:hover,
    .footer-col a:hover {
      text-decoration: underline;
    }
    
    .footer-bottom {
      text-align: center;
      /* 90% of 4rem → 3.6rem */
      margin-top: 3.6rem;
      color: var(--color-white);
      /* 90% of 0.9rem → 0.81rem */
      font-size: 0.81rem;
      opacity: 0.8;
    }
    
    .footer-bottom p {
      color: var(--color-white);
      /* 90% of 1.25rem → 1.125rem */
      font-size: 1.125rem;
    }
    
    p img {
      /* 90% of 27px → 24.3px */
      width: 24.3px !important;
      height: auto !important;
      vertical-align: middle;
      /* 90% of 0.4rem → 0.36rem */
      margin-left: 0.36rem;
      transition: transform 0.3s ease;
    }
    
    .flag-image {
      /* 90% of 75px → 67.5px */
      width: 67.5px !important;
      height: auto !important;
      display: inline-block !important;
      /* 90% of -2rem → -1.8rem */
      margin-bottom: -1.8rem;
    }
    
    p img:hover {
      transform: scale(1.1);
    }
  }
  
  @media (min-width: 812px) and (max-width: 910px) {
    #main-footer {
      background-color: var(--color-blue-dark);
      color: var(--color-white);
      /* 80% of 3rem → 2.4rem; 80% of 1rem → 0.8rem */
      padding: 2.4rem 0.8rem;
      animation: fadeIn var(--fade-duration) var(--fade-ease) 1.6s forwards;
    }
    
    .footer-wrapper {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-evenly; /* or space-around, depending on preference */
      /* 80% of 4rem → 3.2rem */
      gap: 3.2rem;
      width: 90%;
      max-width: var(--max-width);
      margin: 0 auto;
      text-align: center;
    }
    
    .footer-col {
      /* 80% of 150px → 120px */
      flex: 1 1 120px;
    }
    
    .footer-col h3 {
      /* 80% of 1rem → 0.8rem for margin-bottom */
      margin-bottom: 0.8rem;
      /* 80% of 1.55rem → ~1.24rem */
      font-size: 1.24rem;
      text-decoration: underline;
      text-decoration-color: var(--color-white);
    }
    
    .footer-col p,
    .footer-col a {
      /* 80% of 1rem → 0.8rem */
      margin-bottom: 0.8rem;
      color: var(--color-white);
      text-decoration: none;
      /* 80% of 1.25rem → 1rem */
      font-size: 1rem;
      transform: scale(1.10);
    }
    
    .footer-col p:hover,
    .footer-col a:hover {
      text-decoration: underline;
    }
    
    .footer-bottom {
      text-align: center;
      /* 80% of 4rem → 3.2rem */
      margin-top: 3.2rem;
      color: var(--color-white);
      /* 80% of 0.9rem → 0.72rem */
      font-size: 0.72rem;
      opacity: 0.8;
    }
    
    .footer-bottom p {
      color: var(--color-white);
      /* 80% of 1.25rem → 1rem, but if you want exactly scaled from your 90% version use 0.9rem */
      font-size: 0.9rem;
    }
    
    p img {
      /* 80% of 27px → 21.6px */
      width: 21.6px !important;
      height: auto !important;
      vertical-align: middle;
      /* 80% of 0.4rem → 0.32rem */
      margin-left: 0.32rem;
      transition: transform 0.3s ease;
    }
    
    .flag-image {
      /* 80% of 75px → 60px */
      width: 60px !important;
      height: auto !important;
      display: inline-block !important;
      /* 80% of -2rem → -1.6rem */
      margin-bottom: -1.6rem;
    }
    
    p img:hover {
      transform: scale(1.1);
    }
  }
  
  @media (min-width: 712px) and (max-width: 811px) {
    #main-footer {
      background-color: var(--color-blue-dark);
      color: var(--color-white);
      /* 70% scaling: 3rem * 0.7 = 2.1rem, 1rem * 0.7 = 0.7rem */
      padding: 2.1rem 0.7rem;
      animation: fadeIn var(--fade-duration) var(--fade-ease) 1.6s forwards;
    }
    
    .footer-wrapper {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-evenly;
      /* 70% of 4rem → 2.8rem */
      gap: 2.8rem;
      width: 90%;
      max-width: var(--max-width);
      margin: 0 auto;
      text-align: center;
    }
    
    .footer-col {
      /* 70% of 150px → 105px */
      flex: 1 1 105px;
    }
    
    .footer-col h3 {
      /* 70% of 1rem → 0.7rem margin-bottom; 70% of 1.55rem → ~1.085rem */
      margin-bottom: 0.7rem;
      font-size: 1.185rem;
      text-decoration: underline;
      text-decoration-color: var(--color-white);
    }
    
    .footer-col p,
    .footer-col a {
      margin-bottom: 0.7rem;
      color: var(--color-white);
      text-decoration: none;
      /* 70% of 1.25rem → 0.875rem */
      font-size: 0.875rem;
      transform: scale(1.10);
    }
    
    .footer-col p:hover,
    .footer-col a:hover {
      text-decoration: underline;
    }
    
    .footer-bottom {
      text-align: center;
      /* 70% of 4rem → 2.8rem */
      margin-top: 2.8rem;
      color: var(--color-white);
      /* 70% of 0.9rem → 0.63rem */
      font-size: 0.63rem;
      opacity: 0.8;
    }
    
    .footer-bottom p {
      color: var(--color-white);
      /* 70% of 1.25rem → 0.875rem */
      font-size: 0.875rem;
    }
    
    p img {
      /* 70% of 27px → 18.9px; 70% of 0.4rem → 0.28rem */
      width: 18.9px !important;
      height: auto !important;
      vertical-align: middle;
      margin-left: 0.28rem;
      transition: transform 0.3s ease;
    }
    
    .flag-image {
      /* 70% of 75px → 52.5px; 70% of -2rem → -1.4rem */
      width: 58.5px !important;
      height: auto !important;
      display: inline-block !important;
      margin-bottom: -1.4rem;
    }
    
    p img:hover {
      transform: scale(1.1);
    }
  }
  
  @media (min-width: 612px) and (max-width: 711px) {
    #main-footer {
      background-color: var(--color-blue-dark);
      color: var(--color-white);
      /* 60% scaling: 3rem * 0.6 = 1.8rem, 1rem * 0.6 = 0.6rem */
      padding: 1.8rem 0.6rem;
      animation: fadeIn var(--fade-duration) var(--fade-ease) 1.6s forwards;
    }
    
    .footer-wrapper {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-evenly;
      /* 60% of 4rem → 2.4rem */
      gap: 2.4rem;
      width: 90%;
      max-width: var(--max-width);
      margin: 0 auto;
      text-align: center;
    }
    
    .footer-col {
      /* 60% of 150px → 90px */
      flex: 1 1 90px;
    }
    
    .footer-col h3 {
      margin-bottom: 0.6rem;
      /* 60% of 1.55rem → 0.93rem */
      font-size: 1.13rem;
      text-decoration: underline;
      text-decoration-color: var(--color-white);
    }
    
    .footer-col p,
    .footer-col a {
      margin-bottom: 0.6rem;
      color: var(--color-white);
      text-decoration: none;
      /* 60% of 1.25rem → 0.75rem */
      font-size: 0.75rem;
      transform: scale(1.10);
    }
    
    .footer-col p:hover,
    .footer-col a:hover {
      text-decoration: underline;
    }
    
    .footer-bottom {
      text-align: center;
      /* 60% of 4rem → 2.4rem */
      margin-top: 2.4rem;
      color: var(--color-white);
      /* 60% of 0.9rem → 0.54rem */
      font-size: 0.54rem;
      opacity: 0.8;
    }
    
    .footer-bottom p {
      color: var(--color-white);
      /* 60% of 1.25rem → 0.75rem */
      font-size: 0.75rem;
    }
    
    p img {
      /* 60% of 27px → 16.2px; 60% of 0.4rem → 0.24rem */
      width: 16.2px !important;
      height: auto !important;
      vertical-align: middle;
      margin-left: 0.24rem;
      transition: transform 0.3s ease;
    }
    
    .flag-image {
      /* 60% of 75px → 45px; 60% of -2rem → -1.2rem */
      width: 50px !important;
      height: auto !important;
      display: inline-block !important;
      margin-bottom: -1.2rem;
    }
    
    p img:hover {
      transform: scale(1.1);
    }
  }

  @media (min-width: 547px) and (max-width: 611px) {
    #main-footer {
      background-color: var(--color-blue-dark);
      color: var(--color-white);
      /* Still 50% of original padding values */
      padding: 1.5rem 0.5rem;
      animation: fadeIn var(--fade-duration) var(--fade-ease) 1.6s forwards;
    }
    
    .footer-wrapper {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-evenly;
      gap: 2rem;
      width: 90%;
      max-width: var(--max-width);
      margin: 0 auto;
      text-align: center;
    }
    
    .footer-col {
      flex: 1 1 75px;
    }
    
    .footer-col h3 {
      margin-bottom: 0.5rem;
      /* Increased from 0.775rem to 0.85rem */
      font-size: 1.03rem;
      text-decoration: underline;
      text-decoration-color: var(--color-white);
    }
    
    .footer-col p,
    .footer-col a {
      margin-bottom: 0.5rem;
      color: var(--color-white);
      text-decoration: none;
      /* Increased from 0.625rem to 0.7rem */
      font-size: 0.67rem;
      transform: scale(1.10);
    }
    
    .footer-col p:hover,
    .footer-col a:hover {
      text-decoration: underline;
    }
    
    .footer-bottom {
      text-align: center;
      margin-top: 2rem;
      color: var(--color-white);
      /* Increased from 0.45rem to 0.5rem */
      font-size: 0.5rem;
      opacity: 0.8;
    }
    
    .footer-bottom p {
      color: var(--color-white);
      /* Increased from 0.625rem to 0.7rem */
      font-size: 0.7rem;
    }
    
    p img {
      /* Kept icon sizes the same, but you can increase if needed */
      width: 16.2px !important;
      height: auto !important;
      vertical-align: middle;
      margin-left: 0.2rem;
      transition: transform 0.3s ease;
    }
    
    .flag-image {
      width: 48.5px !important;
      height: auto !important;
      display: inline-block !important;
      margin-bottom: -1rem;
    }
    
    p img:hover {
      transform: scale(1.1);
    }
  }  

  @media (min-width: 480px) and (max-width: 546px) {
    #main-footer {
      background-color: var(--color-blue-dark);
      color: var(--color-white);
      /* 40% scaling: 3rem * 0.4 = 1.2rem, 1rem * 0.4 = 0.4rem */
      padding: 1.2rem 0.4rem;
      animation: fadeIn var(--fade-duration) var(--fade-ease) 1.6s forwards;
    }
    
    .footer-wrapper {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-evenly;
      /* 40% of 4rem → 1.6rem */
      gap: 1.6rem;
      width: 90%;
      max-width: var(--max-width);
      margin: 0 auto;
      text-align: center;
    }
    
    .footer-col {
      /* 40% of 150px → 60px */
      flex: 1 1 60px;
    }
    
    .footer-col h3 {
      margin-bottom: 0.4rem;
      /* 40% of 1.55rem → 0.62rem */
      font-size: 0.9rem;
      text-decoration: underline;
      text-decoration-color: var(--color-white);
    }
    
    .footer-col p,
    .footer-col a {
      margin-bottom: 0.4rem;
      color: var(--color-white);
      text-decoration: none;
      /* 40% of 1.25rem → 0.5rem */
      font-size: 0.60rem;
      transform: scale(1.10);
    }
    
    .footer-col p:hover,
    .footer-col a:hover {
      text-decoration: underline;
    }
    
    .footer-bottom {
      text-align: center;
      /* 40% of 4rem → 1.6rem */
      margin-top: 1.6rem;
      color: var(--color-white);
      /* 40% of 0.9rem → 0.36rem */
      font-size: 0.56rem;
      opacity: 0.8;
    }
    
    .footer-bottom p {
      color: var(--color-white);
      /* 40% of 1.25rem → 0.5rem */
      font-size: 0.56rem;
    }
    
    p img {
      /* 40% of 27px → 10.8px; 40% of 0.4rem → 0.16rem */
      width: 13.8px !important;
      height: auto !important;
      vertical-align: middle;
      margin-left: 0.16rem;
      transition: transform 0.3s ease;
    }
    
    .flag-image {
      /* 40% of 75px → 30px; 40% of -2rem → -0.8rem */
      width: 48.5px !important;
      height: auto !important;
      display: inline-block !important;
      margin-bottom: -0.8rem;
    }
    
    p img:hover {
      transform: scale(1.1);
    }
  }

  @media (min-width: 412px) and (max-width: 480px) {
    #main-footer {
      background-color: var(--color-blue-dark);
      color: var(--color-white);
      /* 40% scaling: 3rem * 0.4 = 1.2rem, 1rem * 0.4 = 0.4rem */
      padding: 1.2rem 0.4rem;
      animation: fadeIn var(--fade-duration) var(--fade-ease) 1.6s forwards;
    }
    
    .footer-wrapper {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-evenly;
      /* 40% of 4rem → 1.6rem */
      gap: 1.6rem;
      width: 90%;
      max-width: var(--max-width);
      margin: 0 auto;
      text-align: center;
    }
    
    .footer-col {
      /* 40% of 150px → 60px */
      flex: 1 1 80px;
    }
    
    .footer-col h3 {
      margin-bottom: 0.4rem;
      /* 40% of 1.55rem → 0.62rem */
      font-size: 0.9rem;
      text-decoration: underline;
      text-decoration-color: var(--color-white);
    }
    
    .footer-col p,
    .footer-col a {
      margin-bottom: 0.4rem;
      color: var(--color-white);
      text-decoration: none;
      /* 40% of 1.25rem → 0.5rem */
      font-size: 0.548rem;
      transform: scale(1.10);
    }
    
    .footer-col p:hover,
    .footer-col a:hover {
      text-decoration: underline;
    }
    
    .footer-bottom {
      text-align: center;
      /* 40% of 4rem → 1.6rem */
      margin-top: 1.6rem;
      color: var(--color-white);
      /* 40% of 0.9rem → 0.36rem */
      font-size: 0.56rem;
      opacity: 0.8;
    }
    
    .footer-bottom p {
      color: var(--color-white);
      /* 40% of 1.25rem → 0.5rem */
      font-size: 0.56rem;
    }
    
    p img {
      /* 40% of 27px → 10.8px; 40% of 0.4rem → 0.16rem */
      width: 13.8px !important;
      height: auto !important;
      vertical-align: middle;
      margin-left: 0.16rem;
      transition: transform 0.3s ease;
    }
    
    .flag-image {
      /* 40% of 75px → 30px; 40% of -2rem → -0.8rem */
      width: 45.5px !important;
      height: auto !important;
      display: inline-block !important;
      margin-bottom: -0.8rem;
    }
    
    p img:hover {
      transform: scale(1.1);
    }
  }

  @media (min-width: 381px) and (max-width: 411px) {
    #main-footer {
      background-color: var(--color-blue-dark);
      color: var(--color-white);
      /* 30% scaling: 3rem * 0.3 = 0.9rem, 1rem * 0.3 = 0.3rem */
      padding: 0.9rem 0.3rem;
      animation: fadeIn var(--fade-duration) var(--fade-ease) 1.6s forwards;
    }
    
    .footer-wrapper {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-evenly;
      /* 30% of 4rem → 1.2rem */
      gap: 1.2rem;
      width: 90%;
      max-width: var(--max-width);
      margin: 0 auto;
      text-align: center;
    }
    
    .footer-col {
      /* 30% of 150px → 45px */
      flex: 1 1 65px;
    }
    
    .footer-col h3 {
      margin-bottom: 0.3rem;
      /* 30% of 1.55rem → ~0.465rem */
      font-size: 0.82rem;
      text-decoration: underline;
      text-decoration-color: var(--color-white);
    }
    
    .footer-col p,
    .footer-col a {
      margin-bottom: 0.3rem;
      color: var(--color-white);
      text-decoration: none;
      /* 30% of 1.25rem → 0.375rem */
      font-size: 0.50rem;
      transform: scale(1.10);
    }
    
    .footer-col p:hover,
    .footer-col a:hover {
      text-decoration: underline;
    }
    
    .footer-bottom {
      text-align: center;
      /* 30% of 4rem → 1.2rem */
      margin-top: 1.2rem;
      color: var(--color-white);
      /* 30% of 0.9rem → 0.27rem */
      font-size: 0.8rem;
      opacity: 0.8;
    }
    
    .footer-bottom p {
      color: var(--color-white);
      /* 30% of 1.25rem → 0.375rem */
      font-size: 0.5rem;
    }
    
    p img {
      /* 30% of 27px → 8.1px; 30% of 0.4rem → 0.12rem */
      width: 9.1px !important;
      height: auto !important;
      vertical-align: middle;
      margin-left: 0.12rem;
      transition: transform 0.3s ease;
    }
    
    .flag-image {
      /* 30% of 75px → 22.5px; 30% of -2rem → -0.6rem */
      width: 45.5px !important;
      height: auto !important;
      display: inline-block !important;
      margin-bottom: -0.6rem;
    }
    
    p img:hover {
      transform: scale(1.1);
    }
  }
  
  @media (min-width: 350px) and (max-width: 380px) {
    #main-footer {
      background-color: var(--color-blue-dark);
      color: var(--color-white);
      /* 30% scaling: 3rem * 0.3 = 0.9rem, 1rem * 0.3 = 0.3rem */
      padding: 0.9rem 0.3rem;
      animation: fadeIn var(--fade-duration) var(--fade-ease) 1.6s forwards;
    }
    
    .footer-wrapper {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-evenly;
      /* 30% of 4rem → 1.2rem */
      gap: 1.2rem;
      width: 90%;
      max-width: var(--max-width);
      margin: 0 auto;
      text-align: center;
    }
    
    .footer-col {
      /* 30% of 150px → 45px */
      flex: 1 1 65px;
    }
    
    .footer-col h3 {
      margin-bottom: 0.3rem;
      /* 30% of 1.55rem → ~0.465rem */
      font-size: 0.82rem;
      text-decoration: underline;
      text-decoration-color: var(--color-white);
    }
    
    .footer-col p,
    .footer-col a {
      margin-bottom: 0.3rem;
      color: var(--color-white);
      text-decoration: none;
      /* 30% of 1.25rem → 0.375rem */
      font-size: 0.42rem;
      transform: scale(1.25);
    }
    
    .footer-col p:hover,
    .footer-col a:hover {
      text-decoration: underline;
    }
    
    .footer-bottom {
      text-align: center;
      /* 30% of 4rem → 1.2rem */
      margin-top: 1.2rem;
      color: var(--color-white);
      /* 30% of 0.9rem → 0.27rem */
      font-size: 0.8rem;
      opacity: 0.8;
    }
    
    .footer-bottom p {
      color: var(--color-white);
      /* 30% of 1.25rem → 0.375rem */
      font-size: 0.5rem;
    }
    
    p img {
      /* 30% of 27px → 8.1px; 30% of 0.4rem → 0.12rem */
      width: 9.1px !important;
      height: auto !important;
      vertical-align: middle;
      margin-left: 0.12rem;
      transition: transform 0.3s ease;
    }
    
    .flag-image {
      /* 30% of 75px → 22.5px; 30% of -2rem → -0.6rem */
      width: 45.5px !important;
      height: auto !important;
      display: inline-block !important;
      margin-bottom: -0.6rem;
    }
    
    p img:hover {
      transform: scale(1.1);
    }
  }

  @media (min-width: 320px) and (max-width: 349px) {
    #main-footer {
      background-color: var(--color-blue-dark);
      color: var(--color-white);
      /* 30% scaling: 3rem * 0.3 = 0.9rem, 1rem * 0.3 = 0.3rem */
      padding: 0.9rem 0.3rem;
      animation: fadeIn var(--fade-duration) var(--fade-ease) 1.6s forwards;
    }
    
    .footer-wrapper {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-evenly;
      /* 30% of 4rem → 1.2rem */
      gap: 1.3rem;
      width: 90%;
      max-width: var(--max-width);
      margin: 0 auto;
      text-align: center;
    }
    
    .footer-col {
      /* 30% of 150px → 45px */
      flex: 1 1 65px;
    }
    
    .footer-col h3 {
      margin-bottom: 0.3rem;
      /* 30% of 1.55rem → ~0.465rem */
      font-size: 0.82rem;
      text-decoration: underline;
      text-decoration-color: var(--color-white);
    }
    
    .footer-col p,
    .footer-col a {
      margin-bottom: 0.3rem;
      color: var(--color-white);
      text-decoration: none;
      /* 30% of 1.25rem → 0.375rem */
      font-size: 0.405rem;
      transform: scale(1.25);
    }
    
    .footer-col p:hover,
    .footer-col a:hover {
      text-decoration: underline;
    }
    
    .footer-bottom {
      text-align: center;
      /* 30% of 4rem → 1.2rem */
      margin-top: 1.2rem;
      color: var(--color-white);
      /* 30% of 0.9rem → 0.27rem */
      font-size: 0.8rem;
      opacity: 0.8;
    }
    
    .footer-bottom p {
      color: var(--color-white);
      /* 30% of 1.25rem → 0.375rem */
      font-size: 0.5rem;
    }
    
    p img {
      /* 30% of 27px → 8.1px; 30% of 0.4rem → 0.12rem */
      width: 9.1px !important;
      height: auto !important;
      vertical-align: middle;
      margin-left: 0.12rem;
      transition: transform 0.3s ease;
    }
    
    .flag-image {
      /* 30% of 75px → 22.5px; 30% of -2rem → -0.6rem */
      width: 45.5px !important;
      height: auto !important;
      display: inline-block !important;
      margin-bottom: -0.6rem;
    }
    
    p img:hover {
      transform: scale(1.1);
    }
  }

  @media (min-width: 300px) and (max-width: 319px) {
    #main-footer {
      background-color: var(--color-blue-dark);
      color: var(--color-white);
      /* 30% scaling: 3rem * 0.3 = 0.9rem, 1rem * 0.3 = 0.3rem */
      padding: 0.9rem 0.3rem;
      animation: fadeIn var(--fade-duration) var(--fade-ease) 1.6s forwards;
    }
    
    .footer-wrapper {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-evenly;
      /* 30% of 4rem → 1.2rem */
      gap: 1.3rem;
      width: 90%;
      max-width: var(--max-width);
      margin: 0 auto;
      text-align: center;
    }
    
    .footer-col {
      /* 30% of 150px → 45px */
      flex: 1 1 65px;
    }
    
    .footer-col h3 {
      margin-bottom: 0.3rem;
      /* 30% of 1.55rem → ~0.465rem */
      font-size: 0.82rem;
      text-decoration: underline;
      text-decoration-color: var(--color-white);
    }
    
    .footer-col p,
    .footer-col a {
      margin-bottom: 0.3rem;
      color: var(--color-white);
      text-decoration: none;
      /* 30% of 1.25rem → 0.375rem */
      font-size: 0.37rem;
      transform: scale(1.10);
    }
    
    .footer-col p:hover,
    .footer-col a:hover {
      text-decoration: underline;
    }
    
    .footer-bottom {
      text-align: center;
      /* 30% of 4rem → 1.2rem */
      margin-top: 1.2rem;
      color: var(--color-white);
      /* 30% of 0.9rem → 0.27rem */
      font-size: 0.8rem;
      opacity: 0.8;
    }
    
    .footer-bottom p {
      color: var(--color-white);
      /* 30% of 1.25rem → 0.375rem */
      font-size: 0.5rem;
    }
    
    p img {
      /* 30% of 27px → 8.1px; 30% of 0.4rem → 0.12rem */
      width: 9.1px !important;
      height: auto !important;
      vertical-align: middle;
      margin-left: 0.12rem;
      transition: transform 0.3s ease;
    }
    
    .flag-image {
      /* 30% of 75px → 22.5px; 30% of -2rem → -0.6rem */
      width: 45.5px !important;
      height: auto !important;
      display: inline-block !important;
      margin-bottom: -0.6rem;
    }
    
    p img:hover {
      transform: scale(1.1);
    }
  }

  /* 🌍 Show Hamburger on Mobile */
  @media (max-width: 668px) {
    .hamburger {
        display: block !important; /* Ensure visibility on small screens */
        margin-left: 1rem;
    }

    #main-nav {
      position: sticky;
      top: 0;
      z-index: 999;
      background-color: var(--color-black);
      box-shadow: 0 2px 5px var(--color-shadow);
    }
    
    /* ✅ IMPORTANT: don't toggle display on the UL (display can't animate) */
    #main-nav ul {
      display: flex;               /* was: none */
      justify-content: center;
      align-items: center;
      list-style: none;
      margin-top: 0.00rem;
      margin-left: 2rem;

      overflow: hidden;            /* enables the slide shut */
      max-height: 0;               /* collapsed */
      transition: max-height 620ms ease, margin-top 620ms ease; /* ✅ add margin-top */
      will-change: max-height, margin-top;                      /* ✅ reduces micro stutter */
    }

    /* when open */
    #main-nav.show ul {
      margin-top: -1.95rem; /* was 0 or positive before */
      max-height: 500px;           /* just needs to be > your menu height */
      transition: max-height 0.62s ease, margin-top 0.62s ease; /* faster CLOSE */
    }
    
    #main-nav li {
      margin: 0 1rem;
    }
    
    #main-nav a {
      color: var(--color-white);
      font-weight: 600;
      padding: 1rem 0.75rem;
      display: block;
      transition: background-color var(--transition-speed) ease;
    }
    
    #main-nav a:hover {
      background-color: var(--color-blue-dark);
    }

    #main-nav.show li {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    }
  }

  /* Anchor the bar */
  .service-box h3 {
    position: relative;
    display: inline-block;   /* no overflow clipping */
  }

  /* Blue bar */
  .service-box h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 1px;             /* bar inside the box */
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-blue));
    transform-origin: center;
    transform: scaleX(0);
    transition: transform .35s ease;
  }

  /* Hover / tap trigger */
  .service-box:hover h3::after,
  .service-box:focus-within h3::after {
    transform: scaleX(1);
  }

  .service-box {
    position: relative;
    --neon-a: rgba(63,94,181,0.75);    /* stronger glow */
    --neon-b: rgba(26,48,203,0.75);
    --dot: 1.5px;                      /* slightly thicker rail */
    --cycle: 2.4s;                     /* faster run */
  }

  .service-box span.fx-top,
  .service-box span.fx-bottom {
    left: 0; right: 0;
    height: var(--dot);
    background-size: 200% 100%;
  }
  .service-box span.fx-top {
    top: 0;
    background: linear-gradient(
      90deg,
      var(--neon-a),
      var(--neon-b),
      var(--neon-a)
    );
  }
  .service-box span.fx-bottom {
    bottom: 0;
    background: linear-gradient(
      90deg,
      var(--neon-b),
      var(--neon-a),
      var(--neon-b)
    );
  }

  .service-box span.fx-left,
  .service-box span.fx-right {
    top: 0; bottom: 0;
    width: var(--dot);
    background-size: 100% 200%;
  }
  .service-box span.fx-left {
    left: 0;
    background: linear-gradient(
      180deg,
      var(--neon-b),
      var(--neon-a),
      var(--neon-b)
    );
  }
  .service-box span.fx-right {
    right: 0;
    background: linear-gradient(
      180deg,
      var(--neon-a),
      var(--neon-b),
      var(--neon-a)
    );
  }

  /* only show & animate on hover */
  .service-box span.fx-top,
  .service-box span.fx-bottom,
  .service-box span.fx-left,
  .service-box span.fx-right {
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .service-box:hover span.fx-top,
  .service-box:hover span.fx-bottom,
  .service-box:hover span.fx-left,
  .service-box:hover span.fx-right {
    opacity: 1;
  }
  .service-box:hover span.fx-top {
    animation: rail-x var(--cycle) linear infinite;
  }
  .service-box:hover span.fx-bottom {
    animation: rail-x var(--cycle) linear infinite reverse;
  }
  .service-box:hover span.fx-right {
    animation: rail-y var(--cycle) linear infinite;
  }
  .service-box:hover span.fx-left {
    animation: rail-y var(--cycle) linear infinite reverse;
  }

  /* stronger hover glow */
  .service-box:hover {
    box-shadow:
      0 0 6px rgba(63,94,181,0.4),
      0 8px 15px rgba(0,0,0,0.1);
  }

  @keyframes rail-x {
    to { background-position: -200% 0; }
  }
  @keyframes rail-y {
    to { background-position: 0 -200%; }
  }

  /* Subscribe heading gold-sweep adapted with blue from root */
  #subscribe-section .section-title {
    position: relative;
    display: inline-block;
    /* sweep colors */
    --sw-a: var(--color-blue-light);
    --sw-b: var(--color-blue);
    /* spacing & timing */
    --gap-x: 20px;
    --gap-top: 4px;
    --gap-bottom: 4px;
    --dot: 2px;
    --speed: 0.6s;
  }

  /* shared span setup */
  #subscribe-section .section-title .fx-top,
  #subscribe-section .section-title .fx-right,
  #subscribe-section .section-title .fx-bottom,
  #subscribe-section .section-title .fx-left {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    border-radius: 100vmax;
    background: transparent;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
    animation-play-state: paused;
  }

  /* horizontal rails */
  #subscribe-section .section-title .fx-top,
  #subscribe-section .section-title .fx-bottom {
    height: var(--dot);
    width: calc(100% + 2*var(--gap-x) + var(--dot));
    transform-origin: left;
    transform: scaleX(0);
    background-size: 200% 100%;
  }
  #subscribe-section .section-title .fx-top {
    top: calc(-1*var(--gap-top) - var(--dot)/2);
    left: calc(-1*var(--gap-x) - var(--dot)/2);
    background: linear-gradient(
      90deg,
      transparent 40%,
      var(--sw-a),
      var(--sw-b)
    );
  }
  #subscribe-section .section-title .fx-bottom {
    bottom: calc(-1*var(--gap-bottom) - var(--dot)/2);
    left: calc(-1*var(--gap-x) - var(--dot)/2);
    transform-origin: right;
    background: linear-gradient(
      90deg,
      var(--sw-b),
      var(--sw-a),
      transparent 60%
    );
  }

  /* vertical rails */
  #subscribe-section .section-title .fx-left,
  #subscribe-section .section-title .fx-right {
    width: var(--dot);
    top: calc(-1*var(--gap-top) - var(--dot)/2);
    bottom: calc(-1*var(--gap-bottom) - var(--dot)/2);
    transform-origin: top;
    transform: scaleY(0);
    background-size: 100% 200%;
  }
  #subscribe-section .section-title .fx-right {
    right: calc(-1*var(--gap-x) - var(--dot)/2);
    background: linear-gradient(
      180deg,
      transparent 30%,
      var(--sw-a),
      var(--sw-b)
    );
  }
  #subscribe-section .section-title .fx-left {
    left: calc(-1*var(--gap-x) - var(--dot)/2);
    transform-origin: bottom;
    background: linear-gradient(
      180deg,
      var(--sw-b),
      var(--sw-a),
      transparent 70%
    );
  }

  /* sweep keyframes */
  @keyframes sweep-x {
    0%   { transform: scaleX(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(1); opacity: 0; }
  }
  @keyframes sweep-y {
    0%   { transform: scaleY(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
  }

  /* trigger in clockwise sequence on hover */
  #subscribe-section .section-title:hover .fx-top {
    animation: sweep-x var(--speed) ease 0s both;
  }
  #subscribe-section .section-title:hover .fx-right {
    animation: sweep-y var(--speed) ease var(--speed) both;
  }
  #subscribe-section .section-title:hover .fx-bottom {
    animation: sweep-x var(--speed) ease calc(2*var(--speed)) both;
  }
  #subscribe-section .section-title:hover .fx-left {
    animation: sweep-y var(--speed) ease calc(3*var(--speed)) both;
  }

  .form-legal{
    display: block;
    width: fit-content;      /* shrink-wrap to the text width */
    margin: 0.75rem auto 0.5rem; /* auto left/right centers the block */
    text-align: center;      /* center the text inside */
    font-size: 1rem;
    line-height: 1.35;
    color: #555;
  }

  .form-legal__line1,
  .form-legal__line2{
    display: block;           /* forces 2 lines exactly */
    white-space: nowrap;      /* keeps each line on one line */
  }

  .form-legal a{
    color: var(--color-blue, #1a30cb);
    text-decoration: underline;
  }

  .form-legal a:hover{
    color: var(--color-blue-dark, #0D1F47);
  }

  /* inside the contact form grid */
  #contact-form .form-legal{
    grid-column: 1 / -1;    /* span full row across all columns */
    justify-self: center;   /* center the block within the grid */
    text-align: center;     /* center the text inside */
    margin: 0.25rem 0 0;    /* optional spacing */
    font-size: 1rem;
    line-height: 1.35;
    color: #555;
  }
  #contact-form .form-legal__line1,
  #contact-form .form-legal__line2{
    display: block;
    white-space: nowrap;
  }

  /* =========================================================
   GLOBAL FORM UTILITIES (shared across pages)
   Put in: /public/css/styles.css
   ========================================================= */

  /* ✅ Screen-reader only utility (use anywhere) */
  .visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: 0;
  }

  /* ✅ Honeypots / hidden verification fields (keep markup unchanged) */
  .verify-access-token,
  .contact-checkpoint,
  .contact-extra-verification,
  .manual-review-flag,
  .form-opt-verify,
  .confirm-optin-wrapper {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
  }

  /* ✅ Shared “By submitting…” legal line (works on contact + subscribe + popups) */
  .form-legal {
    width: 100%;
    text-align: center;
    margin: 0.35rem 0 0.25rem;
    font-size: 1rem;
    line-height: 1.35;
    color: #555;
  }

  .form-legal__line1,
  .form-legal__line2 {
    display: block;
    white-space: nowrap;
  }

  .form-legal a {
    color: var(--color-blue, #1a30cb);
    text-decoration: underline;
  }
  .form-legal a:hover {
    color: var(--color-blue-dark, #0D1F47);
  }

  /* On small screens, allow wrapping so it never overflows */
  @media (max-width: 420px) {
    .form-legal__line1,
    .form-legal__line2 {
      white-space: normal;
    }
  }

  /* ✅ Field validation outline (any form) */
  input[aria-invalid="true"],
  textarea[aria-invalid="true"] {
    outline: 2px solid rgba(220, 38, 38, 0.637);
    outline-offset: 2px;
  }

  /* ✅ Tooltip bubbles (any form) */
  .field-hint {
    text-align: left;          /* ✅ force left aligned tooltip text */
    display: none;
    margin-top: 0.50rem;
    margin-bottom: 0.25rem;

    max-width: 56ch;
    white-space: pre-line;

    background: rgba(0, 0, 0, 0.88);
    color: #fff;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    font-size: 0.90rem;
    line-height: 1.25;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  }

  .field-hint.is-error {
    display: inline-block;
  }

  @media (max-width: 474px) {
    .field-hint {
      max-width: 92vw;
      white-space: normal;
      overflow-wrap: anywhere;
    }
  }

  /* ✅ Toast/notification base (kills your huge media-query stack)
    Use for BOTH .custom-notification and .custom-notification2 */
  .custom-notification,
  .custom-notification2 {
    position: fixed;
    left: 50%;
    top: clamp(220px, 22vh, 420px);
    transform: translateX(-50%) scale(clamp(0.85, 1.2vw, 1.55));
    transform-origin: top center;

    background: #002b47;
    color: #fff;
    padding: 15px 25px;
    border-radius: 5px;
    z-index: 1000;

    opacity: 1;
    transition: opacity 1s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
  }

  .custom-notification.fade-out,
  .custom-notification2.fade-out {
    opacity: 0;
  }

  /* ✅ Center ONLY the Message tooltip bubble (keep text left) */
  .form-group.full-width .field-hint {
    display: none;              /* keep your default behavior */
    margin-left: auto;
    margin-right: auto;         /* centers the bubble */
  }

  .form-group.full-width .field-hint.is-error {
    display: block;             /* block makes centering predictable */
  }

  /* ✅ ONLY the subscribe email tooltip: allow more characters per line */
  #subscribe-emailHint.field-hint {
    width: 90%;
    max-width: 90ch;            /* increase from 56ch → more chars per line */
  }

  /* override the global inline-block that shrink-wraps */
  #subscribe-emailHint.field-hint.is-error {
    display: block;
  }

  /* ✅ 620px and below — keep “acknowledge our Privacy Policy.” together */
  @media (max-width: 620px) {
    #contact-form .form-legal {
      text-align: center;
      line-height: 1.4;
      margin: 0.3rem auto 0.25rem;
    }

    /* Remove any forced break and keep both spans inline */
    #contact-form .form-legal__line1,
    #contact-form .form-legal__line2 {
      display: inline;
      white-space: normal !important;
    }

    /* Join the two spans so the text flows as one line block */
    #contact-form .form-legal__line1::after {
      content: " ";          /* replaces the manual newline with a space */
      white-space: normal;
    }

    /* Prevent the “our Privacy Policy.” phrase from splitting */
    #contact-form .form-legal__line2 {
      white-space: nowrap;   /* keeps “acknowledge our Privacy Policy.” together */
    }
  }
  
  /* ✅ Under 530px — keep “acknowledge our Privacy Policy.” together on line 2 (Home page forms) */
  @media (max-width: 530px) {
    #contact-form .form-legal,
    #subscribe-form .form-legal {
      display: inline-block;
      text-align: center;
      line-height: 1.4;
      max-width: min(36ch, 100%);   /* widened just enough to avoid a third line */
      margin: -0.3rem auto -0.25rem;
      white-space: normal;
    }

    #contact-form .form-legal__line1,
    #contact-form .form-legal__line2,
    #subscribe-form .form-legal__line1,
    #subscribe-form .form-legal__line2 {
      display: inline;
      white-space: normal !important;
    }

    /* Force one clean break before “acknowledge” */
    #contact-form .form-legal__line1::after,
    #subscribe-form .form-legal__line1::after {
      content: "\A";
      white-space: pre;
    }

    /* ✅ Keep “acknowledge our Privacy Policy.” together */
    #contact-form .form-legal__line2,
    #subscribe-form .form-legal__line2 {
      white-space: nowrap !important;
    }
  }
