/* === CSS Variables & Reset === */
:root {
    --primary-color: #0056b3;
    --secondary-color: #003d82;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* === Top Bar & Nav === */

#lang-switch {
    padding: 6px 12px;
    margin-left: 5px;
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
}

.top-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links {
    display: flex;
    align-items: center;
}

.top-bar-links span {
    margin-left: 15px;
}

header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links {
    color: var(--primary-color);
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* === Hero Carousel === */
.hero-carousel {
    position: relative;
    height: 70vh;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 61, 130, 0.6);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: slideUp 0.5s ease forwards;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 5;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary-color);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* === General Page Header === */
.page-header {
    background: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
}

/* === Typography & Buttons === */
section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #666;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid var(--primary-color);
    transition: var(--transition);
}

.btn-white {
    background: transparent;
    border-color: white;
}

.btn:hover, .btn-white:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* === Products & About Grids === */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eaeaea;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info {
    padding: 25px;
}

.product-grid {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.product-intro h2 {
    font-size: 1.5rem;
}

.product-intro p {
    color: #666;
    margin-bottom: 20px;
}

.product-card {
    width: 100%;
    background: var(--light-bg);
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eaeaea;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-grid img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* === Stylish Contact Form (CSS Grid) === */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info-box {
    background: var(--primary-color);
    color: white;
    padding: 40px;
    border-radius: 8px;
}

.contact-info-box p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: var(--light-bg);
    padding: 40px;
    border-radius: 8px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.input-group input, .input-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--primary-color);
}

.full-width {
    grid-column: 1 / -1;
}

.submit-btn {
    grid-column: 1 / -1;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.large-animals__title {
    font-size: 28px;
    line-height: 36px;
}

.submit-btn:hover {
    background: var(--secondary-color);
}

.large-animals-container {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-content: center;
    row-gap: 20px;
}

.large-animals-container .product-card_box {
    justify-self: center;
    color: #000;
    text-decoration: none;
    width: 250px;
    background: var(--light-bg);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    border: none;
}

.product-card_box img {
    width: 100%;
    height: auto;
    display: block;
}

/* === Expanded Footer === */
footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 100%;
}

.newsletter-form button {
    padding: 10px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
}

.catalog {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
}

.catalog__title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.catalog-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.catalog-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
    margin-top: 10px;
}

.catalog-links h2 {
    font-size: 1.1rem;
    color: var(--text-color);
}

.catalog-link {
    padding: 5px 10px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
}

.banner-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.banner-image img {
    width: 100%;
    height: auto;
    display: block;
}

.catalog-banner {
    max-width: 450px;
    color: var(--text-color);
}

.catalog {
    padding: 40px 0;
}

.vet_catalog_h2 {
    font-size: 16px;
    margin-bottom: 10px;
}

.breadcrumb {
    display: flex;
    gap: 12px;
}

.breadcrumb a {
    text-decoration: none;
    color: #646464;
}

/* === Responsive === */
@media (max-width: 900px) {
    .contact-layout, .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        position: absolute;
        top: 70px;
        left: 0;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
    }

    .menu-btn {
        display: block;
    }

    .hero-carousel h1 {
        font-size: 2rem;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-carousel h1 {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 15px;
    }

    .top-bar-links {
        flex-direction: column;
        align-items: center;
    }
}