/**
 * Header Styles - CORRECTED VERSION
 *
 * This document contains all of the styles for the top portion of the 
 * Wordpress theme.
 *
 * @package WordPress
 * @subpackage Southcoast
 * @since Southcoast 1.0
 */

.sectionLinkWrapper {
  margin-top: 15px;
}

.footer-wrapper {
  font-weight: 700;
}

#menu-utility-menu li {
  list-style-type: none;
}


.utils {
    background: #e1f5fa;
}

.utility-bar {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
}

.utility-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utility-left {
    display: flex;
    align-items: center;
}

.utility-phone {
    color: #101212;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
    font-size: 14px;
}

.utility-phone:hover {
    color: #00685E;
}

.utility-right {
    display: flex;
    align-items: center;
}

.utility-link {
    color: #101212;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
    font-weight: 380;
}

.utility-link:hover {
    color: #00685E;
}


.site-header {
    position: sticky;
    top: 0;
    height: 80px;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; 
}

.logo-headline {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0; 
}

.logo-link {
    display: block;
    transition: opacity 0.4s;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-image {
    border: none;
    display: block;
    height: 22px;
    width: 255px; 
}


.desktop-nav {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.desktop-navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.nav-item {
    font-size: 1rem;
    line-height: 150%;
    margin: 0; 
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #424545;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 400;
    padding: 10px;
    transition: all 0.2s ease;
    border-radius: 5px;
}

.nav-links:hover {
    background-color: #f5f5f5;
    color: #008573;
    text-decoration: underline;
}

.nav-links[aria-expanded="true"] {
    background-color: #008573;
    color: #fff;
}

.nav-links .chevron {
    transition: transform 0.3s ease;
}

.nav-links[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}


.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}


.inline-search-container {
  position: absolute;
  right: 60px;
  opacity: 0;
  display: none;
  transition: opacity 0.3s ease;
  z-index: 102;
  width: 300px;
  pointer-events: none;
}

.inline-search-container.active {
    opacity: 1;
    pointer-events: auto;
}

.inline-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #008573;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 133, 115, 0.2);
    height: 50px;
    width: 100%;
}

.inline-search-input {
    border: none;
    outline: none;
    padding: 8px 16px;
    font-size: 14px;
    width: 90%;
    background: transparent;
    color: #333;
}

.inline-search-input::placeholder {
    color: #999;
}

.inline-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #008573;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 0 12px;
    height: 100%;
    transition: background 0.3s ease;
}

.inline-search-submit:hover {
    background: #00685E;
}

.inline-search-submit svg {
    width: 18px;
    height: 18px;
}

.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #ccf1e3;
    border: 1px solid #b2d9d1;
    border-radius: 8px;
    color: #101212;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 101;
}

.search-toggle:hover {
    background-color: #b8e8d8;
    transform: scale(1.05);
}

.search-toggle.active {
    background-color: #008573;
    color: #fff;
    border-color: #008573;
}

.search-toggle.active svg path {
    stroke: #fff;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

.mobile-menu-btn .close {
    display: none;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger {
    display: none;
}

.mobile-menu-btn[aria-expanded="true"] .close {
    display: block;
}


.mega-menu-container {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.mega-menu[aria-hidden="false"] {
    max-height: 600px;
    opacity: 1;
}

.mega-menu-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.mega-menu-section h3 {
    font-size: 19px; 
    font-weight: 700;
    color: #101212; 
    margin-bottom: 16px;
    margin-left: 0; 
    letter-spacing: normal;
    white-space: normal;
    word-spacing: normal;
}

.mega-menu-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu-section ul li {
    margin-bottom: 10px;
}

.mega-menu-section ul li a {
    color: #101212;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
    display: block;
    padding: 4px 0;
    font-weight: 500;
    letter-spacing: normal;
    white-space: normal;
    word-spacing: normal;
}

.mega-menu-section ul li a:hover {
    color: #008573;
    text-decoration: underline;
}


.mobile-menu {
    position: fixed;
    top: 110px; 
    left: 0;
    right: 0;
    background: #fff;
    max-height: 0;
    overflow-y: auto;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.mobile-menu[aria-hidden="false"] {
    max-height: calc(100vh - 80px);
    opacity: 1;
}

.mobile-nav {
    padding: 0;
}

.mobile-form {
    margin: 20px;
    border: 1px solid #ddd; 
    padding: 10px;
    border-radius: 8px; 
    background: #f8f9fa; 
}

.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-search-icon {
    color: #008573; 
    flex-shrink: 0;
}

.search-bar {
    background: none;
    width: 90%;
    border: none;
    outline: none;
    font-size: 15px;
    color: #333;
}

.search-bar::placeholder {
    color: #999;
}

.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;
}

.mobile-accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.mobile-accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #101212;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
}

.mobile-accordion-btn:hover {
    background-color: #f5f5f5;
}

.mobile-accordion-btn[aria-expanded="true"] {
    background-color: #e8f5f2; 
    color: #008573;
}

.accordion-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mobile-accordion-btn[aria-expanded="true"] .accordion-chevron {
    transform: rotate(180deg);
}

.mobile-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-accordion-content[aria-hidden="false"] {
    max-height: 2000px;
}

.mobile-section {
    padding: 16px 20px 16px 40px;
}

.mobile-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: #101212;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #cfedf4;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

.mobile-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-section ul li {
    margin-bottom: 8px;
}

.mobile-section ul li a {
    color: #101212;
    text-decoration: none;
    font-size: 16px; 
    transition: color 0.2s;
    display: block;
    padding: 4px 0;
    font-weight: 500;
    margin-bottom: 24px;
    cursor: pointer;
}

.mobile-section ul li a:hover {
    color: #008573;
    text-decoration: underline;
}

.mobile-quick-links {
    margin: 20px;
    background: #eaf7ff;
    border-radius: 8px; 
    overflow: hidden;
}

.mobile-quick-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-quick-links li {
    border-bottom: 1px solid #d0e8f7; 
}

.mobile-quick-links li:last-child {
    border-bottom: none;
}

.mobile-quick-links a {
    display: block;
    padding: 16px 20px; 
    text-decoration: none;
    color: #0f172a;
    font-weight: 500;
    transition: background-color 0.2s;
}

.mobile-quick-links a:hover,
.mobile-quick-links a:active,
.mobile-quick-links a:focus {
    background: #dff2ff;
}


.mobile-menu::-webkit-scrollbar {
    width: 8px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
}


.nav-links:focus-visible,
.mobile-menu-btn:focus-visible,
.mobile-accordion-btn:focus-visible,
.search-toggle:focus-visible,
.utility-link:focus-visible {
    outline: 2px solid #008573;
    outline-offset: 2px;
}


/* FOOTER */


.sc-footer{
  background: #008573;
  color:#fff;
  padding-top:40px;
}

.sc-footer a {
    color:#fff;
    text-decoration:none
}

.sc-footer a:hover {
    text-decoration:underline
}

.sc-footer__container{
  max-width: 1200px;
  margin:0 auto;
  padding:0 20px 24px;
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}

.sc-footer__blurb{
  line-height:1.5;
  color:#fff;
  margin: 20px 0px;
  font-size: 16px;
}

.sc-footer__social {
    list-style:none;
    display:flex;
    gap:12px;
    padding:0;
    margin:10px 0 0
}


.icon-btn {
    background-color: #e9f7f4;
    border-radius: 8px;
    color: #01695b;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    position: relative;
    width: 44px;
    padding: 5px
}


.icon-btn:hover {
    transform:translateY(-1px); 
    background:#0f7770
}


.icon-btn svg {
    width:24px;
    height:24px;
    fill: #008573;
}

.sc-footer__nav {
    display:grid;
    grid-template-columns:1fr;
    gap:8px
}

/* Accordion */
.sc-accordion{
  background:rgba(0,0,0,.06);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  overflow:hidden;
}

.sc-accordion__toggle{
  width:100%;
  background:transparent;
  color:#fff;
  border:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 16px;
  font-size:18px;
  font-weight:700;
  cursor:pointer;
}


.chevron {
    width:22px;
    height:22px;
    fill:none;
    stroke:#fff;
    stroke-width:2;
    transition:transform .25s ease
}


.sc-accordion__toggle[aria-expanded="true"] .chevron {
    transform:rotate(180deg)
}

.sc-accordion__panel{
  list-style:none;
  margin:0;
  padding:0 16px;
  max-height:0;
  overflow:hidden;
  transition:max-height .3s ease;
}

.sc-accordion__panel li {
    margin-bottom: 12px;
    font-size: 16px;
}

.sc-accordion__panel li a {
    color: #fff;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    text-decoration: none
}

.sc-accordion__toggle .chevron {
    transition: transform 0.3s ease;
}

.sc-accordion__toggle[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

/* CTAs */
.sc-footer__ctas{
  display:flex;
  align-items: center;
  gap:12px;
}


.sc-btn{
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-weight: 600;
    border: 2px solid;
    border-radius: 8px;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    padding: 16px 24px;
    position: relative;
    text-decoration: none !important;
    transition: all .3s;
    padding: 16px 24px;
    text-transform: uppercase
}



.sc-btn:hover {
    text-decoration:none; 
    transform:translateY(-1px);
    background-color: #ccf1e3;
    border: 2px solid #ccf1e3;
    color: #01695b
}


.sc-footer__legal{
  background: #fff;
  margin-top:24px;
}

.sc-footer__legal-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  color: #101212;
  text-align: center;
}


.sc-legal__links{
  list-style:none
  ;padding:0;
  margin:0 0 10px;
  display:flex;
  align-items: center;
  justify-content: center;
  flex-wrap:wrap;
  gap:10px 18px;
}


.sc-legal__links li a{
    padding-right: 16px;
    color: #101212;
    font-size: 14px;
    border-right: 2px solid #c2c2c2
}


.sc-legal__links li a:hover {
    opacity:1;
    text-decoration:underline
}

.sc-copyright{
    color: #101212;
    font-size: 14px;
    max-width: 1332px;
}

/* Desktop layout */
@media (min-width: 960px){

    .sc-footer__container{
        grid-template-columns: 1.15fr .9fr .9fr .9fr;
        align-items:start;
        gap:32px;
        padding-bottom:36px;
    }

    .sc-footer__nav {
        grid-column:2/5;
        display:grid;
        grid-template-columns:repeat(3,1fr);
        gap:20px
    }


  .sc-footer__ctas {
    grid-column:1/-1;
    grid-template-columns:repeat(3, minmax(240px, 1fr));
  }

    .sc-accordion {
        background:transparent;
        border:0
    }

    .sc-accordion__toggle {
        cursor:default;
        padding:0 0 10px
    }

    .sc-accordion__toggle .chevron {
        display:none
    }
 
    .sc-accordion__panel {
        max-height:none;
        overflow:visible;
        padding:0
    }


    .sc-accordion__panel li a {
        border:0;
        padding:8px 0
    }
}



/* Desktop view */
@media (min-width: 1081px) {
    .mobile-menu-btn {
        display: none;
    }
    
    .mobile-menu {
        display: none;
    }

    .inline-search-container {
        display: block;
    }
}

/* Tablet adjustments */
@media (min-width: 640px) and (max-width: 1080px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-list {
        display: none;
    }
    
    .mobile-accordion-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .inline-search-container {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }

    .search-toggle {
        display: none;
    }

    .mega-menu-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .mega-menu[aria-hidden="false"] {
        max-height: 500px;
        overflow-y: auto;
    }
}

/* Mobile */
@media (max-width: 639px) {

    .inline-search-container {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }

    
    .nav-list {
        display: none;
    }

    .search-toggle {
        display: none;
    }

  
    .mega-menu-content {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

    .mega-menu[aria-hidden="false"] {
        max-height: 80vh;
        overflow-y: auto;
    }

    .header-search-form-textfield {
        font-size: 16px;
        padding: 16px 20px;
    }
    
    .header-search-form-inner {
        max-width: 100%;
    }
    
    .header-search-form-submit {
        min-width: 50px;
        padding: 0 16px;
    }
    
    .header-search-form-submit svg {
        width: 20px;
        height: 20px;
    }
    
    .header-search-form-close {
        min-width: 50px;
        padding: 0 12px;
    }
    
    .header-search-form-close svg {
        width: 20px;
        height: 20px;
    }
    
    .header-search-form-inner::after {
        font-size: 12px;
        bottom: -35px;
    }

     .utility-right {
        display: none;
    }

    .sc-footer__ctas {
        flex-direction: column;
    }

    .sc-footer__ctas a{
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-search-form form {
        border-radius: 8px;
    }
    
    .header-search-form-textfield {
        font-size: 16px;
        padding: 14px 16px;
    }

    .utility-right {
        display: none;
    }
}