/**********************************
Theme Name: Evigenuity
Theme URI: http://localhost
Author: Evigenuity
Description: Structured Block Theme for Evigenuity
Version: 1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: evigenuity
**********************************/

/* =================================
   BRAND VARIABLES
================================= */

:root {
    --ev-blue: #2a85c6;
    --ev-orange: #f5a623;
    --ev-dark: #222222;
    --ev-light: #ffffff;
}

/* =================================
   GLOBAL RESET
================================= */
body {
  overflow-x: hidden;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    padding-top: 100px; /* matches header height */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =================================
   HEADER (FIXED)
================================= */

.wp-block-group.eg-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--ev-light);
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* =================================
   HEADER INNER ROW
================================= */

.wp-block-group.eg-header .eg-header-inner {
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;

    display: flex;
    align-items: center;        /* TRUE vertical centering */
    justify-content: space-between;
}

/* =================================
   LOGO SYSTEM
================================= */

.logo-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.logo {
    height: 48px;
    display: block;
    transition: opacity 0.3s ease;
}

.logo-dark {
    position: relative;
    z-index: 2;
}

.logo-light {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}
/* =================================
   NAVIGATION
================================= */

.wp-block-navigation {
    display: flex;
    align-items: center;
    gap: 50px;
}

/* Base link styling (NO COLOR HERE) */
.wp-block-navigation a {
    position: relative;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Hover text color */
.wp-block-navigation a:hover {
    color: var(--ev-orange);
}

/* Animated underline */
.wp-block-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--ev-orange);
    transition: width 0.3s ease;
}

.wp-block-navigation a:hover::after {
    width: 100%;
}


/* =================================
   SCROLLED STATE
================================= */

.wp-block-group.eg-header.is-scrolled {
    background: var(--ev-blue);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Logo swap */
.wp-block-group.eg-header.is-scrolled .logo-dark {
    opacity: 0;
}

.wp-block-group.eg-header.is-scrolled .logo-light {
    opacity: 1;
}

/* Nav link colors when scrolled */
.wp-block-group.eg-header.is-scrolled 
.wp-block-navigation 
.wp-block-navigation-item__content {
    color: var(--ev-light);
}

/* Keep orange hover */
.wp-block-group.eg-header.is-scrolled .wp-block-navigation a:hover {
    color: var(--ev-orange);
}

.wp-block-group.eg-header.is-scrolled .wp-block-navigation a::after {
    background: var(--ev-orange);
}


/* =================================
   ACTIVE MENU ITEM
================================= */

.wp-block-navigation .current-menu-item > a,
.wp-block-navigation .current-menu-parent > a,
.wp-block-navigation .current_page_item > a {
    color: var(--ev-orange);
}

.wp-block-navigation .current-menu-item > a::after,
.wp-block-navigation .current-menu-parent > a::after,
.wp-block-navigation .current_page_item > a::after {
    width: 0%;
}


/* =================================
   HEADER CTA BUTTON
================================= */

.wp-block-navigation .nav-cta .wp-block-navigation-item__content {
    background: #e6921a;
    color: var(--ev-light);

    padding: 10px 18px;
    border-radius: 6px;

    font-weight: 600;
    text-decoration: none;

    display: inline-block;

    transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* Remove underline animation */
.wp-block-navigation .nav-cta .wp-block-navigation-item__content::after {
    display: none;
}

/* Hover state */
.wp-block-navigation .nav-cta .wp-block-navigation-item__content:hover {
    background: #ffb733;
    color: var(--ev-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}


/* ================================
   MOBILE NAVIGATION SYSTEM
================================ */

@media (max-width: 782px) {

  /* Hamburger position */
  .wp-block-navigation__responsive-container-open {
    margin-right: 16px;
  }

  /* Hamburger color */
  .wp-block-group.eg-header 
  .wp-block-navigation__responsive-container-open,
  .wp-block-group.eg-header 
  .wp-block-navigation__responsive-container-open svg {
    color: var(--ev-dark);
    fill: var(--ev-dark);
  }

  .wp-block-group.eg-header.is-scrolled 
  .wp-block-navigation__responsive-container-open,
  .wp-block-group.eg-header.is-scrolled 
  .wp-block-navigation__responsive-container-open svg {
    color: var(--ev-light);
    fill: var(--ev-light);
  }

  /* Overlay background */
  .wp-block-navigation__responsive-container {
    background: var(--ev-blue);
  }

  /* Layout */
  .wp-block-navigation__responsive-container-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;

    padding-top: 120px;
    padding-bottom: 60px;
    padding-left: 24px;
    padding-right: 24px;

    height: 100%;
    overflow-y: auto;
  }

  /* Overlay links */
  .wp-block-navigation__responsive-container 
  .wp-block-navigation-item__content {
    color: var(--ev-light);
    font-size: 20px;
    font-weight: 500;
  }

  /* Remove underline */
  .wp-block-navigation__responsive-container a::after {
    display: none;
  }

  /* CTA */
  .wp-block-navigation__responsive-container 
  .nav-cta 
  .wp-block-navigation-item__content {
    background: var(--ev-orange);
    padding: 12px 22px;
    border-radius: 8px;
  }

  /* Close icon */
  .wp-block-navigation__responsive-container-close,
  .wp-block-navigation__responsive-container-close svg {
    color: var(--ev-light);
    fill: var(--ev-light);
  }

}


/* =================================
SUBMENU MOBILE ALIGNMENT
================================= */

@media (max-width: 782px) {

  .wp-block-navigation__responsive-container 
  .wp-block-navigation__submenu-container 
  .wp-block-navigation-item {
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .wp-block-navigation__responsive-container 
  .wp-block-navigation__submenu-container 
  .wp-block-navigation-item__content {
    width: 100%;
    justify-content: flex-start;
    color: var(--ev-light);
  }

}


/* =================================
HEADER BASE COLOR (iOS SAFE)
================================= */

.wp-block-group.eg-header:not(.is-scrolled)
.wp-block-navigation 
.wp-block-navigation-item__content {
  color: var(--ev-dark);
}

/* =================================
HAMBURGER COLOR FIX 
================================= */

/* White header → dark hamburger */
.wp-block-group.eg-header:not(.is-scrolled)
.wp-block-navigation__responsive-container-open,
.wp-block-group.eg-header:not(.is-scrolled)
.wp-block-navigation__responsive-container-open svg {
  color: var(--ev-dark);
  fill: var(--ev-dark);
}

/* Blue header → white hamburger */
.wp-block-group.eg-header.is-scrolled
.wp-block-navigation__responsive-container-open,
.wp-block-group.eg-header.is-scrolled
.wp-block-navigation__responsive-container-open svg {
  color: var(--ev-light);
  fill: var(--ev-light);
}

/* =================================
   HERO SLIDER
================================= */

.hero {
    position: relative;
    display: block;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

/* Prevent block theme layout interference */
.wp-site-blocks .hero {
    margin: 0 !important;
    padding: 0 !important;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;   /* vertical center */
    justify-content: flex-start; /* keep text left aligned */

    background-size: cover;
    background-position: center;

    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero {
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 1; /* stays behind text */

    background: linear-gradient(
        90deg,
        rgba(0, 32, 74, 0.85) 0%,
        rgba(0, 32, 74, 0.65) 40%,
        rgba(0, 32, 74, 0.2) 70%,
        rgba(0, 32, 74, 0) 100%
    );
}

/* Ensure text + button sit above overlay */


.hero-content {
    position: relative;
    z-index: 3;

    max-width: 600px;
    padding: 0px 60px;

    color: var(--ev-light);
}

.hero-eyebrow {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
}

.hero-title {
    font-size: 42px;
    margin: 15px 0;
}

.hero-text {
    font-size: 18px;
    opacity: 0.9;
}
/* Force Hero Full Width */
.wp-block-group.hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* Smart Slider Hero Overrides */

.n2-ss-layer.hero-content {
    max-width: 600px;
    padding-left: 80px; /* remove old 120px vertical padding */
    color: #ffffff;
}

.n2-ss-layer.hero-eyebrow {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
    color: #ffffff;
}

.n2-ss-layer.hero-title {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2;
    margin: 15px 0;
    color: #ffffff;
}

.n2-ss-layer.hero-text {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
    color: #ffffff;
}

/* HERO DOTS */

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 60px;
    z-index: 10;

    display: flex;
    gap: 12px;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hero-dots button.active {
    background: #ffffff;
    transform: scale(1.2);
}


/* =================================
   HERO PAGINATION DOTS
================================= */

.hero {
    position: relative;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;

    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: auto;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    padding: 0;
    margin: 0;

    display: block;

    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;

    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-dots button.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* =================================
   BODY PARAGRAPH TYPOGRAPHY
================================= */

.wp-block-post-content p,
main p {
    text-align: justify;
}

/* Ensure body text is justified everywhere */

.wp-block-post-content p,
.wp-block-columns p,
.wp-block-column p,
main p {
text-align: justify;
}

/* =================================
   FOOTER DESIGN
================================= */

footer {
    background: var(--ev-blue);
    color: var(--ev-light);
    padding: 30px 20px 30px;
}

/* Footer text */
footer p,
footer li,
footer span {
    color: var(--ev-light);
}

/* Footer links */
footer a {
    color: var(--ev-light);
    text-decoration: none;
    transition: color 0.25s ease;
}

/* Hover state */
footer a:hover {
    color: var(--ev-orange);
}

/* Footer headings */
footer h2,
footer h3,
footer h4 {
    color: var(--ev-light);
    margin-bottom: 15px;
}

/* Optional subtle divider for bottom bar */
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
}

.wp-block-post-content > * + .alignfull {
margin-top: 0 !important;
}
/* =================================
   FOOTER CENTER ALIGNMENT
================================= */

footer {
    text-align: center;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer li {
    margin-bottom: 8px;
}

/* =================================
   ADMIN BAR OFFSET
================================= */

body.admin-bar .wp-block-group.eg-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .wp-block-group.eg-header {
        top: 46px;
    }
}

/* =================================
   EVIGENUITY POSITIONING LINE
================================= */

.ev-positioning-line {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
    color: #5f6b7a;
    margin-bottom: 14px;
}

/* =================================
   EVIGENUITY PRIMARY HEADINGS
   (With Brand Initial)
================================= */

.ev-heading-orange-initial,
.ev-heading-blue-initial {
    font-size: 35px;          /* Main section size */
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.2px;
    margin-bottom: 18px;
}

/* Orange initial */
.ev-heading-orange-initial {
    color: var(--ev-blue);
}

.ev-heading-orange-initial::first-letter {
    color: var(--ev-orange);
    font-size: 1.35em;
    font-weight: 700;
}

/* Blue initial */
.ev-heading-blue-initial {
    color: var(--ev-orange);
}

.ev-heading-blue-initial::first-letter {
    color: var(--ev-blue);
    font-size: 1.35em;
    font-weight: 700;
}

/* =================================
   EVIGENUITY SECONDARY HEADINGS
================================= */

.ev-heading-blue,
.ev-heading-orange,
.ev-heading-white {
    font-size: 24px;          /* Secondary level */
    font-weight: 600;
    line-height: 1.4;
    margin-top: 32px;
    margin-bottom: 12px;
}

.ev-heading-blue {
    color: var(--ev-blue);
}

.ev-heading-orange {
    color: var(--ev-orange);
}

.ev-heading-white {
    color: var(--ev-light);
}

/* =================================
   EVIGENUITY – SMALL SECTION HEADINGS
   (Blue & Orange)
================================= */

/* Small blue headings */
.ev-heading-blue-small {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  color: #1e73be;
  margin-top: 14px;
  margin-bottom: 2px;
}

/* Keep paragraph visually attached */
.ev-heading-blue-small + p {
  margin-top: 0;
}

/* Small orange headings */
.ev-heading-orange-small {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  color: #f39c12;
  margin-top: 14px;
  margin-bottom: 2px;
}
/* =================================
   EVIGENUITY – SERVICES CARDS
   (Stackable – Clean Version)
================================= */

/* Make columns equal height */

.services-section .stk-block-columns__inner {
  align-items: stretch;
}
/* =================================
   SERVICES – TILE CARD SYSTEM
================================= */

/* Card container */

.services-section .stk-block-column {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 180px;

  border-radius: 14px;
  padding: 32px 28px;
  color: #ffffff;

  cursor: pointer;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover lift */

.services-section .stk-block-column:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.18);
}

/* =================================
   FULL TILE CLICKABLE LINK
================================= */

.services-section .stk-block-column .card-link {
  position: absolute;

  /* extend across padding area */
  top: -32px;
  bottom: -32px;
  left: -28px;
  right: -28px;

  z-index: 10;
}

/* =================================
   ICON
================================= */

.services-section .stk-block-icon {
  margin-bottom: 16px;
}

.services-section .stk-block-icon svg {
  stroke: #ffffff;
  fill: none;
}

/* =================================
   TITLE
================================= */

.services-section h3 {
  text-align: center;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
}

/* Ensure links inside cards stay white */

.services-section .stk-block-column a,
.services-section .stk-block-column a:visited {
  color: #ffffff;
  text-decoration: none;
}

/* Mobile */

@media (max-width: 768px) {

  .services-section .stk-block-columns__inner {
    flex-direction: column;
  }

  .services-section .stk-block-column:not(:last-child) {
    margin-bottom: 18px;
  }

}
/* =========================================
   FULL CARD CLICKABLE – STACKABLE
========================================= */

.services-section .stk-block-column {
  position: relative;
  cursor: pointer;
}

.services-section .card-link a {
  position: absolute;
  inset: 0;
  z-index: 10;
  text-indent: -9999px;
}
/* =================================
   SERVICES – FULL TILE LINK SYSTEM
================================= */

.services-section .stk-block-column {
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Stretch overlay link across the entire tile */

.services-section .card-link {
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* Keep tile text white */

.services-section .stk-block-column a,
.services-section .stk-block-column a:visited {
  color: #ffffff;
  text-decoration: none;
}

/* Hover animation */

.services-section .stk-block-column:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
/* =========================================
   TYPOGRAPHY
========================================= */

.service-box h3 {
  margin: 20px 0 14px;
  font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
}

.service-box p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* =========================================
   ICON
========================================= */

.service-box .service-icon {
  width: 48px;
  height: 48px;
  stroke: #ffffff;
  fill: none;
}

/* =========================================
   ARROW
========================================= */

.service-box .arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-size: 18px;
  transition: transform 0.3s ease;
}

/* =========================================
   HOVER EFFECT
========================================= */

.service-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-box:hover .arrow {
  transform: translateX(6px);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   FORCE SERVICES SECTION FULL WIDTH
========================================= */

.services-section {
  width: 100%;
}

.services-section.alignfull,
.wp-block-group.services-section {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}


/* ================================
   EVIGENUITY DROPDOWN
================================ */

/* Ensure parent is positioning context */
.wp-block-navigation .wp-block-navigation-item {
    position: relative;
}

/* Submenu container */
.wp-block-navigation .wp-block-navigation__submenu-container {
    position: absolute;
    top: 100%;

    /* INDENT TO MATCH TEXT START */
    left: 22px; /* must match top-level horizontal padding */
    right: auto;

    background-color: #173A5C !important;
    border-radius: 6px;
    padding: 8px 0;
    min-width: 220px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* Submenu items */
.wp-block-navigation .wp-block-navigation__submenu-container
.wp-block-navigation-item__content {
    position: relative;
    display: block;

    color: #ffffff !important;
    font-weight: 450;
    font-size: 0.92rem;
    line-height: 1.5;

    padding: 14px 22px 18px;
    transition: color 0.25s ease, background 0.25s ease;
}

/* Underline */
.wp-block-navigation .wp-block-navigation__submenu-container
.wp-block-navigation-item__content::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;

    height: 2px;
    background: var(--ev-orange);

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Hover state */
.wp-block-navigation .wp-block-navigation__submenu-container
.wp-block-navigation-item__content:hover {
    color: #00E5FF !important;
    background-color: rgba(255,255,255,0.06) !important;
}

/* Animate underline */
.wp-block-navigation .wp-block-navigation__submenu-container
.wp-block-navigation-item__content:hover::after {
    transform: scaleX(1);
}


/* ================================
   Evigenuity – Hero (Inner Pages)
   ================================ */

.ev-hero-inner {
  position: relative;
  overflow: hidden;
}

/* Neutral overlay (image stays 100% original) */
.ev-hero-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18); /* neutral, subtle */
  z-index: 1;
}

/* Ensure text stays above overlay */
.ev-hero-inner .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
}

/* Hero title */
.ev-hero-inner h1 {
  color: #ffffff;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

/* ================================
   Evigenuity – Intro (Boxed)
   ================================ */

.ev-intro-boxed {
  margin: clamp(3rem, 6vw, 5rem) auto;
}

.ev-intro-boxed p {
  line-height: 1.7;
}

.ev-intro-boxed p + p {
  margin-top: 1.2rem;
}


/* ================================
   Evigenuity – Cover + Text (Full)
   ================================ */

.ev-cover-text {
  position: relative;
}

.ev-cover-text .wp-block-cover__inner-container {
  padding: clamp(4rem, 8vw, 6rem) 1.5rem;
}

.ev-cover-text h2 {
  margin-bottom: 1rem;
}

.ev-cover-text p + p {
  margin-top: 1rem;
}

/* Center hero content */
.ev-hero-inner .wp-block-cover__inner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* =================================
   EVIGENUITY – PARAGRAPH SPACING
================================= */

.wp-block-post-content p,
main p {
  margin-top: 0.5em;
  margin-bottom: 0.75em;
}

/* ================================
   Evigenuity – CTA (Full Width)
   ================================ */

.ev-cta-full {
  padding: clamp(4rem, 8vw, 6rem) 1.5rem;
}

.ev-cta-full h2 {
  margin-bottom: 0.75rem;
}

.ev-cta-full p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}


/* Allow full-width blocks inside post content */
.wp-site-blocks,
.wp-block-post-content {
  max-width: none;
}

/* =================================
   EVIGENUITY – BULLET LIST SYSTEM
================================= */

/* Reduce paragraph → bullet gap */

.wp-block-post-content p:has(+ ul.evigenuity-bullets) {
  margin-bottom: 0.25rem;
}

.wp-block-post-content p + .evigenuity-bullets {
  margin-top: 0.2rem !important;
}

.evigenuity-bullets {
  list-style: none;
  padding-left: 0;
  margin: 0.3rem 0 1rem 0;
}

.evigenuity-bullets li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.1rem;
  line-height: 1.6;
  text-align: justify;
}

.evigenuity-bullets li::before {
  content: "▪";
  position: absolute;
  left: 0.35rem;
  color: #2c3e50;
  font-size: 1rem;
}

/* =================================
   EVIGENUITY – INDENTED SUB BULLETS
================================= */

/* Sub list block */

.evigenuity-bullets-indent {
  margin-top: 0.1rem !important;
  margin-bottom: 0 !important;
  padding-left: 1.2rem;
}

/* Sub list items */

.evigenuity-bullets-indent li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.05rem !important;
  line-height: 1.45;
  font-size: 0.96em;
  text-align: justify;
}

/* Sub bullet symbol */

.evigenuity-bullets-indent li::before {
  content: "▪";
  position: absolute;
  left: 0.3rem;
  color: #2c3e50;
  font-size: 0.9rem;
}

/* Gutenberg nested list spacing */

.evigenuity-bullets ul {
  list-style: none;
  margin-top: 0.1rem !important;
  margin-bottom: 0 !important;
  padding-left: 1.2rem !important;
}

/* =====================================================
EVIGENUITY — FULL WIDTH BLOCK
===================================================== */

/* Allow full-width sections to break out of content width */
.alignfull {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Remove WordPress layout padding inside full-width sections */
.alignfull.is-layout-constrained,
.alignfull.is-layout-flow {
padding-left: 0 !important;
padding-right: 0 !important;
}

/* Remove column padding when using edge-to-edge layouts */
.wp-block-columns.alignfull .wp-block-column {
padding-left: 0;
padding-right: 0;
}

/* Remove column gaps if section needs to be perfectly flush */
.alignfull .wp-block-columns {
gap: 0;
}

/* Ensure cover blocks fill their column */
.alignfull .wp-block-cover,
.alignfull .wp-block-cover__inner-container {
width: 100%;
max-width: 100%;
}

/* =====================================================
EVIGENUITY — HEADER / NAV STABILITY PATCH
(Prevents content sliding under fixed header)
===================================================== */

/* Ensure page content starts below the fixed header */
body {
padding-top: 110px;
}


/* Ensure page titles never overlap the header */
.wp-block-post-title {
margin-top: 30px;
}


/* Improve dropdown stability (prevents hover flicker) */
.wp-block-navigation-item:hover
.wp-block-navigation__submenu-container {
display: block;
}

/* =====================================================
EVIGENUITY — DROPDOWN Z-INDEX 
Ensures submenu appears above sticky header
===================================================== */

.wp-block-navigation .wp-block-navigation__submenu-container {
z-index: 2000;
}

/* Ensure header itself stays above page content */
.wp-block-group.eg-header {
z-index: 1500;
}

/* Ensure dropdown items render cleanly */
.wp-block-navigation-item {
position: relative;
}

/* =====================================================
EVIGENUITY — DROPDOWN CLIPPING
Allows submenu to extend below sticky header
===================================================== */

/* Allow dropdowns to extend outside header container */
.wp-block-group.eg-header {
overflow: visible !important;
}

/* Ensure navigation wrapper does not clip dropdown */
.wp-block-navigation {
overflow: visible !important;
}

/* Ensure submenu stacks correctly */
.wp-block-navigation .wp-block-navigation__submenu-container {
z-index: 2000;
}

/* =====================================================
EVIGENUITY — DROPDOWN CONTAINER HEIGHT 
Ensures submenu expands for all items
===================================================== */

.wp-block-navigation .wp-block-navigation__submenu-container {
display: block !important;
height: auto !important;
max-height: none !important;
overflow: visible !important;
}

/* Ensure submenu items stack vertically */
.wp-block-navigation .wp-block-navigation__submenu-container li {
display: block;
width: 100%;
}

/* Slight spacing under header */
.wp-block-navigation .wp-block-navigation__submenu-container {
top: calc(100% + 6px);
}

/* =====================================================
EVIGENUITY — DROPDOWN
Ensures submenu grows vertically and all items stay inside
===================================================== */

.wp-block-navigation__submenu-container {
display: block !important;
flex-direction: column !important;
height: auto !important;
overflow: visible !important;
}

.wp-block-navigation__submenu-container li {
display: block;
width: 100%;
}

/* Ensure submenu appears above content */
.wp-block-navigation__submenu-container {
z-index: 3000;
}

/* =================================
EVIGENUITY – REMOVE GAP BEFORE FULL WIDTH COVER
================================= */

.wp-block-group > .alignfull {
margin-top: 0 !important;
}

.alignfull.wp-block-cover {
margin-top: 0 !important;
}

/* =================================
EVIGENUITY – MOBILE MENU ALIGNMENT (CLEAN)
================================= */

@media (max-width: 768px) {

  /* Center main menu items */
  .wp-block-navigation__responsive-container a {
    text-align: center !important;
    width: auto;
  }

  /* Keep submenu items left-aligned for readability */
  .wp-block-navigation__responsive-container 
  .wp-block-navigation__submenu-container 
  .wp-block-navigation-item__content {
    text-align: left !important;
    padding-left: 12px;
  }

  /* Ensure list items don’t stretch awkwardly */
  .wp-block-navigation__responsive-container 
  .wp-block-navigation-item {
    width: auto;
    text-align: center !important;
  }

}

/* =================================
EVIGENUITY – MOBILE HEADER OPTIMIZATION
================================= */

@media (max-width: 768px) {

  .wp-block-group.eg-header {
    height: 70px; /* reduce header height */
  }

  body {
    padding-top: 70px; /* match header */
  }

  .wp-block-group.eg-header .eg-header-inner {
    padding: 0 20px;
  }

  .logo {
    height: 36px;
  }

}



/* =================================
EVIGENUITY – REMOVE GAP BEFORE FULL WIDTH COLUMN ROWS
================================= */

.wp-block-post-content > .alignfull.wp-block-columns {
margin-top: 0 !important;
}

.wp-block-group > .alignfull.wp-block-columns {
margin-top: 0 !important;
}

/* =================================
   SERVICES PAGES – INFOGRAPHIC ALIGNMENT
================================= */

.wp-block-post-content .wp-block-columns {
    align-items: flex-start;
}

/* Modal overlay */

.evg-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
}

/* Modal window */

.evg-modal-content {
  background: #ffffff;
  margin: 5% auto;
  padding: 40px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

/* Close button */

.evg-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
}

/* Modal typography */

.evg-modal h2 {
  margin-top: 0;
}

/* Equal height founder cards */

.wp-block-stackable-column,
.wp-block-stackable-column .stk-block-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wp-block-stackable-columns .stk-block-column {
    display: flex;
}

/* Add spacing between founder cards */

.wp-block-stackable-columns {
    gap: 40px;
}

.wp-block-stackable-column .wp-block-stackable-button {
    margin-top: auto;
}

/* =================================
   EVIGENUITY – SPECIALIZATION GALLERY
================================= */

.ev-specialization-gallery {
  max-width: 900px;
  margin: 30px auto 40px auto;
}

/* Ensure column layout behaves correctly */

.ev-specialization-gallery .wp-block-columns {
  gap: 28px; /* spacing between tiles */
}

/* Each tile column */

.ev-specialization-gallery .wp-block-column {
  flex: 0 0 33.33%;
  max-width: 33.33%;
  text-align: center;
  cursor: pointer;

  background: #ffffff;
  border-radius: 10px;
  padding: 18px 16px 22px;

  box-shadow: 0 4px 10px rgba(0,0,0,0.06);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Title spacing */

.ev-specialization-gallery h3 {
  margin-bottom: 10px;
}

/* Image container */

.ev-specialization-gallery figure {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 6px;
}

/* Image behavior */

.ev-specialization-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

/* Hover effects */

.ev-specialization-gallery .wp-block-column:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}

.ev-specialization-gallery .wp-block-column:hover img {
  transform: scale(1.04);
}

/* =================================
   MOBILE
================================= */

@media (max-width: 768px) {

  .ev-specialization-gallery {
    max-width: 100%;
    padding: 0 20px;
  }

  .ev-specialization-gallery .wp-block-columns {
    flex-wrap: wrap;
    gap: 20px;
  }

  .ev-specialization-gallery .wp-block-column {
    flex: 0 0 100%;
    max-width: 100%;
  }

}
.ev-specialization-gallery .wp-block-column {
  cursor: default;
}

/* =====================================
SERVICE CENTER ALIGNMENT ROW 
===================================== */

.service-center-row {
    background-color: #ffffff;

    /* responsive side spacing */
    padding-left: clamp(16px, 4vw, 50px);
    padding-right: clamp(16px, 4vw, 50px);
}

/* Let Gutenberg handle flex — only align safely */
.service-center-row > .wp-block-columns {
    align-items: flex-start;
}

/* =====================================
IMAGE COLUMN — DESKTOP CONTROL
===================================== */

.service-center-row > .wp-block-columns > .wp-block-column:first-child {
    flex: 0 0 800px;
    display: flex;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* =====================================
TEXT COLUMN — PREVENT COLLAPSE
===================================== */

.service-center-row > .wp-block-columns > .wp-block-column:last-child {
    flex: 1;
    min-width: 300px; /* 🔥 prevents vertical text collapse */

    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: clamp(16px, 3vw, 50px);
    padding-right: clamp(16px, 3vw, 50px);

    text-align: justify;
}

/* =====================================
IMAGE SAFETY
===================================== */

.service-center-row img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* =====================================
TABLET & LANDSCAPE FIX (CRITICAL)
===================================== */

@media (max-width: 1100px) {

    .service-center-row > .wp-block-columns {
        flex-direction: column;
    }

    .service-center-row > .wp-block-columns > .wp-block-column:first-child,
    .service-center-row > .wp-block-columns > .wp-block-column:last-child {
        flex: 100%;
        min-width: 100%;
    }

    .service-center-row > .wp-block-columns > .wp-block-column:first-child {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .service-center-row > .wp-block-columns > .wp-block-column:last-child {
        padding-left: 0;
        padding-right: 0;
    }
}

/* =====================================
FOOTER BREAK (UNCHANGED)
===================================== */

/* Desktop: keep inline */
.footer-break {
    display: inline;
}

/* Mobile: move to next line */
@media (max-width: 768px) {
    .footer-break {
        display: block;
    }
}

/* =================================
EVIGENUITY – BIO SECTION 
================================= */

/* =================================
1. CENTER THE WHOLE BIO ROW (STRUCTURE FIX)
================================= */

.bio-center-section .wp-block-columns {
  max-width: 900px;              /* match your editor setting */
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

/* Ensure each column behaves properly */
.bio-center-section .wp-block-column {
  display: flex;
  justify-content: center;
}

/* =================================
2. STACKABLE CARD CENTERING (INNER FIX)
================================= */

.bio-center-section .stk-block-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* =================================
3. TEXT POLISH (NAV LANDSCAPE)
================================= */

.bio-center-section .stk-block-column p,
.bio-center-section .stk-block-column h3,
.bio-center-section .stk-block-column h4 {
  text-align: center;
}

/* Control paragraph width for readability */
.bio-center-section .stk-block-column p {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-height: 500px) {

  .wp-block-group.eg-header {
    height: 60px;
  }

  body {
    padding-top: 60px;
  }

  .logo {
    height: 32px;
  }

}


/* THANK YOU – CENTER ALIGN */
.thank-you-section {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.thank-you-section p {
  text-align: center !important;
  line-height: 1.6;
}

/* =================================
iOS Fix – CLEAN NAV SYSTEM
================================= */


/* ---------------------------------
1. HEADER (TOP NAV ONLY)
--------------------------------- */

/* White header → dark text */
.wp-block-group.eg-header:not(.is-scrolled)
.eg-header-nav 
.wp-block-navigation-item__content {
  color: var(--ev-dark);
}

/* Blue header → white text */
.wp-block-group.eg-header.is-scrolled
.eg-header-nav 
.wp-block-navigation-item__content {
  color: var(--ev-light);
}


/* ---------------------------------
2. HAMBURGER ICON (STATE BASED)
--------------------------------- */

/* White header */
.wp-block-group.eg-header:not(.is-scrolled)
.wp-block-navigation__responsive-container-open,
.wp-block-group.eg-header:not(.is-scrolled)
.wp-block-navigation__responsive-container-open svg {
  color: var(--ev-dark);
  fill: var(--ev-dark);
}

/* Blue header */
.wp-block-group.eg-header.is-scrolled
.wp-block-navigation__responsive-container-open,
.wp-block-group.eg-header.is-scrolled
.wp-block-navigation__responsive-container-open svg {
  color: var(--ev-light);
  fill: var(--ev-light);
}


/* ---------------------------------
3. HAMBURGER OVERLAY (ALWAYS WHITE)
--------------------------------- */

.wp-block-navigation__responsive-container 
.wp-block-navigation-item__content {
  color: var(--ev-light);
}


/* ---------------------------------
4. SUBMENU (ALWAYS WHITE)
--------------------------------- */

.wp-block-navigation 
.wp-block-navigation__submenu-container 
.wp-block-navigation-item__content {
  color: var(--ev-light);
}


/* ---------------------------------
5. OVERLAY BACKGROUND
--------------------------------- */

.wp-block-navigation__responsive-container {
  background: var(--ev-blue) !important;
}


/* ---------------------------------
6. DROPDOWN VISIBILITY (iOS FIX)
--------------------------------- */

/* Submenu expands fully */
.wp-block-navigation 
.wp-block-navigation__submenu-container {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Prevent nav clipping */
.wp-block-navigation {
  overflow: visible !important;
}

/* Prevent container clipping */
.wp-block-navigation 
.wp-block-navigation__container {
  overflow: visible !important;
}

/* Prevent header clipping */
.wp-block-group.eg-header {
  overflow: visible !important;
}


/* ---------------------------------
7. HEADER LAYOUT STABILITY (iOS FIX)
--------------------------------- */

/* Keep header in one row */
.wp-block-group.eg-header .eg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

/* Keep nav inline */
.eg-header-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: nowrap;
  min-width: max-content;
}

/* Prevent CTA wrapping */
.wp-block-navigation .nav-cta {
  white-space: nowrap;
}

/* =================================
SUBMENU FULL EXPANSION (iOS FIX)
================================= */

/* Force submenu to behave as vertical list */
.wp-block-navigation__submenu-container {
  display: block !important;
}

/* Ensure UL expands fully */
.wp-block-navigation__submenu-container ul {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Ensure LI stack vertically */
.wp-block-navigation__submenu-container li {
  display: block !important;
  width: 100% !important;
}

/* Ensure links don't collapse */
.wp-block-navigation__submenu-container 
.wp-block-navigation-item__content {
  display: block !important;
  width: 100%;
}

/* =================================
iOS DROPDOWN ESCAPE FIX 
================================= */

/* Make submenu escape fixed header */
.wp-block-navigation__submenu-container {
  position: fixed !important;
  top: 100px !important; /* match header height */
  left: auto;
  right: auto;
  z-index: 9999;
}

/* =================================
HAMBURGER FIX (STRICT ISOLATION)
================================= */

@media (max-width: 768px) {

  /* ONLY when overlay is open */
  .wp-block-navigation__responsive-container.is-menu-open 
  .wp-block-navigation__responsive-container-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;

    padding-top: 120px;
    padding-bottom: 60px;

    height: 100%;
    overflow-y: auto;
  }

  /* Menu stack */
  .wp-block-navigation__responsive-container.is-menu-open 
  .wp-block-navigation__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
  }

  /* Items */
  .wp-block-navigation__responsive-container.is-menu-open 
  .wp-block-navigation-item {
    width: 100%;
    text-align: center;
  }

  /* Submenu — reset ONLY inside hamburger */
  .wp-block-navigation__responsive-container.is-menu-open 
  .wp-block-navigation__submenu-container {
    position: static !important; 
    width: 100%;
    text-align: center;
    box-shadow: none;
    background: transparent;
  }

  /* Submenu items */
  .wp-block-navigation__responsive-container.is-menu-open 
  .wp-block-navigation__submenu-container 
  .wp-block-navigation-item__content {
    display: block;
    width: 100%;
    text-align: center;
  }

  /* CTA spacing */
  .wp-block-navigation__responsive-container.is-menu-open 
  .nav-cta {
    margin-top: 20px;
  }

}

/* =================================
ANDROID DROPDOWN POSITION FIX
================================= */

/* Reset fixed positioning for non-iOS devices */
@supports not (-webkit-touch-callout: none) {
  .wp-block-navigation__submenu-container {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
  }
}