/*
Theme Name: Custom Theme
Description: A custom WordPress theme built with modern development practices
Version: 1.0.0
Author: Your Name
Author URI: https://yoursite.com
Text Domain: custom-theme
Domain Path: /languages
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* Homepage Header Overlap Styles */
.page-homepage {
    margin: 0 !important;
    padding: 0 !important;
}

.page-homepage body,
.page-homepage html {
    margin: 0 !important;
    padding: 0 !important;
}

.page-homepage #page {
    margin: 0 !important;
    padding: 0 !important;
}

.page-homepage .site-header {
    position: absolute !important;
    top: 40px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Mobile menu open - 80% opacity black header on homepage */
@media (max-width: 768px) {
    .page-homepage .site-header.mobile-menu-open {
        background: rgba(0, 0, 0, 0.8) !important;
        background-color: rgba(0, 0, 0, 0.8) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        opacity: 1 !important;
        z-index: 1001 !important; /* Higher than mobile menu overlay */
    }
    
    /* Extra specificity to ensure 80% opacity black */
    body.page-homepage .site-header.mobile-menu-open {
        background: rgba(0, 0, 0, 0.8) !important;
        background-color: rgba(0, 0, 0, 0.8) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        opacity: 1 !important;
        z-index: 1001 !important; /* Higher than mobile menu overlay */
    }
    
    /* Ensure header container also has 80% opacity */
    body.page-homepage .site-header.mobile-menu-open .header-container {
        background: rgba(0, 0, 0, 0.8) !important;
        background-color: rgba(0, 0, 0, 0.8) !important;
        z-index: 1002 !important; /* Even higher for header container */
    }
}

/* Remove header background on desktop only */
@media (min-width: 769px) {
    .page-homepage .site-header {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

.page-homepage .site-header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
}


.page-homepage #content,
.page-homepage .site-content,
.page-homepage .site-main,
.page-homepage main {
    margin: 0 !important;
    padding: 0 !important;
}

.page-homepage .hero {
    margin-top: 0 !important;
    padding-top: 160px !important; /* Increased to accommodate 40px header offset */
}

.page-homepage * {
    margin-top: 0;
}

.page-homepage .site-header + * {
    margin-top: 0 !important;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: #333;
    background-color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005177;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.site-main {
    padding: 2rem 0;
}

.site-footer {
    background: #333;
    color: #fff;
    padding: 2rem 0;
    margin-top: 0; /* Remove top margin to eliminate white line */
    border: none; /* Remove any borders */
    outline: none; /* Remove any outlines */
}

/* Remove any white lines around footer */
.site-footer::before,
.site-footer::after {
    display: none !important;
    content: none !important;
}

/* Ensure no white space above or below footer */
#colophon {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* Remove any white lines from page wrapper */
#page {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* Header */
.site-header {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color 0.3s ease;
}

/* Header Container */
.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}

.header-section {
    display: flex;
    align-items: center;
}

.logo-section {
    justify-content: flex-start;
    padding-left: 28px;
    text-align: left;
    width: 467px;
}

.menu-section {
    justify-content: center;
    align-items: center;
    width: 467px;
    display: flex;
}

.social-section {
    justify-content: flex-end;
    width: 466px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 20px;
    height: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin: 0 auto;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
    transform: rotate(0deg);
}

/* Default state - two horizontal lines */
.mobile-menu-toggle[aria-expanded="false"] .hamburger-line:nth-child(1) {
    transform: rotate(0deg);
}

.mobile-menu-toggle[aria-expanded="false"] .hamburger-line:nth-child(2) {
    transform: rotate(0deg);
}

/* X Transformation */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Logo styling */
.site-logo a {
    text-decoration: none;
    color: inherit;
}

.logo-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-graphic {
    width: 40px;
    height: 40px;
    color: #007cba;
}

.logo-graphic svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

.custom-tagline {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.2;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

/* Navigation */
.main-navigation {
    margin: 0;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.main-navigation li {
    display: block;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: 0em;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    display: block;
}

.main-navigation a:hover {
    color: #cccccc;
}

/* ====== FOOTER STYLES ====== */

/* CSS Variables */
:root {
    --footer-bg: #141414;
    --text-strong: #FFFFFF;
    --text-body: rgba(255,255,255,.88);
    --text-dim: rgba(255,255,255,.72);
}

/* Footer Base */
.site-footer {
    background: var(--footer-bg);
    color: var(--text-strong);
    position: relative;
    overflow: hidden;
}

/* Subtle texture overlay */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 50%),
        linear-gradient(45deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Footer Inner Container */
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 72px 24px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 0px;
    align-items: start;
}

/* Footer Columns */
.footer-column {
    display: flex;
    flex-direction: column;
}

/* Left Section: Brand + Nav + Contact (stacked) */
.footer-left-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Brand Wordmark */
.brand-wordmark {
    display: flex;
    align-items: center;
}

.footer-logo-image {
    width: 375px;
    height: 79px;
    object-fit: contain;
    border-radius: 8px;
}

/* Footer Navigation */
.footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-nav-list a {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-body);
    text-decoration: none;
    transition: color 0.16s ease, opacity 0.16s ease, text-decoration-color 0.16s ease;
    position: relative;
}

.footer-nav-list a:hover,
.footer-nav-list a:focus {
    color: var(--text-strong);
    opacity: 1;
}

.footer-nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-strong);
    transition: width 0.16s ease;
}

.footer-nav-list a:hover::after,
.footer-nav-list a:focus::after {
    width: 100%;
}

/* Top Section: Brand Only */
.footer-brand-section {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Bottom Section: Navigation + Contact (2 columns) */
.footer-bottom-section {
    width: 100%;
    display: grid;
    grid-template-columns: 157px 500px;
    gap: 98px;
    align-items: start;
}

/* Left Column: Navigation */
.footer-nav-section {
    width: 157px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Right Column: Contact Details */
.footer-contact {
    gap: 20px;
    width: 500px;
}

.contact-details {
    font-style: normal;
    margin: 0;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 22px; /* Increased from 16px to 22px (40% more) */
    margin-left: -20%; /* Move 20% more to the left */
}

.contact-icon {
    flex-shrink: 0;
    color: var(--text-strong);
    font-size: 42px;
    width: 42px;
    height: 42px;
    text-align: center;
}

.contact-text {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 28px;
    line-height: 1.45;
    color: var(--text-body);
}

.contact-text strong {
    color: var(--text-strong);
    font-weight: 700;
}

.contact-text a {
    color: var(--text-body);
    text-decoration: none;
    transition: color 0.16s ease, opacity 0.16s ease;
}

.contact-text a:hover,
.contact-text a:focus {
    color: var(--text-strong);
    opacity: 1;
}

/* Right Section: Map Card */
.footer-map {
    width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.map-card {
    width: 380px;
    height: 280px;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 8px 32px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 12px 40px rgba(0,0,0,0.4);
}

/* Map Embed Container */
.map-embed-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.map-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 32px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
}

/* Map Placeholder */
.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-dim);
}

.map-placeholder svg {
    color: var(--text-dim);
}

.map-placeholder p {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    margin: 0;
    color: var(--text-dim);
}

/* Copyright Line */
.footer-copyright {
    text-align: center;
    margin-top: 40px;
    padding: 0 24px;
}

.footer-copyright p {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dim);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1023px) and (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 380px;
        gap: 0px;
        padding: 60px 24px;
    }
    
    .footer-bottom-section {
        grid-template-columns: 157px 500px;
        gap: 98px;
    }
    
    .footer-nav-section {
        width: 157px;
        gap: 40px;
    }
    
    .footer-contact {
        gap: 20px;
        width: 500px;
    }
    
    .map-card {
        width: 380px;
        height: 260px;
    }
}

@media (max-width: 767px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 0px;
        padding: 48px 20px;
    }
    
    .footer-left-section {
        gap: 40px;
        display: flex;
        flex-direction: column;
    }
    
    .footer-brand-section {
        order: 1;
        text-align: left;
    }
    
    .footer-bottom-section {
        grid-template-columns: 1fr;
        gap: 40px;
        order: 2;
    }
    
    .footer-nav-section {
        width: 100%;
        gap: 40px;
        order: 1;
        text-align: left;
    }
    
    .footer-contact {
        gap: 20px;
        width: 100%;
        order: 2;
        text-align: left;
    }
    
    .footer-contact .contact-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .footer-contact .contact-icon {
        flex-shrink: 0;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .footer-contact .contact-text {
        flex: 1;
        font-size: 20px;
        text-align: left;
    }
    
    .footer-map {
        order: 3;
        width: 100%;
        margin-top: 30px;
        height: auto;
        min-height: 300px;
    }
    
    .map-card {
        width: 380px;
        height: 240px;
        border-radius: 28px;
    }
    
    .footer-logo-image {
        width: 300px;
        height: 63px;
    }
    
    .footer-nav-list a {
        font-size: 24px;
        text-align: left;
    }
    
    .footer-copyright {
        margin-top: 32px;
        padding: 0 20px;
        text-align: left;
        order: 4;
    }
    
    .footer-copyright p {
        text-align: left;
    }
    
    .brand-wordmark {
        text-align: left;
    }
}

/* Focus Styles for Accessibility */
.footer-nav-list a:focus,
.contact-text a:focus {
    outline: 2px solid var(--text-strong);
    outline-offset: 2px;
}

/* Brands page content section styling */
.brands-content-section {
    width: 100%;
    min-height: 800px;
    position: relative;
    display: block; /* Changed from flex to block */
    padding-bottom: 40px; /* Add bottom padding to prevent footer overlap */
}

.brands-content-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2; /* Above background overlay */
    margin-top: 0; /* Remove any top margin */
    padding-bottom: 3rem; /* Add extra bottom padding */
}

/* Brands page title styling */
.brands-page-title {
    position: absolute;
    top: 46px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    font-weight: 700;
    color: #000000 !important;
    text-align: center;
    margin: 0;
    padding: 0;
    z-index: 10;
    text-decoration: none;
    filter: none !important;
    opacity: 1 !important;
    width: auto; /* Let title size to its content */
    white-space: nowrap; /* Prevent text wrapping */
}

/* Background image overlay - separate from content */
.background-image-overlay {
    pointer-events: none;
    /* This ensures the overlay is behind all content */
    z-index: 1;
}

/* ====== Brands Grid Styling ====== */
.brands {
    --card-radius: 25px;
    --card-min-h: 485px;
    --gap: 24px;
    color: #fff;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
    margin-top: 120px; /* Increased margin to ensure proper spacing below title */
}

/* Enhanced hover animations for brand cards */
@keyframes cardHover {
    0% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.1) translateY(-5px);
    }
    100% {
        transform: scale(1.15) translateY(-8px);
    }
}

@keyframes cardGlow {
    0% {
        box-shadow: 0 10px 20px rgba(0,0,0,.25);
    }
    100% {
        box-shadow: 0 20px 40px rgba(0,0,0,.4), 0 0 30px rgba(255,255,255,.1);
    }
}

.brands-grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(3, 1fr); /* 3 columns for 3x3 grid */
    align-items: stretch;
}

/* Card */
.brand-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: var(--card-min-h);
    padding: 22px;
    border-radius: var(--card-radius);
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 10px 20px rgba(0,0,0,.25);
    /* dark textured-ish background - fallback if no custom background */
    background:
        radial-gradient(120% 120% at -10% -10%, rgba(255,255,255,.08), transparent 60%),
        linear-gradient(180deg, #1a1a1c 0%, #0f0f10 100%);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Clickable card link styling */
.brand-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    cursor: pointer;
}

.brand-card-link:hover {
    transform: translateY(-5px) scale(1.02);
    z-index: 10;
}

.brand-card-link:hover .brand-card {
    box-shadow: 0 15px 30px rgba(0,0,0,.35);
    transform: scale(1.02);
}

/* Enhanced hover states with JavaScript classes */
.brand-card-link.is-hovered {
    transform: translateY(-5px) scale(1.02);
    z-index: 10;
}

.brand-card.is-hovered {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,.35);
}

/* Touch states for mobile */
.brand-card-link.is-touched {
    transform: translateY(-3px) scale(1.05);
}

.brand-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.brand-title {
    margin: 8px 0 0;
    font-family: 'Inter', sans-serif;
    font-weight: 700; /* Bold */
    font-size: 36px;
    line-height: auto;
    letter-spacing: 0%;
    margin-bottom: 59px; /* Add 59px gap between title and description */
}

.brand-desc {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400; /* Regular */
    font-size: 24px;
    line-height: auto;
    letter-spacing: 0%;
    opacity: .95;
}

/* Ensure the description stays away from the edges */
.brand-card { 
    padding-bottom: 28px; 
}

/* Responsive design for the grid */
@media (max-width: 1200px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}

/* Ensure proper spacing at the bottom */
.brands {
    margin-bottom: 0; /* Remove bottom margin to eliminate white line */
}

/* Remove any white lines between brands section and footer */
.brands-content-section {
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

.brands-content-container {
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
    
    .brands {
        margin-top: 80px; /* Slightly less margin on mobile */
        padding: 16px;
    }
    
    /* Mobile brands section adjustments */
    .brands-section {
        padding: 60px 0;
    }
    
    .brands-head {
        flex-direction: column;
        gap: 20px;
        text-align: left;
        padding: 0 20px;
    }
    
    .brands-title {
        font-size: 32px;
    }
    
    .brands-intro {
        font-size: 18px;
        text-align: left;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .brands {
        margin-top: 60px;
        padding: 12px;
    }
    
    .brands-section {
        padding: 40px 0;
    }
    
    .brands-head {
        padding: 0 16px;
    }
    
    .brands-title {
        font-size: 28px;
    }
    
    .brands-intro {
        font-size: 16px;
        padding: 0 16px;
    }
    
    /* Brand cards text - 14px on phone */
    .brands-row .card-copy .card-title,
    .brands-row .card-title {
        font-size: 14px !important;
        line-height: 1.3;
    }
}

.brands-page-title::after {
    content: '';
    position: absolute;
    bottom: -10px; /* 5px gap from text */
    left: 0; /* Start from left edge of title */
    right: 0; /* End at right edge of title */
    height: 5px;
    background-color: #000000 !important;
    border-radius: 2px;
    z-index: 10;
    filter: none !important;
    opacity: 1 !important;
}

/* ====== SERVICES SECTION STYLES ====== */

/* ---- Section & container ---- */
.svc-section { 
    position: relative; 
    padding: 80px 0; 
    color: #fff;
    background:
        radial-gradient(1200px 600px at 50% 0%, rgba(255,255,255,.05), rgba(0,0,0,0) 60%),
        #151515; /* fallback; set your section texture behind this if you have one */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay for better text readability when background image is used */
.svc-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}
.svc-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 80px; 
    position: relative; 
    z-index: 2; /* Above the dark overlay */
}

.svc-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* ---- Heading ---- */
.svc-header { 
    position: relative; 
    margin-bottom: 28px; 
}
.svc-title { 
    font: 800 48px/1.1 Inter, system-ui, sans-serif; 
    margin: 0 0 12px; 
}
.svc-title::after { 
    content: ""; 
    display: block; 
    width: 260px; 
    height: 4px; 
    background: #fff; 
    opacity:.9; 
    margin-top: 12px; 
    border-radius: 2px; 
}

/* ---- Top-right arrows ---- */
.svc-nav { 
    position: absolute; 
    right: 24px; 
    top: 0; 
    display: flex; 
    gap: 12px; 
}
.svc-btn { 
    width: 48px; 
    height: 48px; 
    border-radius: 15px; 
    border: 0; 
    background: #fff; 
    color: #111;
    box-shadow: 0 6px 16px rgba(0,0,0,.35); 
    display: grid; 
    place-items: center; 
    cursor: pointer; 
    transition: transform .15s ease, opacity .15s ease;
}
.svc-btn:disabled { 
    opacity:.4; 
    cursor: default; 
}
.svc-btn:hover { 
    /* Removed upward movement */
}

/* ---- Swiper sizing ---- */
.svc-swiper { 
    overflow: visible; 
    padding: 60px 0; /* Add padding to prevent card cutting */
    margin: 0; /* Remove negative margin to prevent left edge cutting */
}
.swiper-slide { 
    height: auto; 
}

/* ---- Card ---- */
.svc-card { 
    text-decoration: none; 
    color: inherit; 
    width: 430px;
    flex-shrink: 0;
}
.svc-card__inner {
    min-height: 460px; 
    padding: 40px; 
    border-radius: 24px; 
    position: relative; 
    overflow: hidden;
    background: transparent;
    background-size: cover; 
    background-position: center;
    border: 1px solid rgba(255,255,255,.6);
    box-shadow: 0 10px 20px rgba(255,255,255,.18);
    backdrop-filter: blur(.2px);
    transition: all .3s ease;
}

/* Make background transparent for all cards by default */
.svc-card__inner {
    background: transparent;
    border: 1px solid rgba(255,255,255,.6);
}

/* Card background image support - must come after the general rule */
.svc-card__inner.has-background {
    background: var(--card-bg-image);
    background-size: cover;
    background-position: center;
}

/* Hover effects for cards with background images */
.svc-card:hover .svc-card__inner.has-background,
.svc-card:focus-visible .svc-card__inner.has-background {
    background: var(--card-bg-hover-image, var(--card-bg-image));
    background-size: cover;
    background-position: center;
    border-color: #fff;
    box-shadow: 0 4px 4px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.8);
}

/* Default hover effects for cards without background images */
.svc-card:hover .svc-card__inner:not(.has-background),
.svc-card:focus-visible .svc-card__inner:not(.has-background) { 
    border-color: #fff; 
    box-shadow: 0 4px 4px rgba(255,255,255,.22); 
    outline: none; 
}

/* Enhanced hover effects for all cards */
.svc-card:hover .svc-card__inner,
.svc-card:focus-visible .svc-card__inner {
    border-color: #fff;
    box-shadow: 0 4px 4px rgba(255,255,255,.22);
    outline: none;
}

/* Enhanced text readability for cards with background images */
.svc-card__inner.has-background .svc-card__title,
.svc-card__inner.has-background .svc-card__desc {
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    position: relative;
    z-index: 2;
}

.svc-card__inner.has-background .svc-card__icon {
    position: relative;
    z-index: 2;
    background: transparent;
    backdrop-filter: none;
}

/* Smooth transitions for background image changes */
.svc-card__inner.has-background {
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1), background .4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced hover effect for cards with backgrounds */
.svc-card:hover .svc-card__inner.has-background {
    /* No transform - removed upward movement */
}

/* Ensure proper contrast for text on background images */
.svc-card__inner.has-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.1) 50%,
        rgba(0,0,0,0.3) 100%
    );
    z-index: 1;
    transition: opacity .3s ease;
}

.svc-card:hover .svc-card__inner.has-background::before {
    opacity: 0.1;
}

.svc-card__icon { 
    width: 155px; 
    height: 155px; 
    border: none; 
    border-radius: 0; 
    display: grid; 
    place-items: center; 
    margin-bottom: 24px; 
}
.svc-card__icon svg, 
.svc-card__icon img { 
    width: 60%; 
    height: 60%; 
}

.svc-card__title { 
    font: 700 30px/1.15 Inter, system-ui, sans-serif; 
    margin: 0 0 14px; 
    letter-spacing: 0; 
}
.svc-card__desc { 
    font: 400 20px/1.15 Inter, system-ui, sans-serif; 
    opacity: 1; 
    max-width: 100%; /* Fill available space */
    text-align: left; 
}

/* ---- Custom dots ---- */
.svc-pagination { 
    display: flex; 
    justify-content: center; 
    gap: 14px; 
    margin-top: 22px; 
    z-index: 10;
    position: relative;
}
.svc-dot { 
    width: 12px; 
    height: 12px; 
    border-radius: 999px; 
    background: rgba(255,255,255,.8); 
    border: 0; 
    padding: 0; 
    cursor: pointer;
    transition: all 0.3s ease;
}
.svc-dot:hover {
    background: rgba(255,255,255,1);
    transform: scale(1.2);
}
.svc-dot.is-active { 
    width: 16px; 
    height: 16px; 
    background: #fff; 
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .svc-card__inner { 
        min-height: 440px; 
        padding: 32px; 
    }
    .svc-title { 
        font-size: 40px; 
    }
}
@media (max-width: 768px) {
    .svc-nav { 
        display: flex; 
        position: relative;
        right: auto;
        top: auto;
        margin-top: 20px;
        justify-content: flex-start; /* Left align arrows */
        gap: 20px; /* Increase gap for better touch targets */
    } /* show arrows on all screens */
    
    .svc-btn {
        width: 56px; /* Larger touch target on mobile */
        height: 56px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }
    
    .svc-btn:hover {
        transform: scale(1.05); /* Add hover effect for mobile */
    }
    .svc-card__inner { 
        min-height: 420px; 
        padding: 24px; 
    }
    .svc-title { 
        font-size: 34px; 
    }
    .svc-card__title { 
        font-size: 24px; 
    }
    .svc-card__desc { 
        font-size: 16px; 
        max-width: 100%; /* Fill available space on mobile */
    }
    
    /* Mobile container adjustments */
    .svc-container {
        padding: 0 20px;
    }
    
    .svc-content-wrapper {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .svc-section {
        padding: 60px 0;
    }
    
    .svc-container {
        padding: 0 16px;
    }
    
    .svc-title {
        font-size: 28px;
    }
    
    .svc-card__inner {
        min-height: 380px;
        padding: 20px;
    }
    
    .svc-card__title {
        font-size: 22px;
    }
    
    .svc-card__desc {
        font-size: 15px;
        max-width: 100%; /* Fill available space on small mobile */
    }
    
    .svc-btn {
        width: 52px; /* Slightly smaller for very small screens */
        height: 52px;
    }
    
    .svc-nav {
        gap: 16px; /* Smaller gap for very small screens */
    }
}

/* Partner Section Background Wrapper */
.bg-partner-extend {
    background-image: var(--partner-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.bg-partner-extend::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent white overlay */
    z-index: 0;
}

.bg-partner-extend > * {
    position: relative;
    z-index: 1;
}

/* Header Mobile Responsiveness */
@media (max-width: 1024px) {
    .header-container {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        grid-template-columns: 1fr auto 1fr;
        gap: 20px;
    }
    
    .logo-section,
    .menu-section,
    .social-section {
        width: auto;
        padding: 0;
    }
    
    .logo-section {
        justify-content: flex-start;
    }
    
    .menu-section {
        justify-content: center;
        align-items: center;
        display: flex;
        position: relative;
        z-index: 1001;
    }
    
    .social-section {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .header-container {
        grid-template-columns: 1fr auto;
        gap: 16px;
        padding: 0 16px;
    }
    
    .social-section {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        margin: 0 auto;
        position: relative;
        z-index: 1002;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-toggle .hamburger-line {
        transform: rotate(0deg) !important;
        width: 100%;
        height: 3px;
        background-color: #ffffff;
        border-radius: 2px;
    }
    
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px) !important;
    }
    
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
        transform: rotate(-45deg) translate(6px, -6px) !important;
    }
    
    .main-navigation {
        display: none !important;
    }
    
    .main-navigation.mobile-open {
        display: block !important;
        position: fixed !important;
        top: -100px !important; /* Extend above viewport to cover any white space */
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: calc(100vh + 100px) !important; /* Add extra height to cover top */
        min-height: calc(100vh + 100px) !important;
        max-height: calc(100vh + 100px) !important;
        margin: 0 !important;
        padding: 180px 0 20px 0 !important; /* Increased top padding to account for extended height */
        background: rgba(0, 0, 0, 0.8) !important;
        background-color: rgba(0, 0, 0, 0.8) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        border: none !important;
        z-index: 999; /* Lower than header to appear under it */
    }
    
    /* Ensure body doesn't scroll when menu is open */
    body.mobile-menu-open {
        overflow: hidden !important;
        height: 100vh !important;
        position: fixed !important;
        width: 100% !important;
        background: #000000 !important; /* Ensure body background is black */
    }
    
    /* Cover any potential white areas at the top */
    body.mobile-menu-open::before {
        content: '';
        position: fixed;
        top: -100px;
        left: 0;
        right: 0;
        height: 100px;
        background: rgba(0, 0, 0, 0.8);
        z-index: 998;
    }
    
    /* Ensure all menu elements have black background */
    .main-navigation.mobile-open * {
        background: rgba(0, 0, 0, 0.8) !important;
        background-color: rgba(0, 0, 0, 0.8) !important;
    }
    
    /* Override any white backgrounds on menu items */
    .main-navigation.mobile-open li {
        background: transparent !important;
        background-color: transparent !important;
    }
    
    .main-navigation.mobile-open li a {
        background: transparent !important;
        background-color: transparent !important;
    }
    
    /* Override any button or CTA backgrounds in mobile menu */
    .main-navigation.mobile-open button,
    .main-navigation.mobile-open .btn,
    .main-navigation.mobile-open .cta,
    .main-navigation.mobile-open .button {
        background: rgba(0, 0, 0, 0.8) !important;
        background-color: rgba(0, 0, 0, 0.8) !important;
    }
    
    .main-navigation.mobile-open ul {
        list-style: none;
        margin: 0 !important;
        padding: 0 20px !important;
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .main-navigation.mobile-open li {
        margin: 0 !important;
        padding: 12px 0 !important;
        border-bottom: none;
        width: 100% !important;
    }
    
    .main-navigation.mobile-open li:last-child {
        border-bottom: none;
    }
    
    .main-navigation.mobile-open li a {
        display: block;
        padding: 8px 0;
        color: #ffffff;
        text-decoration: none;
        font-weight: 500;
        font-size: 18px;
        width: 100% !important;
        text-align: center;
    }
}

/* Touch-friendly mobile optimizations */
@media (max-width: 767px) {
    /* Ensure touch targets are at least 44px */
    .mobile-menu-toggle,
    .hero__cta,
    .svc-card,
    .brands-cta,
    .contact-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve touch scrolling */
    .customers-track,
    .brands-row .track {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Prevent horizontal scroll on mobile */
    body {
        overflow-x: hidden;
    }
    
    /* Improve form input touch targets */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    /* Brand cards text - 14px on phone */
    .brands-row .card-copy .card-title,
    .brands-row .card-title {
        font-size: 14px !important;
        line-height: 1.3;
    }
}

/* Footer Mobile Responsiveness */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        gap: 40px;
        padding: 40px 20px;
    }
    
    .footer-left-section {
        order: 2;
    }
    
    .footer-map {
        order: 1;
        width: 100%;
    }
    
    .footer-bottom-section {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-nav-section,
    .footer-contact {
        width: 100%;
    }
    
    .footer-nav-list {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .contact-details {
        align-items: center;
    }
    
    .contact-row {
        justify-content: center;
        text-align: center;
    }
    
    .map-card {
        width: 100%;
        height: 300px;
    }
    
    .map-embed-container iframe {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        padding: 30px 16px;
    }
    
    .footer-nav-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-details {
        gap: 20px;
    }
    
    .contact-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}