/*
Theme Name: Iron Roots
Author: Iron Roots, Inc
Author URI: http://www.ironrootsinc.com
Version: 2.0
*/

/* =========================================================
   BASE / DEFAULTS (GLOBAL)
   ========================================================= */

/* Hide login button from nav */
.bt-login { display: none; }

/* let's talk button button on contact nav */
body.page-template-page-home section.contact-page > a.cta-lets-talk{
    display: none !important;
}

/* header logo hidden at top, fades in after Big logo scrolls away */
header .logo {
    transition: opacity 300ms ease, transform 300ms ease;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    min-width: 110px !important;
}

/* Header logo: scale down with viewport, never overflow */
header .logo svg,
header .logo img{
    width: clamp(110px, 12vw, 180px);
    height: auto;
    max-width: 100%;
    display: block;
}

/* HOME: header logo hidden at top */
body.page-template-page-home header .logo,
body.page-template-page-home-php header .logo {
    opacity: 0 !important;
    pointer-events: none;
    transform: translateY(-4px);
}

/* HOME: logo visible after scroll */
body.page-template-page-home.home-header-logo-visible header .logo,
body.page-template-page-home-php.home-header-logo-visible header .logo {
    opacity: 1 !important;
    pointer-events: auto;
    transform: translateY(0);
}

/* HOME fail-safe: if JS never runs, don't hide the nav logo forever */
html.no-js body.page-template-page-home header .logo,
html.no-js body.page-template-page-home-php header .logo{
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
}


/* =========================================================
   GLOBAL variables
   ========================================================= */

:root{
    /* 	Container size */
    --content-max: 1275px;
    /* Measured line canvas */
    --lines-max: 1920px;
    /* Navbar padding */
    --content-pad: clamp(16px, 4vw, 48px);
    /* Entire header size */
    --header-offset: 140px;
    --divider-color: #313451;
    --divider-thickness: 2px;
    --divider-space:  160px;
}

.ir-divider{
    height: var(--divider-thickness);
    background: var(--divider-color);
    border-radius: 999px;
    margin: var(--divider-space) 0;
}


/* Full-bleed: spans viewport, but never wider than --lines-max (1920) and stays centered */
.ir-divider--full{
    width: min(100vw, var(--lines-max));
    margin-left: calc(50% - min(50vw, calc(var(--lines-max) / 2)));
    margin-right: calc(50% - min(50vw, calc(var(--lines-max) / 2)));
}

/* Header follows the line canvas: full width until max, then stop */
header{
    width: 100% !important;
    max-width: var(--lines-max) !important;
    box-sizing: border-box;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    padding-left: max(var(--content-pad), calc((min(100vw, var(--lines-max)) - var(--content-max)) / 2)) !important;
    padding-right: max(var(--content-pad), calc((min(100vw, var(--lines-max)) - var(--content-max)) / 2)) !important;
}

/* Services: start with compact/sticky navbar immediately */
body.page-template-page-services header,
body.page-template-page-services-php header{
    background: #fff !important;
    box-shadow: 0 .1111rem .2222rem 0 rgba(0,0,0,.07) !important;
}

body.page-template-page-services header.anim.opacity,
body.page-template-page-services-php header.anim.opacity{
    opacity: 1 !important;
}

@media (min-width: 600px){
    body.page-template-page-services header,
    body.page-template-page-services-php header{
        height: 3.22222rem !important;
    }

    body.page-template-page-services header .logo,
    body.page-template-page-services-php header .logo{
        margin: 0 0 0 1.88888rem !important;
    }

    body.page-template-page-services header nav,
    body.page-template-page-services-php header nav{
        margin: 0 1.3888rem 0 0 !important;
    }
}

/* Used for anchor scrolling */
html{ scroll-padding-top: var(--header-offset); }
[id]{ scroll-margin-top: var(--header-offset); }

/* =========================================================
   NAV (GLOBAL)
   ========================================================= */

/* Header nav spacing: switch to flex + controlled gap */
header nav{
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: clamp(14px, 1.6vw, 26px) !important;
}

/* Kill theme spacing so gap is the single source of truth */
header nav > a{ margin: 0 !important; }

nav a {
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    text-wrap: nowrap;
}

/* LET'S TALK pill */
nav a.cta-lets-talk {
    display: inline-block;
    padding: 8px 16px;
    background: #58d0d3;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: capitalize;
    border-radius: 30px;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* LET'S TALK: NO underline */
header nav a.cta-lets-talk::before,
header nav a.cta-lets-talk::after,
header nav a.cta-lets-talk:hover::before,
header nav a.cta-lets-talk:hover::after,
header nav a.cta-lets-talk.is-active::before,
header nav a.cta-lets-talk.is-active::after {
    content: none !important;
    display: none !important;
}

/* triggers on scroll via .is-active */
header nav a.cta-lets-talk.is-active{
    background-color: #A5E9EA !important;
    color: #FFFFFF !important;
    transform: scale(1.05) !important;
    box-shadow: 0 10px 26px rgba(88, 208, 211, 0.35) !important;
    pointer-events: none !important;
    cursor: default !important;
}

/* LET'S TALK hover */
nav a.cta-lets-talk:hover {
    background-color: #A5E9EA;
    color: #FFFFFF;
    transform: scale(1.05);
    cursor: pointer;
}

/* ACTIVE underline — matches theme behavior */
header nav a.is-active:not(.cta-lets-talk):not(.bt-circle):not(.arrow-circle){
    position: relative;
}
header nav a.is-active:not(.cta-lets-talk):not(.bt-circle):not(.arrow-circle)::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: #1fbf9a;
    border-radius: 10px;
    display: block;
}

/* =========================================================
   MODAL (GLOBAL)
   ========================================================= */

#modal{
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    overflow: auto !important;
}
#modal::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    pointer-events: auto;
}
#modal .box-form{
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
}

/* SOCIAL */
.social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.lines.only-mobile { display: none !important; }

/* Hidden SVG sprite (icons/arrows) */
.svg-sprite{
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    left: -9999px;
    top: -9999px;
}

/* Typeform embed sizing (avoid inline styles) */
.typeform-embed{
    width: 100%;
    height: 500px;
}

/* Global Typeform rounding wherever embedded */
[data-tf-live]{
    border-radius: 20px !important;
    overflow: hidden;
}

[data-tf-live] iframe,
[data-tf-live] > *{
    border-radius: 20px !important;
}


/* =========================================================
   HERO VIDEO (GLOBAL)
   ========================================================= */

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-top: 40px;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}

/* delayed paint on the video */
.video-container.is-ready {
    opacity: 1;
    pointer-events: auto;
}

/* hard stop early poster paint */
.video-container video { visibility: hidden; }
.video-container.is-ready video { visibility: visible; }

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.video-container video { object-fit: cover; }

.video-mute-toggle {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 5;
    border: 0;
    border-radius: 999px;
    padding: 16px 18px;
    cursor: pointer;
    line-height: 1;
    font-size: 32px;
}

/* =========================================================
   CAREERS (GLOBAL)
   ========================================================= */

.careers-introduction { margin-top: 150px; }
.job-listings { margin-top: 100px; }

.awsm-job-container {
    margin-top: 100px;
    font-family: "Soleil", sans-serif;
}

.entry-title {
    font-size: 40px;
    padding-bottom: 30px;
}

.career-button {
    width: 150px;
    height: 150px;
}

.awsm-job-form { display: none; }
.other-logo { margin-top: 40px; }

/* =========================================================
   SERVICES (GLOBAL)

/* Breakout from parent container (desktop) */
body.page-template-page-services #services .presents,
body.page-template-page-services-php #services .presents {
    padding-top: 58px !important;
}

#services .custom-service-box {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
}

.custom-service-box {
    background-color: #313451;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.custom-service-box__left,
.custom-service-box__right {
    flex: 1;
    padding: 40px;
}

.custom-service-box__left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 60px;
}

/* Services hero: keep left panel at 75% when it stands alone */
body.page-template-page-services .custom-service-box > .custom-service-box__left {
    flex: 0 0 75% !important;
    max-width: 75% !important;
}

.custom-service-box__title {
    font-family: 'soleil', sans-serif;
    font-size: 140px;
    font-weight: 900;
    line-height: 115px;
    letter-spacing: 0;
    vertical-align: middle;
}

.custom-service-box__tagline {
    margin-top: 60px;
    font-family: 'soleil', sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 39px;
    vertical-align: middle;
}

.custom-service-box img {
    margin-top: 300px;
    max-width: 50%;
    margin-left: 150px;
}

@media (max-width: 599px) {
    body.page-template-page-services #services .presents,
    body.page-template-page-services-php #services .presents {
        padding-top: 52px !important;
    }
}

.main .services{
    margin-top: 24px !important;
}

.services .custom-heading {
    position: relative;
    max-width: 100%;
    text-align: left !important;
}

.custom-heading {
    font-family: 'soleil', sans-serif !important;
    font-weight: 500 !important;
    font-size: 45px !important;
    line-height: 62px !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    margin: 0 auto !important;
}

/* Services intro heading: tighter spacing + stronger emphasis */
body.page-template-page-services #services > .services > h2.custom-heading,
body.page-template-page-services-php #services > .services > h2.custom-heading{
    margin-top: 64px !important;
    margin-bottom: 64px !important;
    font-size: 52px !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
}

.custom-heading u.custom-underline {
    text-decoration: none !important;
    position: relative;
    display: inline-block;
}

.custom-heading u.custom-underline img.responsive-underline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -30px;
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

/* Grid base (tablet/desktop) */
.services-container{
    margin-bottom: 36px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* Card */
.service-box{
    display: grid;
    grid-template-rows: auto auto 1fr;
    max-height: 600px;
    height: 600px;
    padding: 22px;
    background-color: rgb(247, 248, 244);
    border-radius: 20px;
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    margin-top: 40px;
}

.service-title {
    font-size: 1.75em;
    font-weight: bold;
    margin: 20px;
    flex-grow: 1;
}

/* SVG Icons Container */
.svg-figures {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
    padding-top: 50px;
}

.svg-figures figure {
    margin: 0;
    padding: 10px;
    width: 50px;
    height: 50px;
}

/* Service Description */
.service-description {
    margin-top: 40px;
    padding-top: 50px;
    font-size: 1.2em;
    color: #000;
}

.service-description p {
    font-size: 1em;
    margin-bottom: 10px;
    line-height: 1.5;
}

.service-description ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    font-family: 'soleil', sans-serif;
}

.service-description ul li {
    position: relative;
    padding-left: 1.8em;
    margin-bottom: 10px;
    line-height: 1.4;
    font-size: 1em;
}

/* Checkmark via ::before */
.service-description ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em;
    color: #34A853;
    opacity: 0;
    transform: scale(0.5);
    animation: tick-in 0.4s ease-out forwards;
}

@keyframes tick-in {
    to { opacity: 1; transform: scale(1); }
}

/* Container to center the CTA button */
.cta-button-container {
    text-align: center;
    /* margin-bottom: 80px; */
}

/* CTA Button Styling */
.cta-button-services {
    background: linear-gradient(135deg, #f9d423, #ff4e50);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
}

.cta-button-services:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   CALL US FOR (GLOBAL)
   ========================================================= */

/* Home section title spacing consistency */
body.page-template-page-home #home :is(.approach h2, .brands h2, .home-services h2, .case h2, .press h2, .tf-contact h2),
body.page-template-page-home-php #home :is(.approach h2, .brands h2, .home-services h2, .case h2, .press h2, .tf-contact h2){
    margin: 0 0 64px;
    display: flex;
}

body.page-template-page-services #services .tf-contact h2,
body.page-template-page-services-php #services .tf-contact h2{
    margin: 0 0 64px;
    display: flex;
}

body.page-template-page-services #services .case h2,
body.page-template-page-services-php #services .case h2{
    margin: 0 0 64px;
    display: flex;
}

/* Services: remove theme's large top margin before Case Studies; divider handles spacing */
body.page-template-page-services #services > .case,
body.page-template-page-services-php #services > .case{
    margin-top: 0 !important;
}

body.page-template-page-home #home :is(.approach p, .brands p),
body.page-template-page-home-php #home :is(.approach p, .brands p){
    margin-top: 0;
    /* width: 50% !important; */
    /* margin-left: 24px !important; */
    text-align: left;
}

/* Case header uses the row itself for spacing to the carousel */
body.page-template-page-home .case .case-carousel__header,
body.page-template-page-home-php .case .case-carousel__header,
body.page-template-page-services .case .case-carousel__header,
body.page-template-page-services-php .case .case-carousel__header{
    margin-bottom: 0px;
}
body.page-template-page-home .case .case-carousel__header h2,
body.page-template-page-home-php .case .case-carousel__header h2,
body.page-template-page-services .case .case-carousel__header h2,
body.page-template-page-services-php .case .case-carousel__header h2{
    margin: 0;
}

/* Kill theme-injected section spacing on home; we control spacing manually */
body.page-template-page-home #home :is(.approach, .brands, .home-services, .case, .press, .tf-contact),
body.page-template-page-home-php #home :is(.approach, .brands, .home-services, .case, .press, .tf-contact){
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.page-template-page-services #services .tf-contact,
body.page-template-page-services-php #services .tf-contact{
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Home: add breathing room around the down arrow before Approach */
body.page-template-page-home #home a[href="#approach"],
body.page-template-page-home-php #home a[href="#approach"]{
    display: flex;
    justify-content: flex-start;
    width: min(100%, 1200px);
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    align-self: center;
    margin: -200px auto 174px auto;
    font-size: 0;
    line-height: 0;
}

body.page-template-page-home .approach,
body.page-template-page-home-php .approach{
    width: 100% !important;
    max-width: var(--lines-max);
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: max(var(--content-pad), calc((min(100vw, var(--lines-max)) - var(--content-max)) / 2));
    padding-right: max(var(--content-pad), calc((min(100vw, var(--lines-max)) - var(--content-max)) / 2));
    box-sizing: border-box;
    align-self: center;
}

body.page-template-page-home .home-services,
body.page-template-page-home-php .home-services{
    /* Match header/nav content width alignment */
    width: 100% !important;
    max-width: var(--lines-max);
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: max(var(--content-pad), calc((min(100vw, var(--lines-max)) - var(--content-max)) / 2));
    padding-right: max(var(--content-pad), calc((min(100vw, var(--lines-max)) - var(--content-max)) / 2));
    box-sizing: border-box;
    align-self: center;
}

/* Services root must use the same canvas/rails as header and homepage sections */
body.page-template-page-services #services,
body.page-template-page-services-php #services{
    width: 100% !important;
    max-width: var(--lines-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

body.page-template-page-home .home-services .services-container,
body.page-template-page-home-php .home-services .services-container{
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Services content rail: match the page's 1200-ish section max-width */
body.page-template-page-services #services > .services,
body.page-template-page-services-php #services > .services{
    width: 91vw !important;
    max-width: 66.666666rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

body.page-template-page-services #services > .services .services-container,
body.page-template-page-services-php #services > .services .services-container{
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}


/* =========================================================
   CASE STUDIES (HOME CAROUSEL)
   ========================================================= */


.case-carousel{
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Align Case Studies section with nav/content width (home template) */
body.page-template-page-home .case,
body.page-template-page-home-php .case{
    width: 100% !important;
    max-width: var(--lines-max);
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: max(var(--content-pad), calc((min(100vw, var(--lines-max)) - var(--content-max)) / 2));
    padding-right: max(var(--content-pad), calc((min(100vw, var(--lines-max)) - var(--content-max)) / 2));
    box-sizing: border-box;
    align-self: center;
}

.case-carousel__header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.case-viewall{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
    margin-left: 90px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    color: #58d0d3;
    text-decoration: none;
}
.case-viewall::after{
    content: ">";
    font-size: 16px;
    line-height: 1;
}

.case-viewport{
    position: relative;
    border-radius: 20px;
    background: linear-gradient(120deg, #2f324f 0%, #2a2e4a 100%);
    box-shadow: 0 18px 50px rgba(17, 20, 35, 0.28);
    overflow: visible;
}

.case-track{
    display: flex;
    gap: clamp(14px, 2vw, 20px);
    padding: 30px 30px 30px 60px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

}

.case-track::-webkit-scrollbar{
    height: 0;
    display: none;
}

.case-card{
    flex: 0 0 clamp(260px, 28vw, 340px);
    border-radius: 22px;
    overflow: hidden;
    scroll-snap-align: start;
    background: #1f2240;
    color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    transition: transform .25s ease, box-shadow .25s ease;
    /* padding-left: 30px; */
}

@media (min-width: 769px){
    /* Match trailing end-space with a leading space before the first card */
    .case-track .case-card:first-child{
        margin-left: 30px;
    }
}

/* Case studies on homepage */
.case-card__media{
    position: relative;
    height: clamp(200px, 22vw, 260px);
}

.case-card__bg{
    position: absolute;
    inset: 0;
    background-image: var(--case-bg, linear-gradient(135deg, #2c3258 0%, #1f2240 100%));
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}
.case-card__shade{
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.65) 100%);
}

.case-card__logo{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 2;
    width: clamp(110px, 50%, 180px);
}
.case-card__logo img{
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.3));
}

.case-card__body{
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #1f2240;
    flex: 1;
    font-family: 'Soleil', sans-serif;
}

.case-card__title{
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    font-family: 'Soleil', sans-serif;
    text-decoration: underline;
}

.case-card__kpis{
    display: grid;
    gap: 8px;
    margin: 0;
}

.case-card__kpi{
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: -0.02em;
    font-family: 'Soleil', sans-serif;
    color: #33EBBC;
}

.case-card__kpiText{
    opacity: 0.9;
    font-size: 16px;
    line-height: 1.5;
    font-family: 'Soleil', sans-serif;
}

.case-card__cta{
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: #58d0d3;
    color: #0f2a33;
    text-decoration: none;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
    box-shadow: 0 10px 20px rgba(88, 208, 211, 0.3);
}

@media (hover:hover){
    .case-card:hover{
        transform: translateY(-6px);
        box-shadow: 0 18px 50px rgba(0,0,0,0.28);
    }
    .case-card:hover .case-card__cta{
        transform: translateY(-1px);
        background: #7be0e3;
    }
}

/* Nav buttons (desktop/tablet only) */
.case-nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 0;
    background: rgba(201, 240, 241, 0.95);
    color: #27314a;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 10px 26px rgba(39, 49, 74, 0.18);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.case-nav span{
    display: block;
    font-size: 30px;
    line-height: 1;
}
.case-nav--prev{ left: -36px; }
.case-nav--next{ right: -36px; }

@media (hover:hover){
    .case-nav:hover{
        background: #58d0d3;
        box-shadow: 0 14px 30px rgba(39, 49, 74, 0.25);
    }
}

.case-dots{
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.case-dots button{
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(49, 52, 81, 0.35);
    cursor: pointer;
}
.case-dots button.is-active{
    width: 26px;
    background: #58d0d3;
}


.home-services{ position: relative; }

.home-services-overlay{
    position: absolute;
    inset: 0;
    z-index: 5;
    text-decoration: none;
    cursor: pointer;
    border-radius: inherit;
}

/* keep visuals normal (no underline, no color changes) */
.home-services-overlay:focus{ outline: none; }
.home-services-overlay:focus-visible{
    outline: 2px solid currentColor;
    outline-offset: 6px;
}

.home-services-actions{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 10px auto 0;
    padding: 0 20px;
}

/* reuse your arrow-link vibe */
.home-services-view-more{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* button that opens the same modal as nav */
.home-services-proposal-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: #58d0d3;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
    box-shadow: 0 10px 26px rgba(88, 208, 211, 0.25);
    width: 300px;
}

.home-services-proposal-btn:hover{
    background: #A5E9EA;
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(88, 208, 211, 0.35);
}

/* =========================================================
   CASE STUDIES (GLOBAL)
   ========================================================= */


.case-studies-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 50px;
    margin-bottom: 30px;
}

.case-study-item {
    background-color: rgb(50, 52, 81);
    padding: 20px;
    flex: 1 1 calc(33.33% - 40px);
    max-width: calc(33.33% - 40px);
    box-sizing: border-box;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    border-radius: 20px;
}

.case-study-item:hover { transform: translateY(-5px); }

.case-study-logo img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.case-study-title {
    position: relative;
    display: inline-block;
    font-size: 3.5em;
    font-weight: 600;
    padding: 0.2em 0.4em;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.case-study-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.1em;
    height: 1.2em;
    width: 100%;
    background: rgb(132, 204, 210);
    z-index: -1;
    transform: skew(-3deg) scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease-out, background-color 0.3s ease;
}

.case-study-title:hover::after {
    transform: skew(-3deg) scaleX(1);
    background: rgb(145, 217, 221);
}

.case-study-title:hover { transform: scale(1.05); }

.case-study-text {
    font-size: 1.2em;
    line-height: 1.5;
    color: #ffffff;
    padding: 1em 1.5em;
    border-left: 5px solid rgb(132, 204, 210);
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    margin-top: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    font-family: 'soleil', sans-serif;
}

.case-study-text:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.case-study-text::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    opacity: 0;
}

.case-study-text:hover::after {
    opacity: 1;
    animation: shine 0.8s;
}

@keyframes shine { from { left: -100%; } to { left: 100%; } }

.case-studies-block { text-align: center; }

.btn.show-more {
    background: none;
    color: rgb(50, 52, 81);
    border: none;
    padding: 12px 60px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 10px;
}

.btn.show-more:hover {
    background-color: rgb(50, 52, 81);
    color: white;
    border-radius: 10px;
}

/* =========================================================
   BLOG (GLOBAL) */

.post .content {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    font-family: 'Soleil', sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

.post .content h2 {
    font-size: 30px;
    line-height: 1.3;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    font-family: 'Soleil', sans-serif;
}

.post .content h3 {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 600;
    margin-top: 2rem;
}

.post .content p {
    margin-bottom: 1.5rem;
    font-size: 18px;
}

.post .content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    display: block;
}

.post .content blockquote {
    border-left: 4px solid #58D0D3;
    padding-left: 1rem;
    color: #555;
    margin: 2rem 0;
    font-style: italic;
}

.post .content ul,
.post .content ol {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
    font-family: 'Soleil', sans-serif;
}

.post .content ul li,
.post .content ol li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1.2rem;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.post .content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #58D0D3;
    font-size: 1.4rem;
    line-height: 1;
    font-weight: bold;
}

.post .content a {
    color: #58D0D3;
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.2s ease;
}

.post .content a:hover {
    color: #3cb3b5;
    text-decoration: none;
}

.post .content p a,
.post .content li a {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

/* =========================================================
   PRESS (GLOBAL)

 */

.press .top-agencies-row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    /* margin-top: 64px !important; */
    flex-wrap: nowrap !important;
    gap: 56px !important;
    margin: 0 auto !important;
}

.press .top-agencies-row .other-logo {
    flex: 0 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 0 !important;
}

.press .top-agencies-row .other-logo figure {
    margin: 0;
    width: 144px !important;
    max-width: 144px !important;
}

.press .top-agencies-row .other-logo img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

.press .top-agencies-row .top-agency-cell {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.press .top-agencies-row .top-agency-figure {
    margin: 0 !important;
    display: inline-block !important;
    width: 144px !important;
    max-width: 144px !important;
}

.press .top-agencies-row .top-agency-img {
    width: 144px !important;
    max-width: 144px !important;
    height: auto !important;
    display: block !important;
}

/* Home press: force top awards side-by-side at 270px */
body.page-template-page-home #home .press .top-agencies-row,
body.page-template-page-home-php #home .press .top-agencies-row{
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 152px !important;
    margin: 0 auto 0 !important;
}

/* body.page-template-page-home #home .press .top-agency-cell, */
/* body.page-template-page-home-php #home .press .top-agency-cell{ */
/*     flex: 0 0 160px !important; */
/*     display: flex !important; */
/*     justify-content: center !important; */
/*     align-items: center !important; */
/* } */

/* body.page-template-page-home #home .press .top-agency-figure, */
/* body.page-template-page-home-php #home .press .top-agency-figure{ */
/*     width: 160px !important; */
/*     max-width: 160px !important; */
/*     margin: 0 !important; */
/* } */

/* body.page-template-page-home #home .press .top-agency-img, */
/* body.page-template-page-home-php #home .press .top-agency-img{ */
/*     width: 160px !important; */
/*     max-width: 160px !important; */
/*     height: auto !important; */
/*     display: block !important; */
/* } */

/* Home case studies: hide CTA until content is ready */
body.page-template-page-home #home .case-card__cta,
body.page-template-page-home-php #home .case-card__cta,
body.page-template-page-services #services .case-card__cta,
body.page-template-page-services-php #services .case-card__cta{
    display: none !important;
}

/* =========================================================
   CONTACT PAGE/MODAL (GLOBAL)

 */

.contact-page {
    padding-top: 200px;
    background: transparent !important;
    margin: 0 auto;
    max-width: 800px;
}

.contact-card {
    position: relative;
    max-width: 720px;
    width: 90%;
    margin: 20px 0 0 0;
    padding: 48px;
    background: #313451;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    font-family: 'Soleil', sans-serif;
    color: #ffffff;
    text-align: left;
}

.contact-field label {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #d0d4ff;
    text-transform: uppercase;
    margin-bottom: -32px;
}

.contact-card p {
    margin: 0 0 40px;
    font-size: 18px;
    color: #d0d4ff;
}

.contact-row {
    display: flex;
    gap: 28px;
    margin-bottom: 28px;
}

.contact-field { margin-bottom: 28px; }

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 16px 18px;
    border: none;
    border-radius: 12px;
    background: #ffffff;
    font-size: 16px;
    color: #2f3152;
    box-sizing: border-box;
}

.contact-field textarea {
    min-height: 200px;
    resize: vertical;
}

.contact-submit { margin-top: 40px; }

.contact-submit {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 18px 32px;
    background: #58d0d3;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(88, 208, 211, 0.35);
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-submit:hover {
    background: #45c0c3;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(88, 208, 211, 0.45);
}

/* CF7 submit inside the card (real button) */
.contact-card .wpcf7-submit{
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 18px 32px;
    background: #58d0d3;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(88,208,211,.35);
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    min-height: 56px;
}

.contact-card .wpcf7-submit:hover{
    background: #45c0c3;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(88,208,211,.45);
}

/* Full-width fix for CF7 fields */
.wpcf7 form p,
.wpcf7 form br {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* match contact on homepage to contact page */
body.page-template-page-home .contact-page.contact-page--home,
body.page-template-page-home-php .contact-page.contact-page--home {
    padding-top: 0;
    max-width: 800px;
    margin: 80px auto 0;
}
body.page-template-page-home .contact-page--home .contact-card,
body.page-template-page-home-php .contact-page--home .contact-card {
    margin: 20px auto 0;
}

/* Shrink top margin for all sections on homepage */
body.page-template-page-home main :is(.brands, .home-services, .case, .press, .tf-contact),
body.page-template-page-home-php main :is(.brands, .home-services, .case, .press, .tf-contact){
    /* margin-top: 160px !important; */
}

/* =========================================================
   FIX: global main.css rule adding margin-top to ALL links

/* kill the global margin-top ONLY for the CTA row in Call us for */
body.page-template-page-home .home-services .home-services-actions a,
body.page-template-page-home-php  .home-services .home-services-actions a{
    margin-top: 0 !important;
}

/* (optional but recommended) make the CTA row spacing explicit */
body.page-template-page-home .home-services .home-services-actions,
body.page-template-page-home-php  .home-services .home-services-actions{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 3vw, 34px);
}

/* HOME ONLY: different spacing for the embedded contact section */
body.page-template-page-home .contact-page--home,
body.page-template-page-home-php .contact-page--home{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* HOME ONLY: different card padding (inside the dark box) */
body.page-template-page-home .contact-page--home .contact-card,
body.page-template-page-home-php .contact-page--home .contact-card{
    padding: 48px 48px 60px !important;
}

/* =========================================================
   FOOTER � safe (all sizes)
   ========================================================= */


footer.site-footer {
    width: 100% !important;
    max-width: var(--lines-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;

    /* Always render (theme anim can keep it hidden) */
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;

    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;

    position: relative !important;
    z-index: 5 !important;
}

/* Footer children: prevent theme animation classes from hiding them */
footer.site-footer .anim,
footer.site-footer .anim.opacity,
footer.site-footer .anim.bottom,
footer.site-footer .anim.scale,
footer.site-footer .anim.rotate-r,
footer.site-footer .anim.rotate-l {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    margin-bottom: 100px;
}

footer.site-footer .footer-social.social {
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 20px;
}

footer.site-footer .lines svg {
    width: 100% !important;
    height: auto !important;
    display: block;
    pointer-events: none;
}

/* End of footer styling */


/* Reserved space */
.contact-card .wpcf7 form{
    position: relative;
    padding-bottom: 60px;
}

/* Contact form Error messages */
.contact-card .wpcf7-response-output{
    position: absolute !important;
    left: 50% !important;
    bottom: -8px !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    border-width: 2px !important;
    border-style: solid !important;
    border-radius: 10px !important;
    line-height: 1.25 !important;
}

/* Spinner OVER the button */
.contact-card .wpcf7-spinner{
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

/* While submitting: hide SUBMIT text and show spinner */
.contact-card .wpcf7 form.submitting .wpcf7-submit{ color: transparent !important; }
.contact-card .wpcf7 form.submitting .wpcf7-spinner{ opacity: 1 !important; }

/* =========================================================
   BLOG LISTING: equal card and media heights */

#blog .alm-listing > li{
    display: block;
}

#blog .alm-listing .post-box{
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    width: 100%;
    border-radius: 20px;
    border: 1px solid #313451;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 0 !important;
    padding-bottom: 32px;
}

#blog .alm-listing .post-box > figure{
    width: 100%;
    height: clamp(220px, 24vw, 340px);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

#blog .alm-listing .post-box > figure img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#blog .alm-listing .post-box .container-post{
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 32px !important;
}

#blog .alm-listing .post-box > a{
    position: static !important;
    margin: auto auto 32px !important;
    left: auto;
    bottom: auto !important;
    transform: none !important;
}

/* Keep horizontal/vertical card spacing consistent in blog grid */
#blog .ajax-load-more-wrap ul.alm-listing li.grid-item{
    margin: 0 1.5% 1.5% !important;
}

/* Blog listing: use stable CSS grid to prevent Masonry overlap/jumps */
#blog .ajax-load-more-wrap ul.alm-listing{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px !important;
    height: auto !important;
}

#blog .ajax-load-more-wrap ul.alm-listing li.grid-item{
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
}

@media (max-width: 799px){
    #blog .ajax-load-more-wrap ul.alm-listing{
        grid-template-columns: 1fr;
    }
}
