/* ==========================================================================
   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'));
   ========================================================================== */

/* ==========================================================
   SEREN TOP BAR - Desktop Only
   ========================================================== */

.seren-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  padding: 8px 40px;
  text-align: right;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.seren-top-bar-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
  font-family: "MB Empire", sans-serif;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.seren-top-bar-address {
  color: #333;
}

.seren-top-bar-phone {
  color: #2b3f17;
  text-decoration: none;
}

.seren-top-bar-phone:hover {
  text-decoration: underline;
}

.seren-top-bar-cta {
  color: #2b3f17;
  text-decoration: none;
  font-weight: 500;
}

.seren-top-bar-cta:hover {
  text-decoration: underline;
}

/* Hide on scroll - uses existing .stick class from init.js */
body.stick .seren-top-bar {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Hide top bar on mobile (1024px and below) */
@media (max-width: 1024px) {
  .seren-top-bar {
    display: none;
  }
}

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

/* Desktop: push down for top bar */
@media (min-width: 1025px) {
  .seren-nav-wrapper {
    top: 33px;
  }
}

.seren-header {
  position: relative;
  padding: 20px 0;
  width: 100%;
  /* SVG Background - same as footer */
  background-image: url('https://serensarasota.wpenginepowered.com/wp-content/uploads/2026/01/Seren-Background-1.svg');
  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;
}

/* Force SVG to white */
.seren-logo svg,
.seren-logo svg path,
.seren-logo svg polygon,
.seren-logo svg rect,
.seren-logo svg circle,
.seren-logo svg ellipse {
  fill: #ffffff !important;
}


/* ==========================================================================
   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;
}


/* ==========================================================================
   HEADER INQUIRE BUTTON - Matches Footer Style
   ========================================================================== */
.seren-header-btn {
  font-family: "MB Empire", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  border: 1px solid #ffffff;
  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: #ffffff;
  color: #2b3f17;
  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: 30px !important;
  }
}


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


/* ==========================================================================
   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;
}

/* Show and reposition burger at 1000px and below */
@media (max-width: 1000px) {
  .burger {
    display: block !important;
    position: fixed !important;
    top: 22px !important;
    right: 25px !important;
    z-index: 1001 !important;
    padding: 10px 8px !important;
  }
  
  /* White burger lines */
  .burger .burger-icon,
  .burger .burger-icon::before,
  .burger .burger-icon::after {
    background-color: #ffffff !important;
    width: 35px !important;
    height: 3px !important;
  }
  
  .burger .burger-icon {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
  }
  
  .burger .burger-icon::before {
    top: -10px !important;
  }
  
  .burger .burger-icon::after {
    top: 10px !important;
  }
  
  /* X animation when active */
  .burger.is-active .burger-icon::before {
    transform: translateY(10px) rotate(45deg) !important;
  }
  
  .burger.is-active .burger-icon::after {
    transform: translateY(-10px) rotate(-45deg) !important;
  }
}

@media (max-width: 767px) {
  .burger {
    top: 22px !important;
    right: 15px !important;
  }
  
  .burger .burger-icon,
  .burger .burger-icon::before,
  .burger .burger-icon::after {
    width: 30px !important;
    height: 2px !important;
  }
  
  .burger .burger-icon::before {
    top: -9px !important;
  }
  
  .burger .burger-icon::after {
    top: 9px !important;
  }
  
  .burger.is-active .burger-icon::before {
    transform: translateY(9px) rotate(45deg) !important;
  }
  
  .burger.is-active .burger-icon::after {
    transform: translateY(-9px) rotate(-45deg) !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: 20px;
  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: 22px !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: 19px !important;
  font-weight: 300 !important;
  letter-spacing: 3px !important;
  line-height: 1.3 !important;
  border: 1px solid #ffffff !important;
  padding: 13px 30px !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-tour {
  font-family: "MB Empire", sans-serif;
  font-size: 20px !important;
  font-weight: 300 !important;
  letter-spacing: 1.3px !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: 160px;
  }
  
  .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: 140px;
  }
  
  .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 15px;
  }
  
  .seren-nav-list > li > a {
    font-size: 13px;
    letter-spacing: 2.5px;
  }
  
  .seren-logo svg {
    width: 180px;
  }
}


/* ==========================================================================
   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://serensarasota.wpenginepowered.com/wp-content/uploads/2026/01/Seren-Footer-Background.svg') !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://serensarasota.wpenginepowered.com/wp-content/uploads/2026/01/Seren-Footer-Background.svg') !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: 170px !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://serensarasota.wpenginepowered.com/wp-content/uploads/2026/01/Seren-Footer-Background.svg') !important;
  background-size: cover !important;
  background-position: center center !important;
}

body.stick .seren-nav-wrapper {
  top: 0;
}

/* 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: 150px !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: 130px !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;
  }
}
.mobile_menu_container .mobile-menu-phone {
  display: none !important;
}