:root {
    --primary: #c62828;
    /* Barn Red */
    --primary-dark: #8e0000;
    --primary-light: #ff5f52;
    --secondary: #2b2b2b;
    /* Slightly softer dark gray, less corporate slate */
    --accent: #d4af37;
    /* More weathered gold/wheat color */
    --bg-color: #f4eee8;
    /* Warmer off-white, paper-like background */
    --bg-light: #fffcf8;
    --text-main: #333333;
    --text-muted: #5a5a5a;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Custom Human Handwriting Class */
.handwritten {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    transform: rotate(-2deg);
    display: inline-block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Typography Utilities */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background-color: var(--primary);
    bottom: -10px;
    left: 25%;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    /* More grounded, less startup "rounded pill" style */
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 2px 4px 0 rgba(142, 0, 0, 1);
    /* Hand-built, solid shadow look */
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(142, 0, 0, 1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    box-shadow: 2px 4px 0 rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary);
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.4);
}

.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.w-100 {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(244, 238, 232, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--secondary);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(38, 50, 56, 0.95) 0%, rgba(38, 50, 56, 0.6) 100%),
        url('https://loremflickr.com/1920/1080/barn,roofing/all') center/cover no-repeat;
    z-index: -1;
}

.hero-content {
    color: var(--white);
    max-width: 800px;
}

.hero-note {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transform: rotate(-3deg);
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content h1 span {
    color: var(--primary-light);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Story Section */
.section {
    padding: 6rem 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text h2 {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.story-text p {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 1.2rem;
}

.story-text .signature {
    font-size: 2.2rem;
    color: var(--primary);
    margin-top: 1rem;
    transform: rotate(-3deg);
}

.story-img {
    position: relative;
}

.story-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: -15px 15px 0 var(--accent);
    /* Grounded, rugged shadow */
}

.photo-caption {
    position: absolute;
    bottom: -30px;
    right: 20px;
    background: var(--bg-color);
    padding: 0.5rem 1rem;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.3rem;
    color: var(--secondary);
    border: 1px solid #ddd;
}

/* Services */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.card {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid #e0e0e0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 12px 0 var(--primary);
}

.card-img {
    height: 300px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 2.5rem;
}

.card-content h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Banner / Projects */
.banner {
    background: linear-gradient(rgba(43, 43, 43, 0.9), rgba(43, 43, 43, 0.9)),
        url('https://loremflickr.com/1920/1080/farm,field/all') center/cover fixed;
    color: var(--white);
    text-align: center;
}

.accent-note {
    color: var(--accent);
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
    transform: rotate(-1deg);
}

.banner h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.banner p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
    opacity: 0.9;
}

.banner p.handwritten {
    font-style: normal;
    font-size: 2rem;
    opacity: 1;
    color: var(--primary-light);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.contact-info {
    padding: 4rem;
    background-color: var(--secondary);
    color: var(--white);
}

.contact-info h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.contact-info>p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-item .icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.info-item .icon svg {
    width: 28px;
    height: 28px;
}

.info-item h4 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    color: var(--white);
}

.info-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.info-item a {
    color: var(--white);
    border-bottom: 1px dashed var(--accent);
}

.info-item a:hover {
    color: var(--accent);
}

.contact-form {
    padding: 4rem;
    background: var(--bg-light);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 2px;
    font-family: inherit;
    font-size: 1.1rem;
    transition: var(--transition);
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 4px 4px 0 rgba(198, 40, 40, 0.2);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-brand h3 span {
    color: var(--primary);
}

.footer-brand p {
    color: #888;
    max-width: 300px;
}

.footer-contact p {
    color: #888;
    margin-bottom: 0.5rem;
    text-align: right;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px dashed #333;
    color: #666;
    font-size: 0.95rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 992px) {
    .story-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .footer-contact {
        p {
            text-align: left;
        }
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 2rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        text-align: center;
        border-bottom: 2px solid var(--primary);
    }

    .nav-links.active a {
        padding: 1rem 0;
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .banner h2 {
        font-size: 2.2rem;
    }

    .contact-info,
    .contact-form {
        padding: 2.5rem 1.5rem;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }
}