/*
Theme Name: Rey MarTech
Theme URI: https://reymartech.com
Author: Rey MarTech
Author URI: https://reymartech.com
Description: Custom theme for Rey MarTech - B2B Marketing Technology Agency
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Private
Text Domain: reymartech
*/

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --clr-black: #0a0a0a;
    --clr-dark: #0d1a0d;
    --clr-dark2: #0a140a;
    --clr-green: #3ab54a;
    --clr-green-bright: #4ade60;
    --clr-green-btn: #22c55e;
    --clr-white: #ffffff;
    --clr-gray: #b0b8b0;
    --clr-card-bg: #0f1e0f;
    --font-main: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --transition: 0.3s ease;
    --radius: 12px;
    --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--clr-dark);
    color: var(--clr-white);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; color: var(--clr-white); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; color: var(--clr-gray); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 60px 0; }

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    border: none; transition: var(--transition); text-decoration: none;
}
.btn-primary { background: var(--clr-green-btn); color: var(--clr-white); }
.btn-primary:hover { background: #16a34a; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--clr-white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--clr-green); color: var(--clr-green); }

/* HEADER */
#site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10,10,10,0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(58,181,74,0.1); transition: var(--transition);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; position: relative; z-index: 10; }
.site-logo { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; color: var(--clr-white); position: relative; z-index: 1002; }
.site-logo img { height: 40px; width: auto; }

/* ── HAMBURGER ── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    position: relative;
    z-index: 1002;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--clr-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── DESKTOP NAV ── */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    /* Reset any mobile overrides when on desktop */
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    flex-direction: row;
    overflow: visible;
}
.nav-menu a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-menu a:hover { color: var(--clr-white); background: rgba(255,255,255,0.05); }

/* ── DROPDOWN (desktop) ── */
.nav-menu .has-dropdown { position: relative; }
.nav-menu .has-dropdown > a::after {
    content: ' ▾';
    font-size: 0.75em;
    transition: transform 0.25s ease;
    display: inline-block;
}
.nav-menu .has-dropdown:hover > a::after { transform: rotate(180deg); }
.nav-menu .dropdown {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #0f1e0f;
    border: 1px solid rgba(58,181,74,0.2);
    border-radius: var(--radius-sm);
    padding: 8px;
    z-index: 200;
    padding-top: 16px;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.nav-menu .dropdown::before {
    content: '';
    position: absolute;
    top: -16px; left: 0; right: 0;
    height: 16px;
}
.nav-menu .has-dropdown:hover .dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}
.nav-menu .dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.88rem;
    white-space: nowrap;
}
.nav-cta { margin-left: 12px; }

/* HERO */
.hero-section {
    min-height: 100vh; display: flex; align-items: center; padding-top: 72px;
    background: radial-gradient(ellipse 80% 60% at 60% 50%, rgba(34,197,94,0.08) 0%, transparent 60%),
                radial-gradient(ellipse 40% 40% at 20% 80%, rgba(58,181,74,0.05) 0%, transparent 50%), var(--clr-dark);
    position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 80px 0; }
.hero-content h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -1px; margin-bottom: 24px; }
.hero-content h1 span { color: var(--clr-green); font-style: italic; display: block; }
.hero-content p { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,0.7); max-width: 480px; margin-bottom: 36px; }
.hero-logo-label { font-size: 0.75rem; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 1px; margin-top: 32px; margin-bottom: 12px; }
.hero-logo-strip { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.hero-logo-strip img {
    height: 36px;
    width: auto;
    opacity: 1;
    object-fit: contain;
    display: block;
}
.hero-logo-item {
    display: inline-block;
    width: 120px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    flex-shrink: 0;
}
.hero-image-wrap img { width: 100%; border-radius: 20px; object-fit: cover; border: 1px solid rgba(58,181,74,0.15); }
.star-deco { position: absolute; color: var(--clr-green); animation: spin-slow 8s linear infinite; }
.star-deco-1 { top: 15%; left: 3%; font-size: 2.5rem; }
.star-deco-2 { top: 22%; right: 5%; font-size: 1.5rem; animation-direction: reverse; animation-duration: 6s; }
.star-deco-3 { bottom: 20%; right: 3%; font-size: 2rem; animation-duration: 10s; }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* COUNTERS */
.counter-section { background: var(--clr-dark2); border-top: 1px solid rgba(58,181,74,0.08); border-bottom: 1px solid rgba(58,181,74,0.08); }
.section-header { margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.counter-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.counter-item { text-align: center; padding: 48px 32px; border-right: 1px solid rgba(255,255,255,0.07); }
.counter-item:last-child { border-right: none; }
.counter-number { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; color: var(--clr-green); line-height: 1; display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.counter-suffix { font-size: 0.55em; }
.counter-text { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-top: 8px; }
.counter-subtext { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin-top: 4px; }

/* WHY CHOOSE */
.why-choose-section { background: var(--clr-dark); }
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.section-tag { display: inline-block; background: rgba(58,181,74,0.1); color: var(--clr-green); border: 1px solid rgba(58,181,74,0.2); padding: 6px 16px; border-radius: 100px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 16px; }
.why-image img { width: 100%; border-radius: 20px; object-fit: cover; border: 1px solid rgba(58,181,74,0.15); }

/* TRUSTED */
.trusted-section { background: var(--clr-dark2); text-align: center; }
.trusted-section .section-header p { max-width: 600px; margin: 0 auto 40px; }
.logo-ticker-wrap { overflow: hidden; mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%); }
.logo-ticker { display: flex; gap: 60px; animation: ticker 22s linear infinite; width: max-content; }
.logo-ticker img {
    height: 40px;
    width: auto;
    opacity: 1;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
}
.logo-ticker-item {
    display: inline-block;
    width: 130px;
    height: 44px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    opacity: 1;
}
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* SERVICES */
.services-section { background: var(--clr-dark); }
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; gap: 24px; }
.services-header .section-header { max-width: 540px; margin-bottom: 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { background: var(--clr-card-bg); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 32px 28px; transition: var(--transition); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--clr-green), transparent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.service-card:hover { border-color: rgba(58,181,74,0.25); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 20px; background: rgba(58,181,74,0.08); display: flex; align-items: center; justify-content: center; }
.service-icon img { width: 100%; height: 100%; object-fit: cover; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.service-card p { font-size: 0.87rem; margin-bottom: 20px; line-height: 1.6; }
.service-link { display: inline-flex; align-items: center; gap: 6px; color: var(--clr-green); font-size: 0.85rem; font-weight: 600; transition: gap 0.2s; }
.service-link:hover { gap: 10px; }

/* INDUSTRIES */
.industries-section { background: var(--clr-dark2); }
.industries-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.industry-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.industry-tag { padding: 10px 20px; border: 1px solid rgba(58,181,74,0.2); border-radius: 100px; font-size: 0.88rem; background: rgba(58,181,74,0.04); color: rgba(255,255,255,0.8); transition: var(--transition); }
.industry-tag:hover { background: rgba(58,181,74,0.12); border-color: var(--clr-green); color: var(--clr-white); }
.industries-image img { width: 100%; border-radius: 20px; border: 1px solid rgba(58,181,74,0.15); }

/* GROWTH CTA */
.growth-section { background: linear-gradient(135deg, #0d1e0d 0%, #091209 100%); border-top: 1px solid rgba(58,181,74,0.1); border-bottom: 1px solid rgba(58,181,74,0.1); position: relative; overflow: hidden; }
.growth-section::before { content: ''; position: absolute; right: -80px; top: -80px; width: 350px; height: 350px; background: radial-gradient(circle, rgba(34,197,94,0.09) 0%, transparent 70%); border-radius: 50%; }
.growth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.growth-content h2 { margin-bottom: 16px; }
.growth-content p { margin-bottom: 32px; }
.growth-image img { width: 100%; border-radius: 20px; border: 1px solid rgba(58,181,74,0.2); }

/* TESTIMONIALS */
.testimonials-section { background: var(--clr-dark); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.testimonial-card { background: var(--clr-card-bg); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 32px 28px; transition: var(--transition); }
.testimonial-card:hover { border-color: rgba(58,181,74,0.2); transform: translateY(-4px); }
.testimonial-stars { color: var(--clr-green); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-text { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.65); margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-name { font-weight: 700; font-size: 0.88rem; margin-bottom: 2px; color: var(--clr-white); }
.testimonial-role { font-size: 0.78rem; color: var(--clr-green); }

/* BLOG */
.blog-section { background: var(--clr-dark2); }
.blog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; gap: 24px; }
.blog-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: var(--clr-card-bg); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.blog-card:hover { border-color: rgba(58,181,74,0.2); transform: translateY(-4px); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: rgba(58,181,74,0.05); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 24px; }
.blog-card-meta { font-size: 0.78rem; color: var(--clr-green); margin-bottom: 8px; }
.blog-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--clr-white); line-height: 1.4; }
.blog-card p { font-size: 0.84rem; }

/* CONTACT FORM SECTION */
.contact-section { background: var(--clr-dark); border-top: 1px solid rgba(58,181,74,0.1); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.contact-content h2 { margin-bottom: 12px; }
.contact-content p { margin-bottom: 24px; }
.social-links { display: flex; gap: 12px; margin-top: 24px; }
.social-link { width: 44px; height: 44px; border-radius: 50%; background: rgba(58,181,74,0.1); border: 1px solid rgba(58,181,74,0.2); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: var(--clr-green); transition: var(--transition); }
.social-link:hover { background: var(--clr-green); color: var(--clr-white); }
.contact-form-wrap { background: var(--clr-card-bg); border: 1px solid rgba(58,181,74,0.15); border-radius: var(--radius); padding: 40px; }
.contact-form-wrap h3 { margin-bottom: 24px; }

/* CF7 & Form styling */
.wpcf7-form .wpcf7-form-control-wrap { display: block; margin-bottom: 16px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--clr-white); font-size: 0.92rem; font-family: var(--font-main); transition: border-color 0.2s; }
.wpcf7-form input:focus,
.wpcf7-form textarea:focus { outline: none; border-color: var(--clr-green); background: rgba(58,181,74,0.04); }
.wpcf7-form textarea { min-height: 120px; resize: vertical; }
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder { color: rgba(255,255,255,0.3); }
.wpcf7-form input[type="submit"] { width: 100%; background: var(--clr-green-btn); color: var(--clr-white); border: none; border-radius: var(--radius-sm); padding: 16px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.wpcf7-form input[type="submit"]:hover { background: #16a34a; }
.wpcf7-response-output { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.88rem; border: 1px solid rgba(58,181,74,0.3); background: rgba(58,181,74,0.08); color: var(--clr-green); }

/* PAGE BANNER (inner pages) */
.page-banner { padding: 140px 0 80px; background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(34,197,94,0.07) 0%, transparent 70%), var(--clr-dark); text-align: center; }
.page-banner h1 { margin-bottom: 16px; }
.page-banner p { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* BREADCRUMB */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,0.4); margin-bottom: 16px; justify-content: center; }
.breadcrumb a { color: var(--clr-green); }

/* FAQ */
.faq-list { margin-top: 40px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.07); padding: 20px 0; }
.faq-question { display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--clr-white); gap: 16px; }
.faq-num { color: var(--clr-green); font-size: 0.85rem; min-width: 28px; font-weight: 700; }
.faq-q-text { flex: 1; }
.faq-toggle { width: 28px; height: 28px; border-radius: 50%; background: rgba(58,181,74,0.1); border: 1px solid rgba(58,181,74,0.2); display: flex; align-items: center; justify-content: center; color: var(--clr-green); flex-shrink: 0; transition: var(--transition); font-size: 1.2rem; line-height: 1; }
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--clr-green); color: white; }
.faq-answer { display: none; padding: 16px 0 0 44px; font-size: 0.92rem; color: rgba(255,255,255,0.65); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* SERVICE FLOW */
.service-flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.flow-step { background: var(--clr-card-bg); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 32px 28px; }
.flow-number { font-size: 3rem; font-weight: 900; color: rgba(58,181,74,0.15); line-height: 1; margin-bottom: 12px; }
.flow-step h3 { margin-bottom: 10px; font-size: 1rem; }
.flow-step p { font-size: 0.88rem; }
.marketing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.marketing-card { text-align: center; padding: 32px 24px; background: var(--clr-card-bg); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); transition: var(--transition); }
.marketing-card:hover { border-color: rgba(58,181,74,0.2); transform: translateY(-4px); }
.marketing-card img { width: 52px; height: 52px; object-fit: contain; margin: 0 auto 16px; }
.marketing-card h3 { font-size: 1rem; margin-bottom: 8px; }
.marketing-card p { font-size: 0.85rem; }

/* MISSION/VISION */
.mission-vision-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.mv-card { background: var(--clr-card-bg); border: 1px solid rgba(58,181,74,0.1); border-radius: var(--radius); padding: 32px; transition: var(--transition); }
.mv-card:hover { border-color: rgba(58,181,74,0.3); }
.mv-card img { width: 48px; height: 48px; object-fit: contain; margin-bottom: 16px; }
.mv-card h3 { margin-bottom: 12px; }
.mv-card p { font-size: 0.9rem; }

/* CAREER TABLE */
.career-table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.career-table th { text-align: left; padding: 16px 20px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); border-bottom: 1px solid rgba(255,255,255,0.07); }
.career-table td { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.92rem; color: rgba(255,255,255,0.8); }
.career-table tr:hover td { background: rgba(58,181,74,0.03); }
.career-badge { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 0.75rem; background: rgba(58,181,74,0.1); color: var(--clr-green); border: 1px solid rgba(58,181,74,0.2); }

/* CONTACT INFO */
.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.contact-info-card { background: var(--clr-card-bg); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 32px 28px; text-align: center; }
.contact-info-card img { width: 48px; height: 48px; margin: 0 auto 16px; }
.contact-info-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.contact-info-card p { font-size: 0.9rem; }
.map-embed { margin-top: 60px; border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { width: 100%; height: 400px; border: none; }

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9999; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; }
.modal-box { background: var(--clr-card-bg); border: 1px solid rgba(58,181,74,0.2); border-radius: var(--radius); padding: 40px; max-width: 500px; width: 90%; position: relative; animation: modal-in 0.3s ease; }
@keyframes modal-in { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
}
.modal-close:hover { background: rgba(73,178,8,0.25); border-color: #49b208; color: #49b208; }
.modal-box h3 { margin-bottom: 8px; }
.modal-box > p { margin-bottom: 24px; color: rgba(255,255,255,0.6); }

/* FOOTER */
#site-footer { background: #060c06; border-top: 1px solid rgba(58,181,74,0.1); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-brand .site-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; max-width: 280px; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--clr-green); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 0.82rem; color: rgba(255,255,255,0.3); }

/* UTILITIES */
.text-green { color: var(--clr-green) !important; }
.text-center { text-align: center; }
.mt-8 { margin-top: 32px; }

/* RESPONSIVE */
/* =========================================================
   RESPONSIVE — TABLET (≤1024px)
   ========================================================= */
@media (max-width: 1024px) {
    .hero-grid { gap: 40px; }
    .hero-content h1 { font-size: clamp(2rem, 4vw, 3rem); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-posts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .counter-grid { grid-template-columns: repeat(3, 1fr); }
    .service-flow-grid { grid-template-columns: repeat(2, 1fr); }
    .marketing-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col-grid { gap: 48px; }
    .section-pad { padding: 60px 0; }
}

/* =========================================================
   RESPONSIVE — MOBILE (≤768px)
   ========================================================= */
@media (max-width: 768px) {

    /* HAMBURGER — visible, above everything */
    .hamburger {
        display: flex !important;
        z-index: 1002;
    }

    /* MOBILE MENU — full-screen, scrollable panel */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100%; height: 100%;
        background: #060c06 !important;
        flex-direction: column;
        align-items: stretch;
        padding: 80px 0 40px;
        gap: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 99999;
        /* Reset all desktop styles */
        border: none;
        border-radius: 0;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    .nav-menu.open { display: flex; }

    /* ALL direct nav links */
    .nav-menu > a,
    .nav-menu .has-dropdown > a {
        display: block;
        width: 100%;
        padding: 18px 24px;
        font-size: 1.15rem;
        font-weight: 600;
        color: #fff;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        border-radius: 0;
        background: none;
        text-decoration: none;
        white-space: normal;
    }
    .nav-menu > a:hover,
    .nav-menu .has-dropdown > a:hover {
        color: #49b208;
        background: rgba(73,178,8,0.05);
    }

    /* DROPDOWN — sits inline, hidden until .open added by JS */
    .nav-menu .dropdown {
        /* Override ALL desktop positioning */
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        transition: none !important;
        /* Styling */
        display: none;
        width: 100%;
        background: rgba(73,178,8,0.04);
        border: none !important;
        border-left: 3px solid #49b208 !important;
        border-radius: 0 !important;
        padding: 0 0 8px 0 !important;
        margin: 0 !important;
        z-index: auto !important;
    }
    /* Show dropdown when parent has .open */
    .nav-menu .has-dropdown.open .dropdown { display: block !important; }

    /* Dropdown links */
    .nav-menu .dropdown a {
        display: block;
        width: 100%;
        padding: 14px 24px 14px 32px;
        font-size: 1rem;
        font-weight: 500;
        color: rgba(255,255,255,0.8);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        border-radius: 0;
        white-space: normal;
    }
    .nav-menu .dropdown a:hover {
        color: #49b208;
        background: rgba(73,178,8,0.06);
    }

    /* Remove pseudo-element underline animations on mobile */
    .nav-menu > a::before,
    .nav-menu .dropdown a::before,
    .nav-menu .has-dropdown > a::after { display: none !important; }

    /* CTA */
    .nav-cta {
        display: block;
        width: calc(100% - 48px);
        margin: 20px 24px 0;
        padding: 16px;
        text-align: center;
        font-size: 1rem;
        border-radius: 8px !important;
    }

    /* --- HERO --- */
    .hero-section { min-height: auto; padding: 100px 0 60px; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 0; }
    .hero-image-wrap { order: -1; animation: none !important; }
    .hero-image-wrap img { max-height: 320px; object-fit: cover; }
    .hero-content h1 { font-size: 2.2rem; letter-spacing: -0.5px; }
    .hero-content p { font-size: 0.98rem; max-width: 100%; }
    .hero-logo-label { font-size: 0.7rem; margin-top: 40px; }
    .hero-content .btn { margin-bottom: 8px; }
    .hero-logo-strip { gap: 12px; }
    .hero-logo-item { width: 80px; height: 32px; }
    .star-deco-1 { font-size: 1.5rem; top: 10%; left: 2%; }
    .star-deco-2 { display: none; }
    .star-deco-3 { font-size: 1rem; bottom: 5%; right: 2%; }

    /* --- LAYOUT --- */
    .section-pad { padding: 48px 0; }
    .section-pad-sm { padding: 36px 0; }
    .container { padding: 0 16px; }
    .two-col-grid,
    .growth-grid,
    .industries-grid,
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }

    /* --- COUNTERS --- */
    .counter-grid { grid-template-columns: 1fr 1fr; }
    .counter-item { padding: 32px 16px; }
    .counter-item:nth-child(2n) { border-right: none; }
    .counter-item:last-child { grid-column: span 2; border-bottom: none; }

    /* --- SERVICES --- */
    .services-grid { grid-template-columns: 1fr; }
    .services-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .service-card { padding: 24px 20px; }

    /* --- GRIDS --- */
    .testimonials-grid,
    .blog-posts-grid,
    .contact-info-grid,
    .marketing-grid,
    .service-flow-grid,
    .mission-vision-grid { grid-template-columns: 1fr; }

    /* --- BLOG --- */
    .blog-header { flex-direction: column; align-items: flex-start; gap: 16px; }

    /* --- PAGE BANNER --- */
    .page-banner { padding: 100px 0 48px; }
    .page-banner h1 { font-size: 2rem; }

    /* --- CONTACT --- */
    .contact-form-wrap { padding: 24px 20px; }

    /* --- FOOTER --- */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    #site-footer { padding: 48px 0 0; }

    /* --- CAREER TABLE --- */
    .career-table { display: block; overflow-x: auto; font-size: 0.85rem; }
    .career-table td, .career-table th { padding: 12px; }

    /* --- INDUSTRIES TAGS --- */
    .industry-tags { gap: 8px; }
    .industry-tag { padding: 8px 14px; font-size: 0.82rem; }

    /* --- MODALS --- */
    .modal-box { padding: 28px 20px; margin: 16px; max-width: 100%; }
    .modal-box h3 { font-size: 1.3rem; }
}

/* =========================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ========================================================= */
@media (max-width: 480px) {
    .counter-grid { grid-template-columns: 1fr; }
    .counter-item { border-right: none !important; grid-column: auto !important; }
    .counter-item { border-bottom: 1px solid rgba(255,255,255,0.07); }
    .counter-item:last-child { border-bottom: none; }
    h2 { font-size: 1.6rem; }
    .hero-content h1 { font-size: 1.9rem; }
    .btn { padding: 12px 22px; font-size: 0.9rem; }
    .services-header .btn, .blog-header .btn { width: 100%; text-align: center; }
    .hero-logo-item { width: 70px; height: 28px; }
    .testimonial-card { padding: 24px 18px; }
    .blog-card-body { padding: 18px; }
    .footer-grid { gap: 24px; }
    .social-links { gap: 10px; }
    .social-link { width: 40px; height: 40px; }
}

/* =========================================================
   CURSOR & INTERACTION ANIMATIONS
   ========================================================= */

/* Nav link animated underline */
.nav-menu > a,
.nav-menu .dropdown a {
    position: relative;
    overflow: hidden;
}
.nav-menu > a::before,
.nav-menu .dropdown a::before {
    content: '';
    position: absolute;
    bottom: 4px; left: 14px; right: 14px;
    height: 1.5px;
    background: #49b208;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(.23,1,.32,1);
    border-radius: 2px;
}
.nav-menu > a:hover::before,
.nav-menu .dropdown a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Service card green accent line animation on hover */
.service-card {
    transition: border-color 0.3s ease, transform 0.35s cubic-bezier(.23,1,.32,1), box-shadow 0.35s ease;
}

/* Industry tag pop */
.industry-tag {
    transition: background 0.25s ease, border-color 0.25s ease,
                color 0.25s ease, transform 0.2s ease;
}
.industry-tag:hover { transform: scale(1.05); }

/* Blog & testimonial card lift */
.blog-card, .testimonial-card {
    transition: border-color 0.3s ease, transform 0.35s cubic-bezier(.23,1,.32,1), box-shadow 0.35s ease;
}
.blog-card:hover, .testimonial-card:hover {
    box-shadow: 0 12px 40px rgba(73, 178, 8, 0.08);
}

/* Social link spin on hover */
.social-link {
    transition: background 0.25s ease, color 0.25s ease, transform 0.3s cubic-bezier(.23,1,.32,1);
}
.social-link:hover { transform: rotate(8deg) scale(1.12); }

/* Button glow pulse on hover */
.btn-primary {
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.3s ease;
}
.btn-primary:hover {
    box-shadow: 0 0 20px rgba(73, 178, 8, 0.35), 0 4px 16px rgba(73, 178, 8, 0.2);
}

/* Section tag subtle glow */
.section-tag {
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.section-tag:hover {
    box-shadow: 0 0 12px rgba(73, 178, 8, 0.2);
}

/* Logo fade-in */
.site-logo img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.site-logo:hover img { transform: scale(1.04); }

/* Header scrolled state */
#site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    border-bottom-color: rgba(73, 178, 8, 0.2);
}

/* FAQ toggle spin */
.faq-toggle {
    transition: transform 0.3s cubic-bezier(.23,1,.32,1),
                background 0.2s ease, color 0.2s ease;
}

/* Counter number glow on hover */
.counter-item:hover .counter-number {
    text-shadow: 0 0 20px rgba(73, 178, 8, 0.4);
}

/* Service link arrow bounce */
.service-link {
    transition: gap 0.25s cubic-bezier(.23,1,.32,1), color 0.2s ease;
}

/* Hero image — floating wrapper animates, img itself does the hover scale */
.hero-image-wrap {
    animation: float 6s ease-in-out infinite;
    transition: filter 0.4s ease;
}
.hero-image-wrap img {
    transition: transform 0.4s cubic-bezier(.23,1,.32,1),
                box-shadow 0.4s ease !important;
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

/* hamburger X animation — see nav CSS block */

/* =========================================================
   CF7 FORM OVERRIDES
   ========================================================= */
/* =========================================================
   DS CF7 MATH CAPTCHA - Dark theme fix
   Exact class names from plugin HTML:
   .form-group.math-captcha > .dscf7-captcha-container >
     .dscf7-question-container > span.dscf7_lt (text question)
     .dscf7-answer-container > input (answer box)
   ========================================================= */

/* Kill the white background on the plugin's wrapper */
.form-group.math-captcha,
div.form-group.math-captcha,
.dscf7-captcha-container,
.dscf7-question-container,
.dscf7-answer-container {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Style the full captcha block as a dark card */
.form-group.math-captcha {
    background: rgba(10, 20, 10, 0.6) !important;
    border: 1px solid rgba(58, 181, 74, 0.2) !important;
    border-radius: 8px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
}

/* The question text "What is 4 + 6 ?" */
.dscf7_lt {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

/* Refresh icon image */
.dscf7_captcha_icon,
img.dscf7_captcha_icon {
    width: 20px !important;
    height: 20px !important;
    filter: invert(1) brightness(1.5) !important;
    opacity: 0.7 !important;
    cursor: pointer !important;
    vertical-align: middle !important;
}

/* Answer input */
input[name*="dscf7captcha"],
input[id*="dscf7captcha"] {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(58, 181, 74, 0.3) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
    width: auto !important;
    min-width: 120px !important;
    margin-top: 10px !important;
    display: block !important;
}
input[name*="dscf7captcha"]:focus,
input[id*="dscf7captcha"]:focus {
    outline: none !important;
    border-color: #49b208 !important;
    background: rgba(73, 178, 8, 0.08) !important;
}
input[name*="dscf7captcha"]::placeholder {
    color: rgba(255,255,255,0.3) !important;
}

/* Screen reader label */
label.screen-reader-text {
    position: absolute !important;
    clip: rect(0,0,0,0) !important;
}

/* General CF7 form container */
.wpcf7 { width: 100%; }
.wpcf7-form { width: 100%; }

/* CF7 validation messages */
.wpcf7-not-valid-tip {
    font-size: 0.78rem;
    color: #ff6b6b;
    margin-top: 4px;
    display: block;
}
.wpcf7-response-output {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
}
.wpcf7-mail-sent-ok {
    border: 1px solid rgba(58,181,74,0.3) !important;
    background: rgba(58,181,74,0.08) !important;
    color: var(--clr-green) !important;
}
.wpcf7-mail-sent-ng,
.wpcf7-validation-errors,
.wpcf7-spam-blocked {
    border: 1px solid rgba(255,107,107,0.3) !important;
    background: rgba(255,107,107,0.08) !important;
    color: #ff6b6b !important;
}

/* File upload field */
.wpcf7 input[type="file"] {
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(58,181,74,0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--clr-gray);
    width: 100%;
    cursor: pointer;
}

/* =========================================================
   IMAGE HOVER POP — SITEWIDE
   All images lift and scale on hover
   ========================================================= */

/* Universal image hover */
img,
.why-image img,
.growth-image img,
.industries-image img,
.mv-card img,
.blog-card-img img,
.testimonial-avatar,
.service-icon img,
.marketing-card img,
.contact-info-card img {
    transition: transform 0.4s cubic-bezier(.23,1,.32,1),
                box-shadow 0.4s ease !important;
}

.why-image:hover img,
.growth-image:hover img,
.industries-image:hover img {
    transform: scale(1.03) translateY(-4px) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4) !important;
}

/* Blog card image */
.blog-card:hover .blog-card-img img {
    transform: scale(1.08) !important;
}

/* Mission/Vision card image */
.mv-card:hover img {
    transform: scale(1.1) rotate(-2deg) !important;
}

/* Marketing & contact info card images */
.marketing-card:hover img,
.contact-info-card:hover img {
    transform: scale(1.12) translateY(-3px) !important;
}

/* Service icon */
.service-card:hover .service-icon img {
    transform: scale(1.15) rotate(5deg) !important;
}

/* Hero image hover — pause float, scale image */
.hero-image-wrap:hover {
    animation-play-state: paused !important;
    filter: drop-shadow(0 32px 40px rgba(0,0,0,0.4)) drop-shadow(0 0 30px rgba(73,178,8,0.15));
}
.hero-image-wrap:hover img {
    transform: scale(1.05) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(73,178,8,0.1) !important;
}

/* =========================================================
   SERVICE CARD HOVER — BOLD CTA
   ========================================================= */
.service-card .service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--clr-green);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    transition: gap 0.25s ease, font-size 0.25s ease,
                color 0.2s ease, letter-spacing 0.25s ease;
}

.service-card:hover .service-link {
    gap: 14px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #49b208;
}

/* Arrow bounces on service card hover */
.service-card:hover .service-link::after {
    content: '→';
    display: inline-block;
    animation: arrow-bounce 0.6s ease infinite alternate;
}

@keyframes arrow-bounce {
    0%  { transform: translateX(0); }
    100%{ transform: translateX(5px); }
}

/* Service card gets a full green glow + lift on hover */
.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 60px rgba(73,178,8,0.12),
                0 0 0 1px rgba(73,178,8,0.2);
    border-color: rgba(73,178,8,0.35);
}

/* Service card title pops */
.service-card h3 {
    transition: color 0.25s ease;
}
.service-card:hover h3 {
    color: #49b208;
}

/* =========================================================
   ADDITIONAL ANIMATIONS
   ========================================================= */

/* Testimonial card hover */
.testimonial-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 50px rgba(73,178,8,0.08);
}

/* Blog card title hover */
.blog-card h3 a {
    transition: color 0.2s ease;
}
.blog-card:hover h3 a { color: #49b208; }

/* Counter pulse on hover */
.counter-item {
    transition: background 0.3s ease;
    cursor: default;
}
.counter-item:hover {
    background: rgba(73,178,8,0.04);
}
.counter-item:hover .counter-number {
    animation: pulse-green 0.6s ease;
}
@keyframes pulse-green {
    0%,100% { text-shadow: 0 0 20px rgba(73,178,8,0.3); }
    50%      { text-shadow: 0 0 40px rgba(73,178,8,0.7); }
}

/* Section tag spin-in on page load */
@keyframes tag-in {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}
.section-tag {
    animation: tag-in 0.5s ease forwards;
}

/* Footer link underline sweep */
.footer-col ul li a {
    position: relative;
    display: inline-block;
}
.footer-col ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: #49b208;
    transition: width 0.3s ease;
}
.footer-col ul li a:hover::after { width: 100%; }

/* Industry tag hover lift */
.industry-tag {
    transition: background 0.25s ease, border-color 0.25s ease,
                color 0.25s ease, transform 0.2s cubic-bezier(.23,1,.32,1),
                box-shadow 0.25s ease;
}
.industry-tag:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 6px 20px rgba(73,178,8,0.15);
}

/* MVP card hover */
.mv-card {
    transition: border-color 0.3s ease,
                transform 0.35s cubic-bezier(.23,1,.32,1),
                box-shadow 0.35s ease;
}
.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(73,178,8,0.08);
}

/* Flow step hover */
.flow-step {
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.flow-step:hover {
    border-color: rgba(73,178,8,0.25);
    transform: translateY(-4px);
}
.flow-step:hover .flow-number {
    color: rgba(73,178,8,0.4);
    transition: color 0.3s ease;
}

/* Page banner gradient text shimmer */
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.page-banner h1 span,
.hero-content h1 span {
    background: linear-gradient(90deg, #49b208, #7fff00, #49b208);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    font-style: italic;
}

/* Scroll reveal - stagger siblings */
.services-grid .service-card:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.08s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.16s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.24s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.32s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.40s; }

.testimonials-grid .testimonial-card:nth-child(1) { transition-delay: 0s; }
.testimonials-grid .testimonial-card:nth-child(2) { transition-delay: 0.1s; }
.testimonials-grid .testimonial-card:nth-child(3) { transition-delay: 0.2s; }

.blog-posts-grid .blog-card:nth-child(1) { transition-delay: 0s; }
.blog-posts-grid .blog-card:nth-child(2) { transition-delay: 0.08s; }
.blog-posts-grid .blog-card:nth-child(3) { transition-delay: 0.16s; }

/* Green glow behind section headers on scroll-in */
.section-header.visible h2 {
    animation: heading-in 0.6s cubic-bezier(.23,1,.32,1) forwards;
}
@keyframes heading-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Floating dots background decoration */
@keyframes float-dot {
    0%,100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50%      { transform: translateY(-20px) scale(1.2); opacity: 0.6; }
}

/* Ensure arrow-bounce is globally available */
@keyframes arrow-bounce {
    0%   { transform: translateX(0); }
    100% { transform: translateX(6px); }
}



/* desktop dropdown - see main nav CSS */

/* ── Tablet responsiveness extras ── */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 60px 0 40px; }
    .hero-image-wrap { order: -1; max-width: 480px; margin: 0 auto; }
    .hero-content { text-align: center; }
    .hero-content p { margin: 0 auto 28px; }
    .hero-logo-strip { justify-content: center; }
    .hero-logo-label { text-align: center; }
}

/* =========================================================
   STACKING CONTEXT FIX
   Keep all page sections below the mobile nav overlay.
   Nav-menu is moved to <body> by JS and given z-index:99999
   ========================================================= */
/* Sections stay in normal stacking flow on desktop */

/* Body-level nav (mobile only - moved there by JS) */
@media (max-width: 768px) {
    body > #nav-menu {
        position: fixed !important;
        top: 0 !important; left: 0 !important;
        right: 0 !important; bottom: 0 !important;
        z-index: 99999 !important;
        display: none;
        background: #060c06 !important;
    }
    body > #nav-menu.open {
        display: flex !important;
    }
}

/* TABLET (769px - 1024px): desktop nav, no hamburger */
@media (min-width: 769px) {
    .hamburger { display: none !important; }
    .nav-menu {
        display: flex !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        flex-direction: row !important;
        padding: 0 !important;
        overflow: visible !important;
        z-index: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu a { font-size: 0.82rem; padding: 6px 10px; }
    .nav-cta { padding: 10px 16px; font-size: 0.82rem; margin-left: 8px; }
    .site-logo img { height: 36px; }
}

/* =========================================================
   SERVICE PAGE HERO IMAGE — Full-width cinematic treatment
   ========================================================= */
.service-hero-img-wrap {
    width: 100%;
    max-width: 900px;
    margin: 48px auto 0;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.service-hero-img-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 20px;
    border: 1px solid rgba(58,181,74,0.2);
    transition: transform 0.5s cubic-bezier(.23,1,.32,1);
}

.service-hero-img-wrap:hover img {
    transform: scale(1.03);
}

/* Green gradient overlay at bottom for text contrast */
.service-hero-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(10, 20, 10, 0.5) 100%
    );
    border-radius: 20px;
    pointer-events: none;
}

/* Mobile: shorter image */
@media (max-width: 768px) {
    .service-hero-img-wrap img { height: 220px; }
    .service-hero-img-wrap { margin-top: 32px; }
}

/* Tablet */
@media (max-width: 1024px) {
    .service-hero-img-wrap img { height: 320px; }
}

/* =========================================================
   MODAL MOBILE IMPROVEMENTS
   ========================================================= */
@media (max-width: 768px) {
    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal-box {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
        overflow-y: auto;
        margin: 0;
        padding: 24px 20px 40px;
        animation: slide-up 0.3s ease;
    }
    @keyframes slide-up {
        from { transform: translateY(100%); opacity: 0; }
        to   { transform: translateY(0);    opacity: 1; }
    }
    .modal-close {
        top: 14px; right: 14px;
        width: 40px; height: 40px;
        font-size: 1.1rem;
        background: rgba(255,255,255,0.15) !important;
        border: 1.5px solid rgba(255,255,255,0.3) !important;
        color: #fff !important;
    }
}

/* =========================================================
   HERO SECTION SPACING — mobile gap between CTA and logos
   ========================================================= */
@media (max-width: 768px) {
    .hero-content .btn-primary { margin-bottom: 0; }
    .hero-logo-label { margin-top: 48px !important; }
}
