/* ===== CSS Variables ===== */
:root {
    --primary: #1a5f7a;
    --primary-dark: #134b61;
    --secondary: #e63946;
    --accent: #f4a261;
    --dark: #1a1a2e;
    --dark-light: #2d2d44;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    
    /* Rainbow colors for slideshow */
    --slide-1: #1a5f7a;
    --slide-2: #2d6a4f;
    --slide-3: #1a1a2e;
    
    --font-primary: 'Poppins', sans-serif;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== Utility Classes ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section--alt {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
                url('../images/backgrounds/back-1.jpg') center/cover no-repeat;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section__title--left {
    text-align: left;
}

.section__subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
}

.btn--primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn--outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn--white {
    background-color: var(--white);
    color: var(--primary);
}

.btn--white:hover {
    background-color: var(--light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
}

.header.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.header.scrolled .nav__link {
    color: var(--dark);
}

.header.scrolled .nav__link:hover,
.header.scrolled .nav__link.active {
    color: var(--primary);
}

.header.scrolled .logo-rainbow {
    color: var(--primary);
}

.header.scrolled .logo-group {
    color: var(--dark);
}

.header.scrolled .nav__toggle span {
    background-color: var(--dark);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav__logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-rainbow {
    color: var(--white);
    transition: var(--transition);
}

.logo-group {
    color: var(--accent);
    transition: var(--transition);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    color: var(--white);
    font-weight: 500;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__cta {
    background-color: var(--secondary);
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius);
}

.nav__cta::after {
    display: none;
}

.nav__cta:hover {
    background-color: #c1121f;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.nav__toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero__slide.active {
    opacity: 1;
}

.hero__slide[data-slide="1"] {
    background: linear-gradient(135deg, rgba(20, 80, 100, 0.7) 0%, rgba(13, 61, 77, 0.7) 100%),
                url('../images/hero/hero-1.jpg') center/cover no-repeat;
}

.hero__slide[data-slide="2"] {
    background: linear-gradient(135deg, rgba(27, 67, 50, 0.7) 0%, rgba(27, 67, 50, 0.7) 100%),
                url('../images/hero/hero-2.jpg') center/cover no-repeat;
}

.hero__slide[data-slide="3"] {
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.7) 0%, rgba(22, 33, 62, 0.7) 100%),
                url('../images/hero/hero-3.jpg') center/cover no-repeat;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 800px;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero__indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 4;
}

.hero__indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.hero__indicator.active,
.hero__indicator:hover {
    background-color: var(--white);
    transform: scale(1.2);
}

.hero__arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 4;
    pointer-events: none;
}

.hero__arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    pointer-events: auto;
}

.hero__arrow:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* ===== Services Section ===== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-card__icon {
    background-color: var(--primary);
    color: var(--white);
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.service-card__text {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.service-card__link {
    color: var(--primary);
    font-weight: 500;
}

.service-card__link:hover {
    color: var(--primary-dark);
}

/* ===== Other Services Section ===== */
.other-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.other-service-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.other-service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.other-service-item__icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.other-service-item:hover .other-service-item__icon {
    background-color: var(--primary);
    color: var(--white);
}

.other-service-item__content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.other-service-item__content p {
    font-size: 0.875rem;
    color: var(--gray);
    margin: 0;
}

/* ===== About Us Section ===== */
.about {
    text-align: center;
}

.about__content {
    max-width: 800px;
    margin: 0 auto;
}

.about__text {
    margin: 2rem 0;
}

.about__text p {
    margin-bottom: 1.5rem;
    color: var(--gray);
    line-height: 1.8;
}

.about__cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.about__cta .btn--primary {
    margin: 0 auto;
}

.about__cta .btn--outline {
    color: var(--primary);
    border-color: var(--primary);
}

.about__cta .btn--outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* About section specific background */
.about.section--alt {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
                url('../images/backgrounds/back-2.jpg') center/cover no-repeat;
}

/* ===== About Preview Section ===== */
.about-preview__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-preview__text {
    color: var(--gray);
    margin-bottom: 1rem;
}

.about-preview__list {
    margin: 1.5rem 0 2rem;
}

.about-preview__list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 500;
}

.about-preview__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.about-preview__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-card__label {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== Why Choose Us Section ===== */
.why-us__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.why-us__item {
    text-align: center;
    padding: 1.5rem;
}

.why-us__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background-color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.why-us__item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.why-us__item p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== CTA Section ===== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 5rem 0;
}

.cta__content {
    text-align: center;
    color: var(--white);
}

.cta__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta__text {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* CTA Form Styles */
.cta__form {
    max-width: 600px;
    margin: 0 auto;
}

.cta__form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cta__form-group {
    margin-bottom: 1rem;
}

.cta__form-group--full {
    grid-column: 1 / -1;
}

.cta__form-input,
.cta__form-select,
.cta__form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta__form-input::placeholder,
.cta__form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.cta__form-input:focus,
.cta__form-select:focus,
.cta__form-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.cta__form-select option {
    background: var(--primary-dark);
    color: var(--white);
}

.cta__form-textarea {
    resize: vertical;
    min-height: 100px;
}

.btn--full {
    width: 100%;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid var(--dark-light);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__credit {
    font-size: 0.875rem;
    color: var(--gray);
}

.footer__credit-link {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.footer__credit-link:hover {
    color: var(--white);
}

/* ===== Floating WhatsApp Button ===== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

.footer__email-link {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.footer__email-link:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--dark-light);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer__tagline {
    color: var(--gray);
    max-width: 280px;
}

.footer__accreditation {
    margin-top: 1rem;
}

.footer__accreditation-text {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

.footer__links h4,
.footer__contact h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.footer__links ul li {
    margin-bottom: 0.75rem;
}

.footer__links a {
    color: var(--gray);
}

.footer__links a:hover {
    color: var(--accent);
}

.footer__contact p {
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.footer__contact strong {
    color: var(--white);
}

.footer__bottom {
    padding: 1.5rem 0;
    text-align: center;
    color: var(--gray);
    font-size: 0.875rem;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-us__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        max-width: 250px;
        height: 100vh;
        background-color: var(--dark);
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        transition: var(--transition);
        box-shadow: var(--shadow-xl);
    }
    
    .nav__menu.active {
        right: 0;
    }
    
    .nav__link {
        color: var(--white);
        font-size: 1rem;
        padding: 0.5rem 1rem;
        text-align: center;
    }
    
    /* Ensure mobile menu links are always visible */
    .header.scrolled .nav__menu .nav__link {
        color: var(--white) !important;
    }
    
    .header.scrolled .nav__menu .nav__link:hover,
    .header.scrolled .nav__menu .nav__link.active {
        color: var(--accent) !important;
    }
    
    .nav__toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
    
    .hero__arrows {
        display: none;
    }
    
    .section__title {
        font-size: 2rem;
    }
    
    .about-preview__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-preview__stats {
        order: -1;
    }
    
    .section__title--left {
        text-align: center;
    }
    
    .cta__title {
        font-size: 2rem;
    }
    
    .other-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .why-us__grid {
        grid-template-columns: 1fr;
    }
    
    .about-preview__stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__tagline {
        margin: 0 auto;
    }
    
    .footer__logo {
        justify-content: center;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .other-services__grid {
        grid-template-columns: 1fr;
    }
    
    /* Additional mobile optimizations */
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero__content {
        padding: 0 1rem;
    }
    
    .cta__form-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .cta__content {
        padding: 0 1rem;
    }
    
    .about__content {
        padding: 0 1rem;
    }
    
    .services__grid {
        gap: 1rem;
    }
    
    .why-us__grid {
        gap: 1rem;
    }
    
    .other-services__grid {
        gap: 1rem;
    }
    
    /* WhatsApp button mobile positioning */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }
}

/* Extra small devices (phones in portrait mode) */
@media (max-width: 375px) {
    .hero__title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero__subtitle {
        font-size: 0.9rem;
    }
    
    .section__title {
        font-size: 1.75rem;
    }
    
    .section__subtitle {
        font-size: 1rem;
    }
    
    .about__text p {
        font-size: 0.95rem;
    }
    
    .cta__title {
        font-size: 1.75rem;
    }
    
    .cta__text {
        font-size: 0.95rem;
    }
    
    .btn {
        max-width: 250px;
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .other-service-item {
        padding: 1rem;
    }
    
    .why-us__item {
        padding: 1.5rem;
    }
    
    .footer__grid {
        gap: 2rem;
    }
    
    .footer__bottom {
        font-size: 0.8rem;
    }
}

/* Small tablets and large phones */
@media (max-width: 480px) and (min-width: 376px) {
    .hero__title {
        font-size: 1.875rem;
    }
    
    .section__title {
        font-size: 1.875rem;
    }
    
    .service-card {
        padding: 1.75rem;
    }
    
    .about-preview__stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
