/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --green: #225c34;
    --green-light: #2d7a45;
    --green-dark: #1a472a;
    --green-bg: #f0f7f2;
    --gray: #7c8991;
    --gray-light: #b0b8be;
    --gray-dark: #4a5258;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --text: #2c2c2c;
    --text-light: #5a5a5a;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
    --font-heading: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Typography
   =========================== */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

.text-center {
    text-align: center;
}

.text-center.section-subtitle,
.section-subtitle.text-center {
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.btn-primary:hover {
    background: var(--green-light);
    border-color: var(--green-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 92, 52, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--green);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-nav {
    background: var(--green);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
}

.btn-nav:hover {
    background: var(--green-light);
}

/* ===========================
   Navbar
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: none;
    transition:
        box-shadow var(--transition),
        background var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--green);
}

.nav-logo img {
    border-radius: 50%;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-dark);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--green);
    background: var(--green-bg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--green);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===========================
   Hero
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("../images/horses-green.jpeg") center/cover no-repeat;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 92, 52, 0.85) 0%, rgba(26, 71, 42, 0.75) 50%, rgba(34, 92, 52, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 120px 20px 80px;
}

.hero-logo {
    margin: 0 auto 2rem;
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: white;
    padding: 8px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   Sections
   =========================== */
.section {
    padding: 100px 0;
}

.section:nth-child(even) {
    background: var(--off-white);
}

/* ===========================
   About
   =========================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--green);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===========================
   Features / Why Us
   =========================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--green);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===========================
   Pricing / Services
   =========================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 2rem;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--green);
    transform: scale(1.03);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-5px);
}

.pricing-badge {
    background: var(--green);
    color: var(--white);
    padding: 8px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    z-index: 1;
}

.pricing-header {
    padding: 26px 16px 14px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.pricing-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--green);
    margin-bottom: 0.75rem;
}

.pricing-header h3 small {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    font-family: var(--font-body);
    font-weight: 400;
    margin-top: 4px;
}

.price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green-dark);
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray);
    font-family: var(--font-body);
}

.pricing-features {
    padding: 24px;
    flex: 1;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--text-light);
    font-size: 0.95rem;
    position: relative;
    padding-left: 28px;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.pricing-card .btn {
    margin: 0 24px 24px;
    width: calc(100% - 48px);
}

.addon-box {
    background: var(--green-bg);
    padding: 20px 30px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--green);
}

.addon-box p {
    color: var(--text);
    font-size: 1rem;
}

.notice-box {
    background: #fff8f0;
    padding: 20px 30px;
    border-radius: var(--radius-sm);
    text-align: center;
    border-left: 4px solid #d4a25c;
}

.notice-box p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===========================
   Gallery
   =========================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(34, 92, 52, 0);
    transition: background var(--transition);
}

.gallery-item:hover::after {
    background: rgba(34, 92, 52, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===========================
   Lightbox
   =========================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--radius);
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 10px;
    transition: opacity var(--transition);
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.7;
}

.lightbox-close {
    top: 20px;
    right: 30px;
    font-size: 3rem;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* ===========================
   Horses for Sale
   =========================== */
.sale-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sale-text h2 {
    margin-bottom: 1rem;
}

.sale-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.sale-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ===========================
   FAQ
   =========================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e5e5;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-body);
    transition: color var(--transition);
    gap: 16px;
}

.faq-question:hover {
    color: var(--green);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--green);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.4s ease,
        padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 0 24px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===========================
   Contact
   =========================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--green-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    font-size: 1rem;
    color: var(--green);
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green) !important;
    font-weight: 600;
    transition: opacity var(--transition);
}

.social-link:hover {
    opacity: 0.7;
}

.social-link svg {
    fill: var(--green);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(34, 92, 52, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    margin-top: 1rem;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    display: none;
    font-weight: 600;
}

.form-status.success {
    display: block;
    background: var(--green-bg);
    color: var(--green);
}

.form-status.error {
    display: block;
    background: #fef0f0;
    color: #c0392b;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--green-dark);
    color: var(--white);
    padding: 50px 0 30px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 2rem;
}

.footer-logo img {
    border-radius: 50%;
    background: white;
    padding: 4px;
}

.footer-logo p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-align: left;
}

.footer-logo small {
    opacity: 0.7;
    font-family: var(--font-body);
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-designer {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.footer-designer a {
    color: var(--white);
    text-decoration: underline;
    opacity: 0.85;
    transition: opacity var(--transition);
}

.footer-designer a:hover {
    opacity: 1;
}

/* ===========================
   Animations
   =========================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-logo {
        width: 160px;
        height: 160px;
    }

    /* Mobile Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 75px);
        background: var(--white);
        flex-direction: column;
        padding: 30px 20px;
        gap: 4px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right var(--transition);
        align-items: stretch;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        padding: 14px 16px;
        font-size: 1rem;
    }

    /* Grids */
    .about-grid,
    .sale-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item img {
        height: 200px;
    }

    .about-stats {
        justify-content: center;
    }

    .section {
        padding: 70px 0;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .gallery-item img {
        height: 160px;
    }

    .about-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .nav-logo span {
        font-size: 1rem;
    }
}
