/* ===========================
   CSS Reset & Base Styles
   =========================== */

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

:root {
    /* Color Palette - Warm, Country-Inspired */
    --primary-color: #c84e3f; /* Barn red */
    --primary-dark: #a33e31;
    --secondary-color: #8b6f47; /* Warm brown */
    --accent-color: #f4a261; /* Warm orange */
    --text-dark: #2c2c2c;
    --text-medium: #5a5a5a;
    --text-light: #7a7a7a;
    --bg-cream: #faf8f3;
    --bg-white: #ffffff;
    --bg-light-gray: #f5f5f5;
    --border-color: #e5e5e5;

    /* Typography */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;

    /* Borders & Shadows */
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ===========================
   Typography
   =========================== */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-medium);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* ===========================
   Buttons
   =========================== */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background-color: #6f5838;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.125rem;
}

.btn-primary-small {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 10px 24px;
    font-size: 0.95rem;
}

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

/* ===========================
   Navigation
   =========================== */

.navbar {
    background-color: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-menu a:not(.btn):hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    background: linear-gradient(135deg, var(--bg-cream) 0%, #f0ebe1 100%);
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* ===========================
   About Section
   =========================== */

.about {
    padding: var(--section-padding);
    background-color: var(--bg-white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.9;
}

/* ===========================
   Features Section
   =========================== */

.features {
    padding: var(--section-padding);
    background-color: var(--bg-cream);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.feature-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-medium);
}

/* ===========================
   Testimonial Section
   =========================== */

.testimonial {
    padding: var(--section-padding);
    background-color: var(--bg-white);
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

blockquote {
    background-color: var(--bg-cream);
    padding: 3rem;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
}

blockquote p {
    font-size: 1.375rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

blockquote footer {
    text-align: center;
}

blockquote cite {
    font-style: normal;
}

blockquote strong {
    display: block;
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

blockquote span {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* ===========================
   Pricing Section
   =========================== */

.pricing {
    padding: var(--section-padding);
    background-color: var(--bg-cream);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

.pricing-title {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.pricing-price {
    margin-bottom: 2rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.period {
    font-size: 1.25rem;
    color: var(--text-medium);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* ===========================
   Newsletter Section
   =========================== */

.newsletter {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

.newsletter-content .btn {
    margin-top: 0.5rem;
}

/* ===========================
   Footer
   =========================== */

.footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.tagline {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact h4 {
    color: var(--bg-white);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.address {
    margin-top: 1rem;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links span {
    color: rgba(255, 255, 255, 0.3);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .navbar .container {
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 20px;
        flex-direction: column;
        background-color: var(--bg-white);
        box-shadow: var(--box-shadow-lg);
        border-radius: var(--border-radius);
        padding: 1.5rem;
        gap: 1rem;
        display: none;
        min-width: 200px;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    blockquote {
        padding: 2rem;
    }

    blockquote p {
        font-size: 1.125rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .pricing-features {
        text-align: left;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .newsletter-form {
        flex-direction: row;
    }

    .newsletter-form input[type="email"] {
        flex: 1;
    }

    .newsletter-form button {
        width: auto;
        white-space: nowrap;
    }
}
