/*
 Theme Name: Divi Child
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: Divi Child Theme
 Author: Elegant Themes
 Author URI: https://www.elegantthemes.com
 Template: Divi
 Version: 1.0.0
*/
 
/* =Theme customization starts here
------------------------------------------------------- */

    .et_pb_button_module_wrapper .et_pb_button span i {
        margin-left: 5px; /* Adjust this value as needed */
    }



/*NAV CUSTOM START*/

@media (min-width:981px) {
	.contact-major-column1 {
		width: 66.6666% !important;
	}

	.contact-major-column2 {
		width: 33.3333% !important;
	}
}

/* 980px–1218px only */
@media screen and (min-width: 980px) and (max-width: 1218px) {

  /* Logo size */
  .et_pb_menu_0_tb_header .et_pb_menu_inner_container > .et_pb_menu__logo-wrap .et_pb_menu__logo img,
  .et_pb_menu_0_tb_header .et_pb_menu__logo-slot .et_pb_menu__logo-wrap img {
    max-height: 49px !important;
  }

  /* Menu link typography */
  .et_pb_menu_0_tb_header.et_pb_menu ul li a {
    font-size: 12px !important;
  }
}


/*NAV CUSTOM END*/


.glass-nav {
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  backdrop-filter: saturate(120%) blur(10px);
}

li.getintouch-button a {
    padding: 15px !important;
    background: #ffffff;
    margin-top: 15px !important;
    margin-bottom: 15px;
    color: #000000;
    border-radius: 25px;
}


@media (min-width:981px) {
	li.book-menu-button a {
		padding: 15px !important;
		background: #235c40;
		margin-top: 15px !important;
		margin-bottom: 15px;
		color: #eae2d7;
		border-radius: 5px;
	}
}


.trusted-block {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    gap: 10px;
}

.trusted-1 {
    max-width: 90px;
}

/*place button modules next to each other in the same column*/
.pa-inline-buttons .et_pb_button_module_wrapper {
    display: inline-block;
}

.pa-inline-buttons {
    text-align: center !important;
}

.mfp-bottom-bar .mfp-title {
    display: none;
}

/* Make the left column act like a flex container */
.map-col {
  display: flex;
  flex-direction: column;
}

/* Stretch the Code module to fill the column */
.map-col .et_pb_module.map-embed,
.map-col .map-embed .et_pb_code_inner {
  flex: 1 1 auto;
  height: 100%;
}

/* Make the iframe fill the module */
.map-col .map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  /* optional mobile safety */
  min-height: 320px;
}



/* =========================================================
   Case Studies Grid (Divi)
   Shortcode: [case_studies_grid columns="3" per_page="6"]
   ========================================================= */


.cs-grid {
  --cs-gap: 28px;
  display: grid;
  gap: var(--cs-gap);
}
.cs-grid.cs-grid--cols-1 { grid-template-columns: 1fr; }
.cs-grid.cs-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.cs-grid.cs-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.cs-grid.cs-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .cs-grid.cs-grid--cols-4,
  .cs-grid.cs-grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cs-grid { grid-template-columns: 1fr !important; }
}

/* Card (no shadow on the card itself) */
.cs-card {
  background: transparent;     /* let children define their own visuals */
  border-radius: 18px;
  overflow: visible;           /* so media’s outside radius/shadow show */
  position: relative;
  transition: transform .2s ease;
}
.cs-card:hover { transform: translateY(-2px); }
.cs-card__link { display: block; color: inherit; text-decoration: none; }

/* Media box: taller, with its own border, all four corners, and the ONLY shadow */
.cs-card__media {
  position: relative;
  aspect-ratio: 3 / 4;         /* taller than 4/3 */
  background: #f3f3f3;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;         /* all four corners */
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);  /* shadow only here */
}
.cs-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ececec, #f8f8f8);
}

/* Year badge — light pill, dark text */
.cs-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  color: #111;
  font-size: 12px;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  font-family: 'Brandon Grotesk Regular';
}


/* Title row with arrow on the right */
.cs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0px 5px;
  border-radius: 14px;
  margin-top: 10px;
}
.cs-title {
  font-size: 17px;
  margin: 0;
  font-weight: 600;
  letter-spacing: .01em;
  flex: 1 1 auto;
}

/* Arrow lives next to the title */
.cs-arrow {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  line-height: 1;
  flex: 0 0 auto;
  transition: transform .2s ease, background-color .2s ease;
}
.cs-arrow__svg { width: 14px; height: 14px; display:block; }
.cs-card:hover .cs-arrow { transform: translateX(1px) translateY(-1px); }

/* Meta row (location) */
.cs-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #111111;
    font-family: 'Brandon Grotesk Light';
    font-size: 13px;
    padding: 5px 0px 5px;
    border-radius: 14px;
}
.cs-pinimg {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: inline-block;
  margin-right: 2px;
}

/* Optional: remove any Divi module extra margins around the grid */
.et_pb_module .cs-grid { margin-top: 0; margin-bottom: 0; }

/* Small header row above the 3-item grid */
.cs-grid-wrap { margin: 0; }
.cs-grid-head {
  margin: 0 0 14px 0;
}
.cs-grid-head__link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #2456e6;                 /* tweak to your theme color */
}
.cs-grid-head__link:hover { text-decoration: underline; }




/* Grid */
.cs-gallery {
  --gap: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 980px) {
  .cs-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .cs-gallery { grid-template-columns: 1fr; }
}

/* Items */
.cs-gallery__item { position: relative; overflow: hidden; border-radius: 10px; }
.cs-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.cs-gallery__link::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.06);
  border-radius: 10px;
  pointer-events: none;
}
.cs-gallery__link:hover img { transform: scale(1.03); }






/* Card clips the image corners */
.mpc-marquee .mpc-card{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  border-radius:var(--mpc-radius);
  overflow:hidden; /* clip the image to rounded corners */
}

/* If lightbox=true, make the link fill the card so radius applies */
.mpc-marquee .mpc-lightbox{
  display:block; width:100%; height:100%;
}

/* Show the entire image (no cropping) */
.mpc-marquee img{
  width:100%; height:100%;
  object-fit:contain;
  display:block;
}

/* === Keep stagger visible without chopping corners === */
/* If you have any negative offsets (slides shifted up), give vertical padding
   and let slides render outside the viewport. If you switch to downward-only
   offsets in PHP, you can reduce/remove the top padding. */
.mpc-marquee{
  padding-top:28px;           /* >= largest upward offset (increase if needed) */
  padding-bottom:28px;        /* room for downward offsets */
}
.mpc-marquee .swiper{
  overflow:visible;           /* so raised/lowered cards aren't clipped */
}

/* Re-apply the staggered height + vertical offset */
.mpc-marquee .swiper-slide{
  height: calc(var(--mpc-height) * var(--h, 1));
  transform: translateY(var(--offset, 0));
}

/* Drag UX */
.mpc-marquee { cursor: grab; }
.mpc-marquee.is-dragging { cursor: grabbing; }
.mpc-marquee img { 
  pointer-events: none;        /* don't grab the <img> selection */
  user-select: none;
  -webkit-user-drag: none;
}

/* Re-enable clicks on images for the lightbox */
.mpc-marquee img {
  pointer-events: auto;
  user-select: auto;
  -webkit-user-drag: auto;
}

/* Only suppress during an actual drag */
.mpc-marquee.is-dragging img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
