/* Enhanced Premium Dark Theme */
:root {
    --bg-dark: #020617;
    /* Darker Slate 950 */
    --bg-card: rgba(15, 23, 42, 0.6);
    /* Slate 900 */
    --bg-glass: rgba(2, 6, 23, 0.8);
    --primary: #fbbf24;
    /* Amber 400 */
    --primary-hover: #f59e0b;
    /* Amber 500 */
    --accent: #38bdf8;
    /* Sky 400 */
    --accent-glow: rgba(56, 189, 248, 0.3);
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --border-color: rgba(255, 255, 255, 0.08);
    /* Slightly higher contrast border */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-full: 9999px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(251, 191, 36, 0.15);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.1), transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(251, 191, 36, 0.08), transparent 30%);
    background-attachment: fixed;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    display: block;
}

/* Typography refinement */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.text-muted {
    color: var(--text-muted);
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* Clean Minimal Header */
header {
    background: transparent;
    padding: 1rem 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: background 0.3s ease;
}

header .main-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 101;
    /* Above overlay */
}

/* Logo */
.logo-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
    z-index: 101;
}

/* Desktop Nav */
.desktop-nav {
    display: flex;
    gap: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 2.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
}

.desktop-nav .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding: 0.25rem 0;
}

.desktop-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.desktop-nav .nav-link:hover {
    color: #fff;
    transform: translateY(-1px);
}

.desktop-nav .nav-link:hover::after {
    width: 100%;
}


/* Mobile Menu Toggle */
#mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 102;
    /* Above overlay */
    padding: 0;
}

#mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@media (max-width: 768px) {
    #mobile-menu-toggle {
        display: flex;
    }
}

/* Hamburger Animation */
#mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

#mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Overlay */
#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.mobile-nav-link {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-muted);
    font-family: var(--font-heading);
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: #fff;
    transform: scale(1.05);
}

.mobile-menu-footer {
    position: absolute;
    bottom: 2rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* Prevent body scroll when menu is open */
body.no-scroll {
    overflow: hidden;
}

/* Layout */
main {
    padding-top: 8rem;
    /* Space for absolute header */
    padding-bottom: 5rem;
}

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 6rem 1rem;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.2) 0%, transparent 70%);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Search Box */
.search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.search-form:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    color: #fff;
    outline: none;
    font-family: var(--font-body);
}

.search-input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    font-family: var(--font-heading);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #d97706 100%);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
    filter: brightness(1.1);
}

/* Ultra-Premium Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.3);
    /* Blueish glow on hover */
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.8) 100%);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(56, 189, 248, 0.1);
}

.card-img {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-card);
    /* Match card background */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    /* Add padding so simple logos don't touch edges */
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure logo fits within box without cropping/stretching */
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.rating {
    color: var(--primary);
    font-weight: 600;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.city-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-base);
}

.city-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--primary);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    background: rgba(2, 6, 23, 0.5);
    backdrop-filter: blur(10px);
}

/* Service City Page Specifics */
.rich-snippet {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
}


/* Mobile Responsiveness */
@media (max-width: 768px) {

    /* Main Content */
    main {
        padding-top: 6rem;
        /* Adjust for header */
    }

    /* Container Padding */
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 8rem 1rem 4rem;
        /* Extra top padding for visually separated header */
        text-align: left;
        /* Often better on mobile */
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    /* Grid Adjustments */
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .city-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile is usually safe for short words */
        gap: 1rem;
    }

    @media (max-width: 480px) {
        .city-grid {
            grid-template-columns: 1fr;
        }
    }

    /* Search Form */
    .search-form {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
    }

    .search-form:focus-within {
        background: transparent;
        box-shadow: none;
        border-color: transparent;
    }

    .search-input {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-full);
        margin-bottom: 0.75rem;
        width: 100%;
        height: 50px;
        /* Touch friendly */
    }

    .btn {
        width: 100%;
        height: 50px;
        /* Touch friendly */
    }

    /* Card Mobile Optimization */
    .card {
        /* Remove hover transformation on mobile since it can get stuck */
        transform: none !important;
        box-shadow: var(--shadow-sm);
    }

    .card:active {
        background: rgba(30, 41, 59, 0.9);
    }

    /* Typography checks */
    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    /* Hide some elements if needed */
    .d-none-mobile {
        display: none !important;
    }
}

/* Company Page Specifics */
.company-hero-bg {
    height: 400px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.company-hero-content {
    position: relative;
    z-index: 10;
    margin-top: -120px;
}

.company-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .company-hero-bg {
        height: 250px;
    }

    .company-hero-content {
        margin-top: -60px;
    }

    .company-layout {
        grid-template-columns: 1fr;
    }
}

.company-cta {
    text-align: right;
    display: block;
}

@media (max-width: 768px) {
    .company-cta {
        text-align: center;
        margin-top: 1.5rem;
        width: 100%;
    }

    .company-cta .btn {
        width: 100%;
    }
}

/* Utilities */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .grid-2-cols {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.contact-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .contact-us-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Service City List Styles */
.service-list-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border-radius: var(--radius-md);
}

.service-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(251, 191, 36, 0.3);
}

.service-list-img-wrapper {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.service-list-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .service-list-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .service-list-img-wrapper {
        width: 100%;
        height: 200px;
    }

    .service-list-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .service-list-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .service-list-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}