/**
 * Super Agency Theme Styles
 * Custom styles for the Super Agency WordPress theme
 */

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--wp--preset--font-family--inter);
    line-height: 1.6;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--wp--preset--font-family--inter);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

/* Link Styles */
a {
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 0.125em;
    text-decoration-thickness: 1px;
}

/* ========================================
   CONTENT LINKS STYLING
   Colors are NOT set here — they come exclusively from theme.json and
   Site Editor (Styles > Colors > Elements) so user customizations apply.
   Only non-color decorative/accessibility properties are set below.
   ======================================== */

/* Content link hover: show underline (color flows from theme.json :where rules) */
.wp-block-post-content a:hover,
.entry-content a:hover,
.post-content a:hover,
.page-content a:hover,
article a:hover,
.comment-content a:hover,
.comment-text a:hover,
.wp-block-post-excerpt a:hover,
.post-excerpt a:hover,
.excerpt a:hover,
.widget a:hover,
.widget-content a:hover,
.wp-block-text a:hover,
.textwidget a:hover,
.wp-block-paragraph a:hover,
.wp-block-list a:hover,
.wp-block-quote a:hover,
.wp-block-pullquote a:hover,
.wp-block-verse a:hover,
.wp-block-preformatted a:hover,
.content a:hover,
main a:hover,
.site-content a:hover {
    text-decoration: underline;
    text-underline-offset: 0.125em;
    text-decoration-thickness: 1px;
}

/* Content link keyboard focus indicator */
.wp-block-post-content a:focus-visible,
.entry-content a:focus-visible,
.post-content a:focus-visible,
.page-content a:focus-visible,
article a:focus-visible,
.comment-content a:focus-visible,
.comment-text a:focus-visible,
.wp-block-post-excerpt a:focus-visible,
.post-excerpt a:focus-visible,
.excerpt a:focus-visible,
.widget a:focus-visible,
.widget-content a:focus-visible,
.wp-block-text a:focus-visible,
.textwidget a:focus-visible,
.wp-block-paragraph a:focus-visible,
.wp-block-list a:focus-visible,
.wp-block-quote a:focus-visible,
.wp-block-pullquote a:focus-visible,
.wp-block-verse a:focus-visible,
.wp-block-preformatted a:focus-visible,
.content a:focus-visible,
main a:focus-visible,
.site-content a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    text-decoration: none;
}
/* EXCLUDE specific elements from underline styling */
/* Buttons */
.wp-block-button a,
.wp-block-buttons a,
.button,
.btn,
/* Images and Media */
.wp-block-image a,
.wp-block-gallery a,
.wp-block-media-text a,
.wp-block-cover a,
/* Navigation and Menus */
.wp-block-navigation a,
.navigation a,
.nav a,
.menu a,
.navbar a,
/* Headers and Logos */
.site-title a,
.site-header a,
.header a,
.logo a,
/* Social Links */
.wp-block-social-links a,
.social-links a,
/* Post Meta */
.wp-block-post-title a,
.wp-block-post-author a,
.wp-block-post-date a,
.wp-block-post-terms a,
.post-meta a,
.entry-meta a,
/* Cards and Special Blocks */
.wp-block-latest-posts a,
.wp-block-archives a,
.wp-block-categories a,
.wp-block-tag-cloud a,
.card a,
/* Pagination */
.wp-block-query-pagination a,
.pagination a,
.page-numbers,
/* Footer specific */
.site-footer .wp-block-navigation a,
.footer-navigation a {
    text-decoration: none !important;
}

/* Ensure excluded elements stay without underlines on hover */
.wp-block-button a:hover,
.wp-block-buttons a:hover,
.button:hover,
.btn:hover,
.wp-block-image a:hover,
.wp-block-gallery a:hover,
.wp-block-media-text a:hover,
.wp-block-cover a:hover,
.wp-block-navigation a:hover,
.navigation a:hover,
.nav a:hover,
.menu a:hover,
.navbar a:hover,
.site-title a:hover,
.site-header a:hover,
.header a:hover,
.logo a:hover,
.wp-block-social-links a:hover,
.social-links a:hover,
.wp-block-post-title a:hover,
.wp-block-post-author a:hover,
.wp-block-post-date a:hover,
.wp-block-post-terms a:hover,
.post-meta a:hover,
.entry-meta a:hover,
.wp-block-latest-posts a:hover,
.wp-block-archives a:hover,
.wp-block-categories a:hover,
.wp-block-tag-cloud a:hover,
.card a:hover,
.wp-block-query-pagination a:hover,
.pagination a:hover,
.page-numbers:hover,
.site-footer .wp-block-navigation a:hover,
.footer-navigation a:hover {
    text-decoration: none !important;
}

/* ========================================
   BUTTON ENHANCEMENTS
   ======================================== */

/* Button Enhancements */
.wp-block-button__link {
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* ========================================
   HEADER NAVIGATION STYLING
   ======================================== */

/* HEADER NAVIGATION SPACING - Desktop */
.super-agency-header .super-agency-main-navigation ul,
.super-agency-header .super-agency-main-navigation .wp-block-navigation__container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
}

.super-agency-header .super-agency-main-navigation .wp-block-navigation-item {
    margin-right: 32px !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.super-agency-header .super-agency-main-navigation .wp-block-navigation-item:last-child {
    margin-right: 0 !important;
}

.super-agency-header .super-agency-main-navigation {
    display: block !important;
}

/* Header CTA Button - Awesome styling for all screens */
.super-agency-header-cta .wp-block-button__link {
    background: linear-gradient(135deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 100%) !important;
    color: white !important;
    padding: 14px 28px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

.super-agency-header-cta .wp-block-button__link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4) !important;
    color: white !important;
}

.super-agency-header-cta .wp-block-button__link::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: left 0.5s !important;
}

.super-agency-header-cta .wp-block-button__link:hover::before {
    left: 100% !important;
}

/* Header-specific styling */
.super-agency-header-container {
    align-items: center;
}

.super-agency-header-logo {
    align-items: center;
}

.super-agency-header-nav {
    align-items: center;
}

.super-agency-header-cta {
    margin-left: var(--wp--preset--spacing--medium);
}

/* ========================================
   STICKY HEADER
   ======================================== */

body.super-agency-sticky-header header.wp-block-template-part {
    position: sticky;
    top: 0;
    z-index: 999;
    transition: box-shadow 0.3s ease;
}

body.super-agency-sticky-header header.wp-block-template-part.is-scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* ========================================
   SERVICES SECTION - ENHANCED STYLING (BACKWARD COMPATIBLE)
   ======================================== */

/* Services section - target using class name from pattern */
.super-agency-services-section {
    position: relative;
}

/* ========================================
   BACKWARD COMPATIBILITY - Support OLD WordPress Gradient Classes
   These rules ensure users with old patterns keep their gradient backgrounds
   ======================================== */

/* OLD PATTERN SUPPORT - Service Card Gradients with HIGH SPECIFICITY */
.super-agency-services-section .super-agency-service-card.has-service-card-1-gradient-gradient-background,
.super-agency-service-card.has-service-card-1-gradient-gradient-background.wp-block-group,
.has-service-card-1-gradient-gradient-background {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3) !important;
    height: 400px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s ease !important;
    cursor: pointer !important;
    padding: var(--wp--preset--spacing--x-large) var(--wp--preset--spacing--large) !important;
}

.super-agency-services-section .super-agency-service-card.has-service-card-2-gradient-gradient-background,
.super-agency-service-card.has-service-card-2-gradient-gradient-background.wp-block-group,
.has-service-card-2-gradient-gradient-background {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.3) !important;
    height: 400px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s ease !important;
    cursor: pointer !important;
    padding: var(--wp--preset--spacing--x-large) var(--wp--preset--spacing--large) !important;
}

.super-agency-services-section .super-agency-service-card.has-service-card-3-gradient-gradient-background,
.super-agency-service-card.has-service-card-3-gradient-gradient-background.wp-block-group,
.has-service-card-3-gradient-gradient-background {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    color: white !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3) !important;
    height: 400px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s ease !important;
    cursor: pointer !important;
    padding: var(--wp--preset--spacing--x-large) var(--wp--preset--spacing--large) !important;
}

/* OLD PATTERN HOVER EFFECTS */
.super-agency-services-section .super-agency-service-card.has-service-card-1-gradient-gradient-background:hover,
.super-agency-service-card.has-service-card-1-gradient-gradient-background.wp-block-group:hover,
.has-service-card-1-gradient-gradient-background:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.4) !important;
}

.super-agency-services-section .super-agency-service-card.has-service-card-2-gradient-gradient-background:hover,
.super-agency-service-card.has-service-card-2-gradient-gradient-background.wp-block-group:hover,
.has-service-card-2-gradient-gradient-background:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(240, 147, 251, 0.4) !important;
}

.super-agency-services-section .super-agency-service-card.has-service-card-3-gradient-gradient-background:hover,
.super-agency-service-card.has-service-card-3-gradient-gradient-background.wp-block-group:hover,
.has-service-card-3-gradient-gradient-background:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(79, 172, 254, 0.4) !important;
}

/* Ensure text is white on OLD gradient backgrounds - HIGH SPECIFICITY */
.super-agency-services-section .super-agency-service-card.has-service-card-1-gradient-gradient-background .super-agency-service-title,
.super-agency-services-section .super-agency-service-card.has-service-card-1-gradient-gradient-background .super-agency-service-description,
.super-agency-services-section .super-agency-service-card.has-service-card-1-gradient-gradient-background h3,
.super-agency-services-section .super-agency-service-card.has-service-card-1-gradient-gradient-background p,
.super-agency-service-card.has-service-card-1-gradient-gradient-background.wp-block-group .super-agency-service-title,
.super-agency-service-card.has-service-card-1-gradient-gradient-background.wp-block-group .super-agency-service-description,
.super-agency-service-card.has-service-card-1-gradient-gradient-background.wp-block-group h3,
.super-agency-service-card.has-service-card-1-gradient-gradient-background.wp-block-group p,
.has-service-card-1-gradient-gradient-background .super-agency-service-title,
.has-service-card-1-gradient-gradient-background .super-agency-service-description,
.has-service-card-1-gradient-gradient-background h3,
.has-service-card-1-gradient-gradient-background p {
    color: white !important;
}

.super-agency-services-section .super-agency-service-card.has-service-card-2-gradient-gradient-background .super-agency-service-title,
.super-agency-services-section .super-agency-service-card.has-service-card-2-gradient-gradient-background .super-agency-service-description,
.super-agency-services-section .super-agency-service-card.has-service-card-2-gradient-gradient-background h3,
.super-agency-services-section .super-agency-service-card.has-service-card-2-gradient-gradient-background p,
.super-agency-service-card.has-service-card-2-gradient-gradient-background.wp-block-group .super-agency-service-title,
.super-agency-service-card.has-service-card-2-gradient-gradient-background.wp-block-group .super-agency-service-description,
.super-agency-service-card.has-service-card-2-gradient-gradient-background.wp-block-group h3,
.super-agency-service-card.has-service-card-2-gradient-gradient-background.wp-block-group p,
.has-service-card-2-gradient-gradient-background .super-agency-service-title,
.has-service-card-2-gradient-gradient-background .super-agency-service-description,
.has-service-card-2-gradient-gradient-background h3,
.has-service-card-2-gradient-gradient-background p {
    color: white !important;
}

.super-agency-services-section .super-agency-service-card.has-service-card-3-gradient-gradient-background .super-agency-service-title,
.super-agency-services-section .super-agency-service-card.has-service-card-3-gradient-gradient-background .super-agency-service-description,
.super-agency-services-section .super-agency-service-card.has-service-card-3-gradient-gradient-background h3,
.super-agency-services-section .super-agency-service-card.has-service-card-3-gradient-gradient-background p,
.super-agency-service-card.has-service-card-3-gradient-gradient-background.wp-block-group .super-agency-service-title,
.super-agency-service-card.has-service-card-3-gradient-gradient-background.wp-block-group .super-agency-service-description,
.super-agency-service-card.has-service-card-3-gradient-gradient-background.wp-block-group h3,
.super-agency-service-card.has-service-card-3-gradient-gradient-background.wp-block-group p,
.has-service-card-3-gradient-gradient-background .super-agency-service-title,
.has-service-card-3-gradient-gradient-background .super-agency-service-description,
.has-service-card-3-gradient-gradient-background h3,
.has-service-card-3-gradient-gradient-background p {
    color: white !important;
}

/* ========================================
   NEW PATTERN SUPPORT - Specific CSS Classes (Current Version)
   ======================================== */

/* Target service cards by their specific class names - NEW PATTERN */
.super-agency-service-card-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3) !important;
    height: 400px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s ease !important;
    cursor: pointer !important;
    padding: var(--wp--preset--spacing--x-large) var(--wp--preset--spacing--large) !important;
}

.super-agency-service-card-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.3) !important;
    height: 400px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s ease !important;
    cursor: pointer !important;
    padding: var(--wp--preset--spacing--x-large) var(--wp--preset--spacing--large) !important;
}

.super-agency-service-card-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3) !important;
    height: 400px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s ease !important;
    cursor: pointer !important;
    padding: var(--wp--preset--spacing--x-large) var(--wp--preset--spacing--large) !important;
}

/* NEW PATTERN Service card hover effects */
.super-agency-service-card-1:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.4) !important;
}

.super-agency-service-card-2:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(240, 147, 251, 0.4) !important;
}

.super-agency-service-card-3:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(79, 172, 254, 0.4) !important;
}

/* ========================================
   UNIVERSAL SERVICE CARD STYLING - Applies to BOTH old and new patterns
   ======================================== */

/* Service icon styling - FIXED: Complete solution for icon clipping */
.super-agency-service-icon {
    width: 100px !important;
    height: 100px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto var(--wp--preset--spacing--large) auto !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.4s ease !important;
    flex-shrink: 0 !important;
    padding: 24px !important;
    overflow: visible !important;
    position: relative !important;
}

/* Service icon hover effects - Works for BOTH old and new patterns */
.super-agency-service-card-1:hover .super-agency-service-icon,
.super-agency-service-card-2:hover .super-agency-service-icon,
.super-agency-service-card-3:hover .super-agency-service-icon,
.has-service-card-1-gradient-gradient-background:hover .super-agency-service-icon,
.has-service-card-2-gradient-gradient-background:hover .super-agency-service-icon,
.has-service-card-3-gradient-gradient-background:hover .super-agency-service-icon {
    transform: scale(1.05) rotate(3deg) !important;
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Service icon images - COMPLETE FIX: Prevent any clipping */
.super-agency-service-icon img {
    filter: brightness(0) invert(1) !important;
    width: 52px !important;
    height: 52px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 2 !important;
    border-radius: 0 !important;
}

/* Additional fix: Ensure the image figure doesn't clip */
.super-agency-service-icon figure {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border-radius: 0 !important;
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Fix for any WordPress image wrapper that might cause clipping */
.super-agency-service-icon .wp-block-image {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border-radius: 0 !important;
    width: 52px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Service text content styling - Works for BOTH old and new patterns */
.super-agency-service-title {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    z-index: 2 !important;
    margin: var(--wp--preset--spacing--large) 0 var(--wp--preset--spacing--small) 0 !important;
    flex-shrink: 0 !important;
}

.super-agency-service-description {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    z-index: 2 !important;
    line-height: 1.6 !important;
    flex-grow: 1 !important;
    display: flex !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 var(--wp--preset--spacing--small) !important;
}

/* Glassmorphism overlay effect - Works for BOTH old and new patterns */
.super-agency-service-card-1::before,
.super-agency-service-card-2::before,
.super-agency-service-card-3::before,
.has-service-card-1-gradient-gradient-background::before,
.has-service-card-2-gradient-gradient-background::before,
.has-service-card-3-gradient-gradient-background::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    pointer-events: none !important;
}

.super-agency-service-card-1:hover::before,
.super-agency-service-card-2:hover::before,
.super-agency-service-card-3:hover::before,
.has-service-card-1-gradient-gradient-background:hover::before,
.has-service-card-2-gradient-gradient-background:hover::before,
.has-service-card-3-gradient-gradient-background:hover::before {
    opacity: 1 !important;
}

/* Floating decoration - Works for BOTH old and new patterns */
.super-agency-service-card-1::after,
.super-agency-service-card-2::after,
.super-agency-service-card-3::after,
.has-service-card-1-gradient-gradient-background::after,
.has-service-card-2-gradient-gradient-background::after,
.has-service-card-3-gradient-gradient-background::after {
    content: '' !important;
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    width: 100px !important;
    height: 100px !important;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%) !important;
    border-radius: 50% !important;
    opacity: 0 !important;
    transition: all 0.4s ease !important;
    pointer-events: none !important;
}

.super-agency-service-card-1:hover::after,
.super-agency-service-card-2:hover::after,
.super-agency-service-card-3:hover::after,
.has-service-card-1-gradient-gradient-background:hover::after,
.has-service-card-2-gradient-gradient-background:hover::after,
.has-service-card-3-gradient-gradient-background:hover::after {
    opacity: 1 !important;
    transform: scale(1.2) !important;
}

/* ========================================
   TESTIMONIAL SECTION - CONSISTENT HEIGHTS (FIXED)
   ======================================== */

/* Testimonial cards - COMPLETE FIX: Prevent any text cutoff during hover */
.super-agency-testimonial-card {
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid var(--wp--preset--color--border) !important;
    border-radius: 16px !important;
    background: var(--wp--preset--color--background) !important;
    min-height: 480px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 16px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: visible !important;
    padding: var(--wp--preset--spacing--x-large) !important;
    position: relative !important;
}

.super-agency-testimonial-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--wp--preset--color--border) !important;
    z-index: 10 !important;
}

/* Fix parent containers that might be causing clipping */
.super-agency-testimonials-section,
.super-agency-testimonials-section .wp-block-columns,
.super-agency-testimonials-section .wp-block-column {
    overflow: visible !important;
    position: relative !important;
}

/* Additional spacing for testimonials section */
.super-agency-testimonials-section {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
}

/* Testimonial quote text - flexible height */
.super-agency-testimonial-card p[style*="font-size:18px"] {
    flex-grow: 1 !important;
    margin-bottom: var(--wp--preset--spacing--large) !important;
    overflow: visible !important;
    line-height: 1.6 !important;
    padding: 0 !important;
}

/* Testimonial reviewer section - always at bottom - NO SHADOW */
.super-agency-testimonial-card .wp-block-group:last-child {
    flex-shrink: 0 !important;
    margin-top: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: none !important;
    border: none !important;
}

/* Testimonial reviewer image - NO SHADOW */
.super-agency-testimonial-card .is-style-rounded {
    width: 60px !important;
    height: 60px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
    background: none !important;
    border: none !important;
}

.super-agency-testimonial-card .is-style-rounded img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50px !important;
    object-fit: cover !important;
    box-shadow: none !important;
    border: none !important;
}

.super-agency-testimonial-card .is-style-rounded figure {
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: none !important;
    border: none !important;
}

/* Testimonial reviewer text container - NO SHADOW, PROPER POSITIONING - FIXED: Prevent text cutoff */
.super-agency-testimonial-card .wp-block-group:last-child .wp-block-group {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 4px 2px !important;
    min-width: 0 !important;
    box-shadow: none !important;
    background: none !important;
    border: none !important;
    overflow: visible !important;
    position: relative !important;
}

/* Ensure reviewer text is visible - FIX TEXT CUTOFF - ENHANCED */
.super-agency-testimonial-card .wp-block-group:last-child p {
    margin: 0 !important;
    padding: 2px 0 !important;
    line-height: 1.4 !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-indent: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-shadow: none !important;
    background: none !important;
    border: none !important;
    text-overflow: clip !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Additional fix: Testimonials section container spacing */
.super-agency-testimonials-section {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    overflow: visible !important;
}

/* Remove ALL shadows from testimonial card children */
.super-agency-testimonial-card * {
    box-shadow: none !important;
}

/* Ensure no inherited effects on testimonial containers */
.super-agency-testimonial-card .wp-block-group,
.super-agency-testimonial-card .wp-block-image,
.super-agency-testimonial-card .wp-block-paragraph {
    box-shadow: none !important;
    background: none !important;
    border: none !important;
}

/* ========================================
   TEAM SECTION - PROFESSIONAL DESIGN (ISOLATED) - FIXED
   ======================================== */

/* Team section using specific class selector - ONLY target team sections */
.super-agency-team-section .wp-block-column {
    background: var(--wp--preset--color--background) !important;
    border-radius: 16px !important;
    padding: var(--wp--preset--spacing--x-large) var(--wp--preset--spacing--large) !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: var(--wp--preset--spacing--large) !important;
}

.super-agency-team-section .wp-block-column:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Disable any inherited effects on team column content */
.super-agency-team-section .wp-block-column .wp-block-group {
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
}

.super-agency-team-section .wp-block-column:hover .wp-block-group {
    transform: none !important;
    box-shadow: none !important;
}

/* Team member images - professional styling */
.super-agency-team-section .wp-block-image img[style*="border-radius:100px"] {
    width: 160px !important;
    height: 160px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    transition: all 0.3s ease !important;
}

.super-agency-team-section .wp-block-image:has(img[style*="border-radius:100px"]) {
    width: 160px !important;
    height: 160px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    margin: 0 auto var(--wp--preset--spacing--large) auto !important;
    transition: all 0.3s ease !important;
}

.super-agency-team-section .wp-block-image:has(img[style*="border-radius:100px"]) figure {
    width: 160px !important;
    height: 160px !important;
    border-radius: 50% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Team image hover effect */
.super-agency-team-section .wp-block-column:hover .wp-block-image img[style*="border-radius:100px"] {
    transform: scale(1.02) !important;
}

/* Team member text content - professional spacing */
.super-agency-team-section .wp-block-column .wp-block-heading {
    margin-bottom: var(--wp--preset--spacing--x-small) !important;
    padding: 0 var(--wp--preset--spacing--small) !important;
}

.super-agency-team-section .wp-block-column .wp-block-paragraph:nth-of-type(1) {
    margin-bottom: var(--wp--preset--spacing--small) !important;
    padding: 0 var(--wp--preset--spacing--small) !important;
}

.super-agency-team-section .wp-block-column .wp-block-paragraph:nth-of-type(2) {
    margin-bottom: 0 !important;
    padding: 0 var(--wp--preset--spacing--small) !important;
    line-height: 1.6 !important;
}

/* Team section overall container - better spacing */
.super-agency-team-section {
    gap: var(--wp--preset--spacing--x-large) !important;
}

/* ========================================
   GENERAL COMPONENT STYLES
   ======================================== */

/* Card Hover Effects */
.wp-block-group.is-style-super-agency-card {
    transition: all 0.3s ease;
}

.wp-block-group.is-style-super-agency-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Image Enhancements - GENERAL (excluding team and portfolio images) */
.wp-block-image:not(:has(img[style*="border-radius:100px"])):not(.wp-block-columns .wp-block-column .wp-block-group .wp-block-image) img {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.wp-block-image:not(:has(img[style*="border-radius:100px"])):not(.wp-block-columns .wp-block-column .wp-block-group .wp-block-image):hover img {
    transform: scale(1.02);
}

/* FAQ Accordion Styles */
.super-agency-faq-accordion details {
    transition: all 0.3s ease;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 8px;
    background: var(--wp--preset--color--background);
    margin-bottom: 16px;
    overflow: hidden;
}

.super-agency-faq-accordion details:hover {
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.super-agency-faq-accordion details summary {
    position: relative;
    padding: 24px;
    font-weight: 600;
    font-size: var(--wp--preset--font-size--large);
    color: var(--wp--preset--color--heading);
    cursor: pointer;
    list-style: none;
    transition: all 0.3s ease;
}

.super-agency-faq-accordion details summary:focus {
    outline: none;
}

.super-agency-faq-accordion details summary:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: -2px;
    border-radius: 8px;
}

.super-agency-faq-accordion details summary::-webkit-details-marker {
    display: none;
}

.super-agency-faq-accordion details summary::after {
    content: "+";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: bold;
    color: var(--wp--preset--color--primary);
    transition: all 0.3s ease;
}

.super-agency-faq-accordion details[open] summary::after {
    content: "−";
    transform: translateY(-50%) rotate(180deg);
}

.super-agency-faq-accordion details[open] {
    border-color: var(--wp--preset--color--primary);
}

.super-agency-faq-accordion details[open] summary {
    border-bottom: 1px solid var(--wp--preset--color--border);
}

/* Navigation Enhancements */
.wp-block-navigation-item a {
    font-weight: 500;
    transition: all 0.3s ease;
}

.wp-block-navigation-item a:hover {
    color: var(--wp--preset--color--primary);
}

/* Footer Navigation Links - Only links have hover effects */
footer .wp-block-navigation-item a {
    display: inline-block;
    color: var(--wp--preset--color--background);
    transition: all 0.3s ease;
}

footer .wp-block-navigation-item a:hover {
    color: var(--wp--preset--color--primary);
    transform: translateY(-2px);
}

/* Footer Links Hover Effect */
footer .wp-block-group .wp-block-paragraph a {
    display: inline-block;
    transition: all 0.3s ease;
}

footer .wp-block-group .wp-block-paragraph a:hover {
    transform: translateY(-2px);
    text-decoration: underline;
}

/* Remove hover effects from footer columns themselves */
footer .wp-block-column {
    transition: none;
}

footer .wp-block-column:hover {
    transform: none;
}

/* ========================================
   FOOTER STYLING - SIMPLE FIX
   ======================================== */

/* SIMPLE: Just remove white backgrounds from footer elements */
footer,
footer * {
    background-color: inherit !important;
}

/* Ensure footer maintains theme background */
footer.wp-block-group {
    background-color: var(--wp--preset--color--heading) !important;
}

/* Footer navigation styling */
footer .wp-block-navigation {
    display: block !important;
}

footer .wp-block-navigation ul {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--wp--preset--spacing--x-small) !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

footer .wp-block-navigation .wp-block-navigation-item {
    margin: 0 !important;
}

footer .wp-block-navigation .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--wp--preset--spacing--x-small) !important;
}

/* Footer groups - prevent unwanted effects */
footer .wp-block-group {
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
}

footer .wp-block-group:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ========================================
   PORTFOLIO ENHANCEMENTS
   ======================================== */

/* ONLY target portfolio/project cards - EXCLUDE team and testimonial sections */
.wp-block-columns .wp-block-column .wp-block-group:not(:has(.wp-block-image img[style*="border-radius:100px"])):not(.super-agency-testimonial-card) {
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: var(--wp--preset--color--background);
    border: none !important;
}

.wp-block-columns .wp-block-column:hover .wp-block-group:not(:has(.wp-block-image img[style*="border-radius:100px"])):not(.super-agency-testimonial-card) {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border: none !important;
}

/* Portfolio Images - SAFE TARGETING */
.wp-block-columns .wp-block-column .wp-block-group:not(:has(.wp-block-image img[style*="border-radius:100px"])):not(.super-agency-testimonial-card) .wp-block-image {
    overflow: hidden !important;
    border-radius: 16px 16px 0 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

.wp-block-columns .wp-block-column .wp-block-group:not(:has(.wp-block-image img[style*="border-radius:100px"])):not(.super-agency-testimonial-card) .wp-block-image img {
    transition: all 0.3s ease !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 16px 16px 0 0 !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top !important;
}

.wp-block-columns .wp-block-column .wp-block-group:not(:has(.wp-block-image img[style*="border-radius:100px"])):not(.super-agency-testimonial-card) .wp-block-image figure {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

/* Portfolio hover effects - SAFE TARGETING */
.wp-block-columns .wp-block-column:hover .wp-block-group:not(:has(.wp-block-image img[style*="border-radius:100px"])):not(.super-agency-testimonial-card) .wp-block-image img {
    transform: scale(1.02) !important;
}

/* Portfolio content area spacing */
.wp-block-columns .wp-block-column .wp-block-group:not(:has(.wp-block-image img[style*="border-radius:100px"])):not(.super-agency-testimonial-card) .wp-block-group[style*="padding"] {
    padding: var(--wp--preset--spacing--medium) !important;
}

/* Remove shadows from child elements in portfolio */
.wp-block-columns .wp-block-column .wp-block-group:not(:has(.wp-block-image img[style*="border-radius:100px"])):not(.super-agency-testimonial-card) * {
    box-shadow: none !important;
}

/* ========================================
   FEATURED PROJECTS - SPECIFIC TARGETING
   ======================================== */

/* Target ONLY the Featured Projects section on homepage using background color selector */
.wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group {
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: var(--wp--preset--color--background) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
}

.wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

/* Featured Projects - Zero gap images */
.wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group .wp-block-image {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    overflow: hidden !important;
}

.wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group .wp-block-image img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    vertical-align: top !important;
    transition: all 0.3s ease !important;
}

.wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group .wp-block-image figure {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

/* Featured Projects - Content area gets padding */
.wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group .wp-block-group[style*="padding"] {
    padding: var(--wp--preset--spacing--medium) !important;
    margin: 0 !important;
}

/* Featured Projects - Image hover effect */
.wp-block-group.has-light-gray-background-color .wp-block-columns .wp-block-column .wp-block-group:hover .wp-block-image img {
    transform: scale(1.02) !important;
}

/* ========================================
   FORM ELEMENTS AND INTERACTIONS
   ======================================== */

/* Service Cards */
.wp-block-group[style*="border-radius:16px"] {
    transition: all 0.3s ease;
}

.wp-block-group[style*="border-radius:16px"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--wp--preset--font-family--inter);
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
}

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="url"]:focus-visible,
input[type="password"]:focus-visible,
input[type="search"]:focus-visible,
input[type="number"]:focus-visible,
input[type="tel"]:focus-visible,
textarea:focus-visible,
select:focus-visible {
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 1px;
}

/* Search Block Styling */
.wp-block-search {
    border-radius: 8px;
}

.wp-block-search__input {
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--wp--preset--font-family--inter);
}

.wp-block-search__button {
    background: var(--wp--preset--color--primary);
    border: none;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wp-block-search__button:hover {
    background: var(--wp--preset--color--secondary);
}

/* ========================================
   BLOG AND PAGINATION STYLES
   ======================================== */

/* Pagination */
.wp-block-query-pagination {
    margin-top: var(--wp--preset--spacing--xx-large);
}

.wp-block-query-pagination .page-numbers {
    display: inline-block;
    padding: 12px 16px;
    margin: 0 4px;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 8px;
    color: var(--wp--preset--color--heading);
    text-decoration: none;
    transition: all 0.3s ease;
}

.wp-block-query-pagination .page-numbers:hover,
.wp-block-query-pagination .page-numbers.current {
    background: var(--wp--preset--color--primary);
    color: white;
    border-color: var(--wp--preset--color--primary);
}

/* Social Links */
.wp-block-social-links .wp-social-link {
    transition: all 0.3s ease;
}

.wp-block-social-links .wp-social-link:hover {
    transform: translateY(-2px);
}

/* Portfolio Card Styling */
.super-agency-portfolio-card {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.super-agency-portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Blog Archive Grid Layout - SIMPLIFIED TO MATCH SEARCH TEMPLATE */
.wp-block-query .wp-block-post-template.is-layout-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--wp--preset--spacing--large) !important;
    max-width: 1200px;
    margin: 0 auto;
}

/* Blog Archive Specific - Make Cards Wider to Match Portfolio */
.wp-block-query .super-agency-portfolio-card {
    max-width: none;
    width: 100%;
}

/* Portfolio Grid Specific - Keep Original Sizing */
.wp-block-columns .wp-block-column .wp-block-group {
    max-width: none;
    width: 100%;
}

/* Blog Archive Featured Images */
.super-agency-portfolio-card .wp-block-post-featured-image {
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    height: 200px;
    margin: 0 !important;
    padding: 0 !important;
}

.super-agency-portfolio-card .wp-block-post-featured-image img {
    border-radius: 16px 16px 0 0;
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

.super-agency-portfolio-card .wp-block-post-featured-image figure {
    margin: 0 !important;
    padding: 0 !important;
    height: 200px;
    overflow: hidden;
}

/* Blog Cards - Same Height as Portfolio Cards */
.super-agency-portfolio-card {
    padding: 0 !important;
    min-height: 420px;
    width: 100%;
    max-width: none;
}

.super-agency-portfolio-card > .wp-block-post-featured-image:first-child {
    margin-top: 0 !important;
    border-radius: 16px 16px 0 0;
}

/* Force Blog Archive Query to Use Full Available Width */
.wp-block-group .wp-block-query.alignwide {
    max-width: 1200px;
    width: 100%;
}

/* Override WordPress Default Query Constraints for Blog Cards */
.wp-block-query .wp-block-post-template {
    max-width: none;
    width: 100%;
}

/* Prevent child elements from inheriting shadow effects */
.super-agency-portfolio-card * {
    box-shadow: none !important;
}

.super-agency-portfolio-card:hover * {
    box-shadow: none !important;
}

/* ========================================
   PRICING CARD STYLING
   ======================================== */

/* Pricing Card Styling - Remove shadow effects completely */
.super-agency-pricing-card {
    transition: all 0.3s ease;
    position: relative;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.super-agency-pricing-card:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.super-agency-pricing-featured {
    position: relative;
    overflow: visible;
}

.super-agency-pricing-features {
    list-style: none;
}

.super-agency-pricing-features li {
    color: var(--wp--preset--color--body);
    font-weight: 500;
    padding-left: 0;
}

.super-agency-pricing-features li::before {
    content: "";
    margin-right: 0;
}

/* Complete text shadow elimination for pricing cards */
.super-agency-pricing-card,
.super-agency-pricing-card *,
.super-agency-pricing-card .wp-block-paragraph,
.super-agency-pricing-card .wp-block-heading,
.super-agency-pricing-card h1, .super-agency-pricing-card h2, .super-agency-pricing-card h3,
.super-agency-pricing-card h4, .super-agency-pricing-card h5, .super-agency-pricing-card h6,
.super-agency-pricing-card p, .super-agency-pricing-card span, .super-agency-pricing-card div {
    text-shadow: none !important;
    -webkit-text-shadow: none !important;
    -moz-text-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -ms-filter: none !important;
    -o-filter: none !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.super-agency-pricing-card:hover,
.super-agency-pricing-card:hover *,
.super-agency-pricing-card:hover .wp-block-paragraph,
.super-agency-pricing-card:hover .wp-block-heading,
.super-agency-pricing-card:hover h1, .super-agency-pricing-card:hover h2, .super-agency-pricing-card:hover h3,
.super-agency-pricing-card:hover h4, .super-agency-pricing-card:hover h5, .super-agency-pricing-card:hover h6,
.super-agency-pricing-card:hover p, .super-agency-pricing-card:hover span, .super-agency-pricing-card:hover div {
    text-shadow: none !important;
    -webkit-text-shadow: none !important;
    -moz-text-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -ms-filter: none !important;
    -o-filter: none !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   FOOTER NAVIGATION LISTS
   ======================================== */

/* Footer Legal Links (bottom navigation block) */
footer .footer-legal-links .wp-block-navigation-item a {
    color: var(--wp--preset--color--background);
    opacity: 0.8;
    font-size: var(--wp--preset--font-size--small);
}

footer .footer-legal-links .wp-block-navigation-item a:hover {
    opacity: 1;
    color: var(--wp--preset--color--background);
    text-decoration: underline;
}

/* Footer Navigation Lists */
footer .footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .footer-nav-list li {
    margin-bottom: var(--wp--preset--spacing--x-small);
}

footer .footer-nav-list li a {
    display: inline-block;
    color: var(--wp--preset--color--background);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

footer .footer-nav-list li a:hover {
    color: var(--wp--preset--color--primary);
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    /* Base responsive */
    .wp-block-columns {
        flex-direction: column;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
    }
    
    h1, .has-huge-font-size {
        font-size: 2.5rem !important;
    }
    
    h2, .has-xxxx-large-font-size {
        font-size: 2rem !important;
    }
    
    .wp-block-group[style*="padding"] {
        padding-left: var(--wp--preset--spacing--medium) !important;
        padding-right: var(--wp--preset--spacing--medium) !important;
    }
    
    /* Services mobile adjustments - Works for BOTH old and new patterns */
    .super-agency-service-card-1,
    .super-agency-service-card-2,
    .super-agency-service-card-3,
    .has-service-card-1-gradient-gradient-background,
    .has-service-card-2-gradient-gradient-background,
    .has-service-card-3-gradient-gradient-background {
        height: 350px !important;
        padding: var(--wp--preset--spacing--large) var(--wp--preset--spacing--medium) !important;
    }
    
    .super-agency-service-card-1:hover,
    .super-agency-service-card-2:hover,
    .super-agency-service-card-3:hover,
    .has-service-card-1-gradient-gradient-background:hover,
    .has-service-card-2-gradient-gradient-background:hover,
    .has-service-card-3-gradient-gradient-background:hover {
        transform: translateY(-8px) scale(1.01) !important;
    }
    
    /* Testimonial mobile adjustments */
    .super-agency-testimonial-card {
        min-height: 400px !important;
        padding: var(--wp--preset--spacing--large) !important;
    }
    
    /* Mobile blog grid - single column */
    .wp-block-query .wp-block-post-template.is-layout-grid {
        grid-template-columns: 1fr !important;
        gap: var(--wp--preset--spacing--medium) !important;
    }
    
    /* Ensure cards are full width */
    .super-agency-portfolio-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: var(--wp--preset--spacing--large) !important;
    }
    
    /* Proper mobile spacing */
    .wp-block-query.alignwide {
        padding-left: var(--wp--preset--spacing--small) !important;
        padding-right: var(--wp--preset--spacing--small) !important;
    }
    
    /* MOBILE HEADER - Logo left, hamburger right, single row */
    .super-agency-header-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    /* Hide desktop CTA button on mobile */
    .super-agency-header-cta {
        display: none !important;
    }

    /* Mobile navigation - hamburger button */
    .super-agency-header .wp-block-navigation .wp-block-navigation__responsive-container-open {
        background: var(--wp--preset--color--primary) !important;
        color: white !important;
        border: none !important;
        border-radius: 8px !important;
        padding: 12px !important;
        width: 48px !important;
        height: 48px !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Mobile menu when open */
    .super-agency-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
        background: white !important;
        padding: 40px 20px !important;
    }
    
    /* Vertical menu items */
    .super-agency-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open ul {
        flex-direction: column !important;
        gap: 0 !important;
        align-items: stretch !important;
    }
    
    /* Menu item styling */
    .super-agency-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
        width: 100% !important;
        margin: 0 !important;
        border-bottom: 1px solid #eee !important;
    }
    
    .super-agency-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child {
        border-bottom: none !important;
    }
    
    /* Menu link styling */
    .super-agency-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
        display: block !important;
        padding: 20px 0 !important;
        text-align: center !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        color: var(--wp--preset--color--heading) !important;
        text-decoration: none !important;
    }
    
    .super-agency-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a:hover {
        color: var(--wp--preset--color--primary) !important;
    }
    
    /* Add GET STARTED button to mobile menu */
    .super-agency-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open::after {
        content: "GET STARTED" !important;
        display: block !important;
        background: linear-gradient(135deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 100%) !important;
        color: white !important;
        padding: 16px 32px !important;
        border-radius: 25px !important;
        text-align: center !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin: 30px auto 0 auto !important;
        max-width: 200px !important;
        cursor: pointer !important;
    }
    
    /* MOBILE TEAM SECTION - Professional styling */
    .super-agency-team-section .wp-block-image img[style*="border-radius:100px"] {
        width: 120px !important;
        height: 120px !important;
        border: 3px solid var(--wp--preset--color--surface) !important;
    }
    
    .super-agency-team-section .wp-block-image:has(img[style*="border-radius:100px"]) {
        width: 120px !important;
        height: 120px !important;
        margin-bottom: var(--wp--preset--spacing--medium) !important;
    }
    
    .super-agency-team-section .wp-block-image:has(img[style*="border-radius:100px"]) figure {
        width: 120px !important;
        height: 120px !important;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Skip to content link - hidden until focused by keyboard */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    padding: 12px 24px;
    background: var(--wp--preset--color--primary);
    color: #ffffff;
    font-weight: 700;
    font-size: var(--wp--preset--font-size--medium);
    z-index: 99999;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.skip-link:focus-visible {
    top: 0;
    outline: 3px solid #ffffff;
    outline-offset: -3px;
}

/* Navigation link focus indicator */
.wp-block-navigation-item a:focus {
    outline: none;
}

.wp-block-navigation-item a:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Button focus indicator */
.wp-block-button__link:focus {
    outline: none;
}

.wp-block-button__link:focus-visible {
    outline: 3px solid var(--wp--preset--color--primary);
    outline-offset: 3px;
}

/* Social links focus indicator */
.wp-block-social-links .wp-social-link:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 2px;
}

/* Pagination focus indicator */
.wp-block-query-pagination .page-numbers:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 2px;
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   HIGH CONTRAST MODE (Windows)
   ======================================== */

@media (forced-colors: active) {
    .super-agency-service-card-1,
    .super-agency-service-card-2,
    .super-agency-service-card-3,
    .has-service-card-1-gradient-gradient-background,
    .has-service-card-2-gradient-gradient-background,
    .has-service-card-3-gradient-gradient-background {
        border: 2px solid ButtonText;
        forced-color-adjust: none;
    }

    .wp-block-button__link {
        border: 2px solid ButtonText;
        forced-color-adjust: none;
    }

    .super-agency-testimonial-card,
    .super-agency-pricing-card,
    .super-agency-portfolio-card {
        border: 1px solid ButtonText;
    }

    .wp-block-navigation-item a:focus-visible,
    .wp-block-button__link:focus-visible,
    .super-agency-faq-accordion details summary:focus-visible {
        outline: 3px solid Highlight;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

/* Print Styles */
@media print {
    .wp-block-navigation,
    .wp-block-buttons,
    .wp-block-social-links {
        display: none;
    }

    .wp-block-group {
        box-shadow: none !important;
        transform: none !important;
    }
}