/* --- 1. Variables & Reset --- */
:root {
    --color-primary: #5D4037;   /* Rustic Brown */
    --color-secondary: #8D6E63; /* Leather */
    --color-accent: #ff9100;    /* Gold/Orange */
    --color-dark: #1a1a1a;
    --color-light: #F5F5DC;     /* Cream */
    --color-white: #ffffff;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-strong: 0 20px 40px rgba(0,0,0,0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- 2. Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

.text-gradient {
    background: linear-gradient(to right, var(--color-accent), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-heading {
    color: var(--color-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* --- 3. Buttons --- */
.btn-primary {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 145, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 145, 0, 0.6);
    background-color: #ffaa00;
}

.full-width { width: 100%; text-align: center; border: none; cursor: pointer; }

/* --- 4. Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 1000;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-white);
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.nav-links a:hover { color: var(--color-accent); }

/* --- 5. Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* REPLACE 'hero-bg.jpg' with your 3D Cowboy Image path */
    background: url('hero-bg.jpg') no-repeat center center/cover; 
    background-attachment: fixed; /* Parallax Effect */
}

/* Fallback background if image is missing */
/* --- 5. Hero Section (Responsive) --- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* 1. Common Settings */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* 2. MOBILE DEFAULT (9:16) */
    /* This loads first on phones. We use 'scroll' because 'fixed' parallax creates bugs on iOS/Android */
    background-image: url('mobile-hero.png'); 
    background-attachment: scroll; 
}

/* 3. DESKTOP OVERRIDE (16:9) */
/* When the screen is wider than 768px (Tablets/Laptops), switch the image */
@media (min-width: 768px) {
    .hero {
        background-image: url('desktop-hero.png');
        /* We can turn the cool Parallax effect back on for desktops */
        background-attachment: fixed; 
    }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin: 1.5rem 0 2.5rem;
    color: rgba(255,255,255,0.9);
}

/* SVG Divider */
.custom-shape-divider-bottom-169 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-bottom-169 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.custom-shape-divider-bottom-169 .shape-fill { fill: var(--color-light); }

/* --- 6. General Layouts --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 6rem 0; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* --- 7. About Section --- */
.quote-box {
    border-left: 4px solid var(--color-accent);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--color-primary);
    font-size: 1.1rem;
    margin: 2rem 0;
    background: rgba(141, 110, 99, 0.1);
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transform: rotate(2deg);
    transition: transform 0.5s;
}

.image-wrapper:hover { transform: rotate(0deg) scale(1.02); }

.styled-img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- 8. Services Section (Dark) --- */
.section-dark {
    background-color: var(--color-primary);
    color: var(--color-white);
    position: relative;
}

.section-header { text-align: center; margin-bottom: 4rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-header p { color: rgba(255,255,255,0.7); }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2.5rem;
    border-radius: 15px;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-10px);
    border-color: var(--color-accent);
}

.card-icon {
    color: var(--color-accent);
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}

/* --- 9. Contact Section --- */
.contact-box {
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

.contact-info {
    background: var(--color-secondary);
    color: white;
    padding: 3rem;
    flex: 1;
    min-width: 300px;
}

.contact-form-wrapper {
    padding: 3rem;
    flex: 1.5;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* --- 10. Footer --- */
footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* --- 11. Animation Classes --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

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

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-2-col { grid-template-columns: 1fr; }
    .contact-box { flex-direction: column; }
    .nav-links { display: none; } /* Mobile menu simplified for this version */
    .hero { background-attachment: scroll; } /* Disable parallax on mobile for performance */
}