/*
Theme Name: Divi Child
Theme URI: https://yourwebsite.com
Description: Child theme for Divi
Author: Your Name
Author URI: https://yourwebsite.com
Template: Divi
Version: 1.0
*/

@import url("../Divi/style.css");

/* Add your custom CSS here later */


body, p, a, li, span, div {
    font-family: 'Oswald', sans-serif !important;
}

/* Headers specifically */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif !important;
}






/* =========================================================
   HEADER - BASE (TOP STATE)
========================================================= */
.hh-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;

  /* animation */
  transition: all 0.3s ease;
  transform: translateY(0);

  /* transparent header border */
  border-bottom: 1px solid rgba(13 65 139 / 24%);
}


/* =========================================================
   HEADER - SCROLLED STATE
========================================================= */

/* force full white background on section */
.hh-header.et_pb_section.scrolled {
  background: #f5f1eb !important;
}

/* remove row background conflicts */
.hh-header.scrolled .et_pb_row {
  background: transparent !important;
}

/* shadow on scroll */
.hh-header.scrolled {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   HEADER - HEIGHT / SPACING
========================================================= */
.hh-header .et_pb_row {

  display: flex;
  align-items: center;   /* 👈 center everything vertically */
  justify-content: space-between;
    
  padding: 0px 0; /* default height */
  transition: all 0.35s ease;
}


/* Make columns flex */
.hh-header .et_pb_column {
  display: flex;
  align-items: center;
}

.hh-header.scrolled .et_pb_row {
  padding: 10px 0; /* shrink height */
}


/* =========================================================
   LOGO
========================================================= */
.hh-logo img {
  max-width: 100%;
  max-height: 110px; /* large default logo */
  width: auto;

  /* merged transitions (no behavior change) */
  transition: all 0.35s ease, opacity 0.3s ease;
}

/* shrink logo on scroll */
.hh-header.scrolled .hh-logo img {
  max-height: 70px;
}


/* =========================================================
   MENU - SPACING
========================================================= */
.et_pb_menu__menu li a {
  padding: 8px 12px;
}


/* =========================================================
   MENU - UNDERLINE ANIMATION
========================================================= */
.et_pb_menu__menu a {
  position: relative;
}

.et_pb_menu__menu a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;

  width: 0;
  height: 2px;

  background: currentColor;
  transition: width 0.3s ease;
}

.et_pb_menu__menu a:hover:after {
  width: 100%;
}


/* =========================================================
   MENU - COLORS
========================================================= */

/* top (transparent header) */
.hh-header .et_pb_menu__menu a {
  color: #0d418b !important;
}

/* on scroll */
.hh-header.scrolled .et_pb_menu__menu a {
  color: #0d418b !important;
}


/* =========================================================
   HEADER - HIDE EFFECT (OPTIONAL)
========================================================= */
.hh-header {
  transition: transform 0.4s ease;
}

.hh-header.hide-header {
  transform: translateY(-100%);
}






/* =========================================
   FIX ACTIVE MENU COLOR ON SCROLL
========================================= */

/* Active menu item (current page) */
.hh-header.scrolled .et_pb_menu__menu .current-menu-item a,
.hh-header.scrolled .et_pb_menu__menu .current_page_item a {
  color: #1f2a44 !important;
}

/* Keep underline color consistent */
.hh-header.scrolled .et_pb_menu__menu a::after {
  background: #000000;
}




.et_mobile_menu {
    border-top: 3px solid #e4e4e4;
}


/* =========================================
   RESPONSIVE LOGO
========================================= */

/* Tablet */
@media (max-width: 980px) {
    .hh-logo img {
        max-height: 60px !important;
    }

    .hh-header.scrolled .hh-logo img {
        max-height: 45px;
    }

    .et_pb_column{
        margin: 10px 0px 8px 0px;
    }




}


/* =========================================
   FORCE MOBILE MENU FIX (DIVI OVERRIDE)
========================================= */

/* =========================================
   FORCE MOBILE MENU FULL WIDTH (HARD FIX)
========================================= */

@media (max-width: 980px) {


  .hh-header .mobile_nav.opened {
    background: #ffffff !important;
  }

  .hh-header:has(.mobile_nav.opened) {
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }
	

  .hh-header:has(.mobile_nav.opened) .hh-logo img {
    content: url("/dev/wp-content/uploads/2026/04//logo-hh.png") !important;
    src: "/dev/wp-content/uploads/2026/04//logo-hh.png" !important;
  }
	
  /* Default (before scroll) */
  .hh-header .et_mobile_menu {
    top: 70px !important;
  }

  /* After scroll */
  .hh-header.scrolled .et_mobile_menu {
    top: 60px !important;
  }


  /* BREAK ALL CONTAINERS */
  .hh-header .et_pb_menu__wrap,
  .hh-header .et_pb_menu__container,
  .hh-header .et_pb_menu__menu {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    
  }

  /* OVERRIDE DIVI EXACT SELECTOR */
  .et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu {
    background-color: #ffffff !important;
  }

  /* ALSO CHILD UL (VERY IMPORTANT) */
  .et_pb_menu_0_tb_header.et_pb_menu .et_mobile_menu ul {
    background-color: #ffffff !important;
  }
  
  /* MAIN MENU PANEL */
  .hh-header .et_mobile_menu {
    position: fixed !important;   /* 🔥 KEY CHANGE */
    top: 100px !important;                    /* adjust to header height */
    left: 0;
    
    width: 100vw !important;
    height: auto;

    background: #ffffff !important;

    padding: 24 !important;
    margin: 0 !important;

    z-index: 999999;

    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  }


  /* FORCE BLACK TEXT EVERYWHERE */
  .hh-header .et_mobile_menu li a,
  .hh-header .et_mobile_menu li.current-menu-item a,
  .hh-header .et_mobile_menu li a:link,
  .hh-header .et_mobile_menu li a:visited {
      color: #000000 !important;
  }


  .hh-header .et_pb_column {
      margin: 10px 0px 8px 30px;
  }

}

/* DESKTOP ONLY WHITE MENU */
@media (min-width: 981px) {
  .hh-header .et_pb_menu__menu a {
    color: #ffffff !important;
  }
}


/* Mobile */
@media (max-width: 767px) {
  .hh-logo img {
    max-height: 50px;
  }

  .hh-header.scrolled .hh-logo img {
    max-height: 40px;
  }
}


@media (max-width: 479px) {
    .et_pb_row .et_pb_column.et_pb_column_1_4, .et_pb_row .et_pb_column.et_pb_column_1_5, .et_pb_row .et_pb_column.et_pb_column_1_6 {
        width: 100%;
        margin: 10px 0px 8px 30px;
        /* margin-bottom: 20px; */
    }
}
/* =========================================
   HEADER HEIGHT MOBILE
========================================= */

@media (max-width: 980px) {
  .hh-header .et_pb_row {
    padding: 12px 0;
  }

  .hh-header.scrolled .et_pb_row {
    padding: 8px 0;
  }
}



/* Prevent menu overflow */
.hh-header .et_pb_row {
  flex-wrap: nowrap;
}

/* Allow logo + hamburger spacing */
@media (max-width: 980px) {
  .hh-header .et_pb_column {
    justify-content: space-between;
    width: 100%;
  }
}



/* =========================================
   HAMBURGER ICON STYLE
========================================= */

.mobile_menu_bar:before {
  font-size: 26px;
  color: #000000 !important;
  transition: 0.3s;
}

.mobile_menu_bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* on scroll */
.hh-header.scrolled .mobile_menu_bar:before {
  color: #000;
}



/* =========================================
   MOBILE DROPDOWN MENU
========================================= */



.et_mobile_menu {
  position: absolute;
  top: 100%;     /* directly below header */
  left: 0;
  width: 100%;

  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  z-index: 9999;
}

/* menu items */
.et_mobile_menu li a {
  color: #000 !important;
  /* padding: 12px 20px; */

  display: block;
  text-align: left;
  padding: 14px 20px;
  font-size: 16px;

}

/* hover effect */
.et_mobile_menu li a:hover {
  background: rgba(0,0,0,0.05);
}


/* Full width mobile menu */
.et_mobile_menu {
  width: 100vw;
  left: 0;
}




/* Force full width layout */
.hh-header .et_pb_menu__wrap {
  position: static;
}

.hh-header .et_pb_menu__container {
  position: static;
}




/* ===== FLOATING BUTTONS ===== */
.floating-wrap {
  position: fixed;
  bottom: 30px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 99999;
}

.float-btn {
  position: relative; /* make label absolute inside */
  display: flex;
  align-items: center;
  justify-content: center; /* icon always centered */
  width: 52px;
  height: 52px;
  border-radius: 50px;
  cursor: pointer;
  overflow: visible; /* allow label to extend */
  transition: transform 0.3s ease;
}

/* ICON stays centered always */
.float-btn .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.75);
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* LABEL hidden initially */
/* LABEL (position absolute, hidden by default) */
.float-btn .label {
  position: absolute;
  left: -10px; /* initial position, adjust */
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* On hover expand */
.float-btn:hover .icon {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Show label smoothly */
.float-btn:hover .label {
  opacity: 1;
  transform: translateY(-50%) translateX(-120%);
}


/* .float-btn .label {
  transform: translateX(-10px);
}

.float-btn:hover .label {
  transform: translateX(0);
} */

/* WhatsApp Color */
.float-btn.whatsapp .icon {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

@media (max-width: 768px) {
  .floating-wrap {
    bottom: 120px; /* initial position above cookie banner */
    right: 15px;
    gap: 12px;
    transition: bottom 0.3s ease; /* smooth move */
  }

  .float-btn .label {
    display: none; /* hide labels on mobile for clean view */
  }
}


/* ===== WHATSAPP POPUP ===== */
#whatsappPopup {
  position: fixed;
  bottom: 110px;
  right: 20px;
  width: 280px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  display: none;
  overflow: hidden;
  z-index: 99999; /* FIX: higher than everything */
  animation: fadeUp 0.3s ease;
}

/* Smooth entry animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wa-header {
  background: #25D366;
  color: #fff;
  padding: 12px;
  font-weight: bold;
}

.wa-body {
  padding: 15px;
}

.wa-start {
  display: block;
  background: #25D366;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 10px;
}

/* ===== COOKIE BANNER ===== */
#cookieBanner {
  position: fixed;
  bottom: -120px;
  width: 100%;
  display: flex;
  justify-content: center;
  transition: 0.5s;
  z-index: 9999;
}

#cookieBanner.show {
  bottom: 20px;
}

.cookie-box {
  background: #faf2e7;
  color: #333;
  padding: 15px 25px;
  border-radius: 12px;
  display: flex;
  gap: 20px;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.cookie-box .actions {
  display: flex;
  gap: 10px;
}

.cookie-box button {
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.cookie-box .outline {
  background: transparent;
  border: 1px solid #333;
}






#cookieSettingsPanel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  background: #faf2e7;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  display: none;
  z-index: 100000;
  padding: 20px;
}

.cookie-panel-inner h4 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #0d418b;
}

.cookie-panel-inner p {
  font-size: 14px;
  margin-bottom: 10px;
}

.cookie-panel-inner label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  cursor: pointer;
}

.cookie-panel-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.cookie-panel-actions button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #0d418b;
  color: #fff;
  transition: 0.3s;
}

.cookie-panel-actions button:hover {
  background: #f4b400;
  color: #111;
}



/* Full-width Footer Bar */
.footer-bar {
  width: 100%;
  background: #0d418b; /* dark blue */
  color: #fff;
  padding: 12px 0; /* top/bottom only, remove side padding */
  font-family: 'Oswald', sans-serif;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
}

.footer-bar-inner {
  max-width: 1200px;
  margin: 0 auto; /* center inner content */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px; /* side padding inside max-width */
}

.footer-bar-inner span {
  font-size: 14px;
}

.footer-bar-inner button {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  background: #f4b400; /* accent color */
  color: #0d418b;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.footer-bar-inner button:hover {
  background: #0b346f; /* darker hover */
  color: #fff;
}

/* Remove extra Divi column/section padding */
.et_pb_section_2_tb_footer {
  padding: 0 !important;
}

.et_pb_row_1_tb_footer {
  padding: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-bar-inner {
    flex-direction: column;
    text-align: center;
  }
}











/* ====================== SINGLE PROJECT PAGE ====================== */

/* Hero - Full Width (unchanged) */
.single-project-page {
    margin-top:125px;
}
.single-project-page .project-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.single-project-page .project-hero img.project-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    display: flex;
    align-items: flex-end;
    padding: 0 5%;
}

.hero-content {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.project-title {
    color: white;
    font-size: 48px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    margin: 0;
}

/* ====================== MAIN CONTENT - LIMITED TO 1200px ====================== */
.project-content-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-container {
    padding: 60px 0 100px;
}

/* Project Meta */
.project-meta {
    margin: 40px 0 50px;
    padding: 35px 40px;
    background: #f9f9f9;
    border-radius: 16px;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.meta-value {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

/* Short Description */
.project-short-desc {
    font-size: 19px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 50px;
    max-width: 900px;
}

/* Full Description */
.project-full-desc,
.project-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 70px;
}

/* Gallery Section */
.project-gallery-section {
    margin: 100px 0 80px;
}

.project-gallery-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #222;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Lightbox */
#image-lightbox {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}

#image-lightbox img {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .project-content-wrapper {
        padding: 0 15px;
    }
    
    .project-container {
        padding: 40px 0 80px;
    }
    
    .project-title {
        font-size: 38px;
    }
    
    .project-meta {
        padding: 25px;
    }
}