/* Design Tokens & Theme Variables */
:root {
    --color-primary-green: #008b3e; /* Vibrant grass green from ZooComplex poster */
    --color-secondary-green: #00a84f;
    --color-accent-yellow: #ffcc3d; /* Golden yellow */
    --color-bg-yellow: #ffefa6; /* Soft warm yellow body background from poster */
    --color-text-dark: #111111; /* Charcoal black for high readability */
    --color-text-light: #f4f6f5;
    --color-card-bg: rgba(255, 255, 255, 0.94); /* Clean white card for premium contrast */
    --transition-speed: 0.3s;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-yellow);
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-yellow);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary-green);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary-green);
}

/* Split-screen container */
.main-container {
    flex: 1;
    display: flex;
    position: relative;
    height: 100vh;
    min-height: 650px;
    width: 100%;
}

/* Panels */
.panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 50px;
    color: #fff;
}

.panel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.panel-left .panel-bg {
    background-position: center 30%;
}

.panel-right .panel-bg {
    background-position: center center;
}

.panel:hover .panel-bg {
    transform: scale(1.08);
}

.panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(10, 21, 15, 0.9) 0%,
        rgba(10, 21, 15, 0.4) 60%,
        rgba(10, 21, 15, 0.1) 100%
    );
    z-index: 2;
    transition: opacity 0.5s ease;
}

.panel:hover .panel-overlay {
    opacity: 0.95;
}

.panel-content {
    position: relative;
    z-index: 3;
    max-width: 380px;
    width: 100%;
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.panel:hover .panel-content {
    transform: translateY(-8px);
}

/* Desktop layout padding & alignment to prevent overlaps */
@media (min-width: 993px) {
    .panel-left {
        padding-right: 250px;
    }

    .panel-left .panel-content {
        margin-right: auto;
        text-align: left;
    }

    .panel-right {
        padding-left: 250px;
    }

    .panel-right .panel-content {
        margin-left: auto;
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .panel-right h2, .panel-right p {
        text-align: right;
    }
}

/* Badges */
.badge {
    display: inline-block;
    background-color: var(--color-primary-green);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.badge.accent {
    background-color: var(--color-accent-yellow);
    color: var(--color-text-dark);
    border-color: rgba(0, 0, 0, 0.05);
}

.panel h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
}

.panel p {
    font-size: 1.05rem;
    opacity: 0.88;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 300;
}

/* Central Card */
.center-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 90%;
    max-width: 440px;
    background: var(--color-card-bg);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(10, 30, 20, 0.15), 
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.center-card:hover {
    box-shadow: 0 35px 70px rgba(10, 30, 20, 0.22);
    transform: translate(-50%, -52%);
}

.card-logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.06));
}

.card-logo {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
}

.card-divider {
    width: 60px;
    height: 4px;
    background-color: var(--color-accent-yellow);
    border-radius: 2px;
    margin-bottom: 30px;
}

.card-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 35px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #556059;
    font-weight: 600;
    margin-bottom: 6px;
}

.info-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-dark);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.tel-link, .email-link {
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.tel-link:hover, .email-link:hover {
    color: var(--color-primary-green);
    border-color: var(--color-accent-yellow);
}

.address-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    transition: transform var(--transition-speed);
}

.address-link svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary-green);
    transition: transform var(--transition-speed);
}

.address-link:hover {
    color: var(--color-primary-green);
}

.address-link:hover svg {
    transform: translateY(-3px) scale(1.1);
}

.sub-address {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5650;
}

/* Messengers Section */
.messengers-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
    padding-top: 25px;
}

.messengers-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #556059;
    font-weight: 600;
    margin-bottom: 18px;
}

.messenger-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    width: 100%;
}

.msg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.25);
    position: relative;
}

.msg-btn svg {
    width: 28px;
    height: 28px;
    transition: transform var(--transition-speed);
}

.msg-btn .btn-text {
    position: absolute;
    bottom: -25px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4b5650;
    opacity: 0;
    transform: translateY(5px);
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.msg-btn:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 10px 24px var(--btn-shadow);
}

.msg-btn:hover svg {
    transform: scale(1.12);
}

.msg-btn:hover .btn-text {
    opacity: 1;
    transform: translateY(0);
}

/* Messenger Themes */
.viber {
    background: #7360f2;
    --btn-shadow: rgba(115, 96, 242, 0.4);
}
.telegram {
    background: #0088cc;
    --btn-shadow: rgba(0, 136, 204, 0.4);
}
.whatsapp {
    background: #25d366;
    --btn-shadow: rgba(37, 211, 102, 0.4);
}

/* Footer styling */
.main-footer {
    background-color: var(--color-accent-yellow); /* Yellow footer background from poster */
    color: var(--color-text-dark); /* Dark text for readability on yellow */
    padding: 15px 40px; /* Reduced from 30px to make footer even smaller/less tall */
    font-size: 0.88rem; /* slightly smaller font for compact look */
    border-top: 4px solid var(--color-primary-green);
    z-index: 5;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}

.footer-container {
    max-width: 900px; /* Reduced from 1200px to make columns and logo closer together */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.3fr 120px; /* tighter columns */
    gap: 20px;
    align-items: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligned logo closer to middle contacts column */
    justify-content: center;
    height: 100%;
}

.footer-logo {
    max-width: 100px; /* Even more compact */
    height: auto;
    opacity: 1;
    transition: all var(--transition-speed);
}

.footer-logo:hover {
    transform: scale(1.02);
}

.footer-disclaimer {
    line-height: 1.5;
    color: #2b2b2b;
    text-align: left;
}

.footer-disclaimer strong {
    color: #000;
}

.copyright {
    font-size: 0.82rem;
    color: #4b4b4b;
    margin-top: 4px; /* tighter spacing */
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px; /* tighter gap for compact layout */
    text-align: left;
    align-items: flex-start;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
}

.contact-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #4b4b4b;
    margin-bottom: 2px;
    font-weight: 600;
}

.contact-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    transition: color var(--transition-speed);
    width: fit-content;
}

.contact-value:hover {
    color: var(--color-primary-green);
}

.site-link {
    border-bottom: 1px dashed var(--color-primary-green);
    padding-bottom: 2px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    
    .panel {
        min-height: 400px;
        padding: 50px 30px 40px;
        order: 1;
    }

    .panel-left {
        order: 1;
        padding-right: 30px;
    }

    .panel-right {
        order: 2;
        padding-left: 30px;
    }

    .panel-right .panel-content {
        margin-left: 0;
        text-align: left;
        align-items: flex-start;
    }

    .panel-right h2, .panel-right p {
        text-align: left;
    }

    .center-card {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 30px auto;
        width: calc(100% - 40px);
        max-width: 480px;
        box-shadow: 0 15px 35px rgba(10, 30, 20, 0.08);
        order: -1;
    }

    .center-card:hover {
        transform: translateY(-4px);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-brand {
        align-items: center;
        justify-content: center;
        order: 3;
    }

    .footer-disclaimer {
        order: 1;
        text-align: center;
    }

    .footer-contacts {
        align-items: center;
        text-align: center;
        order: 2;
    }

    .contact-value {
        width: auto;
    }

    .site-link {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .panel {
        min-height: 350px;
        padding: 30px 20px;
    }

    .panel h2 {
        font-size: 1.8rem;
    }

    .center-card {
        padding: 35px 20px;
        margin: 20px auto;
    }

    .info-value {
        font-size: 1.25rem;
    }

    .msg-btn {
        width: 52px;
        height: 52px;
    }

    .msg-btn svg {
        width: 24px;
        height: 24px;
    }
}
