/* Custom styles for Gatsheni Boer Goat Stud */

/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Base Styles */
:root {
    --primary-color: #16a34a;
    /* green-600 */
    --primary-dark: #15803d;
    /* green-700 */
    --secondary-color: #1f2937;
    /* gray-800 */
    --text-color: #374151;
    /* gray-700 */
    --light-bg: #f9fafb;
    /* gray-50 */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Custom Container Widths */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Custom Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

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

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Card Hover Effects */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Custom Image Styles */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation Styles */
.nav-link {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
        url('../images/hero-bg.jpg') center/cover;
    padding: 6rem 0;
}

/* Section Spacing */
.section {
    padding: 4rem 0;
}

.section-sm {
    padding: 2rem 0;
}

/* Custom Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Custom Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-primary {
    background-color: #dcfce7;
    color: var(--primary-color);
}

/* Footer Styles */
.footer-link {
    color: #9ca3af;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
}

/* Social Media Icons */
.social-icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition: background-color 0.2s;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Typography */
@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 2rem;
    }
}

/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    min-height: 400px;
    background-color: var(--light-bg);
}

.slide {
    display: none;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    animation: fade 0.5s ease-in-out;
}

.slide:first-child {
    display: block;
}

.dots-container {
    text-align: center;
    padding: 10px 0;
    z-index: 10;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.dot {
    outline: none;
}

.dot:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

/* Carousel Focus Styles */
.carousel:focus {
    outline: none;
}

.carousel:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* Navigation Arrows */
.nav-arrow {
    outline: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--primary-color);
    opacity: 0.7;
}

.nav-arrow:hover,
.nav-arrow:focus {
    background: white;
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.nav-arrow:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-arrow.prev {
    left: 20px;
}

.nav-arrow.next {
    right: 20px;
}

@media (max-width: 768px) {
    .nav-arrow {
        width: 32px;
        height: 32px;
    }

    .nav-arrow.prev {
        left: 10px;
    }

    .nav-arrow.next {
        right: 10px;
    }
}

@keyframes fade {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.shadow-hover {
    transition: box-shadow 0.2s;
}

.shadow-hover:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}