/* CSS Reset and Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #60C779;
    --primary-blue: #2751F4;
    --dark-text: #1a1a1a;
    --light-text: #666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Accessibility - Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1000;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Accessibility - Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    font-family: 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lucida Grande', 'Trebuchet MS', 'Lucida Sans Unicode', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    border-bottom: 3px solid var(--primary-green);
}

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

.nav-brand .logo {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-green);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 120px 0 100px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* Buttons */
.btn {
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

.btn i {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-waitlist {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.btn-waitlist:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

/* Section Styling */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about {
    background: linear-gradient(135deg, rgba(96, 199, 121, 0.03) 0%, rgba(39, 81, 244, 0.03) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-blue);
    margin: 2rem 0 1rem;
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.features-list i {
    color: var(--primary-green);
    flex-shrink: 0;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary-green);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.service-card i {
    width: 60px;
    height: 60px;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--light-text);
}

.service-card.highlight {
    border: 2px solid var(--primary-green);
    background: linear-gradient(135deg, rgba(96, 199, 121, 0.05) 0%, rgba(39, 81, 244, 0.05) 100%);
}

.coming-soon {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1rem;
}

/* Branches Section */
.branches {
    background: linear-gradient(135deg, rgba(39, 81, 244, 0.03) 0%, rgba(96, 199, 121, 0.03) 100%);
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.branch-card {
    background: var(--white);
    border-radius: 0 15px 15px 0;
    padding: 2rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.branch-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.branch-header i {
    width: 40px;
    height: 40px;
}

.branch-header h3 {
    font-size: 1.5rem;
}

.branch-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.branch-details i {
    color: var(--primary-green);
    width: 20px;
    height: 20px;
}

.branch-facebook {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.branch-facebook:hover {
    color: var(--primary-green);
}

.branch-facebook i {
    width: 24px;
    height: 24px;
}

.branch-facebook-spacer {
    height: 48px;
    margin-top: 1rem;
}

.branch-map {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(96, 199, 121, 0.1) 0%, rgba(39, 81, 244, 0.1) 100%);
    border-radius: 10px;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    border: 2px solid rgba(39, 81, 244, 0.2);
}

/* Gallery Section - Carousel */
.carousel-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    padding: 10px 0;
}

.carousel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.carousel-image-card {
    position: relative;
    background: linear-gradient(to right, var(--primary-blue) 0%, var(--primary-green) 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 3px;
    padding-bottom: 0;
}

.carousel-image-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.carousel-image-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.carousel-caption {
    text-align: center;
    padding: 0.75rem;
    background: linear-gradient(to right, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow);
}

.carousel-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-btn i {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
}

.carousel-btn:hover i {
    color: var(--white);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-indicator.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    border-color: var(--primary-green);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, rgba(96, 199, 121, 0.03) 0%, rgba(39, 81, 244, 0.03) 100%);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 3rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--primary-blue);
    transition: all 0.3s ease;
    border: 2px solid var(--primary-green);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: var(--white);
    border-color: var(--primary-blue);
}

.contact-card i {
    width: 50px;
    height: 50px;
}

.contact-card span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--dark-text);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-links h4,
.footer-branches h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-branches ul {
    list-style: none;
}

.footer-links ul li,
.footer-branches ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-content.modal-iframe {
    max-width: 700px;
    padding: 1.5rem;
}

.modal-content.modal-iframe h2 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
    text-align: center;
}

.modal-content.modal-iframe iframe {
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--light-text);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--dark-text);
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

#waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#waitlist-form input,
#waitlist-form select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

#waitlist-form input:focus,
#waitlist-form select:focus {
    outline: none;
    border-color: var(--primary-green);
}

#waitlist-form button.btn-primary {
    width: 100%;
    justify-content: center;
}

#waitlist-form button.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Accessibility - Enhanced Focus Styles for Keyboard Navigation */
a:focus,
button:focus,
input:focus,
select:focus,
iframe:focus {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Focus visible for modern browsers (only show on keyboard, not mouse) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Remove focus outline for mouse users (keep for keyboard) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .branches-grid {
        grid-template-columns: 1fr;
    }

    section h2 {
        background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .carousel-container {
        padding: 0 50px;
    }

    .carousel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .carousel-image-card img {
        height: 200px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn i {
        width: 20px;
        height: 20px;
    }

    .carousel-caption {
        font-size: 0.85rem;
        padding: 0.5rem;
        min-height: 50px;
    }

    section h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

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

    .contact-links {
        flex-direction: column;
    }

    .carousel-container {
        padding: 0 40px;
    }

    .carousel-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .carousel-image-card img {
        height: 200px;
    }

    .carousel-caption {
        font-size: 0.85rem;
        padding: 0.5rem;
        min-height: 50px;
    }
}
