/* styles.css */

:root {
    /* "Real Deal" Colour Palette */
    --barn-red: #c0392b;
    --pasture-green: #2ecc71;
    --forest-green: #27ae60;
    --slate-dark: #2c3e50;
    --cream-light: #fdfbf7;
    --border-color: #e0e0e0;
    
    /* Spacing & Layout */
    --max-width: 1200px;
    --header-height: 120px;
}

/* Reset & Base Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Clean, modern sans-serif */
    background-color: var(--cream-light);
    color: var(--slate-dark);
    line-height: 1.6;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* --- Header Styles --- */
#header {
    background-color: white;
    border-bottom: 4px solid var(--barn-red); /* That classic barn accent */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
}

#header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

/* Make the logo look professional */
#header-logo {
    max-height: 100px;
    width: auto; /* Maintain aspect ratio */
    object-fit: contain;
}

/* Style the text to look like a proper brand identity */
#header-text-container {
    text-align: left;
}

#header h1 {
    font-size: 2.5rem;
    color: var(--slate-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.2rem;
}

#header-text-container p {
    font-size: 1.1rem;
    color: var(--barn-red); /* Accent color for the tagline */
    font-style: italic;
    font-weight: 500;
}

/* --- Navigation Styles --- */
#nav {
    background-color: var(--slate-dark);
    padding: 0;
    display: flex;
    justify-content: center; /* Center links on desktop */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-link {
    text-decoration: none;
    color: white;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--pasture-green);
    border-bottom: 3px solid var(--pasture-green);
    box-shadow: none; /* Removed that clunky blue shadow */
}

/* --- Main Content Styles --- */
#main {
    flex: 1; /* Pushes footer down */
    width: 100%;
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for desktop */
    gap: 3rem;
    align-items: center;
    background-color: transparent; /* Removed 'bisque' */
}

.main-article {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#main-header {
    font-size: 2.2rem;
    color: var(--barn-red);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--pasture-green);
    display: inline-block;
    padding-bottom: 0.5rem;
}

#main-paragraph {
    font-size: 1.15rem;
    color: #555;
    text-align: justify;
}

#main-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border: 4px solid white;
    transition: transform 0.3s ease;
}

#main-image:hover {
    transform: scale(1.02);
}

/* --- Footer Styles --- */
#footer {
    background-color: var(--slate-dark);
    color: white;
    padding: 2rem;
    text-align: center;
    border-top: 4px solid var(--pasture-green);
    margin-top: auto;
}

#footer h4 {
    color: white;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

#footer p {
    font-size: 0.9rem;
    color: #bbb;
}

#footer a {
    color: var(--pasture-green);
    font-weight: bold;
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}

/* --- Mobile Responsiveness --- */
@media screen and (max-width: 768px) {
    #header-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    #header-text-container {
        text-align: center;
        width: 100%;
    }
    
    #header h1 {
        font-size: 2rem;
    }
    
    #nav {
        flex-direction: column;
    }
    
    .nav-link {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    #main {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: 2rem;
        margin-top: 1rem;
    }

    #main-paragraph {
        text-align: left;
    }
}

/* --- Utility Classes --- */
.hidden {
    display: none !important;
}

/* --- Form Styles --- */
#contact-form {
    margin-top: 2rem;
    width: 100%;
    text-align: left;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--slate-dark);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--pasture-green);
}

.btn-submit {
    background-color: var(--barn-red);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #a93226; /* Slightly darker red */
}

/* --- Success Message Styles --- */
#success-message {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #dff0d8; /* Pale green background */
    border: 2px solid var(--pasture-green);
    border-radius: 8px;
    color: #3c763d; /* Dark green text */
    text-align: center;
}

#success-message h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}