/* Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-transform: uppercase;
    min-height: 44px;
}

.btn-primary {
    background: white;
    color: black;
    border: 1px solid white;
}

.btn-primary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: rgba(7, 7, 7, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    justify-self: start;
    margin-left: 80px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.navbar.scrolled .logo img {
    height: 48px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    justify-self: center;
}

.nav-cta {
    justify-self: end;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    justify-self: end;
    cursor: pointer;
}

.mobile-only {
    display: none;
}

/* Service Cards */
.service-card {
    padding: 2rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(25, 25, 25, 1) 0%, rgba(15, 15, 15, 1) 100%);
    border: 1px solid var(--panel-border);
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.service-card:hover .card-image {
    filter: grayscale(0%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    /* or 1/1 depending on preference */
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* CTA Panel */
.cta-panel {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 24px;
    padding: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Mobile Nav */
@media (max-width: 1024px) {
    .navbar {
        padding: 15px 0;
        background: rgba(7, 7, 7, 0.8);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(7, 7, 7, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        padding: 2rem;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.25rem;
        letter-spacing: 0.1em;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        z-index: 1001;
    }

    .nav-cta {
        display: none;
        /* Hide desktop CTA */
    }

    .nav-menu .nav-cta-mobile {
        display: block;
        width: 100%;
        max-width: 300px;
        margin-top: 1rem;
    }

    .logo {
        margin-left: 0;
    }

    .logo img {
        height: 48px;
    }
}

/* FAQ Section */
.text-gradient-gray {
    background: linear-gradient(to right, #B0B0B0, #E0E0E0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-accordion {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease;
    font-family: var(--font-main);
    text-transform: none;
    font-variation-settings: 'wdth' 115;
}

.faq-question:hover {
    color: var(--accent-gray);
}

.faq-question .icon {
    font-size: 1.5rem;
    color: var(--accent-gray);
    transition: transform 0.3s ease;
    font-weight: 300;
    pointer-events: none;
    /* Ensure click passes to button */
}

.faq-question span {
    pointer-events: none;
    /* Ensure click passes to button */
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding-bottom: 1.5rem;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Contact Redesign */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 350px 1fr;
        gap: 3rem;
    }
}

.contact-card {
    background: var(--panel-color);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-secondary);
}

.contact-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    font-family: inherit;
    /* Ensure global font */
}

.btn-glow {
    width: 100%;
    padding: 1.25rem;
    background: white;
    color: black;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    /* Pill shape */
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: block;
    margin-top: 1rem;
    font-family: inherit;
    /* Ensure global font */
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

/* Instagram Feed */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.insta-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insta-item:hover img {
    transform: scale(1.1);
}

.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    gap: 1rem;
    color: white;
    font-weight: 600;
}

.insta-item:hover .insta-overlay {
    opacity: 1;
}

.insta-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Location Badge */
.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.location-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.location-badge svg {
    width: 1rem;
    height: 1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background: var(--panel-color);
    border: 1px solid var(--panel-border);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    /* Will be styled with accent gradient in HTML mainly */
}

.checkmark-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 3rem;
    margin-top: 3rem;
    border-top: 1px solid var(--panel-border);
    padding-top: 3rem;
}

.checkmark-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    opacity: 0.8;
}

.checkmark-icon {
    color: #4CAF50;
    /* Green checkmark or can be gray */
    width: 1.2rem;
    height: 1.2rem;
}

/* Redesigned Services Section */
.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.services-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.service-card-v2 {
    background: var(--panel-color);
    border: 1px solid var(--panel-border);
    padding: 2.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.service-card-v2.popular {
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: black;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.service-card-v2 .card-price {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1.5rem 0;
    color: white;
}

.service-features-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    flex-grow: 1;
}

.service-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.service-features-list li svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--text-primary);
}

.plus-header {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: white;
    font-style: italic;
}

/* Maintenance Plans */
.maintenance-section {
    margin-top: 8rem;
}

.maintenance-card {
    background: var(--panel-color);
    border: 1px solid var(--panel-border);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.maintenance-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.maintenance-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .maintenance-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.maintenance-price {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

/* Promo System */
.promo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.promo-overlay.active {
    display: flex;
    opacity: 1;
}

.promo-modal {
    background: rgba(25, 25, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4rem 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.05);
}

.promo-overlay.active .promo-modal {
    transform: scale(1);
}

.promo-modal .close-promo {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.promo-modal .close-promo:hover {
    color: white;
}

.promo-modal h2 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: white;
    letter-spacing: -2px;
}

.promo-modal .promo-label {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin-bottom: 2rem;
    display: block;
    color: var(--text-secondary);
}

.promo-modal .promo-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

/* Minimized Trigger Badge */
.promo-badge {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: white;
    color: black;
    border-radius: 50%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    z-index: 2500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: bounceIn 0.6s cubic-bezier(0.16, 1, 0.3, 1), floatPromo 4s ease-in-out infinite;
    text-align: center;
    line-height: 1;
}

.promo-badge.visible {
    display: flex;
}

.promo-badge:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.5);
}

@keyframes floatPromo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }

    70% {
        transform: scale(1.1) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .promo-modal {
        padding: 3rem 1.5rem;
    }

    .promo-modal h2 {
        font-size: 3rem;
    }

    .promo-badge {
        width: 60px;
        height: 60px;
        font-size: 0.65rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Apex WebWorks Glow */
.apex-glow {
    color: white;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 20px rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

/* Gallery Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
    cursor: default;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
    animation: lightboxFade 0.3s ease-out;
}

@keyframes lightboxFade {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--text-secondary);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }
}