/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* Primary Menu Hover Underline */
@media (min-width: 769px) {

    /* Top-level menu links + header underline links */
    .gb-navigation .gb-menu > .gb-menu-item > .gb-menu-link,
    a.header-underline {
        position: relative;
        padding-bottom: 6px;
    }

    .gb-navigation .gb-menu > .gb-menu-item > .gb-menu-link::after,
    a.header-underline::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background-color: currentColor;
        transition: width 0.3s ease;
    }

    /* Hover animation */
    .gb-navigation .gb-menu > .gb-menu-item:hover > .gb-menu-link::after,
    a.header-underline:hover::after {
        width: 100%;
    }

    /* Remove underline on current item (menu only) */
    .gb-navigation .gb-menu > .gb-menu-item.current-menu-item > .gb-menu-link::after,
    .gb-navigation .gb-menu > .gb-menu-item.current-menu-ancestor > .gb-menu-link::after {
        width: 0;
    }

    /* Restore hover on current item (menu only) */
    .gb-navigation .gb-menu > .gb-menu-item.current-menu-item:hover > .gb-menu-link::after,
    .gb-navigation .gb-menu > .gb-menu-item.current-menu-ancestor:hover > .gb-menu-link::after {
        width: 100%;
    }
}

/* ============================================
   VIEWPORT REVEAL ANIMATIONS v2.2
   ============================================ */
/* Respect user's reduced motion preference - CRITICAL for accessibility */
@media (prefers-reduced-motion: reduce) {
  .animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
/* Base animate class */
.animate {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.5s;
  transition-timing-function: ease;
  will-change: opacity, transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}
/* Visible state */
.animate.is-visible { 
  opacity: 1; 
}
/* ============================================
   DIRECTIONAL FADE VARIANTS  (names = movement)
   ============================================ */
/* fade-up: moves up (starts below) */
.animate.fade-up { 
  transform: translateY(15px);
}
.animate.fade-up.is-visible { 
  transform: translateY(0);
}
/* fade-down: moves down (starts above) */
.animate.fade-down { 
  transform: translateY(-15px);
}
.animate.fade-down.is-visible { 
  transform: translateY(0);
}
/* fade-left: moves left (starts right) */
.animate.fade-left { 
  transform: translateX(15px);
}
.animate.fade-left.is-visible { 
  transform: translateX(0);
}
/* fade-right: moves right (starts left) */
.animate.fade-right { 
  transform: translateX(-15px);
}
.animate.fade-right.is-visible { 
  transform: translateX(0);
}
/* Zoom in */
.animate.zoom-in { 
  transform: scale(0.85);
  transform-origin: center center;
}
.animate.zoom-in.is-visible { 
  transform: scale(1);
}
/* Simple fade only — no transform set or reset, leaves hover free */
.animate.fade-in { 
  transform: none;
}
/* .animate.fade-in.is-visible intentionally omitted — no transform to reset */

/* Rubberband */
@keyframes rubberband {
  0% { transform: scale3d(1, 1, 1); }
  30% { transform: scale3d(1.2, 0.8, 1); }
  40% { transform: scale3d(0.8, 1.2, 1); }
  50% { transform: scale3d(1.15, 0.85, 1); }
  65% { transform: scale3d(0.95, 1.05, 1); }
  75% { transform: scale3d(1.05, 0.95, 1); }
  100% { transform: scale3d(1, 1, 1); }
}
.animate.rubberband { 
  opacity: 0; 
}
.animate.rubberband.is-visible { 
  opacity: 1; 
  animation: rubberband 1s ease; 
}
/* Larger slide variants */
.animate.clip-left { 
  opacity: 0; 
  transform: translateX(-50px); 
  transition: opacity .5s ease, transform .5s ease; 
}
.animate.clip-left.is-visible { 
  opacity: 1; 
  transform: translateX(0); 
}
.animate.clip-right { 
  opacity: 0; 
  transform: translateX(50px); 
  transition: opacity .5s ease, transform .5s ease; 
}
.animate.clip-right.is-visible { 
  opacity: 1; 
  transform: translateX(0); 
}
.animate.clip-down { 
  opacity: 0; 
  transform: translateY(-50px); 
  transition: opacity .5s ease, transform .5s ease; 
}
.animate.clip-down.is-visible { 
  opacity: 1; 
  transform: translateY(0); 
}
.animate.clip-up { 
  opacity: 0; 
  transform: translateY(50px); 
  transition: opacity .5s ease, transform .5s ease; 
}
.animate.clip-up.is-visible { 
  opacity: 1; 
  transform: translateY(0); 
}
/* Gutenberg preview always on */
.editor-styles-wrapper .animate {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Hand Drawn Underline */
.hero-desc mark {
    background-color: transparent !important;
    display: inline;
    text-decoration: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='14' viewBox='0 0 100 14'%3E%3Cpath d='M0 9 C30 3, 65 2, 100 8 C65 5, 30 7, 0 11 Z' fill='%23e8aa20'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 14px;
    padding-bottom: 10px;
}

/* Inactive tab hover */
.gb-tabs__menu-item:not(.gb-block-is-current):hover {
    background-color: #e8eaed;
    cursor: pointer;
}

/* Active tab icon */
.gb-block-is-current .gb-shape {
    color: #ffffff;
}

/* Inactive tab icon */
.gb-tabs__menu-item:not(.gb-block-is-current) .gb-shape {
    color: #1e2d3d;
}

/* GB Tabs custom arrow below */
.gb-tabs__menu {
    overflow: visible;
}
.tab-menu-item-services {
    position: relative;
    overflow: visible;
}
.tab-menu-item-services:is(.gb-block-is-current, .gb-block-is-current:hover, .gb-block-is-current:focus)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 100%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--global-color-10);
    pointer-events: none;
    z-index: 1;
}


/* Light Pricing Table Alternate Colours */
.pricing-table:nth-child(odd) {
    background-color: #f5f5f5;
}

.pricing-table:nth-child(even) {
    background-color: #fffff;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

/* Background Styling */
.cta-section-1 {
  background-image: repeating-linear-gradient(
    -30deg,
    transparent,
    transparent 0px,
    rgba(0, 0, 0, 0.025) 60px,
    rgba(0, 0, 0, 0.025) 60px
  );
}


/* Bullet List */
.wp-block-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.wp-block-list li {
    padding: 6px 0 6px 25px;
    position: relative;
}

.wp-block-list li::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    width: 8px;
    height: 15px;
    border-right: 2px solid #E8A020;
    border-bottom: 2px solid #E8A020;
    transform: rotate(45deg);
}

/* Gallery Hover */
.wp-block-gallery-is-layout-flex img {
transition: all .2s ease-in-out;  
}

.wp-block-gallery-is-layout-flex img:hover {
-webkit-box-shadow: 0px 0px 1px 4px rgba(0,0,0,0.25);

box-shadow: 3px 3px 10px 1px rgba(0,0,0,0.25);
transform: translate(0, -3px);
}

/* Lightbox Disable Description */
.slb_data_content {
    display: none;
}

/* GB Tabs custom arrow below */
.gb-tabs__menu-item {
    position: relative;
    overflow: visible;
}

.gb-tabs__menu-item.gb-block-is-current::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 100%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--global-color-11);
    pointer-events: none;
    z-index: 1;
}

/* Remove GB Tabs arrow for mbile */
@media (max-width: 768px) {
    .gb-tabs__menu-item.gb-block-is-current::after {
        display: none;
    }
}

h1 {
	font-size: clamp(1.75rem, 1.1rem + 2.083vi, 2.625rem);
		  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 1.05rem + 1.8vi, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.15rem, 0.9rem + 0.781vi, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
