@import url('https://fonts.googleapis.com/css2?family=Allura&display=swap');
/* ============================================================
   Miromar Lakes — GeneratePress Child Theme custom.css
   Lean version: brand tokens + GeneratePress overrides only.
   Page-level styling lives in GenerateBlocks (per-block CSS).
   ============================================================ */

/* === Design tokens === */
:root {
  --ml-navy: #052942;
  --ml-text: #666666;
  --ml-bg-light: #f2f2f2;
  --ml-overlay: rgba(0,0,0,0.34);
  --font-poppins: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-canella: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-monte: 'Allura', cursive;
}

/* === Global anti-overflow === */
html, body { overflow-x: hidden; max-width: 100vw; }

/* === Typography defaults === */
body {
  font-family: var(--font-poppins);
  color: var(--ml-text);
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-canella);
  font-style: italic;
  font-weight: 500;
  color: var(--ml-navy);
  line-height: 1.2;
}

/* === Hide GeneratePress entry-title (we use cover blocks with own H1) === */
.page .entry-header,
.page .entry-title { display: none !important; }

/* === Hide site-branding text when logo is present === */
body.wp-custom-logo .site-branding .main-title,
body.wp-custom-logo .site-branding .site-title,
body.wp-custom-logo .site-branding .site-description {
  display: none !important;
}

/* === Make the home page fully full-bleed (no inside-article padding) === */
body.home .inside-article,
body.page-id-91 .inside-article,
body.home .entry-content,
body.page-id-91 .entry-content { padding: 0 !important; margin: 0 !important; max-width: none !important; }

/* For inner pages, only the PageHero cover should be full-bleed, content stays in container */
.page:not(.home) .inside-article { padding-top: 0 !important; }
.page:not(.home) .entry-content > .wp-block-cover:first-child,
.page:not(.home) .entry-content > .gb-element-first {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

/* === Header — fixed, transparent → navy on scroll === */
.site-header {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 999;
  background: transparent !important;
  transition: background-color .3s ease, padding .3s ease, box-shadow .3s ease;
}
.site-header .inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  max-width: 1440px;
  margin: 0 auto;
}
.site-header.is-scrolled,
body.is-scrolled .site-header {
  background: var(--ml-navy) !important;
  box-shadow: 0 2px 14px rgba(0,0,0,.18);
  padding: 0;
}
.site-header.is-scrolled .inside-header { padding: .35rem 2.5rem; }
.site-header .site-logo img,
.site-header .header-image {
  max-height: 64px;
  width: auto;
  transition: max-height .3s;
}
.site-header.is-scrolled .site-logo img { max-height: 42px; }

/* === Main navigation — horizontal, white, uppercase === */
.main-navigation { background: transparent !important; min-height: 0 !important; }
.main-navigation .inside-navigation { padding: 0 !important; max-width: none !important; background: transparent !important; }
.main-navigation .main-nav { flex: 1; display: flex; justify-content: flex-end; }
.main-navigation .main-nav > ul {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 2.25rem;
  list-style: none;
  margin: 0; padding: 0;
  background: transparent !important;
}
.main-navigation .main-nav > ul > li { list-style: none; position: relative; }
.main-navigation .main-nav > ul > li > a {
  color: #fff !important;
  font-family: var(--font-poppins) !important;
  font-style: normal !important;
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .75rem .25rem !important;
  line-height: 1.2 !important;
  background: transparent !important;
  transition: opacity .2s;
}
.main-navigation .main-nav > ul > li > a:hover,
.main-navigation .main-nav > ul > li:hover > a { opacity: .75; }
.main-navigation .main-nav > ul > li.menu-item-has-children > a::after {
  content: ' \25BE'; font-size: 9px; opacity: .8; margin-left: .2rem;
}

/* Sub-menus */
.main-navigation .main-nav .sub-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--ml-navy) !important;
  border: 0 !important;
  padding: .5rem 0 !important;
  margin: 0 !important;
  list-style: none;
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
  z-index: 1000;
}
.main-navigation .main-nav ul li:hover > .sub-menu,
.main-navigation .main-nav ul li:focus-within > .sub-menu { display: block !important; }
.main-navigation .main-nav .sub-menu li { display: block; list-style: none; }
.main-navigation .main-nav .sub-menu li a {
  display: block;
  padding: .65rem 1.25rem !important;
  color: rgba(255,255,255,.85) !important;
  font-size: 12px !important;
  font-weight: 400;
  font-family: var(--font-poppins) !important;
  font-style: normal !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: transparent !important;
  white-space: nowrap;
  text-decoration: none;
}
.main-navigation .main-nav .sub-menu li a:hover { background: rgba(255,255,255,.1) !important; color: #fff !important; }

/* === Mobile menu (< 769px) === */
@media (min-width: 769px) {
  .main-navigation.mobile-menu-control-wrapper { display: none !important; }
  .has-inline-mobile-toggle .menu-toggle { display: none !important; }
}
@media (max-width: 768px) {
  .site-header .inside-header { padding: .75rem 1.25rem; flex-wrap: wrap; }
  .main-navigation .menu-toggle {
    display: block !important;
    background: transparent !important;
    color: #fff !important;
    border: 0 !important;
    padding: .5rem !important;
    font-size: 1.75rem;
  }
  .main-navigation .main-nav > ul { display: none !important; }
  .main-navigation.toggled .main-nav > ul {
    display: block !important;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ml-navy);
    padding: 1rem 0;
    flex-direction: column;
    gap: 0;
  }
  .main-navigation.toggled .main-nav > ul > li > a { padding: .85rem 1.5rem !important; }
  .main-navigation.toggled .main-nav .sub-menu {
    display: block !important;
    position: static;
    transform: none;
    background: rgba(0,0,0,.2) !important;
    box-shadow: none;
  }
}

/* === Footer override === */
.site-footer { background: var(--ml-navy); color: rgba(255,255,255,.85); }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.footer-widgets, .site-info { background: var(--ml-navy) !important; }
.site-info { border-top: 1px solid rgba(255,255,255,.12); padding: 1.25rem 0; font-size: 12px; color: rgba(255,255,255,.6); text-align: center; }

/* === Form polish for ml-form (still used by TourFormSection) === */
.ml-form input, .ml-form textarea, .ml-form select,
form.ml-form input, form.ml-form textarea, form.ml-form select {
  background: #fff !important;
  border: 1px solid var(--ml-navy) !important;
  color: var(--ml-navy) !important;
  padding: 14px 18px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
  font-family: var(--font-poppins) !important;
  font-size: 14px !important;
}
.ml-form button[type="submit"], .ml-form input[type="submit"] {
  background: var(--ml-navy) !important;
  color: #fff !important;
  padding: 14px 36px !important;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  cursor: pointer;
}
.ml-form button[type="submit"]:hover { background: #03334f !important; }

/* === Hero (homepage full-screen video) === */
.ml-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--ml-navy);
}
.ml-hero video, .ml-hero img.ml-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.ml-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ml-overlay);
  z-index: 1;
}
.ml-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}
.ml-hero h1 {
  font-family: var(--font-monte);
  color: #fff;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
}
.ml-hero h1 sup { font-family: var(--font-poppins); font-size: .2em; vertical-align: super; opacity: .9; }

/* Mobile responsive hero */
@media (max-width: 768px) {
  .ml-hero { min-height: 480px; }
  .ml-hero h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
}

/* === Small global utilities still needed === */
img { max-width: 100%; height: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); max-width: none; }
.alignwide { width: calc(100% + 4rem); margin-left: -2rem; margin-right: -2rem; max-width: none; }
@media (max-width: 768px) {
  .alignwide { margin-left: -1.25rem; margin-right: -1.25rem; width: calc(100% + 2.5rem); }
}


/* === cutover polish v1 === */
.ml-hero, .ml-page-hero, .alignfull,
body.page .entry-content > .wp-block-cover:first-child {
  width:100vw !important; max-width:100vw !important;
  margin-left:calc(50% - 50vw) !important; margin-right:calc(50% - 50vw) !important;
}
.ml-hero h1, .ml-hero .font-script, h1.font-script, .font-script { font-family:'Allura', cursive !important; }
