/* ==========================================================================
   SEREN SARASOTA - MAIN NAVIGATION STYLES
   
   Standalone CSS for the navigation system
   - Styles the new seren-header component
   - Overrides existing burger/mobile menu styles in main.css
   
   Load AFTER footers.css in functions.php:
   wp_enqueue_style('seren-navigation', get_template_directory_uri() . '/css/seren-navigation.css?t=' . $ver, array('mcg-footers'));
   ========================================================================== */


/* ==========================================================================
   PAGE NAV - HOME | FAQ
   ========================================================================== */
.seren-page-nav {
  display: flex !important;
  align-items: center;
  gap: 20px;
  order: 3;
  margin-left: auto;
  margin-right: 30px;
}

.seren-logo {
  order: 1;
}

.seren-mobile-icons {
  order: 4;
  margin-left: 0;
}

.seren-page-nav a {
  font-family: "MB Empire", sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding-top: 3px;
}

.seren-page-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #000000;
  transition: width 0.3s ease;
}

.seren-page-nav a:hover {
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
}

.seren-page-nav a:hover::after {
  width: 100%;
}

@media (max-width: 480px) {
  .seren-page-nav {
    gap: 15px;
    margin-right: 10px;
  }

  .seren-page-nav a {
    font-size: 11px;
    letter-spacing: 2px;
  }
}

@media (max-width: 400px) {
  .seren-page-nav {
    display: none !important;
  }
}


/* ==========================================================================
   HEADER WRAPPER & BAR - SVG Background
   ========================================================================== */
.seren-nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 998;
}

.seren-header {
  position: relative;
  padding: 20px 0;
  width: 100%;
  /* SVG Background - same as footer */
  background-image: url('https://cindyburke1.wpenginepowered.com/wp-content/uploads/2026/02/Pink-Pattern-Web.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  -webkit-transition: padding 0.3s ease, box-shadow 0.3s ease;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

body.stick .seren-header {
  top: 0;
}

/* Row container */
.seren-nav-row {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Fluid padding: 40px at 1001px, scales to 100px at 1920px */
  padding-left: clamp(40px, calc(40px + (100 - 40) * ((100vw - 1001px) / (1920 - 1001))), 100px);
  padding-right: clamp(30px, calc(30px + (90 - 30) * ((100vw - 1001px) / (1920 - 1001))), 90px);
}

/* Fixed padding above 1920px */
@media (min-width: 1920px) {
  .seren-nav-row {
    padding-left: 100px;
    padding-right: 100px;
  }
}

/* Fixed padding at breakpoint */
@media (max-width: 880px) {
  .seren-nav-row {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 767px) {
  .seren-nav-row {
    padding-left: 20px;
    padding-right: 20px;
  }
}


/* ==========================================================================
   LOGO
   ========================================================================== */
.seren-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.seren-logo:hover {
  text-decoration: none;
}

.seren-logo svg {
  width: 200px;
  height: auto;
}


/* ==========================================================================
   DESKTOP NAVIGATION - White Text
   Visible above 1000px only
   ========================================================================== */
.seren-desktop-nav {
  flex: 1;
  text-align: right;
  margin-right: 10px; /* Space for INQUIRE button */
  margin-left: 10px;
}

.seren-nav-list {
  font-size: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seren-nav-list > li {
  display: inline-block;
  margin: 0 15px;
  position: relative;
}

.seren-nav-list > li > a {
  font-family: "MB Empire", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #ffffff;
  text-transform: uppercase;
  display: inline-block;
  line-height: 1.5;
  letter-spacing: 2px;
  padding: 10px 0;
  position: relative;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.seren-nav-list > li > a:hover {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.seren-nav-list > li.current-menu-item > a,
.seren-nav-list > li.current_page_item > a {
  color: rgba(255, 255, 255, 0.7);
}

/* Underline hover effect */
.seren-nav-list > li > a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ffffff;
  -webkit-transition: width 0.3s ease;
  transition: width 0.3s ease;
}

.seren-nav-list > li > a:hover::after {
  width: 100%;
}

/* Dropdown menus */
.seren-nav-list > li.menu-item-has-children > .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  visibility: hidden;
  opacity: 0;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.92);
  min-width: 200px;
  padding: 10px 0;
  z-index: 100;
  list-style: none;
  margin: 0;
}

.seren-nav-list > li.menu-item-has-children:hover > .sub-menu {
  visibility: visible;
  opacity: 1;
}

.seren-nav-list .sub-menu li {
  display: block;
  margin: 0;
}

.seren-nav-list .sub-menu li a {
  color: #ffffff;
  font-family: "MB Empire", sans-serif;
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  display: block;
  line-height: 1.5;
  letter-spacing: 1.5px;
  padding: 10px 20px;
  white-space: nowrap;
  -webkit-transition: background 0.3s ease;
  transition: background 0.3s ease;
}

.seren-nav-list .sub-menu li a:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.seren-header-phone {
  font-family: "MB Empire", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #000000;
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.3s ease;
  margin-left: auto;
  margin-right: 20px;
}

.seren-header-phone:hover {
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
}

/* ==========================================================================
   HEADER INQUIRE BUTTON - Matches Footer Style
   ========================================================================== */
.seren-header-btn {
  font-family: "MB Empire", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #000000;
  border: 1px solid #000000;
  background: transparent;
  padding: 8px 20px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.seren-header-btn:hover {
  background: #000000;
  color: #FFFFFF;
  text-decoration: none;
}


/* ==========================================================================
   BODY PADDING - Account for fixed header
   ========================================================================== */
body {
  padding-top: 128px !important;
}

@media (max-width: 1000px) {
  body {
    padding-top: 85px !important;
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 75px !important;
  }
}


/* ==========================================================================
   HIDE DESKTOP NAV & BUTTON AT 1000px AND BELOW
   ========================================================================== */
@media (max-width: 1000px) {
  .seren-desktop-nav {
    display: none !important;
  }
}

/* Button hidden at all sizes */
.seren-header-btn {
  display: none !important;
}

/* Phone number hidden at all sizes - icons used instead */
.seren-header-phone {
  display: none !important;
}

/* ==========================================================================
   CONTACT ICONS - Phone & Email - Always visible
   ========================================================================== */
.seren-mobile-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.seren-mobile-icons a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.seren-mobile-icons svg {
  transition: opacity 0.3s ease;
}

.seren-mobile-icons a:hover svg {
  opacity: 0.6;
}

/* ==========================================================================
   HAMBURGER ICON OVERRIDES
   The burger already exists in footer-1.php and is styled in main.css
   These overrides reposition it to work with our new header
   ========================================================================== */

/* Hide burger above 1000px */
.burger {
  display: none !important;
}


/* ==========================================================================
   MOBILE MENU CONTAINER OVERRIDES
   The mobile_menu_container exists in footer-1.php, styled in main.css
   These overrides center and enlarge the menu items
   ========================================================================== */
.mobile_menu_container {
  background: rgba(42, 63, 23, 0.8) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 80px 30px !important;
  text-align: center !important;
}

/* Center the nav container */
.mobile_menu_container nav.mobile_nav {
  width: 100%;
  text-align: center;
  margin-bottom: 0;
}

/* Center the menu list */
.mobile_menu_container .level_a,
.mobile_menu_container nav.mobile_nav > ul {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Center each list item */
.mobile_menu_container li {
  text-align: center;
  width: 100%;
  margin-bottom: 8px;
}

/* Enlarged links - 35% bigger, centered, white */
.mobile_menu_container a {
  font-family: "MB Empire", sans-serif;
  font-weight: 300;
  /* 35% larger than base 28px = ~38px */
  font-size: 22px;
  line-height: 1.3;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 12px 0;
  display: inline-block;
  text-align: center;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.mobile_menu_container a:hover {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.mobile_menu_container li.current-menu-item a,
.mobile_menu_container li.current_page_item a {
  color: rgba(255, 255, 255, 0.7);
}

/* Sub-menus in mobile - centered and smaller */
.mobile_menu_container .sub-menu {
  display: block;
  text-align: center;
  padding-left: 0;
  margin: 0;
}

.mobile_menu_container .sub-menu > li {
  padding-left: 0;
}

.mobile_menu_container .sub-menu a {
  font-size: 26px;
  letter-spacing: 2px;
  padding: 8px 0;
  opacity: 0.85;
}

/* Custom Inquire button in mobile menu - FLUID like nav links */
.mobile_menu_container .custom-menu-datalink {
  display: block !important;
  text-align: center !important;
  margin-top: 15px !important;
  margin-bottom: 20px !important;
}

.mobile_menu_container .custom-menu-datalink a,
.mobile_menu_container .custom-menu-datalink a.test-link {
  /* Match nav link font size for fluid scaling */
  font-size: 22px !important;
  font-weight: 300 !important;
  letter-spacing: 3px !important;
  line-height: 1.3 !important;
  border: 1px solid #ffffff !important;
  padding: 15px 50px !important;
  display: inline-block !important;
  -webkit-transition: all 0.3s ease !important;
  transition: all 0.3s ease !important;
}

.mobile_menu_container .custom-menu-datalink a:hover {
  background: #ffffff !important;
  color: #2b3f17 !important;
} 

/* Mobile Menu - Contact Links */
.mobile-menu-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.mobile_menu_container .mobile-menu-phone,
.mobile_menu_container .mobile-menu-tour {
  font-family: "MB Empire", sans-serif;
  font-size: 21px !important;
  font-weight: 300 !important;
  letter-spacing: 1.5px !important;
  color: #ffffff !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 0 !important;
  text-transform: uppercase !important;
}

.mobile-menu-phone svg {
  stroke: #ffffff;
}

.mobile-menu-phone:hover,
.mobile-menu-tour:hover {
  color: rgba(255, 255, 255, 0.7);
}

.mobile-menu-tour {
  color: #c17c3e;
}

.mobile-menu-tour:hover {
  color: rgba(193, 124, 62, 0.7);
}

/* ==========================================================================
   HEADER RESPONSIVE ADJUSTMENTS
   ========================================================================== */

/* Tablet (768px - 1000px) */
@media (max-width: 1000px) and (min-width: 768px) {
  .seren-header {
    padding: 20px 0;
  }
  
  .seren-logo svg {
    width: 180px;
  }

  .mobile_menu_container .sub-menu a {
    font-size: 18px !important;
  }
  
}

/* Small mobile (767px and below) */
@media (max-width: 767px) {
  .seren-header {
    padding: 18px 0;
  }
  
  .seren-logo svg {
    width: 210px;
  }
  
  .mobile_menu_container {
    padding: 50px 20px !important;
  }
  
  .mobile_menu_container a {
    font-size: 21px !important;
    letter-spacing: 2px !important;
    padding: 10px 0 !important;
  }
  
  .mobile_menu_container .sub-menu a {
    font-size: 20px !important;
    padding: 6px 0 !important;
  }
  
  .mobile_menu_container .custom-menu-datalink {
    margin-top: 15px !important;
    margin-bottom: 20px !important;
  }
  
  .mobile_menu_container .custom-menu-datalink a,
  .mobile_menu_container .custom-menu-datalink a.test-link {
    font-size: 22px !important;
    letter-spacing: 2px !important;
    padding: 12px 35px !important;
  }
}

/* Extra small mobile (480px and below) */
@media (max-width: 480px) {
  .seren-header {
    padding: 15px 0;
  }
  
  .seren-logo svg {
    width: 190px;
  }
  
  .mobile_menu_container a {
    font-size: 21px !important;
    letter-spacing: 1.5px !important;
    padding: 8px 0 !important;
  }
  
  .mobile_menu_container .sub-menu a {
    font-size: 18px !important;
  }
  
  .mobile_menu_container .custom-menu-datalink {
    margin-top: 15px !important;
    margin-bottom: 20px !important;
  }
  
  .mobile_menu_container .custom-menu-datalink a,
  .mobile_menu_container .custom-menu-datalink a.test-link {
    font-size: 21px !important;
    letter-spacing: 1.5px !important;
    padding: 10px 28px !important;
  }
}


/* ==========================================================================
   LARGE DESKTOP ADJUSTMENTS (1400px+)
   ========================================================================== */
@media (min-width: 1400px) {
  .seren-nav-list > li {
    margin: 0 25px;
  }
  
  .seren-nav-list > li > a {
    font-size: 12px;
    letter-spacing: 2.5px;
  }
  
  .seren-logo svg {
    width: 400px;
  }
}


/* ==========================================================================
   OPTIONAL: HEADER SCROLL STATE
   Add class 'scrolled' via JavaScript when page scrolls
   ========================================================================== */
.seren-header.scrolled {
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.seren-header.scrolled .seren-logo svg {
  width: 160px;
}

@media (max-width: 767px) {
  .seren-header.scrolled {
    padding: 12px 0;
  }
  
  .seren-header.scrolled .seren-logo svg {
    width: 130px;
  }
}


/* ==========================================================================
   SCROLL STATE - body.stick OVERRIDES
   The theme adds .stick class to body on scroll
   These override the default header styles that get applied
   ========================================================================== */

/* CRITICAL: Override the generic body.stick header rule from style.css */
body.stick header,
body.stick header.seren-header,
body.stick .seren-nav-wrapper header {
  padding: 15px 0 !important;
  background: none !important;
  background-color: transparent !important;
  background-image: url('https://cindyburke1.wpenginepowered.com/wp-content/uploads/2026/02/Pink-Pattern-Web.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Hide the OLD header element (the one without .seren-header class) */
#main > header:not(.seren-header) {
  display: none !important;
}

/* Override the old header styles when body has .stick class */
body.stick .seren-header {
  padding: 15px 0 !important;
  /* Keep our SVG background, not the gold rgba */
  background-image: url('https://cindyburke1.wpenginepowered.com/wp-content/uploads/2026/02/Pink-Pattern-Web.jpg') !important;
  background-color: transparent !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Slightly smaller logo on scroll */
body.stick .seren-logo svg {
  width: 250px !important;
  transition: width 0.3s ease;
}

/* Hide the OLD header element if it exists - prevent double header */
body.stick header:not(.seren-header) {
  display: none !important;
}

/* Also neutralize any styles being applied to generic header */
body.stick .seren-nav-wrapper header.seren-header {
  background: none !important;
  background-image: url('https://cindyburke1.wpenginepowered.com/wp-content/uploads/2026/02/Pink-Pattern-Web.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
}

/* Adjust body padding on scroll */
body.stick {
  padding-top: 80px !important;
}

@media (max-width: 1000px) {
  body.stick {
    padding-top: 70px !important;
  }
  
  body.stick .seren-header {
    padding: 12px 0 !important;
  }
  
  body.stick .seren-logo svg {
    width: 220px !important;
  }
}

@media (max-width: 767px) {
  body.stick {
    padding-top: 60px !important;
  }
  
  body.stick .seren-header {
    padding: 10px 0 !important;
  }
  
  body.stick .seren-logo svg {
    width: 190px !important;
  }
}

/* ==========================================================================
   BANNER - Pull up under fixed header
   ========================================================================== */
.top_image {
  margin-top: -128px !important;
}

@media (max-width: 1000px) {
  .top_image {
    margin-top: -85px !important;
  }
}

@media (max-width: 767px) {
  .top_image {
    margin-top: -75px !important;
  }
  
  .top_image.banner-logo-center {
    margin: 0 !important;
  }
}

/* Mobile banner height override */
@media (max-width: 768px) {
  .top_image.banner-logo-center {
    height: 55vh !important;
  }
}