/* ==========================================================================
   1. Global Styles & Variables
   ========================================================================== */

   :root {
    --color-primary: #6c7dff;
    --color-primary-hover: #5566e0;
    --color-text: #333333;
    --color-background: #ffffff;
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --header-height: 70px; /* Control header height from one place */
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-background);
}

img {
    max-width: 100%;
    height: auto;
}

/* For accessibility: better focus styles */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}


/* ==========================================================================
   2. Header Layout
   ========================================================================== */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    height: var(--header-height);
    background: var(--color-background);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    position: relative; /* Needed for the mobile menu positioning */
}

.site-logo img {
    height: 60px;
    display: block; /* Removes extra space below image */
}


/* ==========================================================================
   3. Main Navigation (Desktop) - REVISED AND MORE SPECIFIC
   ========================================================================== */

/*
 * Target the <ul> that WordPress creates inside your navigation.
 * We use multiple selectors to be sure and !important to override any conflicting styles.
*/
.main-navigation ul,
.main-navigation .menu {
    list-style: none !important;          /* FORCE remove bullet points */
    padding-left: 0 !important;          /* FORCE remove default browser padding */
    margin: 0 !important;                /* FORCE remove default browser margin */
    display: flex !important;            /* Use flexbox for modern horizontal alignment */
    align-items: center;                 /* Vertically align items in the middle */
    gap: 30px;                           /* This creates the space between items */
}

/*
 * Target the list items (<li>) directly.
*/
.main-navigation ul li {
    margin: 0; /* Reset any stray margins on the list items themselves */
}

/*
 * Style the actual links (<a>)
*/
.main-navigation a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   4. Call-to-Action (CTA) Button
   ========================================================================== */

.cta-button {
    padding: 10px 24px;
    background-color: var(--color-primary);
    color: var(--color-background);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--color-primary-hover);
}


/* ==========================================================================
   5. Mobile Navigation Toggle (Hamburger Icon)
   ========================================================================== */

.mobile-nav-toggle {
    display: none; /* Hidden by default on desktop */
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.hamburger-line {
    display: block;
    background-color: var(--color-text);
    height: 3px;
    width: 100%;
    border-radius: 3px;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-line:nth-child(2) { top: 0; }
.hamburger-line:nth-child(3) { top: 50%; transform: translateY(-50%); }
.hamburger-line:nth-child(4) { bottom: 0; }

/* Hamburger animation to 'X' when active */
.nav-open .mobile-nav-toggle .hamburger-line:nth-child(2) {
    transform: translateY(9px) rotate(45deg);
}
.nav-open .mobile-nav-toggle .hamburger-line:nth-child(3) {
    opacity: 0;
}
.nav-open .mobile-nav-toggle .hamburger-line:nth-child(4) {
    transform: translateY(-12px) rotate(-45deg);
}


/* ==========================================================================
   6. Responsive Styles (Mobile Menu)
   ========================================================================== */

@media (max-width: 768px) {
    .site-header {
        padding: 0 25px;
    }

    .main-navigation {
        display: none; /* Hide desktop nav by default */
        position: absolute;
        top: var(--header-height); /* Position below the header */
        left: 0;
        right: 0;
        background: var(--color-background);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    /* Show the nav when the 'nav-open' class is present */
    .nav-open .main-navigation {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column; /* Stack menu items vertically */
        align-items: center;
        padding: 20px 0;
        gap: 0;
    }

    .main-navigation li {
        width: 100%;
    }

    .main-navigation a {
        display: block; /* Make the whole area clickable */
        padding: 15px;
        text-align: center;
        width: 100%;
    }

    .mobile-nav-toggle {
        display: block; /* Show the hamburger icon */
    }

    /* You may want to hide the CTA button in the header and move it inside the menu */
    .cta-button {
        display: none;
    }
}
/* Footer Start Here ------------------------------------------------------------------- */

.custom-footer {
    background: #353c44;
    color: #fff;
    padding: 40px 0 20px 0;
    font-family: 'Segoe UI', Arial, sans-serif;
  }
  
  .footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    flex-wrap: wrap;
  }
  
  .footer-brand h2 {
    margin: 0;
    font-size: 2em;
    letter-spacing: 2px;
  }
  
  .footer-brand span {
    font-size: 0.85em;
    color: #afbac6;
    display: block;
    margin-top: 8px;
  }
  
  .footer-links h3,
  .footer-contact h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
  }
  
  .footer-links ul {
    list-style-type: none;
    padding: 0;
  }
  
  .footer-links ul li {
    margin-bottom: 8px;
  }
  
  .footer-links ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
  }
  
  .footer-links ul li a:hover {
    color: #b3d1ff;
  }
  
  .footer-social a {
    margin-right: 15px;
    color: #fff;
    font-size: 1.2em;
    text-decoration: none;
    vertical-align: middle;
  }
  .footer-social a img{
    /* social media icons */
    height: 30px;
  }
  .footer-address {
    margin-top: 15px;
    font-size: 1em;
  }
  
  .footer-address span {
    display: block;
    margin-bottom: 7px;
  }
  
  hr {
    border: none;
    border-top: 1px solid #7a8695;
    margin: 30px 0 20px 0;
  }
  
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
  }
  
  .footer-bottom ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
  }
  
  .footer-bottom ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
  }
  
  .footer-bottom ul li a:hover {
    color: #b3d1ff;
  }
  
  @media (max-width: 900px) {
    .footer-container {
      flex-direction: column;
      text-align: center;
      gap: 30px;
    }
    .footer-bottom {
      flex-direction: column;
      gap: 10px;
      text-align: center;
    }
  }
/* Footer End Here */  


/* wpforms only for Forms for full width */
.wpforms-container {
  width: 50% !important;
  max-width: 100% !important; /* Ensure it doesn't get restricted by max-width */
}
.wpforms-field-container {
  width: 100% !important;
}
/* If fields themselves need to be full width */
.wpforms-field {
  width: 100% !important;
}
