/*
Theme Name: Rankpeak DigiFlow Light
Theme URI: https://rankpeak.online
Author: Antigravity Elite
Author URI: https://rankpeak.online
Description: A modern, high-performance, Elementor-ready light theme for digital marketing agencies, based on the DigiFlow design layout, utilizing Teko and Outfit typography with custom tickers and CSS micro-animations.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-colors, custom-menu, one-column, two-columns, grid-layout, agency, portfolio, translation-ready
Text Domain: rankpeak-digiflow
*/

/* ==========================================================================
   1. Design Tokens & CSS Variables (NP Digital Vibrant Theme)
   ========================================================================== */
:root {
    --color-bg-pure: #ffffff;
    --color-bg-soft: #f7f7f9; /* Soft gray background like npdigital.com */
    --color-bg-cream: #faf9f6; /* Soft cream shade */
    --color-text-dark: #1a1a1a; /* Deep Charcoal for headings */
    --color-text-muted: #4f4f4f; /* Balanced gray body copy */
    
    /* Neil Patel Signature Orange Accents */
    --color-primary: #f15a24; /* Vibrant Orange */
    --color-primary-hover: #d94e1f;
    --color-secondary: #0f172a; /* Deep Slate/Navy */
    
    /* Accessibility Compliant Text Color (WCAG AA 4.5:1 ratio contrast on white) */
    --color-primary-accessible: #d84b16; /* Deepened Orange for small text links */
    
    --color-border: rgba(15, 23, 42, 0.08);
    --color-border-focus: #f15a24;
    
    --font-heading: 'Teko', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --grad-primary: linear-gradient(135deg, var(--color-primary) 0%, #ff7b47 100%);
}

/* ==========================================================================
   2. Base Layout & Reset
   ========================================================================== */
body {
    background-color: var(--color-bg-pure);
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-dark);
    font-family: var(--font-heading);
    text-transform: uppercase;
    margin-top: 0;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
}

h2 {
    font-size: 2.6rem;
    line-height: 1.2;
    font-weight: 600;
}

h3 {
    font-size: 1.8rem;
    line-height: 1.3;
    font-weight: 500;
}

a {
    color: var(--color-primary-accessible); /* Accessible link color */
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    content-visibility: auto; /* Browser performance render */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   3. Theme Utilities (DigiFlow Visuals)
   ========================================================================== */

/* Text Outline Effect */
.text-outlined {
    -webkit-text-stroke: 1.5px var(--color-text-dark);
    color: transparent !important;
}
.hero-section .text-outlined {
    -webkit-text-stroke: 1.5px var(--color-bg-pure);
}

/* Infinite Marquee Text Ticker */
.marquee-container {
    background: var(--color-text-dark);
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-bg-pure);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-content span {
    padding: 0 40px;
}

.marquee-content span.highlight {
    color: var(--color-primary);
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* DigiFlow Minimalist Cards */
.digiflow-card {
    background-color: var(--color-bg-pure);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 35px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.digiflow-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 25px 50px -15px rgba(241, 90, 36, 0.15);
}

.digiflow-card .card-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: rgba(241, 90, 36, 0.08);
    line-height: 1;
    position: absolute;
    top: 20px;
    right: 30px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.digiflow-card:hover .card-number {
    color: var(--color-primary);
}

/* Custom Buttons with Interactive Arrow */
.btn-digiflow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-primary);
    color: var(--color-bg-pure) !important;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 4px; /* Crisp square borders matching NP Digital */
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(241, 90, 36, 0.2);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-digiflow:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(241, 90, 36, 0.4);
    background: var(--color-primary-hover);
}

.btn-digiflow .arrow-icon {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-digiflow:hover .arrow-icon {
    transform: translateX(5px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-text-dark);
    color: var(--color-text-dark) !important;
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--color-text-dark);
    color: var(--color-bg-pure) !important;
}

.hero-section .btn-outline {
    border-color: var(--color-bg-pure);
    color: var(--color-bg-pure) !important;
}
.hero-section .btn-outline:hover {
    background: var(--color-bg-pure);
    color: var(--color-text-dark) !important;
}

/* ==========================================================================
   4. Hostinger Pricing Design
   ========================================================================== */
.pricing-section {
    padding: 80px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.price-card {
    background-color: var(--color-bg-pure);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 45px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.price-card.featured {
    border: 2px solid var(--color-primary);
    box-shadow: 0 20px 40px -10px rgba(241, 90, 36, 0.15);
}

.price-card.featured .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-primary);
    color: var(--color-bg-pure);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-card h3 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.price-card .desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 25px;
    font-family: var(--font-body);
}

.price-card .deliverables-title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    flex-grow: 1;
}

.price-card ul li {
    font-size: 14px;
    padding-left: 24px;
    margin-bottom: 12px;
    position: relative;
    font-family: var(--font-body);
}

.price-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.price-card .btn-price {
    width: 100%;
}

/* ==========================================================================
   5. Site Layout, Header & Hamburger Drawer Menu
   ========================================================================== */
.site-header {
    background-color: var(--color-bg-pure);
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-text-dark);
    letter-spacing: 1px;
}

.site-logo span {
    color: var(--color-primary);
}

.mobile-navigation-cta {
    display: none !important;
}

/* Navigation System */
.site-nav {
    display: flex;
    align-items: center;
}

.site-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
    align-items: center;
}

.site-nav ul li {
    position: relative;
    padding: 10px 0;
}

.site-nav ul li a {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.site-nav ul li a:hover,
.site-nav ul li.current-menu-item > a {
    color: var(--color-primary);
}

/* Indicator arrow for dropdowns */
.site-nav ul li.menu-item-has-children > a::after {
    content: "\f107";
    font-family: "LineAwesome";
    margin-left: 5px;
    font-size: 11px;
    vertical-align: middle;
}

/* Dropdown Menu styling */
.site-nav ul li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--color-bg-pure);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 15px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 99;
}

.site-nav ul li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.site-nav ul li ul.sub-menu li {
    padding: 0;
    width: 100%;
}

.site-nav ul li ul.sub-menu li a {
    display: block;
    padding: 10px 25px;
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 400;
    transition: all 0.3s ease;
}

.site-nav ul li ul.sub-menu li a:hover {
    background-color: var(--color-bg-soft);
    color: var(--color-primary);
    padding-left: 30px;
}

/* Mobile Hamburger Menu Toggle styling */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.menu-toggle .hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-dark);
    transition: all 0.3s ease;
}

/* Active states (transforms hamburger into Close mark) */
.menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   6. Custom Interactive Components (Calculators, Accordions)
   ========================================================================== */

/* ROI / Performance Calculator Container */
.calculator-box {
    background-color: var(--color-bg-pure);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.05);
}

.calc-slider-group {
    margin-bottom: 25px;
}

.calc-slider-group label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.calc-slider-group label span.val {
    color: var(--color-primary);
    font-weight: bold;
}

.calc-slider {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(241, 90, 36, 0.4);
    transition: transform 0.1s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-results {
    background-color: var(--color-bg-soft);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin-top: 30px;
    border: 1px dashed var(--color-primary);
}

.calc-results h4 {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 5px;
    font-family: var(--font-body);
}

.calc-results .result-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-text-dark);
    line-height: 1;
    font-weight: bold;
}

/* FAQ Accordion Layout */
.faq-accordion {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 15px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 500;
    color: var(--color-text-dark);
}

.faq-question::after {
    content: "\f0fe";
    font-family: "LineAwesome";
    color: var(--color-primary);
    font-size: 16px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: "\f068";
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 10px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* ==========================================================================
   7. Site Sections, Hero, & Proof blocks
   ========================================================================== */
.hero-section {
    background: radial-gradient(circle at top right, rgba(241, 90, 36, 0.15) 0%, rgba(15, 23, 42, 0.05) 50%, var(--color-text-dark) 100%), var(--color-text-dark);
    color: var(--color-bg-pure);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-section h1, 
.hero-section p {
    color: var(--color-bg-pure);
}

.hero-section .subheading {
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 25px 0 35px 0;
    max-width: 800px;
    color: #cbd5e1;
}

.hero-section .hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.hero-highlight-item {
    font-size: 14px;
    color: #94a3b8;
}

.hero-highlight-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-bg-pure);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

/* Radial Glow Backgrounds */
.glow-bg-radial {
    background: radial-gradient(circle, rgba(241, 90, 36, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
}

.section-padding {
    padding: 100px 0;
}

.section-title-wrap {
    margin-bottom: 50px;
    max-width: 700px;
}

.section-subtitle {
    display: inline-block;
    background-color: #ffebe3;
    color: var(--color-primary-accessible); /* Accessible contrast text */
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Grid Layouts */
.services-grid, .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Proof Block Layout */
.proof-box {
    background: var(--color-bg-pure);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.proof-item .num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--color-primary);
    line-height: 1;
}

.proof-item .lbl {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-top: 5px;
    text-transform: uppercase;
}

/* ==========================================================================
   8. Blog Layout & Sidebar
   ========================================================================== */
.blog-layout {
    display: grid;
    grid-template-columns: 2.2fr 0.8fr;
    gap: 50px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    background-color: var(--color-bg-pure);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 15px 30px -10px rgba(241, 90, 36, 0.12);
}

.post-card-content {
    padding: 30px;
}

.post-meta {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.post-meta span a {
    color: var(--color-primary-accessible);
    font-weight: 500;
}

.post-card h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.post-card h3 a {
    color: var(--color-text-dark);
}

.post-card h3 a:hover {
    color: var(--color-primary);
}

.sidebar {
    position: sticky;
    top: 100px;
}

.widget {
    background-color: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-text-dark);
    padding-bottom: 10px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 12px;
}

.widget ul li a {
    color: var(--color-text-muted);
    font-weight: 400;
}

.widget ul li a:hover {
    color: var(--color-primary);
}

/* Call to Action Box in Sidebar */
.cta-widget {
    background-color: var(--color-text-dark);
    color: var(--color-bg-pure);
    border-color: var(--color-text-dark);
    text-align: center;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.cta-widget h3 {
    color: var(--color-bg-pure);
    margin-bottom: 15px;
}

.cta-widget p {
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 25px;
}

/* ==========================================================================
   9. Custom Widgetized Footer Layout
   ========================================================================== */
.footer-site {
    background-color: var(--color-text-dark);
    color: #94a3b8;
    padding: 80px 0 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-body);
}

.footer-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget-title {
    color: var(--color-bg-pure);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-widget p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #94a3b8;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
}

.footer-bottom a {
    color: var(--color-bg-pure);
}

/* ==========================================================================
   10. Final CTA Section
   ========================================================================== */
.final-cta-section {
    background: radial-gradient(circle, rgba(241, 90, 36, 0.3) 0%, rgba(15, 23, 42, 0.1) 50%, var(--color-primary) 100%), var(--color-primary);
    color: var(--color-bg-pure);
    text-align: center;
    padding: 100px 0;
}

.final-cta-section h2, .final-cta-section p {
    color: var(--color-bg-pure);
}

.final-cta-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 20px auto 35px auto;
}

.final-cta-section .btn-digiflow {
    background: var(--color-text-dark);
}

.final-cta-section .btn-digiflow:hover {
    background: #000;
}

/* ==========================================================================
   11. Contact Page Grid & Form Controls
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-card {
    background-color: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-detail-item i {
    font-size: 24px;
    color: var(--color-primary);
    margin-top: 5px;
}

.contact-detail-item h4 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: none;
    color: var(--color-text-dark);
}

.contact-detail-item p {
    margin: 0;
    font-size: 15px;
}

.contact-form-box {
    background-color: var(--color-bg-pure);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.03);
}

.form-group-item {
    margin-bottom: 20px;
}

.form-group-item label {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.form-control-input {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-control-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.12);
}

/* ==========================================================================
   12. First-Visit / Contextual Lead Inquiry Popup Styles
   ========================================================================== */
.rankpeak-lead-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 9999;
}

.rankpeak-lead-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.rankpeak-lead-popup-box {
    background-color: var(--color-bg-pure);
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
}

.rankpeak-lead-popup-overlay.active .rankpeak-lead-popup-box {
    transform: scale(1) translateY(0);
}

.rankpeak-lead-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--color-text-muted);
    cursor: pointer;
    background: transparent;
    border: none;
    line-height: 1;
}

.rankpeak-lead-popup-close:hover {
    color: var(--color-primary);
}

.rankpeak-lead-popup-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: var(--color-text-dark);
}

.rankpeak-lead-popup-desc {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

/* ==========================================================================
   13. Fully Responsive Media Queries (Mobile & Tablet Optimization)
   ========================================================================== */
@media (max-width: 991px) {
    body {
        font-size: 15px;
    }
    
    h1 { font-size: 2.6rem; }
    h2 { font-size: 2.0rem; }
    h3 { font-size: 1.5rem; }
    
    .section-padding {
        padding: 60px 0;
    }
    
    /* Services, feature grids, contact details stack and center */
    .services-grid, .features-grid, .pricing-grid, .footer-grid-container, .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-text-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
        width: 100%;
    }
    
    .hero-highlights {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        text-align: center;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-top: 40px;
    }
    
    /* Header Layout shifts to mobile hamburger drawer */
    .menu-toggle {
        display: flex; /* Display hamburger */
    }
    
    .site-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Hide drawer offscreen */
        width: 280px;
        height: 100vh;
        background-color: var(--color-bg-pure);
        box-shadow: -10px 0 30px rgba(15, 23, 42, 0.1);
        z-index: 100;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        padding: 80px 30px 40px 30px;
        box-sizing: border-box;
        overflow-y: auto;
    }
    
    .site-nav.active {
        right: 0; /* Slide drawer in */
    }
    
    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }
    
    .site-nav ul li {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
        padding: 10px 0;
    }
    
    .site-nav ul li a {
        display: block;
        font-size: 15px;
        width: 100%;
        padding: 5px 0;
    }
    
    /* Hide the parent "Services" item link itself on mobile drawer */
    .site-nav ul li.menu-item-has-children > a {
        display: none !important;
    }
    
    .site-nav ul li.menu-item-has-children {
        border-bottom: none !important;
        padding: 0 !important;
    }
    
    /* Display the sub-menu items directly flat and inline inside mobile drawer */
    .site-nav ul li.menu-item-has-children ul.sub-menu {
        display: block !important;
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        transform: none;
        background: transparent;
    }
    
    .site-nav ul li.menu-item-has-children ul.sub-menu li {
        width: 100%;
        border-bottom: 1px solid var(--color-border) !important;
        padding: 10px 0 !important;
    }
    
    .site-nav ul li.menu-item-has-children ul.sub-menu li a {
        display: block !important;
        padding: 5px 0 !important;
        font-size: 15px !important;
        color: var(--color-text-dark) !important;
        font-weight: 500 !important;
    }
    
    .site-nav ul li:hover > ul.sub-menu {
        display: none; /* Disable hover triggers on touch screens */
    }
    
    .header-cta-btn {
        display: none !important; /* Hide CTA button from the main header bar on mobile */
    }
    
    .mobile-navigation-cta {
        display: block !important; /* Show CTA button inside the mobile drawer */
        margin-top: 25px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr; /* Stack blog cards as 1 column on mobile */
        gap: 20px;
    }
    
    .post-card {
        margin-bottom: 25px;
    }
    
    .post-card-content {
        padding: 20px; /* Reduce card padding to avoid content squishing */
    }
    
    .post-card h3 {
        font-size: 1.5rem; /* Resize post titles so they don't overflow */
        line-height: 1.25;
    }
    
    .proof-box {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .contact-info-card, .contact-form-box {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .btn-digiflow {
        width: 100%;
        box-sizing: border-box;
    }
    
    .calculator-box {
        padding: 25px 15px;
        margin: 20px 0;
    }
    
    .calc-results .result-value {
        font-size: 2.2rem;
    }
    
    .rankpeak-lead-popup-box {
        padding: 30px 20px;
        margin: 15px;
    }
}

/* ==========================================================================
   14. Accessibility Helpers (Screen Reader Class)
   ========================================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

