/* DearBorn Farms Custom Styles - Using Exact Brand Colors */
:root {
    /* EXACT COLORS FROM YOUR SAMPLE */
    --gold: #C9A86A;
    --harvest-green: #284A2A;
    --earth-beige: #E7D7C1;
    --charcoal: #0F0F0F;
    --white: #FFFFFF;
    
    /* Derived colors */
    --gold-light: #f3df9b;
    --gold-dark: #8b6b3c;
    --green-light: #355a36;
    --green-dark: #0c1410;
    --beige-light: #f5f0e6;
    --beige-dark: #d4c9b8;
}

/* Global Styles */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--charcoal);
    color: var(--earth-beige);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--white);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }

/* Background Overlay */
.background-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top left, var(--green-light), var(--green-dark));
    z-index: -2;
}

.overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(12, 20, 16, 0.96),
        rgba(5, 9, 7, 0.98)
    );
    z-index: -1;
}

/* Navbar - COMPLETELY REDESIGNED TO MATCH YOUR SAMPLE */
.navbar {
    background: linear-gradient(
        145deg,
        rgba(40, 74, 42, 0.98),
        rgba(15, 15, 15, 0.98)
    ) !important;
    border-bottom: 1px solid rgba(201, 168, 106, 0.35);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 1px solid rgba(201, 168, 106, 0.5);
    background: radial-gradient(circle at 30% 20%, #000000, #000000);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-logo img {
    width: 80%;
    height: auto;
    display: block;
}

.brand-text h1 {
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0;
    line-height: 1.2;
}

.brand-text span {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(231, 215, 193, 0.8);
    display: block;
}

.navbar-nav .nav-link {
    color: var(--earth-beige) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}

.navbar-toggler {
    border: 1px solid rgba(201, 168, 106, 0.5);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(201, 168, 106, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main Content Padding */
main {
    padding-top: 76px;
    min-height: 100vh;
}

/* Hero Carousel - REDESIGNED */
#heroCarousel {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(201, 168, 106, 0.35);
    box-shadow: 
        0 18px 45px rgba(0, 0, 0, 0.136),
        0 0 0 1px rgba(0, 0, 0, 0.8);
    margin: 2rem 0;
}

.carousel-item {
    height: 70vh;
    min-height: 500px;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(12, 20, 16, 0.444),
        rgba(5, 9, 7, 0.375)
    );
    z-index: 1;
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.carousel-caption {
    z-index: 2;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    padding: 2rem;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption h1 span {
    color: var(--gold);
}

.carousel-caption p {
    font-size: 1.25rem;
    color: var(--earth-beige);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(201, 168, 106, 0.5);
    border: none;
    margin: 0 5px;
}

.carousel-indicators .active {
    background-color: var(--gold);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(40, 74, 42, 0.8);
    border: 1px solid rgba(201, 168, 106, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(40, 74, 42, 1);
    opacity: 1;
}

/* Page Headers */
.page-header {
    background: linear-gradient(rgba(40, 74, 42, 0.9), rgba(40, 74, 42, 0.95));
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(201,168,106,0.1)"/></svg>');
    background-size: cover;
}

.page-header h1 {
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.page-header .lead {
    color: var(--gold);
    font-size: 1.25rem;
}

/* Cards - MATCHING YOUR SAMPLE DESIGN */
.card {
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 106, 0.3);
    background: linear-gradient(
        145deg,
        rgba(40, 74, 42, 0.98),
        rgba(15, 15, 15, 0.98)
    );
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    color: var(--earth-beige);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(201, 168, 106, 0.5);
    border-color: rgba(201, 168, 106, 0.5);
}

.card-title {
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.card-text {
    color: rgba(231, 215, 193, 0.88);
    line-height: 1.7;
}

/* Side Panel Cards */
.side-card {
    border-radius: 18px;
    border: 1px solid rgba(201, 168, 106, 0.3);
    background: radial-gradient(circle at top, rgba(201, 168, 106, 0.12), rgba(5, 9, 7, 0.95));
    padding: 1.5rem;
}

/* Buttons - MATCHING YOUR SAMPLE */
.btn {
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--charcoal);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.65);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.8);
    filter: brightness(1.05);
    color: var(--charcoal);
}

.btn-success {
    background: linear-gradient(135deg, var(--harvest-green), var(--green-light));
    color: var(--white);
    border: 1px solid rgba(201, 168, 106, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--green-light), var(--harvest-green));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.btn-outline-success {
    border: 1px solid var(--harvest-green);
    color: var(--harvest-green);
    background: transparent;
}

.btn-outline-success:hover {
    background: var(--harvest-green);
    color: var(--white);
    border-color: var(--harvest-green);
}

.btn-warning {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--charcoal);
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--charcoal);
    transform: translateY(-2px);
}

/* Tags - FROM YOUR SAMPLE */
.tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(231, 215, 193, 0.3);
    color: rgba(231, 215, 193, 0.9);
    background: rgba(12, 20, 16, 0.7);
    display: inline-block;
}

/* Countdown Timer - FROM YOUR SAMPLE */
.countdown {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 1rem 0;
}

.counter-box {
    flex: 1;
    border-radius: 12px;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(201, 168, 106, 0.35);
    padding: 10px 6px;
    text-align: center;
}

.counter-number {
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 600;
}

.counter-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(231, 215, 193, 0.7);
}

/* Section Styling */
section {
    padding: 5rem 0;
    position: relative;
    scroll-margin-top: 80px;
}

.section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(231, 215, 193, 0.8);
    margin-bottom: 0.5rem;
}

.section-heading {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--earth-beige);
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

/* Background Variants */
.bg-light {
    background: linear-gradient(
        135deg,
        rgba(12, 20, 16, 0.95),
        rgba(5, 9, 7, 0.98)
    ) !important;
    color: var(--earth-beige);
}

.bg-success {
    background: linear-gradient(
        135deg,
        var(--harvest-green),
        var(--green-dark)
    ) !important;
    color: var(--white);
}

.bg-dark {
    background: var(--charcoal) !important;
    color: var(--earth-beige);
}

/* Forms */
.form-control,
.form-select {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(201, 168, 106, 0.35);
    color: var(--earth-beige);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    background: rgba(15, 15, 15, 0.9);
    border-color: var(--gold);
    color: var(--white);
    box-shadow: 0 0 0 0.25rem rgba(201, 168, 106, 0.25);
}

.form-label {
    color: var(--earth-beige);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Tables */
.table {
    color: var(--earth-beige);
    border-color: rgba(201, 168, 106, 0.3);
}

.table-dark {
    background: rgba(15, 15, 15, 0.8);
    border-color: rgba(201, 168, 106, 0.3);
}

.table-success {
    --bs-table-bg: var(--harvest-green);
    --bs-table-color: var(--white);
    border-color: rgba(201, 168, 106, 0.3);
}

/* Accordion */
.accordion {
    --bs-accordion-bg: rgba(15, 15, 15, 0.8);
    --bs-accordion-border-color: rgba(201, 168, 106, 0.3);
    --bs-accordion-color: var(--earth-beige);
    --bs-accordion-btn-color: var(--white);
    --bs-accordion-btn-bg: rgba(40, 74, 42, 0.5);
    --bs-accordion-active-color: var(--gold);
    --bs-accordion-active-bg: rgba(40, 74, 42, 0.8);
}

.accordion-button:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.25rem rgba(201, 168, 106, 0.25);
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: 1px solid rgba(201, 168, 106, 0.3);
    background: rgba(15, 15, 15, 0.9);
}

.alert-success {
    color: var(--earth-beige);
    background: linear-gradient(
        145deg,
        rgba(40, 74, 42, 0.9),
        rgba(15, 15, 15, 0.9)
    );
    border-color: rgba(201, 168, 106, 0.3);
}

.alert-warning {
    color: var(--earth-beige);
    background: linear-gradient(
        145deg,
        rgba(201, 168, 106, 0.2),
        rgba(15, 15, 15, 0.9)
    );
    border-color: rgba(201, 168, 106, 0.3);
}

/* Product Cards */
.product-card {
    overflow: hidden;
    position: relative;
}

.product-card img {
    transition: transform 0.5s ease;
    height: 200px;
    object-fit: cover;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(40, 74, 42, 0.9);
    color: var(--gold);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(201, 168, 106, 0.3);
}

/* Icon Wrappers */
.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle at top, rgba(201, 168, 106, 0.12), rgba(5, 9, 7, 0.95));
    border: 1px solid rgba(201, 168, 106, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.icon-wrapper i {
    font-size: 1.5rem;
    color: var(--gold);
}

/* Services Navigation */
.services-nav .nav-link {
    background: rgba(12, 20, 16, 0.7);
    border: 1px solid rgba(231, 215, 193, 0.3);
    color: rgba(231, 215, 193, 0.9);
    border-radius: 999px;
    padding: 0.5rem 1.5rem;
    margin: 0.25rem;
}

.services-nav .nav-link.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--charcoal);
    border-color: var(--gold);
}

/* Footer - REDESIGNED TO MATCH YOUR SAMPLE */
footer {
    background: linear-gradient(
        135deg,
        rgba(12, 20, 16, 0.98),
        rgba(5, 9, 7, 0.99)
    );
    border-top: 1px solid rgba(201, 168, 106, 0.35);
    padding: 3rem 0 1.5rem;
}

footer h5 {
    color: var(--gold);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

footer p,
footer a {
    color: rgba(231, 215, 193, 0.8);
    line-height: 1.8;
}

footer a:hover {
    color: var(--gold);
    text-decoration: none;
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(201, 168, 106, 0.3);
    color: var(--gold);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--gold);
    color: var(--charcoal);
    transform: translateY(-3px);
}

/* Contact Block - FROM YOUR SAMPLE */
.contact-block {
    border-top: 1px solid rgba(201, 168, 106, 0.3);
    padding-top: 12px;
    margin-top: 8px;
    font-size: 0.82rem;
    color: rgba(231, 215, 193, 0.92);
}

.contact-block strong {
    color: var(--gold);
    font-weight: 600;
}

.contact-block a {
    color: var(--gold);
    text-decoration: none;
}

.contact-block a:hover {
    text-decoration: underline;
}

/* Filter Buttons */
.filter-btn {
    background: rgba(12, 20, 16, 0.7);
    border: 1px solid rgba(231, 215, 193, 0.3);
    color: rgba(231, 215, 193, 0.9);
    border-radius: 999px;
    padding: 0.5rem 1.5rem;
    margin: 0.25rem;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--charcoal);
    border-color: var(--gold);
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--charcoal);
    border: 1px solid rgba(201, 168, 106, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#backToTop.show {
    opacity: 1;
    transform: translateY(0);
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .carousel-item {
        height: 50vh;
        min-height: 400px;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background: linear-gradient(
            145deg,
            rgba(40, 74, 42, 0.98),
            rgba(15, 15, 15, 0.98)
        );
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid rgba(201, 168, 106, 0.35);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .countdown {
        flex-wrap: wrap;
    }
    
    .counter-box {
        flex: 0 0 calc(50% - 10px);
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .carousel-caption h1 {
        font-size: 1.5rem;
    }
    
    .carousel-caption .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .brand-text h1 {
        font-size: 1rem;
    }
    
    .brand-text span {
        font-size: 0.6rem;
    }
}

/* Custom Utilities */
.text-gold { color: var(--gold) !important; }
.text-beige { color: var(--earth-beige) !important; }
.text-green { color: var(--harvest-green) !important; }
.text-charcoal { color: var(--charcoal) !important; }

.bg-gold { background-color: var(--gold) !important; }
.bg-beige { background-color: var(--earth-beige) !important; }
.bg-green { background-color: var(--harvest-green) !important; }
.bg-charcoal { background-color: var(--charcoal) !important; }

.border-gold { border-color: var(--gold) !important; }
.border-beige { border-color: var(--earth-beige) !important; }
.border-green { border-color: var(--harvest-green) !important; }
.border-charcoal { border-color: var(--charcoal) !important; }

.opacity-80 { opacity: 0.8; }
.opacity-70 { opacity: 0.7; }
.opacity-60 { opacity: 0.6; }

.letter-spacing-1 { letter-spacing: 0.1em; }
.letter-spacing-2 { letter-spacing: 0.2em; }
.letter-spacing-3 { letter-spacing: 0.3em; }

/* Gradient Backgrounds */
.gradient-dark {
    background: radial-gradient(circle at top left, var(--green-light), var(--green-dark));
}

.gradient-card {
    background: linear-gradient(
        145deg,
        rgba(40, 74, 42, 0.98),
        rgba(15, 15, 15, 0.98)
    );
}

.gradient-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

/* Shadows */
.shadow-deep {
    box-shadow: 
        0 18px 45px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(0, 0, 0, 0.8);
}

.shadow-medium {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.shadow-light {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}