/* CSS Custom Properties */
:root {
--primary-color: #0066cc;
--secondary-color: #00509e;
--success-color: #28a745;
--danger-color: #dc3545;
--text-color: #333;
--text-light: #666;
--border-color: #ddd;
--bg-gray: #f8f9fa;
--white: #fff;
--shadow: 0 2px 8px rgba(0,0,0,0.1);
--shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
--transition: 0.3s ease;
--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {box-sizing: border-box; margin: 0; padding: 0;}
html {font-size: 16px; scroll-behavior: smooth;}
body {font-family: var(--font-family); color: var(--text-color); line-height: 1.6; -webkit-font-smoothing: antialiased;}
img {max-width: 100%; height: auto; display: block;}
a {color: var(--primary-color); text-decoration: none; transition: var(--transition);}
a:hover {color: var(--secondary-color);}

/* Skip Link */
.skip-link {position: absolute; top: -100px; left: 0; background: var(--primary-color); color: var(--white); padding: 8px 16px; z-index: 9999;}
.skip-link:focus {top: 0;}

/* Container */
.container {width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;}

/* Header */
.header {background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000;}
.header__wrapper {display: flex; align-items: center; justify-content: space-between; padding: 16px 0;}
.header__logo img {height: 50px; width: auto;}
.header__mobile-toggle {display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 4px;}
.header__mobile-toggle-bar {width: 24px; height: 3px; background: var(--text-color); transition: var(--transition);}
.nav__list {display: flex; list-style: none; gap: 24px;}
.nav__link {padding: 8px 16px; display: block; font-weight: 500;}
.nav__link--active {color: var(--primary-color); border-bottom: 2px solid var(--primary-color);}

/* Hero */
.hero {
    background: linear-gradient(rgba(0, 102, 204, 0.75), rgba(0, 80, 158, 0.75)),
                url('/assets/images/homebanner.webp') center/cover no-repeat;
    color: var(--white);
    padding: clamp(64px, 10vw, 120px) 0;
    text-align: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}
.hero .container {
    width: 100%;
}
.hero__title {font-size: clamp(32px, 5vw, 48px); margin-bottom: 16px; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,0.3);}
.hero__text {font-size: clamp(18px, 2.5vw, 20px); margin-bottom: 32px; max-width: 700px; margin-left: auto; margin-right: auto; text-shadow: 0 2px 4px rgba(0,0,0,0.2);}
.hero__actions {display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;}

/* Buttons */
.btn {display: inline-block; padding: 12px 24px; border-radius: 4px; font-weight: 600; text-align: center; cursor: pointer; border: 2px solid transparent; transition: var(--transition); font-size: 16px;}
.btn--primary {background: var(--primary-color); color: var(--white); border-color: var(--primary-color);}
.btn--primary:hover {background: var(--secondary-color); border-color: var(--secondary-color); color: var(--white);}
.btn--outline {background: transparent; color: var(--white); border-color: var(--white);}
.btn--outline:hover {background: var(--white); color: var(--primary-color);}
.btn--lg {padding: 16px 32px; font-size: 18px;}
.btn--sm {padding: 8px 16px; font-size: 14px;}

/* Section Header */
.section-header {text-align: center; margin-bottom: 48px;}
.section-header__title {font-size: clamp(28px, 4vw, 36px); margin-bottom: 12px;}
.section-header__subtitle {color: var(--text-light); font-size: clamp(16px, 2vw, 18px);}

/* Services */
.services {padding: 64px 0;}
.services__grid {display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;}
.service-card {background: var(--white); padding: 32px; border-radius: 8px; box-shadow: var(--shadow); text-align: center; transition: var(--transition);}
.service-card:hover {transform: translateY(-4px); box-shadow: var(--shadow-lg);}
.service-card__icon {font-size: 48px; color: var(--primary-color); margin-bottom: 16px;}
.service-card__image {margin-bottom: 16px; overflow: hidden; border-radius: 8px;}
.service-card__image img {width: 100%; height: 200px; object-fit: cover;}
.service-card__title {font-size: 20px; margin-bottom: 12px;}
.service-card__description {color: var(--text-light); margin-bottom: 16px;}
.section-footer {text-align: center; margin-top: 48px;}

/* Partners Carousel */
.partners {padding: 80px 0; background: var(--bg-gray);}

/* Partners Grid */
.partners-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 32px; padding: 32px 0;}
.partner-item {background: var(--white); padding: 24px; border-radius: 8px; box-shadow: var(--shadow); text-align: center; transition: var(--transition);}
.partner-item:hover {transform: translateY(-4px); box-shadow: var(--shadow-lg);}
.partner-item__link {display: block; text-decoration: none; color: inherit;}
.partner-item__content {display: block;}
.partner-item__logo {max-width: 200px; width: 100%; height: auto; margin: 0 auto 16px;}
.partner-item__name {font-size: 16px; color: var(--text-color); font-weight: 500;}
.partners .container {max-width: 1400px;}
.partners-carousel {position: relative; padding: 0;}
.partners-carousel .swiper {overflow: hidden; padding: 20px 0;}
.partners-carousel .swiper-slide {display: flex; justify-content: center; align-items: center;}
.partner-card {background: var(--white); padding: 32px; border-radius: 8px; text-align: center; display: flex; align-items: center; justify-content: center; min-height: 140px; width: 100%; box-shadow: var(--shadow); transition: var(--transition);}
.partner-card:hover {box-shadow: var(--shadow-lg); transform: translateY(-2px);}
.partner-card__logo {max-width: 200px; width: 100%; height: auto; opacity: 0.85; transition: var(--transition); object-fit: contain;}
.partner-card:hover .partner-card__logo {opacity: 1;}

/* Map Section */
.map-section {width: 100%; margin: 0; padding: 0;}
.map-container {width: 100%; height: 450px; position: relative;}
.map-container iframe {width: 100%; height: 100%; display: block;}

/* CTA */
.cta {background: var(--bg-gray); padding: 64px 0; text-align: center;}
.cta__title {font-size: clamp(24px, 3.5vw, 32px); margin-bottom: 16px;}
.cta__text {color: var(--text-light); font-size: 18px; margin-bottom: 32px;}

/* Page Hero */
.page-hero {
    background: linear-gradient(rgba(0, 102, 204, 0.85), rgba(0, 80, 158, 0.85)), url('/assets/images/banner.png') center/cover no-repeat;
    color: var(--white);
    padding: 64px 0;
    text-align: center;
    position: relative;
}
.page-hero__title {font-size: clamp(32px, 4vw, 42px); font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,0.2);}
.page-hero__subtitle {font-size: 18px; margin-top: 12px; text-shadow: 0 1px 2px rgba(0,0,0,0.2);}

/* Breadcrumb */
.breadcrumb {
    color: var(--white);
    margin-bottom: 24px;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}
.breadcrumb a:hover {
    text-decoration: underline;
    opacity: 0.9;
}
.breadcrumb span {
    opacity: 0.8;
}

/* Content Section */
.content-section {padding: 64px 0; background: var(--bg-gray);}
.content {max-width: 800px; margin: 0 auto; line-height: 1.8;}
.content h1, .content h2, .content h3 {margin: 24px 0 16px;}
.content p {margin-bottom: 16px;}

/* Service Detail Page */
.service-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.service-detail__image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 48px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-detail__image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-detail__content {
    background: var(--white);
    padding: 48px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 64px;
}

.service-detail__content h2 {
    color: var(--primary-color);
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--primary-color);
}

.service-detail__content h3 {
    color: var(--secondary-color);
    font-size: clamp(20px, 2.5vw, 24px);
    margin-top: 32px;
    margin-bottom: 16px;
}

.service-detail__content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.service-detail__content ul {
    margin: 20px 0 20px 20px;
    list-style: none;
}

.service-detail__content ul li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
}

.service-detail__content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 18px;
}

.service-detail__content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.service-detail__subcategories {
    margin-bottom: 64px;
}

.service-detail__subcategories h2 {
    text-align: center;
    font-size: clamp(28px, 4vw, 36px);
    color: var(--text-color);
    margin-bottom: 48px;
    position: relative;
}

.service-detail__subcategories h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 16px auto 0;
    border-radius: 2px;
}

.service-detail__cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 48px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.service-detail__cta h3 {
    font-size: clamp(20px, 3vw, 28px);
    margin-bottom: 24px;
    font-weight: 600;
}

.service-detail__cta .btn {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.service-detail__cta .btn:hover {
    background: var(--bg-gray);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Contact */
.contact-wrapper {display: grid; grid-template-columns: 1fr; gap: 48px;}
.contact-info__item {display: flex; gap: 16px; margin-bottom: 24px;}
.contact-info__item i {font-size: 24px; color: var(--primary-color); margin-top: 4px;}

/* Forms */
.form-group {margin-bottom: 20px;}
.form-label {display: block; margin-bottom: 8px; font-weight: 600;}
.form-input, .form-textarea {width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 16px; font-family: inherit;}
.form-input:focus, .form-textarea:focus {outline: none; border-color: var(--primary-color);}
.alert {padding: 16px; border-radius: 4px; margin-bottom: 24px;}
.alert--success {background: #d4edda; color: #155724; border: 1px solid #c3e6cb;}
.alert--error {background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb;}

/* Footer */
.footer {background: #1a1a1a; color: #ccc; padding: 48px 0 24px;}
.footer__wrapper {display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; margin-bottom: 32px;}
.footer__title {color: var(--white); font-size: 18px; margin-bottom: 16px;}
.footer__contact, .footer__links {list-style: none;}
.footer__contact-item {margin-bottom: 12px;}
.footer__link {color: #ccc;}
.footer__link:hover {color: var(--white);}
.footer__social {display: flex; gap: 16px; list-style: none;}
.footer__social-link {display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #333; border-radius: 50%; color: var(--white);}
.footer__social-link:hover {background: var(--primary-color);}
.footer__bottom {text-align: center; padding-top: 24px; border-top: 1px solid #333;}
.footer__copyright {color: #999;}

/* Responsive */
@media (min-width: 768px) {
.contact-wrapper {grid-template-columns: 1fr 1.5fr;}
}

@media (max-width: 767px) {
.header__mobile-toggle {display: flex;}
.nav {position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow); max-height: 0; overflow: hidden; transition: var(--transition);}
.nav.active {max-height: 500px; padding: 16px 0;}
.nav__list {flex-direction: column; gap: 0;}
.nav__link {padding: 12px 20px;}
.hero {min-height: 400px; padding: 48px 0;}
.hero__actions {flex-direction: column;}
.btn {width: 100%;}
.page-hero {padding: 40px 0;}
.breadcrumb {font-size: 13px;}
.service-detail__content {padding: 24px;}
.service-detail__content h2 {font-size: 24px;}
.service-detail__content h3 {font-size: 20px;}
.service-detail__content p {font-size: 16px;}
.service-detail__cta {padding: 32px 24px;}
.service-detail__image {margin-bottom: 32px;}
}

/* Floating Contact Buttons */
.floating-contact {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.floating-contact__btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--white);
    font-size: 24px;
}

.floating-contact__btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.floating-contact__btn--phone {
    background: var(--primary-color);
}

.floating-contact__btn--phone:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.floating-contact__btn--whatsapp {
    background: #25D366;
}

.floating-contact__btn--whatsapp:hover {
    background: #20BA5A;
    color: var(--white);
}

/* Animation on scroll */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-contact {
    animation: slideInRight 0.5s ease-out;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .floating-contact {
        bottom: 16px;
        right: 16px;
    }

    .floating-contact__btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}
