/*
 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
*/

/* ============================================
   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 */
.highlight-underline 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='%23F47920'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 14px;
    padding-bottom: 10px;
}

/* GenerateBlocks Accordion icon only */
.gb-accordion .gb-accordion__toggle-icon svg {
    margin-top: 3px;
}

@media (max-width: 768px) {
    .gb-accordion .gb-accordion__toggle-icon svg {
        margin-top: 4px;
    }
}

/* Post Footer Meta Links */
.post .entry-meta a:hover {
    color: var(--global-color-11);
}

/* Post Content Links */
.post .entry-content a {
    font-weight: 500;
    text-decoration: underline;
}
.post .entry-content a:hover {
    color: var(--global-color-11);
}




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


/* Archive Image Treatment */
.post-image {
    overflow: hidden;
    border-radius: 8px;
}

/* Sidebar Force Acorn Expereince to 1 Column */
.force-single-col .gb-element-0dbb5a59.gb-element-0dbb5a59 {
    grid-template-columns: 1fr;
}

/* 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;
    }
}

/* UL no margin in 2 column grid List */
ul.list-no-margin {
  margin: 0;
}

/* Acorn Hero BG */
.acorn-hero {
  background: linear-gradient(
    135deg,
    #111d36 0%,
    #1a2744 50%,
    #0f1a2e 100%
  );
}  /* ← ADD THIS */

/* Checkmark bullets for content lists */
.card-feature-dark-description ul,
.entry-content ul,
.gb-text ul {
    list-style: none;
    margin-left: 5px;
    padding-left: 0px;
}

.card-feature-dark-description ul li,
.entry-content ul li,
.gb-text ul li {
    display: block;
    padding-left: 1.3em;
    position: relative;
    margin-bottom: 0.1em;
}

.card-feature-dark-description ul li::before,
.entry-content ul li::before,
.gb-text ul li::before {
    content: "✓";
    color: #e87722;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Exclude nav and menus */
header ul li::before,
nav ul li::before,
footer ul li::before,
.main-navigation ul li::before {
    content: none !important;
}

/* ── Background Hero ── */
.custom-hero {
  position: relative;
  background-color: #2f4c7e;
  background-image:
    radial-gradient(ellipse 60% 70% at 72% 40%, rgba(30, 100, 200, 0.35) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 15% 75%, rgba(56, 189, 248, 0.18) 0%, transparent 60%),
    linear-gradient(160deg, #2f4c7e 0%, #141e30 100%);
}

.custom-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  z-index: 0;
  pointer-events: none;
}

/* Standard BG Gradients 1 */
/* .hero-bg-1 {
  background: 
    radial-gradient(ellipse at 85% center, rgba(232, 113, 26, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at right center, #2d3f7a 0%, #1a2a4a 60%) !important;
  /* !important overrides GB inline background colour so white text is readable in editor */
} */


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;
}



.custom-hero-2 {
  position: relative;
  background-color: #2f4c7e;
  background-image:
    radial-gradient(ellipse 60% 70% at 72% 40%, rgba(30, 100, 200, 0.35) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 15% 75%, rgba(56, 189, 248, 0.18) 0%, transparent 60%),
    linear-gradient(160deg, #2f4c7e 0%, #141e30 100%);
}



@media (min-width: 768px) {
    .gb-element-1bff0e47 {
        position: relative;
    }
    .gb-element-1bff0e47::before {
        content: '';
        position: absolute;
        left: -30px;
        top: 0px;
        width: 30px;
        height: 100%;
        background: linear-gradient(to bottom right, transparent 49%, var(--global-color-11) 51%);
        pointer-events: none;
    }
}

/* Font Styling - replaced by site-wide h1/h2 rules */
.h1-page-title {
	letter-spacing: -0.02em;
	font-size: clamp(2rem, 1.063rem + 1.953vi, 2.875rem);
			  font-weight: 900;
}

.heading-title {
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 1rem + 1.563vi, 2.25rem);
}

.heading-title-content {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 1rem + 1.563vi, 2.25rem);
}

/* Background Styling */
.cta-section-1 {
  background-color: #f07020;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(0, 0, 0, 0.025) 20px,
    rgba(0, 0, 0, 0.025) 40px
  );
}

