/*
Theme Name: ResumeGrow
Theme URI: https://resumegrow.com
Author: ResumeGrow Team
Author URI: https://resumegrow.com
Description: Premium career services WordPress theme — fully responsive, ATS-optimized, with single-circle ATS report, detailed checklist, and a built-in Portfolio module.
Version: 8.5.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: resumegrow
Tags: professional, career, resume, services, portfolio, one-page, blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   BRAND SYSTEM & CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --primary: #4B83FF;
    --primary-dark: #2563eb;
    --primary-light: #93b5ff;
    --primary-glow: rgba(75, 131, 255, 0.25);
    --primary-faint: rgba(75, 131, 255, 0.08);

    --bg-white: #ffffff;
    --bg-section: #F5F8FF;
    --bg-dark: #0f172a;

    --text-heading: #1A1A1A;
    --text-body: #5F6B7A;
    --text-muted: #94a3b8;
    --text-white: #ffffff;

    --border-light: #e8edf5;
    --border-card: #e2e8f4;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(75, 131, 255, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(75, 131, 255, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 16px 40px rgba(75, 131, 255, 0.20), 0 8px 20px rgba(0, 0, 0, 0.10);
    --shadow-btn: 0 4px 20px rgba(75, 131, 255, 0.40);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);

    --font-heading: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --container-max: 1200px;
    --container-wide: 1400px;
    --header-height: 72px;
}

/* ============================================================
   CSS RESET & BASE STYLES
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Push content down so it doesn't hide under the fixed header */
    padding-top: var(--header-height);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.25;
    letter-spacing: -0.025em;
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
    font-size: clamp(1.625rem, 3.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    color: var(--text-body);
    line-height: 1.75;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-pad {
    padding: 6rem 0;
}

.section-pad-sm {
    padding: 4rem 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Section Labels */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: var(--primary-faint);
    border: 1px solid rgba(75, 131, 255, 0.2);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-body);
    max-width: 640px;
    margin: 0 auto 3rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8125rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(75, 131, 255, 0.50);
    color: var(--text-white);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn);
}

.btn-white {
    background: var(--bg-white);
    color: var(--primary);
    border-color: var(--bg-white);
}

.btn-white:hover {
    background: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-card);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(75, 131, 255, 0.2);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-faint);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.card:hover .card-icon {
    background: var(--primary);
    color: white;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
    height: var(--header-height);
    min-height: var(--header-height);
    max-height: var(--header-height);
    overflow: visible;
    transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: box-shadow;
}

.site-header.scrolled {
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.99);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Logo */
.site-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo-text {
    color: var(--text-heading);
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* Desktop Nav */
#site-nav {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    flex: 1;
    justify-content: flex-end;
}

.nav-link {
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-body);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-faint);
}

.nav-cta {
    margin-left: 0.625rem;
}

/* Services Dropdown */
.nav-dropdown-wrap {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    background: var(--bg-white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    width: 520px;
    max-width: calc(100vw - 2rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    pointer-events: none;
    z-index: 200;
    max-height: none;
    overflow: visible;
}

.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap:focus-within .nav-dropdown,
.nav-dropdown-wrap.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
    transition: var(--transition);
    white-space: nowrap;
}

.dropdown-item:hover {
    background: var(--primary-faint);
    color: var(--primary);
}

.dropdown-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: none;
    background: none;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--text-heading);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ===============================
   MOBILE NAV
================================ */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 1.25rem 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    z-index: 999;

    /* FIX START */
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;   /* 🔥 prevents hidden click */
    visibility: hidden;     /* 🔥 prevents interaction */
    /* FIX END */

    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* When visible */
.mobile-nav:not([hidden]) {
    opacity: 1;
    transform: translateY(0);

    /* FIX */
    pointer-events: auto;
    visibility: visible;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-heading);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    margin-bottom: 0.25rem;
    transition: var(--transition);
    background: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.mobile-nav-link:hover {
    background: var(--primary-faint);
    color: var(--primary);
}

.group-arrow {
    transition: transform 0.25s ease;
}

.mobile-group-toggle[aria-expanded="true"] .group-arrow {
    transform: rotate(180deg);
}

.mobile-sub-menu {
    list-style: none;
    margin: 0.25rem 0 0.5rem 0.5rem;
    padding: 0;
    display: none;
}

.mobile-sub-menu.open {
    display: block;
}

.mobile-sub-menu > li {
    margin: 0;
    padding: 0;
}

.mobile-sub-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    color: var(--text-body);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.mobile-sub-link:hover {
    background: var(--primary-faint);
    color: var(--primary);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 50%, #f5f8ff 100%);
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(75, 131, 255, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(75, 131, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-faint);
    border: 1px solid rgba(75, 131, 255, 0.25);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero h1 {
    margin-bottom: 1.25rem;
}

.hero h1 span {
    color: var(--primary);
}

.hero-text {
    font-size: 1.125rem;
    color: var(--text-body);
    margin-bottom: 2.25rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.hero-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-heading);
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-img-wrap img {
    width: 100%;
    border-radius: var(--radius-xl);
}

.hero-float-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-md);
    padding: 0.875rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-heading);
}

.hero-float-1 {
    bottom: 1.5rem;
    left: -1.5rem;
}

.hero-float-2 {
    top: 1.5rem;
    right: -1.5rem;
}

.float-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-faint);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
    background: var(--bg-white);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.about-features {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.about-feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--primary-faint);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.about-feature h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
}

.about-feature p {
    font-size: 0.875rem;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section {
    background: var(--bg-section);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover .card-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.service-card h4 {
    margin-bottom: 0.625rem;
    font-size: 1.0625rem;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-card .learn-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: var(--transition);
}

.service-card:hover .learn-more {
    gap: 0.625rem;
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing-section {
    background: var(--bg-white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    border: 2px solid var(--border-card);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(75, 131, 255, 0.25);
}

.pricing-card.featured {
    background: linear-gradient(145deg, var(--primary) 0%, #2563eb 100%);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.04);
    color: white;
}

.pricing-card.featured:hover {
    transform: scale(1.04) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #fbbf24;
    color: #1a1a1a;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pricing-plan {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.pricing-card.featured .pricing-plan {
    color: rgba(255, 255, 255, 0.85);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pricing-card.featured .pricing-price {
    color: white;
}

.pricing-price sup {
    font-size: 1.4rem;
    vertical-align: super;
}

.pricing-per {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.pricing-card.featured .pricing-per {
    color: rgba(255, 255, 255, 0.7);
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}

.pricing-feature:last-child {
    border-bottom: none;
}

.pricing-card.featured .pricing-feature {
    border-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.pricing-check {
    color: var(--primary);
    font-weight: bold;
    flex-shrink: 0;
}

.pricing-card.featured .pricing-check {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.process-section {
    background: var(--bg-section);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0.3;
}

.process-card {
    text-align: center;
}

.process-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(75, 131, 255, 0.35);
    position: relative;
    z-index: 1;
}

.process-card h4 {
    margin-bottom: 0.75rem;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
    background: var(--bg-white);
}

.faq-list {
    max-width: 780px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    background: var(--bg-white);
}

.faq-item.open {
    border-color: rgba(75, 131, 255, 0.35);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-heading);
    font-size: 1rem;
    line-height: 1.5;
    user-select: none;
    text-align: left;
    background: none;
    border: none;
    font-family: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}

.faq-question:hover {
    background: var(--primary-faint);
    color: var(--primary);
}

.faq-item.open .faq-question {
    color: var(--primary);
    background: var(--primary-faint);
}

.faq-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: var(--primary-faint);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.25s ease, color 0.25s ease;
    font-weight: 300;
}

.faq-item.open .faq-icon {
    background: var(--primary);
    color: white;
    transform: rotate(45deg);
}

/* Smooth height animation using CSS grid trick */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-answer-inner p {
    padding: 0.25rem 1.5rem 1.375rem;
    color: var(--text-body);
    line-height: 1.75;
    font-size: 0.9375rem;
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials-section {
    background: var(--bg-section);
    overflow: hidden;
}

.testimonial-slider {
    margin-top: 3rem;
    position: relative;
}

.testimonial-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-card);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.9375rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-name {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-heading);
}

.author-role {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 50%, #1d4ed8 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-inner {
    position: relative;
    text-align: center;
    color: white;
}

.cta-inner h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding-top: 4rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-light);
}

.footer-brand .site-logo {
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 38px;
    height: 38px;
    background: var(--primary-faint);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-col h5 {
    font-size: 0.9375rem;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--text-body);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.footer-contact-icon {
    color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact-item p {
    font-size: 0.875rem;
}

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

/* ============================================================
   BLOG / POSTS
   ============================================================ */
.blog-section {
    background: var(--bg-section);
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-card);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-thumb {
    transform: scale(1.03);
}

.blog-thumb-wrap {
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--bg-section);
}

.blog-body {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    background: var(--primary-faint);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-heading);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}

/* Blog Detail / Single Post */
.blog-header {
    background: var(--bg-section);
    padding: 4rem 0 3rem;
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
}

.blog-header h1 {
    max-width: 800px;
    margin-bottom: 1.25rem;
}

.blog-header-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.blog-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    margin: 2.5rem 0;
    box-shadow: var(--shadow-lg);
}

.blog-content-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    margin-bottom: 4rem;
}

.blog-content {
    max-width: none;
}

.blog-content h2,
.blog-content h3 {
    margin: 2rem 0 1rem;
}

.blog-content p {
    margin-bottom: 1.25rem;
}

.blog-content ul,
.blog-content ol {
    margin: 1rem 0 1.25rem 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.blog-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    align-self: start;
}

.sidebar-widget {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-card);
    margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.related-posts {
    padding: 4rem 0;
    background: var(--bg-section);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
    background: var(--bg-section);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-form-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-card);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8125rem 1.125rem;
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--text-heading);
    background: var(--bg-white);
    transition: var(--transition);
    outline: none;
    resize: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.contact-info-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-card);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--primary-faint);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-item h5 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 0.9rem;
}

.map-section {
    height: 400px;
    background: var(--bg-section);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: var(--shadow-md);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-xl);
}

/* ============================================================
   SERVICE / INNER PAGE HERO
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--bg-section) 0%, #e8efff 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(75, 131, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero h1 {
    margin-bottom: 1.25rem;
}

.page-hero-text {
    font-size: 1.125rem;
    max-width: 640px;
}

.page-hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

/* ============================================================
   SUBCATEGORY CARDS
   ============================================================ */
.subcategory-section {
    background: var(--bg-section);
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.subcategory-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.subcategory-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(75, 131, 255, 0.2);
}

.subcategory-card h4 {
    margin-bottom: 0.875rem;
    font-size: 1.125rem;
}

.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.check-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ============================================================
   BENEFITS GRID
   ============================================================ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-card);
    transition: var(--transition);
}

.benefit-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* ============================================================
   PORTFOLIO SHOWCASE
   ============================================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-card);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.portfolio-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.portfolio-item-body {
    padding: 1.5rem;
}

.portfolio-tag {
    display: inline-block;
    background: var(--primary-faint);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.5rem;
}

/* ============================================================
   GRAPHIC GALLERY
   ============================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    background: var(--bg-section);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(27, 40, 75, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

/* ============================================================
   SEO GROWTH CHART
   ============================================================ */
.seo-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.seo-stat-card {
    text-align: center;
    background: var(--bg-white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-card);
}

.seo-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.375rem;
}

.seo-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.seo-strategy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.strategy-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-card);
    align-items: flex-start;
    transition: var(--transition);
}

.strategy-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.strategy-step {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="slide-left"] {
    transform: translateX(-24px);
}

[data-animate="slide-right"] {
    transform: translateX(24px);
}

[data-animate="slide-left"].animated,
[data-animate="slide-right"].animated {
    transform: translateX(0);
}

[data-delay="100"] {
    transition-delay: 0.1s;
}

[data-delay="200"] {
    transition-delay: 0.2s;
}

[data-delay="300"] {
    transition-delay: 0.3s;
}

[data-delay="400"] {
    transition-delay: 0.4s;
}

[data-delay="500"] {
    transition-delay: 0.5s;
}

[data-delay="600"] {
    transition-delay: 0.6s;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
    background: var(--bg-section);
}

.newsletter-box {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-box h2 {
    color: white;
    margin-bottom: 0.875rem;
}

.newsletter-box p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.875rem;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    outline: none;
}

/* ============================================================
   RESPONSIVE – TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .pricing-card.featured {
        transform: scale(1.02);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero-inner {
        gap: 2.5rem;
    }

    .about-inner {
        gap: 3rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   RESPONSIVE – MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .section-pad {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* Header – hide desktop nav and show mobile controls (handled at 1024px below for laptop fix) */

    /* Hero */
    .hero {
        padding: 4rem 0 3.5rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-visual {
        order: -1;
    }

    .hero-float-1,
    .hero-float-2 {
        display: none;
    }

    .hero-stats {
        gap: 1.25rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* About */
    .about-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    /* Process */
    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-grid::before {
        display: none;
    }

    /* Testimonials */
    .testimonial-track {
        grid-template-columns: 1fr;
    }

    /* Blog */
    .blogs-grid {
        grid-template-columns: 1fr;
    }

    .blog-content-wrap {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* SEO */
    .seo-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seo-strategy-grid {
        grid-template-columns: 1fr;
    }

    /* Benefits */
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Subcategory */
    .subcategory-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .page-hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    /* CTA */
    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-box {
        padding: 2.5rem 1.5rem;
    }
}

/* ============================================================
   WP CORE STYLES
   ============================================================ */
.wp-block-image {
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.wp-block-quote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    background: var(--bg-section);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 1.5rem 0;
    font-style: italic;
}

.wp-block-code {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: 0.875rem;
}

.aligncenter {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 9999;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--radius-md) 0;
}

.skip-link:focus {
    top: 0;
}


/* ============================================================
   ATS SCORE CHECKER SECTION  — MOBILE-FIRST, ANY WIDTH
   ============================================================ */

/* Section wrapper */
.ats-section {
    background: var(--bg-section);
    position: relative;
    /* NO overflow:hidden — it clips content on mobile */
}

.ats-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(75, 131, 255, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Custom container — never exceeds viewport, always padded */
.ats-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Section header — full width, centered, above columns */
.ats-header {
    text-align: center;
    margin-bottom: 2.5rem;
    width: 100%;
    box-sizing: border-box;
}

.ats-intro {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.7;
    max-width: 640px;
    margin: 0.5rem auto 0;
}

/* Inner — MOBILE FIRST: single column always, row only on large screens */
.ats-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.ats-left,
.ats-right {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* ── Form ── */
.ats-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.ats-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.ats-form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ats-optional-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-section);
    border-radius: var(--radius-full);
    padding: 0.125rem 0.5rem;
}

/* Upload zone */
.ats-upload-zone {
    position: relative;
    border: 2px dashed var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1rem;
    text-align: center;
    background: white;
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.ats-upload-zone:hover,
.ats-upload-zone.drag-over {
    border-color: var(--primary);
    background: var(--primary-faint);
    box-shadow: 0 0 0 4px rgba(75, 131, 255, 0.08);
}

.ats-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.ats-upload-icon {
    font-size: 2rem;
    margin-bottom: 0.625rem;
    display: block;
}

.ats-upload-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ats-upload-text strong {
    font-size: 0.9375rem;
    color: var(--text-heading);
    font-weight: 600;
}

.ats-upload-text span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.ats-upload-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.ats-file-selected {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.625rem;
    padding: 0.4rem 0.875rem;
    background: var(--primary-faint);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    position: relative;
    z-index: 1;
    word-break: break-all;
}

/* Inputs */
.ats-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-card);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text-heading);
    background: white;
    transition: var(--transition);
    outline: none;
    box-sizing: border-box;
}

.ats-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(75, 131, 255, 0.12);
}

.ats-input::placeholder { color: var(--text-muted); }

/* Submit button */
.ats-submit-btn {
    width: 100%;
    font-size: 1rem;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.ats-btn-label,
.ats-btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

/* Spinner */
.ats-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: ats-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes ats-spin { to { transform: rotate(360deg); } }

.ats-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
}

/* ── Right Column: Results Panel ── */
.ats-right {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    position: static !important; /* never sticky on mobile */
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Placeholder */
.ats-placeholder {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 0;
}

.ats-placeholder-ring svg {
    width: clamp(80px, 40vw, 160px);
    height: clamp(80px, 40vw, 160px);
    display: block;
    margin: 0 auto;
}

.ats-placeholder-text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.ats-placeholder-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
}

.ats-metric-pill {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--bg-section);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-full);
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-body);
    font-weight: 500;
    white-space: nowrap;
}

/* Score display */
.ats-score-display {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-sizing: border-box;
}

.ats-score-ring-wrap {
    display: flex;
    justify-content: center;
}

.ats-score-svg {
    width: clamp(80px, 45vw, 180px);
    height: clamp(80px, 45vw, 180px);
    display: block;
}

.ats-ring-progress {
    transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ats-score-display.score-excellent .ats-ring-progress { stroke: #10b981; }
.ats-score-display.score-good      .ats-ring-progress { stroke: #4B83FF; }
.ats-score-display.score-fair      .ats-ring-progress { stroke: #f59e0b; }
.ats-score-display.score-poor      .ats-ring-progress { stroke: #ef4444; }

/* Metric bars */
.ats-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.ats-metric-bar-row {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    width: 100%;
}

.ats-metric-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.ats-metric-bar-label { font-weight: 600; color: var(--text-heading); }
.ats-metric-bar-value { color: var(--text-muted); font-size: 0.8125rem; }

.ats-metric-bar-track {
    height: 6px;
    background: var(--bg-section);
    border-radius: var(--radius-full);
    overflow: hidden;
    width: 100%;
}

.ats-metric-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--primary);
    width: 0%;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Suggestions */
.ats-suggestions {
    background: var(--bg-section);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid var(--border-card);
    width: 100%;
    box-sizing: border-box;
}

.ats-suggestions-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}

.ats-suggestions-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ats-suggestions-list li {
    font-size: 0.875rem;
    color: var(--text-body);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.55;
    word-break: break-word;
}

.ats-suggestions-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Results CTA */
.ats-results-cta {
    text-align: center;
    border-top: 1px solid var(--border-light);
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.ats-results-cta p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.ats-results-cta .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.9375rem;
    box-sizing: border-box;
}

.ats-recheck-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-family: inherit;
}

.ats-recheck-btn:hover {
    color: var(--primary);
    background: var(--primary-faint);
}

/* ── ATS Nav Link ── */
.nav-link-ats {
    color: var(--primary);
    font-weight: 600;
    border: 1.5px solid rgba(75, 131, 255, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.875rem;
}

.nav-link-ats:hover {
    background: var(--primary-faint);
    border-color: var(--primary);
    color: var(--primary);
}

/* ── DESKTOP ONLY: side-by-side layout ── */
@media (min-width: 960px) {
    .ats-container { padding: 0 1.5rem; }
    .ats-header { margin-bottom: 3rem; }

    .ats-inner {
        flex-direction: row;
        gap: 3.5rem;
        align-items: start;
    }

    .ats-left  { flex: 1; min-width: 0; }
    .ats-right {
        flex: 1;
        min-width: 0;
        padding: 2rem;
        position: sticky !important;
        top: calc(var(--header-height) + 1.5rem);
        min-height: 460px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 1200px) {
    .ats-inner  { gap: 4rem; }
    .ats-right  { min-height: 480px; }
}



.custom-logo-wrap a,
.custom-logo-wrap a img,
.custom-logo-wrap img,
.site-logo .custom-logo,
.site-logo .custom-logo-link,
.site-logo .custom-logo-link img {
    display: block;
    height: auto !important;
    width: auto !important;
    max-height: 50px;          /* Desktop cap */
    max-width: 180px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .custom-logo-wrap a,
    .custom-logo-wrap a img,
    .custom-logo-wrap img,
    .site-logo .custom-logo,
    .site-logo .custom-logo-link,
    .site-logo .custom-logo-link img {
        max-height: 40px;      /* Mobile cap */
        max-width: 140px;
    }
}

/* ============================================================
   FULL RESPONSIVE — ALL BREAKPOINTS
   1024px → Tablet landscape
    768px → Tablet portrait / large mobile
    640px → Mobile landscape
    480px → Small mobile
   ============================================================ */

/* ── 1024px — Tablet ── */
@media (max-width: 1024px) {

    /* Base spacing */
    .section-pad     { padding: 5rem 0; }
    .section-pad-sm  { padding: 3rem 0; }

    /* Hero */
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero { padding: 4rem 0 3rem; }
    .hero-text  { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-actions  { justify-content: center; }
    .hero-stats    { justify-content: center; gap: 2.5rem; }
    .hero-visual   { order: -1; }
    .hero-float-1,
    .hero-float-2  { display: none; } /* hide floating cards on tablet */

    /* About */
    .about-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    .pricing-card.featured { transform: scale(1); }
    .pricing-card.featured:hover { transform: translateY(-4px); }

    /* Process */
    .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .process-grid::before { display: none; }

    /* Testimonials */
    .testimonial-track {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    /* Blog layout */
    .blog-content-wrap {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .blog-sidebar { position: static; }

    /* Blog grid */
    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Related posts */
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ATS section already has 1024 breakpoint */
}

/* ── 768px — Tablet portrait / Large mobile ── */
@media (max-width: 768px) {

    :root { --header-height: 64px; }

    /* Base spacing tighter */
    .section-pad     { padding: 4rem 0; }
    .section-pad-sm  { padding: 2.5rem 0; }
    .container { padding: 0 1.25rem; }

    /* Hero */
    .hero { padding: 3rem 0; }
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    /* Services 2 col still fine */
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

    /* Testimonials 1 col */
    .testimonial-track { grid-template-columns: 1fr; }

    /* Footer 2 col top, 1 col bottom */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    .footer-links { justify-content: center; flex-wrap: wrap; gap: 1rem; }

    /* Blog grid 1 col */
    .blogs-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }

    /* Blog share wrap */
    .blog-share { flex-wrap: wrap; }

    /* Page heroes */
    .page-hero { padding: 3rem 0 2.5rem; }

    /* CTA banner */
    .cta-section { padding: 3.5rem 0; }
    .cta-text { font-size: 1rem; }

    /* Section title alignment */
    .section-title  { text-align: center; }
    .section-label  { display: block; text-align: center; margin-left: auto; margin-right: auto; width: fit-content; }
    .section-subtitle { text-align: center; }

    /* Pricing */
    .pricing-grid { max-width: 380px; }

    /* Nav link ATS pill */
    .nav-link-ats { display: none; }

    /* About section image below text — keep same */
}

/* ── 640px — Mobile landscape / larger phones ── */
@media (max-width: 640px) {

    :root { --header-height: 60px; }

    /* Typography scale down */
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    /* Spacing */
    .section-pad    { padding: 3rem 0; }
    .section-pad-sm { padding: 2rem 0; }
    .container { padding: 0 1rem; }

    /* Hero */
    .hero { padding: 2.5rem 0 2rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
    .hero-stats { flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
    .hero-stat-value { font-size: 1.5rem; }

    /* Services → 1 column */
    .services-grid { grid-template-columns: 1fr; }

    /* Process */
    .process-grid { grid-template-columns: 1fr; }
    .process-number { width: 64px; height: 64px; font-size: 1.5rem; }

    /* Pricing */
    .pricing-grid  { max-width: 100%; }
    .pricing-price { font-size: 2.25rem; }

    /* FAQ */
    .faq-list { margin-top: 2rem; }
    .faq-question { font-size: 0.9375rem; padding: 1rem 1.25rem; }

    /* Testimonials */
    .testimonial-track { grid-template-columns: 1fr; }
    .testimonial-card  { padding: 1.5rem; }

    /* CTA */
    .cta-section { padding: 2.5rem 0; }
    .cta-actions { flex-direction: column; align-items: center; }
    .cta-actions .btn { width: 100%; max-width: 300px; justify-content: center; }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-brand { grid-column: auto; }
    .footer-social { justify-content: flex-start; }

    /* Blog */
    .blogs-grid    { grid-template-columns: 1fr; gap: 1.25rem; }
    .blog-featured-image { max-height: 220px; margin: 1.5rem 0; }
    .blog-share { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

    /* Contact form */
    .contact-form-card { padding: 1.5rem; }
    .contact-info-card { padding: 1.5rem; }
    .form-row { grid-template-columns: 1fr !important; }

    /* ATS — all rules handled in the ATS section block above */

    /* Page heroes */
    .page-hero { padding: 2.5rem 0 2rem; }
    .page-hero p { font-size: 1rem; }

    /* Service inner pages */
    .service-page-inner { grid-template-columns: 1fr !important; gap: 2rem !important; }

    /* Mobile nav full width */
    .mobile-nav { padding: 1rem; }

    /* Sidebar recent post image */
    .sidebar-recent-post img { width: 50px; height: 50px; }

    /* Blog prev/next */
    .post-nav-link { padding: 1rem; }
}

/* ── 480px — Small phones ── */
@media (max-width: 480px) {

    :root { --header-height: 56px; }

    .container { padding: 0 0.875rem; }

    /* Typography */
    h1 { font-size: 1.625rem; line-height: 1.2; }
    h2 { font-size: 1.375rem; }

    /* Hero */
    .hero { padding: 2rem 0 1.5rem; }
    .hero-badge { font-size: 0.75rem; padding: 0.25rem 0.75rem; }
    .hero-text { font-size: 1rem; }
    .hero-actions .btn { max-width: 100%; }

    /* Section labels */
    .section-label { font-size: 0.75rem; }

    /* Buttons */
    .btn-lg { padding: 0.875rem 1.75rem; font-size: 0.9375rem; }

    /* Cards */
    .card { padding: 1.5rem; }
    .service-card { padding: 1.5rem; }
    .pricing-card { padding: 2rem 1.5rem; }

    /* ATS — handled in dedicated ATS block */
    .ats-input { font-size: 0.875rem; }

    /* FAQ */
    .faq-question { font-size: 0.875rem; padding: 0.875rem 1rem; }
    .faq-answer-inner p { padding: 0.25rem 1rem 1.25rem; font-size: 0.875rem; }

    /* Testimonials */
    .testimonial-card { padding: 1.25rem; }

    /* Footer */
    .footer-desc { font-size: 0.875rem; }
    .footer-col h5 { margin-bottom: 0.875rem; }

    /* Blog card */
    .blog-body { padding: 1.25rem; }
    .blog-title { font-size: 1rem; }
    .blog-excerpt { font-size: 0.875rem; }

    /* Stat numbers */
    .hero-stat-value { font-size: 1.375rem; }

    /* Contact form */
    .contact-form-card { padding: 1.25rem; }

    /* Pricing price */
    .pricing-price { font-size: 2rem; }

    /* CTA */
    .cta-inner h2 { font-size: 1.5rem; }
    .cta-text { font-size: 0.9375rem; }

    /* Process cards */
    .process-number { width: 56px; height: 56px; font-size: 1.25rem; }
}

/* ── Global overflow guard — prevents any section from horizontal-scrolling ── */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Ensure images never overflow on mobile */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent wide tables/pre from breaking layout */
table, pre {
    max-width: 100%;
    overflow-x: auto;
}
/* ============================================================
   v2.0.0 — RESPONSIVE HARDENING + REDESIGNED ATS RESULT
   + PORTFOLIO MODULE
   These rules sit at the END of the file and intentionally
   override anything earlier. Mobile-first, fluid, no overflow.
   ============================================================ */

/* ── Universal box-sizing safety ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }

/* Prevent any element from forcing horizontal scroll */
img, video, svg, iframe { max-width: 100%; height: auto; }
table { display: block; max-width: 100%; overflow-x: auto; }

/* Fluid type — protects 320px screens */
h1 { font-size: clamp(1.625rem, 1.1rem + 2.6vw, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.375rem, 1rem + 1.8vw, 2.25rem); line-height: 1.2; }
h3 { font-size: clamp(1.125rem, 0.9rem + 1vw, 1.625rem); line-height: 1.3; }
h4 { font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem); }

.section-title    { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); }
.section-subtitle { font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.125rem); }

/* Force every container to behave on tiny viewports */
.container,
.ats-container,
.cta-inner,
.footer-top {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

/* Auto-fit grid — never blows out, never collapses below readable width */
.services-grid,
.pricing-grid,
.process-grid,
.testimonial-track,
.blogs-grid,
.related-grid {
    display: grid;
    gap: clamp(1rem, 2vw, 1.75rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

/* Pricing keeps featured emphasis on desktop */
@media (min-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); max-width: var(--container-max); }
}

/* Hero — guaranteed safe stack */
.hero-inner {
    display: grid;
    gap: clamp(1.5rem, 3vw, 3rem);
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 1024px) {
    .hero-inner { grid-template-columns: 1.1fr 1fr; }
}

.about-inner {
    display: grid;
    gap: clamp(1.5rem, 3vw, 3rem);
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 900px) {
    .about-inner { grid-template-columns: 1fr 1.1fr; }
}

/* Footer responsive */
.footer-top {
    display: grid;
    gap: clamp(1.5rem, 3vw, 3rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

/* Buttons stretch nicely on small screens */
@media (max-width: 480px) {
    .hero-actions, .cta-actions { display: flex; flex-direction: column; gap: 0.75rem; }
    .hero-actions .btn, .cta-actions .btn { width: 100%; max-width: 360px; margin-inline: auto; }
}

/* Form inputs — 16px minimum to avoid iOS zoom */
input, textarea, select { font-size: max(16px, 1rem); }

/* ============================================================
   ATS RESULT — NEW DESIGN: ONE CIRCLE + CHECKLIST
   Overrides earlier .ats-* result rules.
   ============================================================ */

/* Placeholder (before upload) — soft illustrated, NO score circle */
.ats-placeholder {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    padding: 1.5rem 0.5rem;
}
.ats-placeholder-illustration {
    width: clamp(96px, 28vw, 128px);
    height: clamp(96px, 28vw, 128px);
    display: flex; align-items: center; justify-content: center;
}
.ats-placeholder-illustration svg { width: 100%; height: 100%; }
.ats-placeholder-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}
.ats-placeholder .ats-placeholder-text {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
    max-width: 36ch;
}
.ats-placeholder-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}
.ats-placeholder-list li {
    font-size: 0.875rem;
    color: var(--text-body);
    padding-left: 0.25rem;
}

/* Score display container */
.ats-score-display {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

/* THE ONE SCORE CIRCLE — color-graded by band */
.ats-score-ring-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary); /* default: drives the ring gradient via currentColor */
}
.ats-score-display.score-poor      .ats-score-ring-wrap { color: #ef4444; }
.ats-score-display.score-fair      .ats-score-ring-wrap { color: #f59e0b; }
.ats-score-display.score-good      .ats-score-ring-wrap { color: #4B83FF; }
.ats-score-display.score-excellent .ats-score-ring-wrap { color: #10b981; }

.ats-score-svg {
    width: clamp(180px, 48vw, 240px);
    height: clamp(180px, 48vw, 240px);
    display: block;
}
.ats-ring-progress {
    transition: stroke-dashoffset 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ats-grade-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    background: color-mix(in srgb, currentColor 12%, transparent);
    color: currentColor;
    border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
}
@supports not (background: color-mix(in srgb, red, blue)) {
    .ats-grade-pill { background: rgba(75, 131, 255, 0.12); border-color: rgba(75, 131, 255, 0.3); }
}

/* Detailed checklist */
.ats-checklist {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}
.ats-check-group {
    background: var(--bg-section);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
}
.ats-check-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
    flex-wrap: wrap;
}
.ats-check-group-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-heading);
}
.ats-check-group-icon { font-size: 1.125rem; line-height: 1; }
.ats-check-group-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(75, 131, 255, 0.12);
    padding: 0.2rem 0.625rem;
    border-radius: var(--radius-full);
}
.ats-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.ats-check-item {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 0.625rem;
    align-items: start;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border-light);
}
.ats-check-item.is-pass { border-left: 3px solid #10b981; }
.ats-check-item.is-fail { border-left: 3px solid #ef4444; }
.ats-check-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.ats-check-icon svg { width: 14px; height: 14px; }
.ats-check-item.is-pass .ats-check-icon { background: rgba(16, 185, 129, 0.15); color: #059669; }
.ats-check-item.is-fail .ats-check-icon { background: rgba(239, 68, 68, 0.15);  color: #dc2626; }
.ats-check-body { min-width: 0; }
.ats-check-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-heading);
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
}
.ats-check-detail {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
    line-height: 1.45;
}
.ats-check-tip-toggle {
    appearance: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 0;
    margin-top: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    font-family: inherit;
}
.ats-check-tip-toggle svg { transition: transform 0.2s; }
.ats-check-tip-toggle.open svg { transform: rotate(180deg); }
.ats-check-tip {
    margin-top: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: var(--primary-faint);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--text-body);
    line-height: 1.55;
    border-left: 2px solid var(--primary);
}

/* Result CTA */
.ats-results-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: center;
}
.ats-results-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

/* Sticky action bar on mobile when results are open */
@media (max-width: 640px) {
    .ats-score-display .ats-results-cta {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 30%);
        padding-top: 1rem;
        margin-top: 0.5rem;
    }
}

/* ============================================================
   PORTFOLIO MODULE — GRID + FILTER + LIGHTBOX
   ============================================================ */
.portfolio-hero {
    background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 100%);
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
    text-align: center;
}
.portfolio-hero .page-hero-text {
    font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.125rem);
    color: var(--text-body);
    max-width: 640px;
    margin: 0.75rem auto 0;
    line-height: 1.65;
}

/* Filter chips */
.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.portfolio-chip {
    appearance: none;
    border: 1.5px solid var(--border-card);
    background: #fff;
    color: var(--text-body);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
    font-family: inherit;
}
.portfolio-chip:hover { border-color: var(--primary); color: var(--primary); }
.portfolio-chip.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(75, 131, 255, 0.3);
}
.portfolio-chip-count {
    font-size: 0.6875rem;
    font-weight: 700;
    background: rgba(0,0,0,0.08);
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-full);
    line-height: 1.4;
}
.portfolio-chip.is-active .portfolio-chip-count {
    background: rgba(255,255,255,0.25);
}

/* Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

/* Card */
.portfolio-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}
.portfolio-card.is-hidden { display: none; }
.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(75, 131, 255, 0.4);
}
.portfolio-card-trigger {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: inherit;
}
.portfolio-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-section);
}
.portfolio-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-card-media img { transform: scale(1.05); }
.portfolio-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    background: linear-gradient(135deg, #f0f5ff, #e8efff);
}
.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0) 40%, rgba(15,23,42,0.55) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0.875rem;
}
.portfolio-card:hover .portfolio-card-overlay,
.portfolio-card:focus-within .portfolio-card-overlay { opacity: 1; }
.portfolio-card-overlay-icon {
    width: 36px; height: 36px;
    background: #fff;
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.portfolio-card-body {
    padding: 1rem 1.125rem 1.25rem;
}
.portfolio-card-cat {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--primary-faint);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.5rem;
}
.portfolio-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 0.3rem;
    line-height: 1.3;
}
.portfolio-card-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

/* Empty state */
.portfolio-empty {
    text-align: center;
    padding: clamp(2rem, 6vw, 4rem) 1rem;
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-card);
}
.portfolio-empty-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.portfolio-empty h3 { margin: 0 0 0.5rem; }
.portfolio-empty p {
    color: var(--text-body);
    max-width: 480px;
    margin: 0 auto 1.25rem;
    line-height: 1.6;
}

/* Lightbox */
.portfolio-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 2rem);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.portfolio-lightbox.is-open {
    opacity: 1;
}
.portfolio-lightbox[hidden] { display: none; }
.portfolio-lightbox-close {
    position: absolute;
    top: clamp(0.75rem, 2vw, 1.25rem);
    right: clamp(0.75rem, 2vw, 1.25rem);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: none;
    color: #111;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    z-index: 2;
    transition: var(--transition);
}
.portfolio-lightbox-close:hover { background: #fff; transform: scale(1.05); }

.portfolio-lightbox-inner {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    display: grid;
    grid-template-columns: 1fr;
    box-shadow: 0 24px 80px rgba(0,0,0,0.4);
    overflow-y: auto;
}
@media (min-width: 768px) {
    .portfolio-lightbox-inner { grid-template-columns: 1.2fr 1fr; max-height: 85vh; }
}
.portfolio-lightbox-media {
    background: var(--bg-section);
    display: flex; align-items: center; justify-content: center;
    min-height: 220px;
    max-height: 60vh;
}
@media (min-width: 768px) {
    .portfolio-lightbox-media { max-height: none; }
}
.portfolio-lightbox-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.portfolio-lightbox-body {
    padding: clamp(1.25rem, 3vw, 2rem);
    overflow-y: auto;
}
.portfolio-lightbox-body h2 {
    margin: 0.5rem 0 0.75rem;
    font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    line-height: 1.25;
    word-wrap: break-word;
}
.portfolio-lightbox-desc {
    color: var(--text-body);
    line-height: 1.65;
    font-size: 0.9375rem;
    margin: 0 0 1.25rem;
}
.portfolio-lightbox-meta {
    display: grid;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0.875rem 1rem;
    background: var(--bg-section);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}
.portfolio-lightbox-meta > div {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0.75rem;
}
.portfolio-lightbox-meta dt {
    font-weight: 700;
    color: var(--text-heading);
}
.portfolio-lightbox-meta dd {
    margin: 0;
    color: var(--text-body);
    word-wrap: break-word;
}

body.pf-lightbox-open { overflow: hidden; }

/* ============================================================
   v2.2 OVERRIDES — header, page heroes, sections, buttons
   ============================================================ */

/* --- Header: collapse desktop nav to mobile drawer at 1024px --- */
@media (max-width: 1024px) {
    #site-nav { display: none !important; }
    .hamburger { display: flex !important; }
    .nav-dropdown-wrap { display: none !important; }
}
@media (min-width: 1025px) {
    #mobile-nav { display: none !important; }
}

/* Tighten nav spacing between 1025-1200 to prevent wrap */
@media (min-width: 1025px) and (max-width: 1200px) {
    .header-inner { gap: 1rem; padding: 0 1rem; }
    #site-nav { gap: 0; }
    .nav-link { padding: 0.5rem 0.6rem; font-size: 0.875rem; }
    .nav-cta { margin-left: 0.4rem; padding: 0.55rem 1rem; }
    .nav-dropdown.nav-dropdown-mega { width: 460px; }
}

/* Mega-menu (desktop): show ALL services in 2-column grid */
.nav-dropdown.nav-dropdown-mega {
    width: 520px;
    max-width: calc(100vw - 2rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    padding: 0.6rem;
}
.nav-dropdown.nav-dropdown-mega > li { list-style: none; margin: 0; }

/* --- Mobile submenu: ALWAYS show every service when open ------- */
#mobile-nav .mobile-sub-menu {
    display: none;
    list-style: none;
    margin: 0.25rem 0 0.75rem 0.5rem;
    padding: 0;
}
#mobile-nav .mobile-sub-menu.open {
    display: block;
}
#mobile-nav .mobile-sub-menu > li {
    display: block;
    margin: 0;
    padding: 0;
    overflow: visible;
}
#mobile-nav .mobile-sub-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.9375rem;
    color: var(--text-body);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
#mobile-nav .mobile-sub-link:hover,
#mobile-nav .mobile-sub-link:focus {
    background: var(--primary-faint);
    color: var(--primary);
}

/* --- Page Hero: responsive 2-col grid for service pages -------- */
.page-hero-inner-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.page-hero-stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.page-hero-stat-card {
    background: var(--bg-white);
    border-radius: 14px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.page-hero-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.page-hero-stat-card .num {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}
.page-hero-stat-card .lbl {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    font-weight: 500;
}
@media (max-width: 900px) {
    .page-hero-inner-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 560px) {
    .page-hero-stat-cards { grid-template-columns: 1fr; gap: 0.75rem; }
    .page-hero-stat-card { padding: 1.1rem 1rem; }
    .page-hero-stat-card .num { font-size: 1.625rem; }
}

/* --- Service-page hero buttons: polished, mobile-friendly ----- */
.page-hero-actions {
    margin-top: 1.75rem;
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    align-items: center;
}
.page-hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.85rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.page-hero-actions .btn-primary {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    box-shadow: 0 8px 22px rgba(75, 131, 255, 0.28);
}
.page-hero-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(75, 131, 255, 0.40);
}
.page-hero-actions .btn-outline {
    background: var(--bg-white);
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.page-hero-actions .btn-outline:hover {
    background: var(--primary-faint);
    transform: translateY(-2px);
}
@media (max-width: 560px) {
    .page-hero-actions { gap: 0.625rem; flex-direction: column; align-items: stretch; }
    .page-hero-actions .btn { width: 100%; padding: 0.9rem 1.25rem; }
}

/* --- Our Work gallery (Job Profile Optimization) --------------- */
.ourwork-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
    list-style: none;
    padding: 0;
}
.ourwork-item {
    position: relative;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-card);
    background: linear-gradient(135deg, #eef3ff 0%, #f7f9ff 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ourwork-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.ourwork-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ourwork-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    opacity: 0.55;
}
.ourwork-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(27, 40, 75, 0.92) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.1rem 1.25rem;
    margin: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
    color: #fff;
}
.ourwork-item:hover .ourwork-overlay,
.ourwork-item:focus-within .ourwork-overlay { opacity: 1; }
.ourwork-overlay .tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}
.ourwork-overlay .title {
    display: block;
    font-size: 1.0625rem;
    font-weight: 700;
    margin-top: 0.25rem;
    line-height: 1.3;
}
@media (max-width: 900px) {
    .ourwork-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (max-width: 560px) {
    .ourwork-grid { grid-template-columns: 1fr; gap: 1rem; }
    .ourwork-overlay { opacity: 1; background: linear-gradient(180deg, transparent 55%, rgba(27, 40, 75, 0.85) 100%); }
}

/* --- Graphic Design: design services grid ---------------------- */
.design-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.design-service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.design-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(75, 131, 255, 0.3);
}
.design-service-card .ds-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--primary-faint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}
.design-service-card h4 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    color: var(--text-heading);
    font-weight: 700;
}
.design-service-card p {
    color: var(--text-body);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.design-service-card .learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.2s ease;
}
.design-service-card .learn-more:hover { gap: 0.7rem; }

@media (max-width: 900px) {
    .design-services-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .design-service-card { padding: 1.5rem; }
}
@media (max-width: 600px) {
    .design-services-grid { grid-template-columns: 1fr; gap: 1rem; }
    .design-service-card { padding: 1.4rem; }
}

/* --- SEO Proven Results section ------------------------------- */
.proven-results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
    list-style: none;
    padding: 0;
}
.proven-card {
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.85rem 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin: 0;
}
.proven-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #7aa6ff);
}
.proven-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.proven-card .pr-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 0.875rem;
    border-radius: 12px;
    background: var(--primary-faint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.proven-card .pr-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.proven-card .pr-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    font-weight: 500;
}
@media (max-width: 980px) {
    .proven-results { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .proven-results { grid-template-columns: 1fr; gap: 1rem; }
    .proven-card { padding: 1.5rem 1.25rem; }
    .proven-card .pr-value { font-size: 1.875rem; }
}



/* ============================================================
   CLIENT LOGO MARQUEE (v8) — auto-scrolling infinite loop
   ============================================================ */
.client-marquee-section {
    padding: 4rem 0;
    background: var(--bg-section, #F5F8FF);
    overflow: hidden;
}
.client-marquee-section .section-label { display: inline-block; }
.client-marquee-head {
    text-align: center;
    margin-bottom: 2.5rem;
}
.client-marquee-head h2 {
    margin: 0.5rem 0 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--text-heading);
}
.client-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.client-marquee-track {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    width: max-content;
    animation: client-marquee-scroll 35s linear infinite;
}
.client-marquee:hover .client-marquee-track { animation-play-state: paused; }
.client-marquee-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    min-width: 140px;
}
.client-marquee-item img {
    max-height: 56px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.client-marquee-item:hover img,
.client-marquee-item a:focus-visible img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}
.client-marquee-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none;
}
@keyframes client-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (max-width: 768px) {
    .client-marquee-section { padding: 3rem 0; }
    .client-marquee-track { gap: 2.25rem; animation-duration: 28s; }
    .client-marquee-item { height: 48px; min-width: 110px; }
    .client-marquee-item img { max-height: 42px; max-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
    .client-marquee-track { animation: none; }
}

/* ============================================================
   PORTFOLIO REDESIGN POLISH (v8)
   ============================================================ */
.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.portfolio-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-white, #fff);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid rgba(15, 23, 42, 0.05);
}
.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(75, 131, 255, 0.18);
}
.portfolio-card-trigger {
    all: unset;
    cursor: pointer;
    display: block;
    width: 100%;
}
.portfolio-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-section, #F5F8FF);
}
.portfolio-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0) 40%, rgba(75,131,255,0.85) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-weight: 600;
}
.portfolio-card-overlay::after {
    content: "View Project →";
    margin-bottom: 0.5rem;
}
.portfolio-card-overlay-icon { display: none; }
.portfolio-card-body { padding: 1.1rem 1.25rem 1.4rem; }
.portfolio-card-cat {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-faint, rgba(75,131,255,0.08));
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.portfolio-card-title {
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
    color: var(--text-heading);
}
.portfolio-card-meta {
    margin: 0;
    color: var(--text-muted, #64748b);
    font-size: 0.85rem;
}
@media (max-width: 1024px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (max-width: 640px) {
    .portfolio-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .portfolio-filter { gap: 0.4rem; margin-bottom: 1.75rem; }
    .portfolio-chip { padding: 0.45rem 0.85rem; font-size: 0.85rem; }
}

/* ── Custom Logo Sizing (v8.2 — fixed invalid nested link markup) ── */
.site-header .site-logo,
.site-header .site-logo--image,
.site-header .custom-logo-wrap,
.site-header .custom-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    line-height: 0 !important;
    max-width: min(200px, 42vw) !important;
    overflow: hidden !important;
}

.site-header .site-logo--image {
    pointer-events: auto;
}

.site-header .custom-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    max-width: 100% !important;
}

.site-header .site-logo img,
.site-header .custom-logo-wrap img,
.site-header .custom-logo,
.site-header .custom-logo-link img,
.site-header a.custom-logo-link img,
.site-header img.custom-logo {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-height: 50px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    object-fit: contain !important;
}

@media (max-width: 768px) {
    .site-header .site-logo,
    .site-header .site-logo--image,
    .site-header .custom-logo-wrap,
    .site-header .custom-logo-link {
        max-width: min(150px, 46vw) !important;
    }

    .site-header .site-logo img,
    .site-header .custom-logo-wrap img,
    .site-header .custom-logo,
    .site-header .custom-logo-link img,
    .site-header a.custom-logo-link img,
    .site-header img.custom-logo {
        max-height: 40px !important;
    }
}

@media (max-width: 480px) {
    .site-header .site-logo,
    .site-header .site-logo--image,
    .site-header .custom-logo-wrap,
    .site-header .custom-logo-link {
        max-width: min(130px, 44vw) !important;
    }

    .site-header .site-logo img,
    .site-header .custom-logo-wrap img,
    .site-header .custom-logo,
    .site-header .custom-logo-link img {
        max-height: 36px !important;
    }
}

/* ============================================================
   v8.4 — Portfolio: image-only uniform grid
   ============================================================ */
.portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
}
@media (max-width: 900px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
}
.portfolio-card.portfolio-card--image-only {
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.portfolio-card--image-only .portfolio-card-trigger {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: #f3f4f6;
    cursor: pointer;
    display: block;
    border-radius: 12px;
    overflow: hidden;
}
.portfolio-card--image-only .portfolio-card-media {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}
.portfolio-card--image-only .portfolio-card-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    transition: transform .4s ease;
}
.portfolio-card--image-only:hover .portfolio-card-media img {
    transform: scale(1.05);
}
.portfolio-card--image-only .portfolio-card-body,
.portfolio-card--image-only .portfolio-card-title,
.portfolio-card--image-only .portfolio-card-meta,
.portfolio-card--image-only .portfolio-card-cat,
.portfolio-card--image-only .portfolio-card-overlay {
    display: none !important;
}

/* ============================================================
   ATS SCORE-ONLY MODE (home page) — v8.5
   Show ONLY the score circle; hide checklist, CTA, AI summary.
   ============================================================ */
.ats-score-only .ats-checklist,
.ats-score-only .ats-results-cta,
.ats-score-only #ats-ai-summary {
    display: none !important;
}
.ats-score-only .ats-placeholder { display: none !important; }

/* Spinner — pure CSS, no text */
.ats-spinner-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    width: 100%;
}
.ats-spinner-wrap[hidden] { display: none !important; }
.ats-spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 5px solid #EEF2F8;
    border-top-color: #4B83FF;
    animation: ats-spin 0.9s linear infinite;
}
@keyframes ats-spin {
    to { transform: rotate(360deg); }
}
