/*
  Theme Name:   cw
  Description:  Custom theme for CW SYSTEMS
  Author:       Oncotton LTD
  Author URI:   https://oncotton.net
  Version:      1.0.0 (consolidated + optimized)
*/

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
button,hr,input{overflow:visible}progress,sub,sup{vertical-align:baseline}[type=checkbox],[type=radio],legend{box-sizing:border-box;padding:0}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}details,main{display:block}hr{box-sizing:content-box;height:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:ButtonText dotted 1px}fieldset{padding:.35em .75em .625em}legend{color:inherit;display:table;max-width:100%;white-space:normal}textarea{overflow:auto}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}[hidden],template{display:none}

/* ============================================================
   CRITICAL (ABOVE THE FOLD)
   - variables
   - base type
   - header/nav (fixed)
   - unified buttons
   - unified Swiper arrows
   ============================================================ */

:root{
  /* Header / layout */
  --header-height: 72px;
  --header-color: #fff;
  --offcanvas-width: 560px;

  /* Off-canvas palette */
  --nav-bg: #ffffff;
  --nav-fg: #111111;

  /* Burger icon */
  --burger-line-w: 32px;
  --burger-line-h: 4px;
  --burger-gap: 10px;
  --burger-radius: 999px;
  --burger-offset: calc(var(--burger-gap)/2 + var(--burger-line-h)/2);


}
b, strong {
font-weight: 500 !important;
}
html { scroll-behavior: smooth; }
body { margin: 0; }
h1 { font-size: var(--wp--preset--font-size--extra-large); font-weight: 500}
h2 { font-size: var(--wp--preset--font-size--extra-large); font-weight: 300; padding: 0;}
h3 { font-size: var(--wp--preset--font-size--large); font-weight: 400}
h4 { font-size: var(--wp--preset--font-size--medium); font-weight: 400;}
h5 { font-size: var(--wp--preset--font-size--medium); font-weight: 400}

.has-extra-large-font-size, .has-extra-extra-large-font-size {font-weight: 300}
.wp-block-post-title.has-medium-font-size {margin: 10px 0 20px !important}
.product-list .wp-block-post-title.has-medium-font-size {
  margin: 0 !important;
}

p + h2, .wp-block-column h2 {
  padding: 20px 0
}
h3 { padding: 20px 0; }
h4 { padding: 20px 0; }

h1, h2, h3, h4, h5 {
  word-break: keep-all;
  overflow-wrap: normal;
  word-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

h3 a, h2 a, h1 a, h4 a, h5 a {text-decoration: none}

.post-edit-link {position: relative; left: 10px; bottom: 10px; background: rgb(121, 25, 25); border-radius: 30px; padding: 5px 10px; color: #FFF; text-decoration: none; font-weight: 700; font-size: 10px;}

.wp-block-cover.sticky {
  position: sticky;
  top: 0;
  z-index: -1
}

.wp-block-cover {
  position: relative;
  z-index: 2
}


/* ----- Fixed Header ----- */
#cw-content { position: relative; padding-top: var(--header-height); }
body.admin-bar .site-header { top: 32px; }

.gap-20 { gap: 40px; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.my-60 { margin-top: 60px !important; margin-bottom: 60px !important; }
.max-20 { max-width: 760px; margin: 0 auto; }
.wp-block-columns {gap: 40px}
.height-100 {height: 420px}
.wp-block-buttons {
  margin: 40px 0;
  gap: 15px
}
.wp-block-button a {border-radius: 0; border: none; transition: opacity 0.3s ease}
.wp-block-button a:hover, .wp-block-post-excerpt__more-link:hover {opacity: .64}
.is-style-outline .wp-block-button__link, .wp-block-post-excerpt__more-link {
  position: relative;
  padding-right: 1em; /* add space for arrow */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 0;
  text-decoration: none
}
.is-style-outline .wp-block-button__link::after, .wp-block-post-excerpt__more-link::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 0.6em;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-width='2' viewBox='0 0 24 24'><path d='M5 12h14M13 5l7 7-7 7'/></svg>");
}
.is-style-outline .wp-block-button__link:hover::after, .wp-block-post-excerpt__more-link:after::hover {
  transform: translateX(4px);
  transition: transform .2s ease;
}
.wp-block-post-excerpt__excerpt {padding: 0 0 20px}
.wp-block-separator {border-top: 1px solid;margin:30px 0 0; padding-bottom: 30px}
/* Modern tick-style list */
.wp-block-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.wp-block-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.4;
}

.wp-block-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #333
  font-weight: 600;
  font-size: 1.1rem;
}

/* Phone list override */
.wp-block-list.tel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'><path d='M6.62 10.79a15.053 15.053 0 006.59 6.59l2.2-2.2a1 1 0 011-.24c1.12.37 2.33.57 3.59.57a1 1 0 011 1V21a1 1 0 01-1 1C10.07 22 2 13.93 2 4a1 1 0 011-1h3.49a1 1 0 011 1c0 1.26.2 2.47.57 3.59a1 1 0 01-.25 1l-2.19 2.2z'/></svg>");
}
.wp-block-list.address-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'><path d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1112 6a2.5 2.5 0 010 5.5z'/></svg>");
}
.wp-block-list.address-list {margin: 40px 0}
body.page-id-26 :where(.wp-block-columns) {margin-bottom: 0}

/* Pill badge shown over featured image */
.cw-card__pill{
  position:absolute;
  top:12px;
  right:12px;
  display:inline-block;
  padding:4px 10px;
  font-size:0.825rem;
  line-height:1;
  border-radius:999px;
  background: var(--wp--preset--color--dark);
  color:#fff;
  letter-spacing:.3px;
  z-index:2;
}

.cw-card__pill--news{
  background: var(--wp--preset--color--dark);
}

.cw-card__pill--project{
  background: var(--wp--preset--color--dark);
}
.cw-ratio-4-3{
  position:relative;
  aspect-ratio:4 / 3;
  overflow:hidden;
  margin-bottom:12px;
}

.cw-ratio-4-3 img.cw-ratio-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}



/* ========================================
   BASE HEADER
======================================== */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: transparent;
  transition: transform .36s ease, background-color .24s ease, box-shadow .24s ease;
  will-change: transform, background-color, box-shadow;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  transition: background-color .3s ease, box-shadow .3s ease;
  background: rgba(0, 0, 0, 0.45);
  padding: 0 20px
}
.scrolled .header-container {
	background: rgba(0, 0, 0, 1);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Links + logo color swap */
.header-container a { color: #fff; }
.has-mega-open .header-container a { color: #000; }
.has-mega-open .header-container {background: #fff}
.has-mega-open .floating-search { color: #000; }

.anim-right {
  will-change: transform;
  transition: transform 0.1s ease-out;
  padding: 10px 80px 10px 10px;
  color: #000000;
  font-weight: 300
}

.anim-right.scroll-out {
  transform: translateX(100vw); /* moves completely off screen to the right */
  opacity: 0;
}

body.has-mega-open .site-branding { filter: invert(1); }

img.custom-logo {
  height: 44px; width: auto; display: block;
  transition: filter 150ms ease;
}

/* When page is scrolled 
.logo--invert { filter: invert(1); }
.site-header.has-mega-open .site-branding { filter: invert(0); } */
body.scrolled .site-header {
  position: fixed;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  transform: translateY(0);
}
body.scrolled .header-inner { padding-block: 10px; }

/* When mega open (desktop) */
@media (min-width: 721px){
  .site-header.has-mega-open {
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }
}

/* Respect motion prefs */
@media (prefers-reduced-motion: reduce){
  .site-header, .header-container { transition: none; transform: none; }
}

/* ========================================
   NAV & MEGA MENU FIXES
   - Header/nav always above dropdown
   - Dropdown pinned to header bottom (JS sets top)
   - Mobile unaffected (falls back to off-canvas flow)
======================================== */


#site-navigation .menu > li > a { cursor: pointer; }
.mega-links li {
  border-bottom: solid 1px rgba(0,0,0,.08);padding: 10px 0;font-size: var(--wp--preset--font-size--medium)
}
/* Desktop mega dropdown: fixed to viewport, below the header */
@media (min-width: 721px){
  
  /* Ensure the nav row sits above the dropdown and keeps pointer cursor */
  #site-navigation {
    position: relative;
    z-index: 10001; /* higher than .site-header's dropdown z-index below */
  }
  
  .menu > li.mega > .mega-dropdown {
    position: fixed;   /* pinned to viewport; JS sets 'top' to header bottom */
    left: 0;
    right: 0;
    top: 0;            /* overwritten by JS each time */
    display: none;     /* only visible when parent li is open */
    pointer-events: none;
    z-index: 10000;    /* BELOW #site-navigation (10001), BELOW .site-header (9999+nav) */
    will-change: top;
  }
  .menu > li.mega.mega-open > .mega-dropdown {
    display: flex;
    pointer-events: auto;
  }

  /* Keep header visually above the panel */
  .site-header { z-index: 99; }
  body.has-mega-open .site-header {
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }

  /* Optional: small hover bridge so moving into the panel doesn't flicker */
  .menu > li.mega > .mega-dropdown::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: -10px;
    height: 10px;
    pointer-events: none;
  }
}

/* --- Fixed header base (already present) --- */
body.scrolled .site-header {
  position: fixed;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  transform: translateY(0);
}

/* --- Auto-hide on scroll down --- */
.site-header {
  transform: translateY(0);
  transition: transform .36s ease, background-color .24s ease, box-shadow .24s ease;
  will-change: transform, background-color, box-shadow;
}

/* When user is scrolling down, slide header out of view */
body.nav-hide .site-header {
  transform: translateY(-110%);
}

/* Keep header visible when overlays are open */
body.nav-open .site-header,
body.search-open .site-header,
body.has-mega-open .site-header {
  transform: translateY(0) !important;
}

/* Admin bar offset (WP) when fixed */
body.admin-bar .site-header {
  top: 0;
}
body.admin-bar.scrolled .site-header {
  top: 32px; /* WP admin bar height on desktop */
}

/* Respect motion prefs */
@media (prefers-reduced-motion: reduce){
  .site-header { transition: none; transform: none; }
}

/* Optional: slightly tighter padding when scrolled */
body.scrolled .header-inner { padding-block: 10px; }

/* You already had these; keep them */
@media (min-width: 721px){
  .site-header.has-mega-open {
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }
}

/* Mobile: let off-canvas handle layout; don't overlay header */
@media (max-width: 720px){
  .menu > li.mega > .mega-dropdown {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    z-index: auto;
    display: flex;     /* render within the off-canvas flow */
    pointer-events: auto;
  }
  /* Hide original mega dropdown completely on mobile */
  #site-navigation .mega-dropdown {
    display: none !important;
  }
}

/* ========================================
   SEARCH BUTTON
======================================== */
.floating-search {
  background: transparent;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 0;
  color: #fff
}
.floating-search svg {
  width: 20px;
  height: 20px;
  display: block;
}
.no-scroll .floating-search {
  opacity: 0
}

/* ========================================
   HAMBURGER (mobile only)
======================================== */
.mobile-menu {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 20px; 
  height: 40px;
  border: 0; 
  background: transparent;
  cursor: pointer;
}

.mobile-menu .bar {
  width: 24px; 
  height: 2px;
  border-radius: 1px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu[aria-expanded="true"] .bar {
  background: #000;
}

.search-hamburger {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 999;
}

/* When nav is open */
body.nav-open .mobile-menu .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .mobile-menu .bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .mobile-menu .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 721px){
  .mobile-menu { display: none; }
}


/* ========================================
   MOBILE OFF-CANVAS NAV
======================================== */
@media (max-width: 720px){

  #site-navigation.offcanvas {
    position: fixed;
    inset: 0 0 0 auto;
    width: 100%;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: -20px 0 40px rgba(0,0,0,.12);
    height: 100vh;
    background: #fff;
    overflow: hidden;
    padding: 0;
  }

  #site-navigation.offcanvas.is-open { 
    transform: translateX(0); 
  }

 .mobile-menu-wrapper{
   display: flex;
   height: 100%;
   transition: transform .35s ease;
 }

 .mobile-menu-wrapper > .menu,
 .submenu-panel{
   min-width: 100%;
   height: 100%;
   overflow-y: auto;
   padding: 120px 24px 40px; /* extra top spacing */
 }

  /* Disable default dropdown behaviour */
  #site-navigation .sub-menu{
    display: none !important;
  }

  #site-navigation .menu{
    display: block;
    margin: 0;
    padding: 100px 0 0;
    list-style: none;
    text-align: left;
    height: auto;
    font-size: 1.225rem;
  }

  #site-navigation .menu > li{
    position: relative;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
  }

  #site-navigation .menu > li > a{
    display: block;
    text-decoration: none;
    padding: 0 0 0 30px;
  }

/* Submenu arrow button – fully reset */
  .submenu-toggle{
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    
    width: 24px;
    height: 24px;
  
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
  
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    box-shadow: none;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    cursor: pointer;
  }
  
  /* Remove focus outline but keep accessibility */
  .submenu-toggle:focus{
    outline: none;
  }
 
 .submenu-toggle::after{
   content: '';
   display: block;
   width: 16px;
   height: 16px;
   margin-left: auto;
   background-repeat: no-repeat;
   background-size: contain;
   background-position: center;
   background-image: url("data:image/svg+xml;utf8,\
   <svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-width='2' viewBox='0 0 24 24'>\
   <path d='M9 5l7 7-7 7'/>\
   </svg>");
 }

  /* Submenu panel layout */
  .submenu-panel ul{
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .submenu-panel li{
    padding: 14px 0;
    border-bottom: 1px solid #eee;
  }

  .submenu-panel a{
    text-decoration: none;
  }

  /* Submenu back button */
  .submenu-back{
    display: inline-flex;
    align-items: center;
    justify-content: center;
  
    width: 28px;
    height: 28px;
  
    background: none;
    border: 0;
    padding: 0;
    margin: 0 0 24px 0;
  
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    box-shadow: none;
  left: -10px;
  position: relative;
    cursor: pointer;
  }
  
  /* Remove default focus styling */
  .submenu-back:focus{
    outline: none;
  }
  
  /* Left arrow SVG */
  .submenu-back::before{
    content: '';
    width: 18px;
    height: 18px;
  
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
  
    background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-width='2' viewBox='0 0 24 24'>\
  <path d='M15 5l-7 7 7 7'/>\
  </svg>");
  }

  .header-container a {
    color: #000; 
    text-decoration: none;
  }

  .header-container li {
    padding: 10px 0;
  }
  
  /* Close button base */
  .mobile-nav-close{
    position: absolute;
    top: 14px;
    right: 14px;
  
    width: 28px;
    height: 28px;
  
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
  
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
  
    cursor: pointer;
    z-index: 9
  }
  
/* Lines */
  .mobile-nav-close::before,
  .mobile-nav-close::after{
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 2px;
    background: currentColor;
  
    transform-origin: center;
    transition: transform .3s ease, opacity .2s ease;
  }
  
  /* Default = minus */
  .mobile-nav-close::before{
    transform: translate(-50%, -50%) rotate(0deg);
  }
  
  .mobile-nav-close::after{
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
  }
  
  /* OPEN STATE — delayed animation */
  #site-navigation.is-open .mobile-nav-close::before{
    transition-delay: .2s;
    transform: translate(-50%, -50%) rotate(45deg);
  }
  
  #site-navigation.is-open .mobile-nav-close::after{
    transition-delay: .2s;
    transform: translate(-50%, -50%) rotate(-45deg);
    opacity: 1;
  }
  
  /* Remove delay when closing (so it snaps back immediately) */
  #site-navigation:not(.is-open) .mobile-nav-close::before,
  #site-navigation:not(.is-open) .mobile-nav-close::after{
    transition-delay: 0s;
  }
  
}


/* ========================================
   OVERLAY (mobile)
======================================== */
.nav-overlay, 
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 999;
  height: 100vh;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-overlay.is-active, 
.search-overlay.is-active { 
  opacity: 1; 
  pointer-events: auto; 
}

.nav-overlay[hidden] { 
  display:block; 
}


/* ========================================
   DESKTOP NAV + DROPDOWNS
======================================== */
@media (min-width: 721px){
  #site-navigation { margin: 0 60px; width: 100%;font-size: 0.825rem}
  #site-navigation .menu {
    display: flex;
    align-items: center;
    gap: 60px;
    justify-content: space-around

  }
  #site-navigation .menu > li {
    position: relative;
    list-style: none;
  }
  #site-navigation .menu > li > a {
    display: inline-block;
    padding: 10px 6px;
    text-decoration: none;
  }

  /* -------- Normal dropdowns (non-mega) -------- */
  #site-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 220px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    padding: 16px;
    z-index: 999;
  }
  #site-navigation .menu > li:hover > .sub-menu,
  #site-navigation .menu > li:focus-within > .sub-menu {
    display: block;
  }

    .mega-dropdown {
      position: fixed;
      left: 0; right: 0;
      top: var(--mega-top, 0);
      display: flex;            
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px); /* small downward offset for motion */
      pointer-events: none;        /* avoid hover gap issues */
      transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
      grid-template-columns: repeat(3, 1fr);
      gap: 60px;
      background: #fff;
      border-top: 1px solid rgba(0,0,0,.08);
      padding: 40px 60px;
      min-height: 380px;
      z-index: 9998;
    }
  
    /* Open state */
    .menu > li.mega.mega-open > .mega-dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
      transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
    }
  
    /* bridge gap between nav and dropdown to prevent flicker */
    .mega-dropdown::before {
      content:"";
      position:absolute;
      top:-40px;       /* extend higher above dropdown */
      left:0; right:0;
      height:40px;     /* covers the hover gap */
      background:transparent;
    }

  .mega-col { display: flex; flex-direction: column; gap: 16px; width: 33.33%; }
  .mega-col--image img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  .mega-col--content .mega-title { font-weight: 600; margin-bottom: .5em; }
  .mega-title a {text-decoration: none}
  .mega-col--content .mega-desc { line-height: 1.35; padding: 0; margin: 0}
  .mega-col--children { justify-content: }
  .mega-col--children ul { list-style: none; margin: 0; padding: 0;}
  .mega-col--children li { margin-bottom: 8px; }
  .mega-col--children a { text-decoration: none; color: inherit; }
}

/* Optional: container alignment */
@media (min-width: 1200px){
  .mega-dropdown {
    padding-left: calc((100vw - 1200px)/2);
    padding-right: calc((100vw - 1200px)/2);
  }
}

/* ========================================
   MOBILE LAYOUT FOR MEGA
======================================== */
@media (max-width: 720px){
  .mega-dropdown {
    position: static;
    display: block;
    padding: 20px;
    min-height: auto;
    box-shadow: none;
    border: none;
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.mc-signup-form {
  width: 100%;
  box-sizing: border-box;
}

.mc-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.mc-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mc-field label {
  font-size: 14px;
  margin-bottom: 4px;
  color: #333;
}

.mc-field input {
  border: none;
  border-bottom: 1px solid #444;
  background: transparent;
  padding: 8px 4px;
  outline: none;
}

.mc-row button {
  background-color: color(display-p3 0.69 0.839 0.722);
  color: white;
  border: none;
  padding: 23px 50px;
  border-radius: 0;
  cursor: pointer;
  align-self: center;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.mc-row button:hover {
  background-color: #8cb698;
}

@media (max-width: 700px) {
  .mc-row {
    flex-direction: column;
    align-items: stretch;
  }
  .mc-row button {
    width: 100%;
  }
}


/* -----------------------------
   INITIAL STATE
----------------------------- */

/* Hide cover inner container */
.cw-js .wp-block-cover .wp-block-cover__inner-container {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1);
}

/* Hide ALL columns by default */
.cw-js .wp-block-columns {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1);
}

/* BUT — do NOT hide columns inside covers */
.cw-js .wp-block-cover .wp-block-columns {
  opacity: 1;
  transform: none;
}


/* -----------------------------
   VISIBLE STATE
----------------------------- */

.cw-js .wp-block-cover.is-visible 
.wp-block-cover__inner-container.is-visible {
  opacity: 1;
  transform: none;
}

.cw-js .wp-block-columns.is-visible {
  opacity: 1;
  transform: none;
}
/* ============================================================
   GUTENBERG BLOCKS
   ============================================================ */
   
   /* Style any Details inside a Group */
   .wp-block-group details.wp-block-details {
     border-top: 1px solid rgba(0,0,0,.15);
   }
   .wp-block-group details.wp-block-details:last-of-type {
     border-bottom: 1px solid rgba(0,0,0,.15);
   }
   
   /* Summary row layout (text left, icon right) */
   .wp-block-group details.wp-block-details > summary {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 1rem;
     padding: clamp(14px, 2vw, 22px) 0;
     font-size: var(--wp--preset--font-size--medium); font-weight: 300; 
     cursor: pointer;
     list-style: none;  
     outline: none;
   }
   
   /* Remove WebKit marker */
   .wp-block-group details.wp-block-details > summary::-webkit-details-marker { display: none; }
   
   /* Right-side + / – icon */
/* Right-side + / X icon */
   .wp-block-group details.wp-block-details > summary::after {
     content: "+";
     display: inline-block;
     font-weight: 300;
     line-height: 1;
     margin-left: 1rem;
     opacity: .85;
     transition: transform 0.3s ease, opacity 0.3s ease;
     transform-origin: center;
   }
   
   /* When open, rotate the + to form an X */
   .wp-block-group details.wp-block-details[open] > summary::after {
     transform: rotate(45deg); /* 45° makes + look like × */
     opacity: 1;
   }
   /* The JS creates an inner wrapper to animate height */
   .wp-block-group .cw-system-acc-panel {
     overflow: hidden;
     height: 0;                 /* will be animated by JS */
     will-change: height;
   }
   .wp-block-group .cw-system-acc-panel > .cw-system-acc-inner {
     padding: 0 0 clamp(14px, 2vw, 20px) 0;
   }
   
   /* Nice focus ring for keyboard users */
   .wp-block-group details.wp-block-details > summary:focus-visible {
     outline: 2px solid currentColor;
     outline-offset: 3px;
   }
   
   /* Tidy inner spacing */
   .wp-block-group .cw-system-acc-inner > *:first-child { margin-top: 0; }
   .wp-block-group .cw-system-acc-inner > *:last-child  { margin-bottom: 0; }
   .wp-block-group {
  margin: 80px auto!important;
   }
.wp-block-cover__inner-container {margin: 20px auto !important}
/* Restrict normal Cover blocks to the global content size */
.wp-block-cover:not(.alignwide):not(.alignfull),
.wp-block-columns:not(.alignwide),
.wp-block-heading:not(.alignwide), .container, .wp-block-gallery:not(.alignwide), .wp-block-cover.alignfull .wp-block-cover__inner-container, .wp-block-query:not(.alignwide):not(.alignfull), .search-results-container {
  max-width: var(--wp--style--global--content-size);
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
}

/* Grid container */
.search-results-item {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

/* Individual result cards */
.search-results-item article {
  width: 100%;
}

/* Tablet breakpoint (optional) */
@media (max-width: 1024px) {
  .search-results-item {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile breakpoint */
@media (max-width: 640px) {
  .search-results-item {
    grid-template-columns: 1fr;
  }
}

.post-hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder styling */
.hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      135deg,
      #e7e7e7 0%,
      #e2e2e2 50%,
      #d0d0d0 100%
    );
  color: #ffffff;
  text-align: center;
}



.container + h2 { margin: 0; padding: 0
}
body.home .wp-block-columns.alignfull {
  width: calc(100% - 20px);
  margin: 10px;
  max-width: 100%;
  gap: 10px
}
.wp-block-gallery img {padding: 5px}
.wp-block-columns.alignfull {
  width: calc(100%);
  margin: 10px;
  max-width: 100%;
  gap: 10px
}
.wp-block-columns.alignfull.no-margin {
  margin: 10px 0 !important;
  width: calc(100%)
}

.widget {
  width: var(--wp--style--global--content-size);
  margin: 0 auto;
  max-width: 100%;
  padding-top: 100px
}
/* Ensure the post item can position children */
.wp-block-post {
  position: relative;
}

/* Anchor the image as the positioning context */
.wp-block-post-featured-image {
  position: relative;
}

/* Date pill styling */
.wp-block-post-date {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;

  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;

  padding: 6px 12px;
  border-radius: 999px;

  font-size: 0.625rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Remove default margins */
.wp-block-post-date time {
  margin: 0;
  display: block;
}

/* Optional: ensure image stays clean */
.wp-block-post-featured-image img {
  display: block;
}


#footer, .footer {
  font-size: 0.825rem; line-height: 1.8rem;
  background: var(--wp--preset--color--dark);
}

.footer-contact .wp-block-columns {margin: 20px 0}
 .footer ul {padding: 0; margin: 0}
 .footer ul li {
   padding: 10px 0;
   list-style: none
 } 
 .footer .wp-block-heading {
   color: var(--wp--preset--color--primary);
 }
 .footer ul li a {
   text-decoration: none
 }

.footer-contact h2 {
  margin-bottom: 40px
}
ul.styled-list {list-style: none; padding: 0}
ul.product-list h4, ul.styled-list li, ul.product-list h2, ul.product-list h3 {
  border-bottom: solid 1px;
  padding: 25px 20px 25px 0;
  margin: 0;

}
.wp-block-query .wp-block-post-template {
  gap: 20px
}
.taxonomy-project_category a {
  text-decoration: none;
  font-size: var(--wp--preset--font-size--extra-small)
}
.wp-block-query .wp-block-post-title {
  margin: 0
}
.product h4, ul.styled-list li {font-size: var(--wp--preset--font-size--medium); font-weight: 300; padding: 0;}
ul.styled-list li {padding: 20px 0}
ul.product-list h4 a, ul.styled-list li a {
  color: rgb(0,0,0) !important;
  transition: color 0.2s ease;
}

ul.product-list h4 a:hover, ul.styled-list li a:hover {
  color: var(--wp--preset--color--primary) !important;
}

ul.product-list li:first-child h4, ul.styled-list li:first-child {
  border-top: solid 1px;
  padding-top: 20px;
}
#search-backdrop.nav-overlay[hidden]{ display:block; } /* keep layout-free when hidden */

/* ===== Overlay shell ===== */

#search-title.sr-only {color: #fff}
.search-overlay{
  position: fixed; inset: 0; z-index: 1003;
  display: grid; place-items: start center;
  padding: clamp(24px, 4vw, 48px);
  visibility: hidden; opacity: 0;
  transition: opacity .25s ease, visibility 0s linear .25s;
  pointer-events: none;
  
}

.search-overlay.is-open{
  visibility: visible; opacity: 1; pointer-events: auto;
  transition: opacity .25s ease, visibility 0s;
}

/* Close button (top-right like your mock) */
.search-overlay__close{
  position: fixed; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.9);
  color: #fff; background: rgba(0,0,0,.35);
  display: grid; place-items: center; font-size: 22px; line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(3px);
}

/* Center box that holds the form + results */
.search-overlay__box{
  width: min(920px, 92vw);
  margin-top: clamp(8vh, 14vh, 24vh);
  margin-left: auto;
  margin-right: auto
}

/* Big pill input like screenshot */
.search-overlay__form{
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display: flex; align-items: center;
  min-height: 76px;
  padding: 0 64px 0 28px;
}

.search-overlay__input{
  appearance: none; border: 0; outline: 0;
  width: 100%;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.2;
  background: transparent;
  color: #111;
}

.search-overlay__input::placeholder{ color: #444; opacity: .7; }

.search-overlay__submit{
  position: absolute; right: 18px;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px;
  border: 0; background: #111; color: #fff; cursor: pointer;
}

/* Results list */
.search-overlay__results{ margin-top: 18px; }
.search-overlay__list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.search-item__link{
  display: grid; gap: 4px;
  padding: 12px 14px; border-radius: 12px;
  text-decoration: none; color: inherit;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.06);
}
.search-item__link:hover{ background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.search-item__title{ font-weight: 700; }
.search-item__type{ font-size: .85rem; opacity: .6; }
.search-item__excerpt{ opacity: .8; }

.search-overlay__empty{ color: #fff; opacity: .9; padding: 8px 2px; }
.search-overlay__hint{ color:#fff; opacity:.75; margin-top: 8px; font-size: .95rem; }



/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .search-overlay,
  .nav-overlay{ transition: none !important; }
}


.search-item__pill {
  position: absolute;
  top: 8px;
  right: 12px;
  background: #111;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.2;
}

.search-item {
  position: relative;
}
.search-overlay__more {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
}
.search-overlay__summary, .search-overlay__summary a{color: #fff}

.search-overlay__list .type-itinerary .search-item__link {background: #eadfdf; color: #000}
.search-overlay__list .type-destination .search-item__link {background: #e2eadf; color: #000}
.search-overlay__list .type-page .search-item__link {background: #dfe6ea; color: #000}
.search-overlay__list .type-itinerary .search-item__pill{background: #9a8686}
.search-overlay__list .type-destination .search-item__pill{background: #657161}
.search-overlay__list .type-page .search-item__pill{background: #5f6b71}



/* Hide the header triggers while the SEARCH overlay is open */
body.search-open .floating-search,
body.search-open .mobile-menu{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(.98);
  transition: opacity .2s ease, visibility 0s linear .2s, transform .2s ease;
}

.search-open .header-container {display: none}

/* Return to normal when search closes */
body:not(.search-open) .floating-search{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: opacity .2s ease, visibility 0s linear 0s, transform .2s ease;
  background: #fff;
  border-radius: 50%;
  color: #000
}

body:not(.search-open) .mobile-menu{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition: opacity .2s ease, visibility 0s linear 0s, transform .2s ease;
  border-radius: 50%;
  color: #000
}

/* Fly up and fade out when body has .scrolling */
.reveal-ready.scrolling .floating-search{
  transform-origin: 50% 0%;
  will-change: transform, opacity;
  animation: floatSearchFlyOut 360ms cubic-bezier(.22,.61,.36,1) forwards;
  pointer-events: none; /* don't grab clicks while hidden */
}

/* When back at the top (no .scrolling), slide back in from top + fade */
.reveal-ready:not(.scrolling) .floating-search{
  will-change: transform, opacity;
  animation: floatSearchFlyIn 300ms cubic-bezier(.22,.61,.36,1) forwards;
  pointer-events: auto;
}

@keyframes floatSearchFlyOut{
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  35%  { opacity: 1; transform: translateY(-10px) scale(0.995); }
  100% { opacity: 0; transform: translateY(calc(-100% - 40px)) scale(0.98); }
  /* -100% = its own height; extra -40px guarantees it clears the top edge */
}

@keyframes floatSearchFlyIn{
  0%   { opacity: 0; transform: translateY(calc(-100% - 40px)) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Reduced motion: just fade */
@media (prefers-reduced-motion: reduce){
  .reveal-ready.scrolling .floating-search{
    animation: floatSearchFadeOut 200ms ease forwards;
  }
  .reveal-ready:not(.scrolling) .floating-search{
    animation: floatSearchFadeIn 200ms ease forwards;
  }
  @keyframes floatSearchFadeOut{ from{opacity:1} to{opacity:0} }
  @keyframes floatSearchFadeIn { from{opacity:0} to{opacity:1} }
}

.reveal-ready.scrolling .reviews-slider .swiper-nav .reveal-up { opacity: 1 !important; transform: none !important; }
.footer-copyright {text-align: center;background: var(--wp--preset--color--dark);padding: 20px; margin: 0;
  color: #fff; border-top: solid 1px #fff;font-size: 0.825rem;display: flex;justify-content: space-between;align-items: center
}
.footer-copyright a {color: #fff; text-decoration: none}



 /* Overlay container */
 .hero-overlay {
  position: absolute;
  inset: 0px;
  display: flex;
  align-items: start;
  padding: min(6vw, 72px);
  color: rgb(255, 255, 255);
  z-index: 2;
  flex-direction: column;
  justify-content: center;

 }
.hero-image img {
   width: 100%;
   height: 100%;
   object-fit: cover; /* ensures no distortion, fills container */
   object-position: center; /* keeps image centered */
   display: block;
 }
 .hero-image {
   position: relative;
   width: 100%;
   height: 100vh; 
   overflow: hidden;
 }
 
 .hero-icon img {
   height: 100px;
   width: 100px
 }
 /* Title + summary */
 .hero-title {
   font-size: clamp(2.2rem, 6vw, 5rem);
   line-height: 1.05;
   margin: 0;
   display: flex;
   align-items: center;
   gap: 30px;
 }
 
 
 .grid-3 {grid-template-columns: repeat(3, minmax(0, 1fr));list-style: none; margin: 0; padding: 0}
 .wp-post-image {max-width: 100%; height: auto}
 
 .pa-materials, .pa-materials-heading, .finishes, .additional-details-heading, .additional-details-grid {max-width: var(--wp--style--global--content-size);margin: 0 auto; }
 .pa-materials-heading {border-bottom: solid 1px #000000; padding: 10px 0!important; margin-bottom: 40px}
 .pa-materials-grid, .finishes-grid, .additional-details-grid {display: flex; padding: 0; margin: 0 auto 20px; grid:24px}
 .pa-materials-grid li, .finishes-grid li, .additional-details-item, .border-column .wp-block-column  {list-style: none; border-left: solid 1px #000000; padding: 0 20px; margin: 40px 0}
 
 .border-column .wp-block-columns .wp-block-column {border: none;padding: 0;margin: 0}
 .border-column .wp-block-columns {gap: 10px}
 
 .border-column .wp-block-column .wp-block-heading {font-size: 1rem; font-weight: 600}
 .pa-mat-head {text-decoration: none; gap: 10px;display: flex;}
 .pa-mat-desc {font-size: 0.825rem}
 
 .material-icons-vertical { display: flex; gap: 6px; margin: 0 20px 20px}
 .material-icon-wrap { line-height: 0;}
 .finishes-title {display: block; font-family: var(--wp--preset--font-family--haffer);font-weight: 600;}
 .finishes-desc {font-size: 0.825rem}
 
 .child-products-with-icons {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
   gap: 24px;
   max-width: var(--wp--style--global--content-size);
   margin: 0 auto;
 }
 
 /* Each child product box */
 .child-product {
   background: var(--wp--preset--color--light);
   border-radius: 10px;
   overflow: hidden;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
 }
 
 /* Titles and links */
 .child-product-title {
   margin: 0;
   font-size: 1.125rem;
 }
 
 .child-product-title a {
   display: block;
   padding: 16px 20px 0;
   text-decoration: none;
   color: inherit;
 }
 
 /* Product text */
 .child-product-text p {
   margin: 0 0 16px;
   padding: 0 20px;
   font-size: 0.825rem;
 }
 
 /* Image support if used */
 .child-product img {
   max-width: 100%;
   height: auto;
   border-bottom: 1px solid rgba(0,0,0,0.05);
 }
 
 /* Optional hover effect */
 .child-product:hover {
   box-shadow: 0 2px 8px rgba(0,0,0,0.1);
   transform: translateY(-2px);
   transition: all 0.2s ease-in-out;
 }
 /** RESPONSIVENESS **/
 
 @media (max-width: 1260px) {
 .wp-block-cover:not(.alignwide):not(.alignfull) {
 max-width: var(--wp--style--global--content-size);
 margin-left: 20px;
 margin-right: 20px;
 border-radius: 10px;
 }
 .itinerary-filters {margin: 40px 20px !important}
 .wp-block-columns .wp-block-cover:not(.alignwide):not(.alignfull), .wp-block-cover.alignfull .wp-block-cover__inner-container {
  max-width: var(--wp--style--global--content-size);
  margin-left: 0;
  margin-right: 0;
  border-radius: ;
  }
  
  
.itinerary-slider.slider--show-1 .swiper-slide.itinerary-slide {
  height: auto
}
}

  @media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .destination-meta { grid-template-columns: 1fr; }
    .travel-time.two-col { grid-template-columns: 1fr; }
    .hero-image { height: 70vh; }
      .reviews-slider{ grid-template-columns:100%; }
      .reviews-slider .reviews-quote{ grid-column:1/-1; font-size: clamp(48px, 14vw, 96px); opacity:.12; }
      .reviews-slider .reviews-nav{ grid-column:1/-1; padding: 8px 0 12px; }
      .reviews-slider .reviews-swiper{ grid-column:1/-1; }
      body:not(.home) .wp-block-columns-is-layout-flex {margin: 0 20px}
    }


    @media (max-width: 820px){
      /* For the LCP element only */
      .reveal-up.lcp-candidate {
        opacity: 1;               /* ensure paint */
        transform: none;          /* avoid transform-delayed paint */
        transition: none;         /* no animation on first view */
        will-change: auto;        /* avoid forcing a new composite layer */
      }
      .itinerary-card__body{
        left: 20px;
        right: 20px;
        top: 50%;
        bottom: auto;                  /* reset */
        transform: translateY(-50%);
        max-width: none;
        padding-right: 20px;
      }
      .itinerary-card__body{ left:20px; right:20px; bottom:22vh; max-width:none; padding-right:20px; }
      .itinerary-card__title{ font-size: clamp(1.9rem, 10vw, 3rem); }
      body.admin-bar .site-header{ top: 46px; }
      .swiper-nav {bottom: -40px; left: 0}
      .itinerary-swiper .swiper-nav {bottom: 50px}
      .itinerary-swiper .swiper-nav {
         left: 30px
       }
       
       .header-container {
         padding: 10px 20px;
       }

       
       .scrolling .header-container {
          background: #fff;
          background-color: rgba(255, 255, 255, 0.95); /* or any color */
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
       .scrolling .custom-logo.logo--invert, .scrolling .mobile-menu--on-light, .scrolling .mobile-menu {
         filter: none !important;
         
         color: #000;
       }
       
       .site-branding img.custom-logo {
         height: 35px
       }

       .floating-search svg {width: 30px}
       .footer {margin: 0}
       .footer ul li {padding: 5px 0}
		.footer-copyright {flex-wrap: wrap;}

    } 


 /* Project slider basics */
 
 .project-categories a {text-decoration: none; color: #FFF;}
 .project-slider-wrap {
   position: relative;
 }
 .project-categories {list-style: none; padding: 0; margin: 0}
 .project-slider .swiper-slide {
   height: auto; /* allow cards to auto-size vertically */
 }
 
 .project-card {
   display: block;
   text-decoration: none;
   color: inherit;
 }
 
 .project-card__figure {
   margin: 0 0 .75rem;
   overflow: hidden;
   border-radius: 12px;
 }
 
 .project-card__img {
   display: block;
   width: 100%;
   height: auto;
   object-fit: cover;
 }
 
 /* Fallback placeholder if no thumbnail (optional) */
 .project-card__img--placeholder {
   width: 100%;
   aspect-ratio: 16 / 9;
   background: linear-gradient(180deg, #e9e9e9, #dcdcdc);
 }
 
 .project-card__title {
   font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
   line-height: 1.25;
   margin: 0;
 }
 
 /* Swiper controls spacing */
 .project-slider .swiper-button-prev,
 .project-slider .swiper-button-next {
   --offset: 8px;
   top: 40%;
   width: 40px;
   height: 40px;
 }
 
 @media (min-width: 1024px) {
   .project-slider .swiper-button-prev { left: var(--offset); }
   .project-slider .swiper-button-next { right: var(--offset); }
 }
 
 /* Optional: adjust pagination bullets */
 .project-slider .swiper-pagination-bullet {
   opacity: .4;
 }
 .project-slider .swiper-pagination-bullet-active {
   opacity: 1;
 }
 
 .wp-block-cover.alignfull {padding-top:60px; padding-bottom:60px}

 
 /* TIMELINE BASE */
 .wp-block-list.time-line {
   position: relative;
   max-width: 1100px;
   margin: 0 auto;
   padding: 0;
   list-style: none;
 }
 
 /* Central vertical line */
 .wp-block-list.time-line::before {
   content: "";
   position: absolute;
   top: 0;
   bottom: 0;
   left: 50%;
   width: 2px;
   background: #ccc;
   transform: translateX(-50%);
 }
 
 /* Timeline items */
 .wp-block-list.time-line li {
   position: relative;
   width: 50%;
   padding: 2.5rem 3rem;
   box-sizing: border-box;
   line-height: 1.5;
 }
 
 /* Dots on the line */
 .wp-block-list.time-line li::before {
   content: "";
   position: absolute;
   top: 2.75rem;
   width: 14px;
   height: 14px;
   background: #ccc;
   border-radius: 50%;
   z-index: 2;
 }
 
 /* Left side */
 .wp-block-list.time-line li:nth-child(odd) {
   left: 0px;
   text-align: right;
 }
 
 .wp-block-list.time-line li:nth-child(odd)::before {
   right: -7px;
   left: auto
 }
 
 /* Right side */
 .wp-block-list.time-line li:nth-child(even) {
   left: 50%;
   text-align: left;
 }
 
 .wp-block-list.time-line li:nth-child(even)::before {
   left: -7px;
 }
 
 /* Year styling (first line in li) */
 .wp-block-list.time-line li {
   font-size: 0.95rem;
 }
 
/* Timeline year styling (robust, image-safe) */
 .wp-block-list.time-line > li strong {
   display: inline-block;
   font-size: 1.25rem;
   font-weight: 700;
   line-height: 1.1;
   margin: 0.25rem 0 0.5rem;
 }
 
 /* Optional visual card feel */
 .wp-block-list.time-line li {
   border-bottom: solid 1px rgb(223, 221, 221)
 }
 
 /* Spacing between items */
 .wp-block-list.time-line li + li {
   margin-top: 2rem;
 }
 
 
 /* Timeline reveal states */
 .wp-block-list.time-line > li {
   opacity: 0;
   transform: translateY(18px);
   transition: opacity 700ms ease, transform 700ms ease;
   will-change: opacity, transform;
 }
 
 .wp-block-list.time-line > li.is-visible {
   opacity: 1;
   transform: translateY(0);
 }


 
 @media (prefers-reduced-motion: reduce) {
   .wp-block-list.time-line > li {
     opacity: 1;
     transform: none;
     transition: none;
   }
 }
 
 /* MOBILE */
 @media (max-width: 768px) {
   .wp-block-list.time-line::before {
     left: 20px;
   }
 
   .wp-block-list.time-line li {
     width: 100%;
     left: 0 !important;
     padding: 2rem 1rem 2rem 3.5rem;
     text-align: left;
   }
 
   .wp-block-list.time-line li::before {
     left: 13px;
     right: auto;
   }
	  .wp-block-buttons.is-content-justification-right {justify-content: flex-start;padding-bottom: 20px;}
	 .wp-block-columns + .wp-block-columns {margin-top:40px !important}

	 
  /* Any column that contains an image or gallery goes first */
   .wp-block-columns > .wp-block-column:has(.wp-block-image),
   .wp-block-columns > .wp-block-column:has(.wp-block-gallery) {
     order: -1;
   }
   h2 + h3,
   h2 + h4 {
     padding-top: 0;
   }
   .wp-block-image.alignright {
     float: left;
     padding-left: 0;
     margin-left: 0
   }
	 
   #footer .wp-block-columns {margin: 0}
   #footer, .wp-block-query, h2.wp-block-heading:not(.wp-block-column h2.wp-block-heading) {padding: 0 20px}
   h2.wp-block-heading.no-padder {padding: 0 !important}
   .wp-block-list.time-line li:nth-child(odd) {text-align: left}
   .wp-block-list.time-line li:nth-child(odd)::before,
   .wp-block-list.time-line li:nth-child(even)::before {right: auto;left: 13px}
   .wp-block-query .wp-block-post-template {gap: 60px; margin-top: 40px}
   body .is-layout-grid {display: flex}
   .wp-block-cover .wp-block-query, .wp-block-cover__inner-container h2.wp-block-heading {padding: 0 !important}
   .wp-block-media-text__content .wp-block-spacer {height: 40px !important}
   .wp-block-columns.border-column {gap: 0;}
   .wp-block-columns.border-column .wp-block-column { margin: 40px 0 0; border: none; padding: 0}
   .wp-block-column .wp-block-columns {margin: 0 !important}
   .wp-block-group {margin: 40px 20px !important}
   .wp-block-columns .wp-block-group {margin: 0 0 30px !important}
   .wp-block-image + .wp-block-gallery {margin-top: -12px}
   .wp-block-cover.alignfull h2.wp-block-heading {padding: 0 0 40px !important}
   .wp-block-cover__inner-container .wp-block-image + h2.wp-block-heading {padding: 30px 0 !important}
   .wp-block-cover + .wp-block-spacer, .wp-block-cover__inner-container .wp-block-spacer{height: 20px !important}
   .sm-space.wp-block-spacer{height: 40px !important}
	.project-block .wp-block-columns, .no-gap {gap:0}
	 h3.container, h4.container {margin: 20px}
   .taxonomy-project_category + h3.wp-block-post-title {padding-top: 5px;padding-bottom: 30px}

 }
 
 @media (max-width: 579px) { 
   .wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid {
     grid-template-columns: auto;
     flex-wrap: wrap;
   }
 }
 
 @media (min-width: 769px) { 
   .wp-block-cover + .wp-block-gallery {margin: 40px 0 0}
   .wp-block-image.aligncenter {margin: 0 auto;max-width: var(--wp--style--global--content-size);width: 100%; padding: 0 10px}
   .wp-block-image.aligncenter img {width: 100%; max-width: 100%}
 }
   
   
 /* ===== Minimal Gravity Forms Grid (Theme Framework compatible) ===== */
 .gfield--type-honeypot {position: absolute; top:-100px; opacity: 0;}
 h2.gform_submission_error {font-size: 23px;
   font-weight: 600;}
 .gform_required_legend {display: none}
 .gform_wrapper .gfield_description.gfield_validation_message {color: #b00; font-weight: 600}
 /* 12-col grid for each row container */
 .gform_wrapper .gform-grid-row,
 .gform_wrapper .gform_page .gform_page_fields .gform_fields {
   display: grid;
   grid-template-columns: repeat(12, minmax(0, 1fr));
   gap: 20px; /* space between fields */
 }
 
 /* Map GF width utility classes to grid spans */
 .gform_wrapper .gfield--width-full        { grid-column: span 12; }
 .gform_wrapper .gfield--width-three-quarter{ grid-column: span 9;  }
 .gform_wrapper .gfield--width-two-thirds  { grid-column: span 8;  }
 .gform_wrapper .gfield--width-half        { grid-column: span 6;  }
 .gform_wrapper .gfield--width-third       { grid-column: span 4;  }
 .gform_wrapper .gfield--width-quarter     { grid-column: span 3;  }
 
 /* Make individual fields grid items */
 .gform_wrapper .gform_fields > .gfield {
   min-width: 0; /* prevent overflow */
 }
 
 /* Complex fields (e.g., Name) use their own grid */
 .gform_wrapper .ginput_complex.gform-grid-row {
   display: grid;
   grid-template-columns: repeat(12, minmax(0, 1fr));
   gap: 16px;
 }
 
 /* Equal split for complex sub-fields when size is "auto" */
 .gform_wrapper .ginput_complex .gform-grid-col--size-auto { grid-column: span 6; }
 /* If GF outputs explicit sizes, support them too */
 .gform_wrapper .ginput_complex .gform-grid-col--size-1 { grid-column: span 1; }
 .gform_wrapper .ginput_complex .gform-grid-col--size-2 { grid-column: span 2; }
 .gform_wrapper .ginput_complex .gform-grid-col--size-3 { grid-column: span 3; }
 .gform_wrapper .ginput_complex .gform-grid-col--size-4 { grid-column: span 4; }
 .gform_wrapper .ginput_complex .gform-grid-col--size-5 { grid-column: span 5; }
 .gform_wrapper .ginput_complex .gform-grid-col--size-6 { grid-column: span 6; }
 .gform_wrapper .ginput_complex .gform-grid-col--size-7 { grid-column: span 7; }
 .gform_wrapper .ginput_complex .gform-grid-col--size-8 { grid-column: span 8; }
 .gform_wrapper .ginput_complex .gform-grid-col--size-9 { grid-column: span 9; }
 .gform_wrapper .ginput_complex .gform-grid-col--size-10{ grid-column: span 10; }
 .gform_wrapper .ginput_complex .gform-grid-col--size-11{ grid-column: span 11; }
 .gform_wrapper .ginput_complex .gform-grid-col--size-12{ grid-column: span 12; }
 
 /* Page footers/buttons line up under the grid */
 .gform_wrapper .gform-page-footer,
 .gform_wrapper .gform_page_footer {
   display: flex;
   gap: 12px;
   justify-content: flex-end;
   margin-top: 20px;
 }
 
 /* ===== Basic input styling you can customize ===== */
 .gform_wrapper input[type="text"],
 .gform_wrapper input[type="email"],
 .gform_wrapper input[type="url"],
 .gform_wrapper input[type="tel"],
 .gform_wrapper input[type="number"],
 .gform_wrapper input[type="password"],
 .gform_wrapper input[type="date"],
 .gform_wrapper textarea,
 .gform_wrapper select {
   all: unset; 
   width: 100%;
   padding: 10px 12px;
   border: 1px solid #d6d6d6;
   border-radius: 8px;
   font-size: 16px;
   line-height: 1.4;
   box-sizing: border-box;
   background: #fff;

 }
 
 .gform_wrapper select {
padding-right: 2.5em;    /* make room for arrow */
 background: #fff url("data:image/svg+xml;utf8,<svg fill='%23333' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 0.7em center;
 background-size: 1em;
 
  }
  
 .gform_wrapper .gform_page .gform_page_fields .gform_fields .gfield--type-section {
   grid-column: 1 / -1; /* spans the entire grid */
   width: 100%;         /* ensures full width */
 }
 
 .gfield.number-nights {
   width: 100px
 }
 
 .gfield--width-half.width-sm {
   grid-column: span 3;
   
 }
 
 .gfield--width-half.width-sm.width-sm-last:after {
   grid-column: span 6;
 }
 
 .gform_wrapper input:focus,
 .gform_wrapper textarea:focus,
 .gform_wrapper select:focus {
   outline: none;
   border-color: #003376;              /* match your theme color */
   box-shadow: 0 0 0 3px rgba(0,51,118,.15);
 }
 .ginput_container_number .small {width: 90px !important}
 
 /* Labels & sublabels spacing */
 .gform_wrapper .gfield_label { font-weight: 600; margin-bottom: 6px; display:block; }
 .gform_wrapper .gform-field-label--type-sub { font-size: 12px; color: #666; margin-top: 6px; display:block; }
 
 /* Sections */
 .gform_wrapper .gsection .gsection_title { font-size: 20px; margin: 10px 0; }
 
 /* Datepicker icon alignment */
 .gform_wrapper .ginput_container_date { display: flex; align-items: center; gap: 8px; }
 
 /* Validation/help text */
 .gform_wrapper .gfield_description { font-size: 13px; color: #666; margin-top: 6px; }
 fieldset {
   border: none;
   padding: 0;
   margin: 0
 }
 .gf_progressbar {background: #efefef; border-radius: 15px; margin-bottom: 20px}
 .gform-theme--framework .gf_progressbar .percentbar_blue {
 background: #003376;
 border-radius: 15px;
 color: #fff;
padding: 1px 15px 0; font-size: 0.825rem}
 
 .gsection_title {
   margin: 0;
   padding: 0
 }
 
.gform_next_button, .gform_previous_button, .gform_button  {
   all: unset; /* removes all inherited Gravity Forms button styles */
   display: inline-block;
   cursor: pointer;
   padding: 10px 24px;
   border: 1px solid #000; 
   border-radius: 30px;
   font-size: 16px;
   line-height: 1.2;
   background: transparent;
   color: #000;
   text-align: center;
   transition: all 0.2s ease;
 }
 
 .gform_wrapper input[type="submit"] {
   background: var(--wp--preset--color--primary);
   color: #fff
   
 }
 
 .gsection {width: 100%}
 /* ===== Responsive: stack to 1 column on small screens ===== */
 @media (max-width: 640px) {
   .gform_wrapper .gfield--width-full,
   .gform_wrapper .gfield--width-three-quarter,
   .gform_wrapper .gfield--width-two-thirds,
   .gform_wrapper .gfield--width-half,
   .gform_wrapper .gfield--width-third,
   .gform_wrapper .gfield--width-quarter {
     grid-column: span 12;
   }
 
   .gform_wrapper .ginput_complex .gform-grid-col--size-auto { grid-column: span 12; }
   .gform_wrapper .gform-page-footer,
   .gform_wrapper .gform_page_footer { justify-content: stretch; }
   .gform_wrapper .gform-page-footer .button,
   .gform_wrapper .gform_page_footer .button { width: 100%; }
 }
 
 