/**

 * Theme Name:     Usk Land Survey
 * Author:         Innivo
 * Template:       Divi
 * Text Domain:	   Usk Land Survey
 * Description:    Theme for Usk Land Survey
 */

:root {
    /* H1: Max 70px | Min 28px (1.75rem) */
    --h1-size: clamp(1.75rem, 6vw + 0.5rem, 4.375rem);

    /* H2: Max 44px | Min 24px (1.5rem) */
    --h2-size: clamp(1.5rem, 3.5vw + 0.5rem, 2.75rem);

    /* H3: Max 34px | Min 20px (1.25rem) */
    --h3-size: clamp(1.25rem, 2.5vw + 0.5rem, 2.125rem);
    
    /* H4: Max 28px | Min 18px (1.125rem) */
    --h4-size: clamp(1.125rem, 1.75vw + 0.5rem, 1.75rem);

    /* H5: Max 22px | Min 15px (0.9375rem) */
    --h5-size: clamp(0.9375rem, 1vw + 0.5rem, 1.375rem);

    /* H6: Max 20px | Min 14px (0.875rem) */
    --h6-size: clamp(0.875rem, 0.75vw + 0.5rem, 1.25rem);

    /* Body: Max 20px (1.25rem) | Min 15px (0.9375rem) */
    --body-size: clamp(0.9375rem, 0.75vw + 0.5rem, 1.25rem);

    /* Button: Max 26px (1.625rem) | Min 17px (1.0625rem) */
    --button-size: clamp(1.0625rem, 1.25vw + 0.5rem, 1.625rem);
    
    --gcid-i8a01r32qn: #FFFEEC;
}

h1 {
    font-size: var(--h1-size);
}
h2 {
    font-size: var(--h2-size);
}
h3 {
    font-size: var(--h3-size);
}
h4 {
    font-size: var(--h4-size);
    text-transform: uppercase;
}
h5 {
    font-size: var(--h5-size);
}
h6 {
    font-size: var(--h6-size);
}
a, a:after {
    transition: all 0.3s ease-in-out;
}
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3em;
}
#left-area ul, .entry-content ul, .et-l--body ul, .et-l--footer ul, .et-l--header ul {
    line-height: var(--et_global_body_font_height, 1.7em);
}
.et_pb_section ul li::marker {
  content: "+ "; /* or a standard hyphen "-" depending on preferred dash length */
  color: var(--gcid-heading-color, #6a6f5d);
}

.et_pb_bg_layout_dark {
    color: var(--gcid-secondary-color) !important;
}
.et_pb_bg_layout_dark h1, .et_pb_bg_layout_dark h2, .et_pb_bg_layout_dark h3, .et_pb_bg_layout_dark h4, .et_pb_bg_layout_dark h5, .et_pb_bg_layout_dark h6 {
    color: #fff !important;
}
.et_pb_blurb.serviceOverview .et_pb_image_wrap {
    margin: 0;
}
.et_pb_blurb.serviceOverview ul {
    margin-top: 1em;
}

body #pageHeaderPrimary {
  background-size: cover !important;
  background-attachment: scroll !important;
  transition: background-position 0.05s ease-out;
  height: 60vh;
  justify-content: flex-end;
    margin-bottom: 0;
}


/* Base styling for blurb modules in the service row */
.serviceButtons .et_pb_blurb, 
.homeIcons .et_pb_blurb {
  position: relative !important;
  overflow: hidden; /* Clips the diagonal wipe inside the card */
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.4s ease;
}
.homeIcons .et_pb_blurb {
    padding: 15px;
}

/* Diagonal background wipe overlay */
.serviceButtons .et_pb_blurb::before,
.homeIcons .et_pb_blurb::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #6a6f5d;
  z-index: -1;
  /* Position gradient off-screen to the top-left */
  clip-path: polygon(0 0, 0 0, 0 0, 0 0);
  transition: clip-path 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover State: Y-Lift (-5px) */
.serviceButtons .et_pb_blurb:hover,
.homeIcons .et_pb_blurb:hover {
  transform: translateY(-5px);
}

/* Hover State: Diagonal Wipe (Top-Left to Bottom-Right) */
.serviceButtons .et_pb_blurb:hover::before,
.homeIcons .et_pb_blurb:hover::before {
  /* Expands clip path diagonally across the entire card */
  clip-path: polygon(0 0, 200% 0, 0 200%, 0 0);
}

/* Hover State: Title Color Change to White */
.serviceButtons .et_pb_blurb:hover .et_pb_module_header,
.serviceButtons .et_pb_blurb:hover .et_pb_module_header a,
.serviceButtons .et_pb_blurb:hover .et_pb_blurb_description,
.serviceButtons .et_pb_blurb:hover .et_pb_blurb_description a,
.homeIcons .et_pb_blurb:hover .et_pb_module_header,
.homeIcons .et_pb_blurb:hover .et_pb_module_header a,
.homeIcons .et_pb_blurb:hover .et_pb_blurb_description,
.homeIcons .et_pb_blurb:hover .et_pb_blurb_description a {
  color: #ffffff !important;
  transition: color 0.3s ease;
}

/* Hover State: SVG Icon Tint to White */
.serviceButtons .et_pb_blurb:hover .et_pb_main_blurb_image img,
.homeIcons .et_pb_blurb:hover .et_pb_main_blurb_image img {
  /* CSS filter turns black/colored inline/embedded SVGs pure white */
  filter: brightness(0) invert(1) !important;
  transition: filter 0.3s ease;
}

/* Smooth return transitions on mouse-off */
.serviceButtons .et_pb_blurb .et_pb_module_header,
.homeIcons .et_pb_blurb .et_pb_module_header{
  transition: color 0.3s ease;
}

.serviceButtons .et_pb_blurb .et_pb_main_blurb_image img,
.homeIcons .et_pb_blurb .et_pb_main_blurb_image img {
  transition: filter 0.3s ease;
}


/* BUTTONS */
.et_pb_button.et_pb_bg_layout_dark, .et_pb_contact_submit {
    background-color: transparent;
    border-color: var(--gcid-i8a01r32qn) !important;
    color: var(--gcid-i8a01r32qn) !important;
}
.et_pb_button.et_pb_bg_layout_dark:hover, .et_pb_contact_submit:hover {
    background-color: rgba(255,255,255,.2);
    border-color: transparent !important;
}

.et_pb_section_0_tb_footer h4 {
    color: var(--gcid-secondary-color) !important;
}
.et-l--footer a:hover {
    text-decoration: underline;
    color: var(--gcid-secondary-color);
    
}
.nav li ul {
    width: 260px;
    border-left: 3px solid var(--gcid-i8a01r32qn);
    border-top: none;
}
#top-menu li li a {
    padding: 3px 0px;
    width: 220px;
    font-size: 16px;
}
#main-header .et_mobile_menu {
    background-color: var(--gcid-primary-color) !important;
}
#cmplz-document, .editor-styles-wrapper .cmplz-unlinked-mode {
    max-width: 100%;
}
#cmplz-document, #cmplz-document p, #cmplz-document span, #cmplz-document li {
    font-size: var(--body-size);
}
#cmplz-document h2, #cmplz-document h3, .editor-styles-wrapper .cmplz-unlinked-mode h2, .editor-styles-wrapper .cmplz-unlinked-mode h3 {
    font-size: var(--h3-size);
}
@media only screen and (min-width: 981px) {
    .et_header_style_left #et-top-navigation nav>ul>li>a, .et_header_style_split #et-top-navigation nav>ul>li>a {
        padding-bottom: 30px !important;
    }
}
@media (min-width: 981px) {
    #main-header.et-fixed-header {
        box-shadow: 0 0 40px rgba(0, 0, 0, .5) !important;
    }
}
@media (max-width: 980px) {
    .et_header_style_split .mobile_nav .select_page {
        display: none;
    }
    .et_header_style_split .et_menu_container .mobile_menu_bar {
        text-align: center;
        position: relative;
        padding-bottom: 0 !important;
    }
    .et_header_style_split #logo {
        max-height: 150px;
        max-width: 70%;
    }
    .et_header_style_split header#main-header .logo_container {
        height: auto;
        max-height: 200px;
        padding: 0;
    }
}