/* 
   Soluciones Sanitarias - Vape Store Dark Style
   Theme: Dark, Orange Accent, Noise Texture, Premium
*/

:root {
    /* Color Palette */
    --primary-color: #2563eb;
    /* Brand Blue */
    --primary-dark: #1d4ed8;
    /* Darker Blue */
    --accent-color: #3b82f6;
    /* Blue Accent */
    --accent-light: #f3f4f6;
    --background-light: #f9fafb;
    --text-dark: #111827;
    --text-light: #ffffff;
    --text-muted: #4b5563;
    --alert-color: #ff0000;
    --gold-accent: #2563eb;

    /* Semantic Variables */
    --bg-surface: #ffffff;
    --border-subtle: #e5e7eb;
    --bg-hero: radial-gradient(circle at center, rgba(37, 99, 235, 0.05) 0%, rgba(249, 250, 251, 1) 50%), #f9fafb;
    --bg-footer: #ffffff;
    --bg-navbar: rgba(255, 255, 255, 0.95);

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

[data-theme="dark"] {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --accent-color: #3b82f6;
    --accent-light: #181818;
    --background-light: #0a0a0a;
    --text-dark: #ffffff;
    --text-light: #111827;
    --text-muted: #d1d5db;
    --gold-accent: #2563eb;

    /* Semantic Variables */
    --bg-surface: #111111;
    --border-subtle: #1a1a1a;
    --bg-hero: radial-gradient(circle at center, rgba(37, 99, 235, 0.1) 0%, rgba(10, 10, 10, 1) 50%), #0a0a0a;
    --bg-footer: #050505;
    --bg-navbar: rgba(10, 10, 10, 0.95);

    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --box-shadow-hover: 0 10px 25px rgba(37, 99, 235, 0.2);
}

:root {
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-speed: 0.3s;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --box-shadow-hover: 0 10px 25px rgba(37, 99, 235, 0.2);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
    background-color: transparent !important;
    /* Overriding inline styles to maintain dark theme */
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.section-title {
    color: var(--text-dark) !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--bg-surface);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

/* Ensure secondary buttons get the styling too */
.btn-accent {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-accent:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.btn-outline:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 36px;
    margin-top: 2rem;
    /* Added air between button and text */
    background-color: #fff;
    border: 1px solid var(--border-subtle);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all var(--transition-speed);
    cursor: pointer;
    font-family: var(--font-heading);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.btn-action:hover {
    background-color: var(--primary-color);
    color: #fff !important;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.btn-action i {
    font-size: 1.1rem;
    transition: transform var(--transition-speed);
}

.btn-action:hover i {
    transform: translateX(5px);
}

/* Navbar CTA */
.btn-navbar {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    border: 2px solid var(--primary-color);
}

.btn-navbar:hover {
    background-color: #fff;
    color: var(--primary-color) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    background-color: #fff !important;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: none !important;
    /* Removed shadow at top */
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background-color: #0a0a0a !important;
    border-bottom: 1px solid #1a1a1a;
    box-shadow: none !important;
}

.navbar.sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="dark"] .navbar.sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

.navbar .nav-link {
    color: #0052cc !important;
    /* Force Blue at load for visibility */
    font-weight: 600;
}

[data-theme="dark"] .navbar .nav-link {
    color: #fff !important;
}

.navbar .logo-img {
    filter: none !important;
}

.navbar.sticky .nav-links a:not(.btn),
.navbar.sticky .theme-toggle,
.navbar.sticky .hamburger {
    color: var(--primary-color);
}

[data-theme="dark"] .navbar.sticky {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .navbar.sticky .nav-links a:not(.btn),
[data-theme="dark"] .navbar.sticky .theme-toggle,
[data-theme="dark"] .navbar.sticky .hamburger {
    color: #fff;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary-color);
    text-transform: capitalize;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--text-dark);
}

[data-theme="dark"] .logo span {
    color: #fff;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links ul {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    /* Asegura que no tenga bullets */
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
    position: relative;
    transition: color var(--transition-speed);
}

[data-theme="dark"] .nav-links a {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed), background-color var(--transition-speed);
}

[data-theme="dark"] .nav-links a::after {
    background-color: #fff;
}

.nav-links a:not(.btn-navbar):hover::after,
.nav-links a:not(.btn-navbar).active::after {
    width: 100%;
}

.navbar.sticky .nav-links a::after {
    background-color: var(--primary-color);
}

.nav-links .btn {
    padding: 8px 20px;
}

/* Ensure the button doesn't have the underline effect */
.nav-links .btn::after {
    display: none;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--primary-color);
    /* Fixed: visible in light mode */
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle {
    color: #fff;
}

[data-theme="dark"] .theme-toggle:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .nav-links a {
    color: #fff;
}

[data-theme="dark"] .hamburger {
    color: #fff;
}

[data-theme="dark"] .navbar {
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid #1a1a1a;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
}

/* Hero Section */
.hero {
    background-color: #f8f9fa;
    /* Light neutral background for the section */
    padding: 3.5rem 0;
    margin-top: 80px;
    /* Offset for fixed navbar */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .hero {
    background-color: #0f172a;
}

.hero-half {
    min-height: 40vh;
    margin-top: 80px;
    padding: 3.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-half .hero-container {
    grid-template-columns: 1fr;
    /* Centered content only */
    background: var(--primary-color);
    padding: var(--spacing-lg);
    text-align: center;
}

.hero-half .hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-half .hero-content h1 {
    font-size: 3rem !important;
}

/* Optional pseudo-element to mimic the "PUFF CLOUDS PRESENT Let's Vaping!" vibe */
.hero::before {
    content: 'SOLUCIONES SANITARIAS PRESENT';
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-content {
    /* Aligning with the image's heavy left-centered feel for text, or keep center for adaptability */
    text-align: left;
    max-width: 800px;
    margin: 0;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    color: #fff;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
}

[data-theme="dark"] .hero-content h1 {
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
}

.hero-half .hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: var(--spacing-sm);
}

.hero-half .hero-content p {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Redesigned Hero with Sidebar (Block Style) */
.hero-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    width: 100%;
    max-width: 1200px !important;
    margin: 0 auto;
    height: 520px;
    /* Increased height for all 7 services */
    background: var(--primary-color);
    /* Content background as base */
    border-radius: 24px;
    overflow: hidden;
}

.hero-sidebar {
    background: #fff;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    height: 100%;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle white border for dark contrast */
    z-index: 5;
}

.hero-content {
    background-color: var(--primary-color);
    padding: var(--spacing-lg) var(--spacing-xl);
    padding-left: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
    /* Ensure it fills the grid column */
    position: relative;
    overflow: hidden;
    text-align: left;
    color: #fff !important;
    /* Ensure title/text are white at load */
}

#hero-title {
    color: #fff !important;
    transition: opacity 0.15s ease-in-out;
}

#hero-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: opacity 0.15s ease-in-out;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.sidebar-item i {
    width: 32px;
    height: 32px;
    background: rgba(0, 82, 204, 0.05);
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sidebar-item:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(5px);
}

.sidebar-item:hover i {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.hero-info-container {
    transition: opacity 0.3s ease;
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-sidebar {
        display: none;
        /* Hide sidebar on small tablets/mobile or rethink layout */
    }
}

/* Features/Services Preview */
.services-preview {
    background-color: transparent !important;
}

.service-card {
    background: var(--bg-surface);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed), border-color var(--transition-speed), background-color var(--transition-speed), box-shadow var(--transition-speed);
    text-align: left;
    border: 1px solid var(--border-subtle);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.service-card.highlighted-card {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.service-card.highlighted-card p {
    color: rgba(255, 255, 255, 0.9);
}

.service-card.highlighted-card .service-icon {
    color: #fff;
    border-color: transparent;
}

.service-card.highlighted-card h3 {
    color: #fff;
}

.service-card.highlighted-whatsapp {
    background-color: rgba(37, 211, 102, 0.05);
    border-color: #25D366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.1);
}

.service-card.highlighted-whatsapp:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.25);
    border-color: #25D366;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
    line-height: 1.2;
    background-color: #25D366 !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3) !important;
    border: 2px solid #25D366 !important;
}

.btn-whatsapp:hover {
    background-color: #1DA851 !important;
    /* Darker WhatsApp green */
    color: #fff !important;
    border-color: #1DA851 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
}

/* Add a standard emergency button class just in case the user meant `.btn-alert` or similar */
.btn-danger {
    background-color: var(--alert-color) !important;
    color: #fff !important;
    border: 2px solid var(--alert-color) !important;
}

.btn-danger:hover,
[style*="background-color: #ff0000"]:hover,
[style*="background-color: var(--alert-color)"]:hover {
    background-color: #cc0000 !important;
    /* Darker red */
    color: #fff !important;
    border-color: #cc0000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4) !important;
}

.service-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #f1f5f9;
    /* Solid gray circle */
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: all var(--transition-speed);
}

.service-card:hover i {
    background-color: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

/* Grid System */
.grid-responsive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    align-items: center;
}

.grid-3-responsive {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    align-items: center;
}

/* Service CTA Card */
.service-card.cta-card {
    background-color: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: var(--spacing-lg);
}

.service-card.cta-card h3,
.service-card.cta-card p,
.service-card.cta-card .service-icon i {
    color: white !important;
}

.service-card.cta-card:hover {
    background-color: white !important;
    transform: translateY(-10px);
}

.service-card.cta-card:hover h3,
.service-card.cta-card:hover p,
.service-card.cta-card:hover .service-icon i {
    color: var(--primary-color) !important;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.grid-4-mobile-2 div {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    transition: transform var(--transition-speed);
}

.grid-4-mobile-2 div:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.grid-4-mobile-2 div i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--bg-footer);
    color: var(--text-muted);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 1px solid var(--border-subtle);
    /* Fixed comma */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    display: block;
    color: var(--text-dark);
}

.footer-links h4,
.contact-info h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.contact-info p i {
    color: var(--primary-color);
}

/* Floating WhatsApp/Call Button */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.float-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.float-whatsapp {
    background-color: #25D366;
}

.float-phone {
    background-color: var(--primary-color);
}

/* Overrides for specific inline text and backgrounds from old style */

/* Strip away hardcoded inline backgrounds so theme colors take over */
[style*="background-color: var(--primary-color)"],
[style*="background-color: var(--primary-dark)"] {
    background-color: var(--bg-footer) !important;
    color: var(--text-dark) !important;
    border-top: 1px solid var(--border-subtle) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

/* Force headings and paragraphs inside them to follow the theme */
[style*="background-color: var(--primary-color)"] h1,
[style*="background-color: var(--primary-color)"] h2,
[style*="background-color: var(--primary-color)"] h3,
[style*="background-color: var(--primary-color)"] p,
[style*="background-color: var(--primary-dark)"] h1,
[style*="background-color: var(--primary-dark)"] h2,
[style*="background-color: var(--primary-dark)"] h3,
[style*="background-color: var(--primary-dark)"] p {
    color: var(--text-dark) !important;
}

/* Revert icons that used --accent-light to blue since background is now white/black */
[style*="color: var(--accent-light)"] {
    color: var(--primary-color) !important;
}

/* If any tag specifically says color: white inline, override it to responsive dark text */
[style*="color: white;"] {
    color: var(--text-dark) !important;
}

[style*="color: #fff"] {
    color: var(--text-dark) !important;
}

[style*="color: var(--text-dark)"] {
    color: var(--text-dark) !important;
}

/* Exceptions: Reformat the explicitly white button inside 'Why Choose Us' to be blue */
.btn[style*="background-color: white;"] {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border: none !important;
}

[style*="background-color: rgba(255, 255, 255, 0.02);"] {
    background-color: var(--accent-light) !important;
}

/* Alternating Grid Layout for Desktop */
@media (min-width: 1025px) {
    .grid-responsive-alt>div:first-child {
        order: 2;
        padding-right: 0 !important;
        padding-left: var(--spacing-md) !important;
    }

    .grid-responsive-alt>div:last-child {
        order: 1;
    }
}

@media (max-width: 1024px) {
    .grid-responsive {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-container {
        grid-template-columns: 80px 1fr !important;
        height: auto !important;
        min-height: 500px;
    }

    .sidebar-item {
        font-size: 0 !important;
        justify-content: center;
        padding: 15px;
    }

    .sidebar-item i {
        font-size: 1.5rem;
        margin: 0;
    }

    .hero-content {
        padding: 3rem 2rem;
    }
}

@media (max-width: 1024px) {
    .grid-responsive {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .grid-3-responsive {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Flip order: Image on top */
    .grid-responsive>div:last-child {
        order: -1;
    }

    .hero-container {
        grid-template-columns: 80px 1fr !important;
        height: auto !important;
        min-height: 500px;
        display: grid !important;
    }

    .sidebar-item {
        font-size: 0 !important;
        justify-content: center;
        padding: 15px;
    }

    .sidebar-item i {
        font-size: 1.5rem;
        margin: 0;
    }

    .hero-content {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #0a0a0a;
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid #1a1a1a;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: var(--spacing-md);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
        color: var(--primary-color) !important;
        /* Always blue on mobile */
    }

    .hero::before {
        display: none;
    }

    .hero-container {
        grid-template-columns: 70px 1fr !important;
        max-width: 95% !important;
        display: grid !important;
    }

    .hero-sidebar {
        padding: var(--spacing-xs);
        width: 70px;
        display: flex !important;
        /* Ensure visibility */
    }

    .sidebar-item {
        width: 44px;
        height: 44px;
        padding: 10px;
    }

    .hero-content h1 {
        font-size: 1.8rem !important;
    }

    .hero-scroll-btn {
        display: none;
    }
}

/* Hero Scroll Tab */
.hero-scroll-btn {
    position: absolute;
    bottom: -35px;
    /* Protrudes exactly into the next section */
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 35px;
    background-color: var(--primary-color);
    border-radius: 0 0 35px 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.hero-scroll-btn:hover {
    background-color: var(--primary-dark);
}

.hero-scroll-btn i {
    animation: scrollBounce 2s infinite;
}

/* Fix for Subpage Heroes without Sidebar */
.hero-half .hero-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
}

/* Reusable Effects */
.premium-shadow {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .premium-shadow {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Trusted Bar / Features Overhaul */
.features-bar {
    background: transparent !important;
    border: none !important;
}

.feature-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 1.25rem;
}

[data-theme="dark"] .feature-card {
    background-color: #111;
    color: #fff;
}

@keyframes scrollBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-4px);
    }

    60% {
        transform: translateY(-2px);
    }
}

/* Contact Page Refinements */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.contact-card-horizontal {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Soft shadow as requested */
}

.contact-card-horizontal:hover {
    transform: translateX(10px);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    background-color: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-card-text {
    flex-grow: 1;
}

.contact-card-text h4 {
    margin: 0 0 0.2rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.contact-card-text p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.map-section {
    padding: 2rem 0 4rem;
}

.map-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-subtle);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

[data-theme="dark"] .contact-card-horizontal {
    background-color: #111;
}

[data-theme="dark"] .contact-card-icon {
    background-color: #1e293b;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card-horizontal {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-card-horizontal:hover {
        transform: translateY(-5px);
    }
}

/* Phase 15 - Mobile/Tablet Hero Typography & Grid Refinements */
@media (max-width: 1024px) {
    .header.hero-half {
        height: auto !important;
        min-height: 40vh !important;
    }

    .hero-half .hero-content h1 {
        font-size: 1.8rem !important;
        white-space: normal !important;
        line-height: 1.3 !important;
    }

    .hero-half .hero-content p {
        font-size: 1.15rem !important;
        line-height: 1.5 !important;
    }

    .grid-1-mobile {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .service-card h3 {
        font-size: 1.25rem !important;
    }
}