/* ============================================
   Allen Brothers Outdoors - Custom Styles
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (Variables)
   ============================================ */
:root {
    /* Primary Colors - Earth Tones */
    --color-forest: #166534;
    --color-forest-dark: #14532d;
    --color-hunter: #15803d;
    --color-brown: #b45309;
    --color-brown-dark: #92400e;
    --color-gold: #f59e0b;
    --color-gold-light: #fbbf24;

    /* Neutral Colors */
    --color-cream: #faf7f5;
    --color-tan: #e7e5e4;
    --color-stone: #78716c;
    --color-dark: #1c1917;

    /* Fonts */
    --font-heading: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ============================================
   BASE STYLES
   ============================================ */
html {
    scroll-behavior: smooth;
}

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

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

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.015em;
}

h4 {
    font-size: 1.35rem;
    font-weight: 700;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-link {
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero img {
    object-position: center 25%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(28, 25, 23, 0.4) 0%,
        rgba(28, 25, 23, 0.6) 50%,
        rgba(28, 25, 23, 0.8) 100%
    );
}

.hero-home {
    min-height: 90vh;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

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

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

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

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

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

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

.btn-gold:hover {
    background-color: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

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

.card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 5rem 1rem;
}

.section-dark {
    background-color: var(--color-dark);
    color: white;
}

.section-forest {
    background-color: var(--color-forest);
    color: white;
}

.section-tan {
    background-color: var(--color-tan);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.05;
    position: relative;
    text-transform: none;
}

.section-title span {
    color: var(--color-gold);
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    margin-top: 1.25rem;
    border-radius: 3px;
}

.text-center .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.section-dark .section-title,
.section-forest .section-title,
.bg-forest-800 .section-title {
    color: white;
}

.section-title.text-white::after,
.section-dark .section-title::after,
.section-forest .section-title::after,
.bg-forest-800 .section-title::after {
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
}

.section-subtitle {
    font-size: 1.35rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    font-weight: 400;
}

/* ============================================
   FEATURE GRID
   ============================================ */
.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-forest);
    color: white;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--color-gold);
    opacity: 0.3;
    position: absolute;
    top: -1rem;
    left: 1rem;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-forest);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--color-dark);
    color: var(--color-tan);
}

.footer-heading {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-gold);
}

.footer-link {
    color: var(--color-tan);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: block;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: var(--color-gold);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-tan);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background-color: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-forest);
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

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

.text-gold {
    color: var(--color-gold);
}

.text-forest {
    color: var(--color-forest);
}

.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23166534' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Tighter nav spacing for medium-large screens */
@media (min-width: 1024px) and (max-width: 1400px) {
    .nav-link {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
    }

    .hero-home {
        min-height: 80vh;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section-title::after {
        width: 70px;
        height: 4px;
    }

    .section-subtitle {
        font-size: 1.125rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-title::after {
        width: 60px;
    }

    .card-image {
        height: 200px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }
}
