/* Modern Pharmacy Design System - NYS FARMA */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #571775;
    --primary-dark: #3a0f4d;
    --secondary: #006b88;
    --secondary-light: #17a5c7;
    --accent: #00c9a7;
    --text-main: #1a1a1a;
    --text-light: #666666;
    --white: #ffffff;
    --gradient-hero: linear-gradient(135deg, #0d4f6e 0%, #1a8fc4 50%, #a8e6cf 100%);
    --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 20px 50px -10px rgba(87, 23, 117, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: #f8f9fc;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(87, 23, 117, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(87, 23, 117, 0.4);
}

.btn-cta {
    background: var(--accent);
    color: #1a1a1a;
    font-weight: 700;
}

.btn-cta:hover {
    background: #00b894;
    transform: translateY(-2px);
}

.btn-hero {
    background: var(--accent);
    color: #1a1a1a;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 201, 167, 0.4);
}

.btn-hero:hover {
    background: #00b894;
    transform: translateY(-3px) scale(1.02);
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Header - Transparent over hero */
header {
    background: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background: #006b88 !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 2rem;
    /* Added spacing per user request */
}

.nav-links {
    display: flex;
    gap: 2rem;
    /* Slightly reduced gap between links to fit better if needed, or keep 2.5 */
    list-style: none;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: 2rem;
    /* Added spacing from nav links */
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Dark Nav for specific slides (when header is transparent) */
/* Dark Nav for specific slides (when header is transparent) */
/* PC Only - Affects links */
@media (min-width: 769px) {
    header.nav-dark-pc:not(.scrolled) .nav-links a {
        color: var(--primary) !important;
        font-weight: 600;
    }
}

/* Dark Nav for specific slides (Mobile) */
@media (max-width: 768px) {
    header.nav-dark-movil:not(.scrolled) .menu-toggle span {
        background: var(--gradient-main);
    }
}

/* Modern Hero Section - Full viewport */
.hero-modern {
    background: var(--gradient-hero);
    padding-top: 0;
    padding-bottom: 0;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-carousel {
    flex: 1;
    position: relative;
    width: 100%;
}

.hero-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.hero-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.hero-slide .container {
    height: 100%;
    min-height: calc(100vh - 100px);
    /* Ensure full height alignment */
    display: flex;
    align-items: center;
    padding-top: 100px;
    /* Space for fixed header */
}

/* Full Width Slide Styles */
.hero-slide.full-width-slide {
    position: relative;
    padding: 0;
}

.full-screen-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slide-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: pointer;
}

/* Nav Buttons */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-nav.prev {
    left: 20px;
}

.hero-nav.next {
    right: 20px;
}

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 120px;
    /* Above feature strip */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-dots .dot.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    color: #ffeb3b;
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 450px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    background: white;
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    width: 280px;
    height: 400px;
    position: relative;
    z-index: 2;
}

.phone-screen {
    background: linear-gradient(180deg, #f8f9fc 0%, #e8f4f8 100%);
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.app-badge {
    background: var(--gradient-main);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* WhatsApp Mockup */
.phone-frame {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 45px;
    padding: 10px;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.5),
        inset 0 0 0 2px #444,
        inset 0 0 0 4px #222;
    position: relative;
}

.whatsapp-mockup {
    background: #0b141a;
    border-radius: 38px;
    width: 280px;
    min-height: 480px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.wa-header {
    background: #1f2c34;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-info {
    display: flex;
    flex-direction: column;
}

.wa-info strong {
    color: white;
    font-size: 0.95rem;
}

.wa-info small {
    color: #8696a0;
    font-size: 0.75rem;
}

.wa-chat {
    background: #0b141a;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.wa-message {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
}

.wa-message p {
    color: #e9edef;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

.wa-message.received {
    background: #1f2c34;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.wa-message.sent {
    background: #005c4b;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.wa-time {
    font-size: 0.65rem;
    color: #8696a0;
    display: block;
    text-align: right;
    margin-top: 4px;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Feature Strip */
.feature-strip {
    background: white;
    padding: 1.5rem 0;
    border-top: 4px solid var(--accent);
}

.feature-strip .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
}

.feature-item i {
    color: var(--accent);
    font-size: 1.3rem;
}

/* Services */
.services {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(87, 23, 117, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    /* Ensure links don't have underline */
}

.service-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-10px);
}

.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.icon-box.secondary {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.service-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    font-size: 1.4rem;
}

.service-tagline {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.75rem !important;
}

.service-card p {
    color: var(--text-light);
}

/* Rappi Card */
.rappi-card {
    background: linear-gradient(135deg, #ff5a00 0%, #ff8c00 100%);
    color: white;
}

.rappi-card h3,
.rappi-card p,
.rappi-card .service-tagline {
    color: white !important;
}

.rappi-card:hover {
    background: linear-gradient(135deg, #ff6a10 0%, #ff9c10 100%);
    box-shadow: 0 20px 50px -10px rgba(255, 90, 0, 0.4);
}

.rappi-logo {
    width: 80px;
    height: 80px;
    background: #ff5a00;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(255, 90, 0, 0.3);
}

.rappi-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f4f8 100%);
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 320px;
    max-width: 320px;
    padding: 2rem;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.testimonial-card .stars {
    color: #ffb400;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.testimonial-card h4 {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
}

/* Contact Links Section */
.contact-links-section {
    padding: 80px 0;
    background: #f8f9fc;
}

.contact-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid transparent;
}

.contact-link-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.link-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}

.link-content {
    flex: 1;
}

.link-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.link-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.contact-link-card>.fa-chevron-right {
    color: #ccc;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.contact-link-card:hover>.fa-chevron-right {
    transform: translateX(3px);
    color: var(--primary);
}

/* Card Color Variants */
.contact-link-card.whatsapp {
    border-left-color: #25d366;
}

.contact-link-card.whatsapp .link-icon {
    background: #25d366;
}

.contact-link-card.phone {
    border-left-color: var(--secondary);
}

.contact-link-card.phone .link-icon {
    background: var(--secondary);
}

.contact-link-card.rappi {
    border-left-color: #ff5a00;
}

.contact-link-card.rappi .link-icon {
    background: #ff5a00;
}

.contact-link-card.promo {
    border-left-color: #e91e63;
}

.contact-link-card.promo .link-icon {
    background: #e91e63;
}

.contact-link-card.locations {
    border-left-color: #9c27b0;
}

.contact-link-card.locations .link-icon {
    background: #9c27b0;
}

.contact-link-card.billing {
    border-left-color: var(--primary);
}

.contact-link-card.billing .link-icon {
    background: var(--primary);
}

/* Page Hero (Inner pages) */
.page-hero {
    background: var(--gradient-hero);
    padding: 160px 0 80px;
    text-align: center;
    color: white;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: white;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-intro h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Mission & Vision */
.mission-vision {
    padding: 80px 0;
    background: #f8f9fc;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mv-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-10px);
}

.mv-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.mv-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.mv-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background: white;
    text-align: center;
}

.values-section h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.value-item {
    padding: 2rem 1rem;
    border-radius: 16px;
    background: #f8f9fc;
    transition: all 0.3s ease;
}

.value-item:hover {
    background: var(--primary);
    color: white;
}

.value-item:hover i {
    color: white;
}

.value-item i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.value-item h4 {
    font-size: 1rem;
    font-weight: 600;
}

/* Sucursales Section */
.sucursales-section {
    padding: 80px 0;
    background: #f8f9fc;
}

.sucursales-wrap {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    min-height: 500px;
}

.sucursales-sidebar {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #eee;
}

.sucursales-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn-ubicacion {
    flex: 1;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-ubicacion:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(87, 23, 117, 0.3);
}

.btn-reset {
    background: #f0f0f0;
    color: var(--text-main);
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #e0e0e0;
}

.estado-ubicacion {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    padding: 8px 12px;
    background: #f8f9fc;
    border-radius: 8px;
}

.punto {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f0ad4e;
    flex-shrink: 0;
}

.punto.ok {
    background: #28a745;
}

.punto.error {
    background: #dc3545;
}

.sucursales-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sucursal-card {
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #eee;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sucursal-card:hover {
    background: #f0f7fb;
    border-color: var(--secondary);
    transform: translateX(5px);
}

.sucursal-card.activa {
    border-color: var(--primary);
    background: #f6f0fa;
    box-shadow: 0 4px 15px rgba(87, 23, 117, 0.15);
}

.sucursal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.sucursal-nombre {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.sucursal-detalle {
    font-size: 0.8rem;
    color: #666;
}

.sucursal-distancia {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 600;
    margin-top: 4px;
}

.badge-cercana {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--primary);
    color: white;
}

.badge-estado {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 999px;
    color: white;
}

.badge-nueva {
    background: #28a745;
}

.badge-prox {
    background: #dc3545;
}

.btn-ir {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-ir:hover {
    background: var(--primary);
}

.map-container {
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

@media (max-width: 900px) {
    .sucursales-wrap {
        grid-template-columns: 1fr;
    }

    .sucursales-sidebar {
        order: 2;
        border-right: none;
        border-top: 1px solid #eee;
        max-height: 350px;
    }

    .map-container {
        order: 1;
        min-height: 300px;
    }

    #map {
        min-height: 300px;
    }
}

/* CTA Banner */
.cta-banner {
    background: var(--gradient-main);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.cta-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
    color: #ccc;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-link {
    display: inline;
}

.footer-link i {
    color: #ccc;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: inline-flex;
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 100px 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .nav-links .btn-cta {
        margin-top: 1rem;
        text-align: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    /* Mobile Hero Optimization */
    .hero-modern {
        min-height: auto;
        /* Allow container to shrink */
        display: block;
        /* Remove flex forcing height */
    }

    .hero-carousel {
        min-height: auto;
    }

    /* Keep text slide tall */
    .hero-slide:not(.full-width-slide) {
        min-height: 600px;
        padding-bottom: 60px;
    }

    /* GIF Slide shrinks to fit image */
    .hero-slide.full-width-slide {
        background: white;
        padding-top: 85px;
        height: auto;
        min-height: 0;
    }

    .hero-slide.full-width-slide .full-screen-bg {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    /* Adjust dots position */
    .hero-dots {
        bottom: 15px;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

    .hero-visual {
        display: none;
    }

    .feature-strip .container {
        flex-direction: column;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-links-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Header Actions Group */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Call Button (White bg, Blue text) */
.btn-call {
    color: var(--secondary) !important;
    box-shadow: 0 4px 15px rgba(0, 107, 136, 0.2);
}

.btn-call:hover {
    color: var(--secondary-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 107, 136, 0.3);
}

/* Ensure desktop-only works on the wrapper */
@media (max-width: 768px) {
    .header-actions.desktop-only {
        display: none !important;
    }

    /* Mobile Menu Actions */
    @media (max-width: 768px) {
        .nav-links .mobile-actions-li {
            border-bottom: none !important;
            margin-top: 4rem;
            /* Double space per user request */
        }

        .mobile-actions {
            display: flex;
            justify-content: center;
            align-items: stretch;
            /* Force equal height */
            gap: 1rem;
            width: 100%;
        }

        /* Adjust buttons for mobile if needed */
        .mobile-actions .btn {
            flex: 1;
            /* Make them equal width/symmetrical */
            display: flex;
            align-items: center;
            /* Center content vertically */
            justify-content: center;
            padding: 0;
            /* Let height control sizing */
            height: 48px;
            /* Fixed height for exact match */
            font-size: 0.95rem;
            white-space: nowrap;
            border-radius: 50px;
            /* Fully rounded pill shape */
            font-weight: 700;
            /* Match bold text of other buttons */
            box-shadow: none !important;
            /* Remove shadow for flat consistency on dark bg */
            border: none;
            margin: 0 !important;
            /* Override interfering margins (like btn-cta's margin-top) */
        }

        .mobile-actions .btn i {
            font-size: 1.1rem;
            /* Standardize icon size */
        }
    }
}