/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00fde4;
    --primary-dark: #00cab6;
    --menu-color: #00cab6;
    --dark: #000000;
    --text: #000000;
    --text-light: #333;
    --white: #fff;
    --gray-box: #e6e6e6;
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
    --transition: 0.35s ease;
    --nav-height: 120px;
    --nav-height-scrolled: 100px;
    --section-padding: 100px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto Condensed', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--menu-color);
    height: var(--nav-height);
    transition: height var(--transition), background-color var(--transition);
    border-bottom: 1px solid var(--dark);
}

.navbar.scrolled {
    height: var(--nav-height-scrolled);
}

.nav-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
    letter-spacing: 2px;
}

.nav-logo img {
    height: 80%;
    max-height: 100px;
    width: auto;
    transition: max-height var(--transition);
}

.navbar.scrolled .nav-logo img {
    max-height: 80px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2px;
}

.nav-link {
    color: var(--dark);
    padding: 10px 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 17px;
    letter-spacing: 0.03125em;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
}

.lang-switch {
    display: flex;
    gap: 4px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(0,0,0,0.15);
}

.lang-btn {
    color: rgba(0,0,0,0.4);
    padding: 4px 8px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--dark);
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: flex;
    gap: 8px;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(0,0,0,0.15);
}

.social-link {
    color: var(--dark);
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity 0.2s;
    padding: 4px 6px;
}

.social-link:hover { opacity: 1; }

/* ===== HOME (layout-23) ===== */
.home {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: end;
    justify-items: start;
    background: var(--dark);
    color: var(--white);
    overflow: hidden;
    margin-top: var(--nav-height);
    padding: 140px 0;
}

.home-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center center;
    z-index: 1;
}

.home-content {
    position: relative;
    z-index: 2;
    width: 510px;
    max-width: calc(100% - 30px);
    padding: 60px 45px;
    color: var(--dark);
    margin: 0 0 0 15px;
}

.home-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--primary-dark);
    opacity: 0.75;
    z-index: -1;
}

.home h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.15;
    color: var(--dark);
}

.home-separator {
    width: 70px;
    height: 3px;
    background: var(--dark);
    margin: 22px 0;
}

.home-subtitle {
    font-size: 1.4rem;
    color: var(--dark);
    font-weight: 400;
    line-height: 1.5;
}

/* ===== SECTION HEADERS (shared) ===== */
.section-header {
    text-align: center;
    padding: var(--section-padding) 0 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.section-title-separator {
    display: block;
    width: 50px;
    height: 2px;
    background: var(--primary);
    margin: 0 auto;
}

/* ===== ABOUT (layout-6) ===== */
.section-about {
    background: var(--primary-dark);
    padding: var(--section-padding) 0;
}

.about-layout {
    display: grid;
    grid-template-columns: 47% 47%;
    grid-gap: 32px;
    justify-content: center;
    min-height: 85vh;
    align-items: center;
}

.about-image {
    background-size: cover;
    background-position: center center;
    min-height: 500px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--dark);
}

.about-text h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--dark);
}

.about-text .about-separator {
    width: 50px;
    height: 3px;
    background: var(--dark);
    margin: 18px 0 0;
}

.about-text .about-content {
    margin-top: 28px;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--dark);
}

/* ===== SERVICES (zigzag layout) ===== */
.section-services {
    background: var(--white);
    padding: 0 0 50px;
}

.section-services .section-header {
    padding-top: 50px;
    padding-bottom: 30px;
}

.service-block {
    margin-bottom: 40px;
}

.service-block:last-child {
    margin-bottom: 0;
}

.zigzag-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    max-width: 1170px;
    margin: 0 auto;
}

.zigzag-row.reverse .zigzag-image { order: 2; }
.zigzag-row.reverse .zigzag-text { order: 1; }

.zigzag-image {
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.zigzag-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 60px;
    gap: 1rem;
    background: var(--white);
}

.zigzag-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.zigzag-text h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.zigzag-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* ===== TESTIMONIALS (layout-8) ===== */
.section-references {
    background: var(--primary-dark);
    color: var(--dark);
    padding: var(--section-padding) 0;
}

.section-references .section-header {
    padding-top: 0;
}

.section-references .section-title {
    color: var(--dark);
}

.section-references .section-title-separator {
    background: var(--dark);
}

.testimonials-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.carousel-track { overflow: hidden; }

.testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.testimonial-slide.active { display: block; }

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

.testimonial-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 360px;
}

.testimonial-image {
    background-size: cover;
    background-position: center center;
    min-height: 360px;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 38px;
    background: var(--gray-box);
    color: var(--dark);
}

.testimonial-role {
    font-size: 0.82rem;
    font-style: italic;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.testimonial-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.testimonial-quote {
    font-size: 0.98rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.testimonial-stars {
    color: var(--primary-dark);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.carousel-btn {
    background: none;
    border: 2px solid rgba(0,0,0,0.25);
    color: var(--dark);
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.carousel-btn:hover {
    border-color: var(--dark);
    background: var(--dark);
    color: var(--primary);
}

.carousel-dots { display: flex; gap: 8px; }

.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.18);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active { background: var(--dark); }

/* ===== CONTACT (layout-9) ===== */
.section-contact {
    background: var(--white);
    padding: 0;
}

.section-contact .section-header {
    padding-bottom: 30px;
}

.contact-map {
    width: 100%;
    margin-bottom: 30px;
}

.contact-map iframe {
    display: block;
    width: 100%;
}

.contact-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 20px 0 30px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.contact-details label {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(0,0,0,0.5);
    display: block;
    margin-bottom: 6px;
}

.contact-details a {
    color: var(--dark);
    transition: color 0.2s;
}

.contact-details a:hover {
    color: var(--dark);
    text-decoration: underline;
    opacity: 0.7;
}

.contact-details .detail-item {
    margin-bottom: 15px;
}

.contact-form {
    padding: 30px 0 50px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0,0,0,0.15);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-dark);
}

.contact-form textarea {
    min-height: 100px;
    resize: vertical;
    margin-bottom: 15px;
}

.contact-form .form-full {
    margin-bottom: 15px;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--primary-dark);
    color: var(--dark);
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--primary);
}

.contact-alert {
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.contact-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== CUSTOM SECTIONS ===== */
.section-custom {
    padding: var(--section-padding) 0;
}

.section-custom:nth-child(even) {
    background: var(--primary-dark);
}

.section-custom:nth-child(odd) {
    background: var(--white);
}

.custom-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.85;
    text-align: center;
}

/* ===== BLOG LINK SECTION ===== */
.section-blog-link {
    padding: var(--section-padding) 0 60px;
    background: var(--white);
    text-align: center;
}

.blog-link-cta {
    margin-top: 20px;
}

.btn-blog-link {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary-dark);
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s;
}

.btn-blog-link:hover {
    background: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--white);
    color: rgba(0,0,0,0.45);
    text-align: center;
    padding: 22px 0;
    font-size: 0.85rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.footer .container {
    position: relative;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-social a {
    color: rgba(0,0,0,0.4);
    font-size: 1rem;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--primary-dark);
}

.admin-lock {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0,0,0,0.12);
    font-size: 0.75rem;
    transition: color 0.2s;
}

.admin-lock:hover {
    color: rgba(0,0,0,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    :root {
        --nav-height: 80px;
        --nav-height-scrolled: 70px;
        --section-padding: 50px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 0 15px;
    }

    .about-image {
        min-height: 300px;
    }

    .zigzag-row {
        grid-template-columns: 1fr 1fr;
        min-height: 300px;
    }

    .zigzag-text {
        padding: 35px 40px;
    }

    .testimonial-layout {
        grid-template-columns: 1fr;
    }

    .testimonial-image {
        min-height: 250px;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
        --nav-height-scrolled: 60px;
    }

    .nav-toggle { display: block; }

    .nav-logo img {
        max-height: 50px;
    }

    .navbar.scrolled .nav-logo img {
        max-height: 45px;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0; right: 0;
        background: var(--menu-color);
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
        border-bottom: 1px solid var(--dark);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        display: block;
        text-align: center;
        padding: 12px;
    }

    .lang-switch {
        justify-content: center;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 10px;
        border-top: 1px solid rgba(0,0,0,0.08);
    }

    .social-links {
        justify-content: center;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 8px;
    }

    .home {
        min-height: 75vh;
        padding: 80px 0;
    }

    .home h1 { font-size: 1.7rem; }

    .home-content {
        width: 100%;
        max-width: 100%;
        padding: 35px 25px;
        margin: 0 10px;
    }

    .home-subtitle { font-size: 1rem; }

    /* Zigzag: stack on mobile */
    .zigzag-row {
        grid-template-columns: 1fr;
    }

    .zigzag-row.reverse .zigzag-image { order: 1; }
    .zigzag-row.reverse .zigzag-text { order: 2; }

    .zigzag-image {
        min-height: 250px;
    }

    .zigzag-text {
        padding: 30px 20px;
    }

    .about-layout {
        padding: 0 20px;
    }

    .about-text h2 { font-size: 2rem; }

    .section-services .section-header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .testimonial-content { padding: 30px 20px; }

    .section-contact .container {
        padding: 0 20px;
    }

    .section-contact .section-header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .custom-content {
        padding: 0 20px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}
