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

:root {
    --primary: #1a1a1a;
    --secondary: #4a4a4a;
    --accent: #8b7355;
    --light-bg: #faf9f7;
    --border: #e8e6e1;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    color: var(--secondary);
    background-color: white;
}

/* HERO SECTION */
.hero {
    background: linear-gradient(to bottom, white 0%, var(--light-bg) 100%);
    padding: 7rem 2rem 6rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255,255,255, 0.6);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 300;
    margin-bottom: 2.5rem;
    letter-spacing: 0.3px;
}

.hero-cta {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.85rem 2.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 1px solid var(--primary);
    transition: all 0.4s ease;
    margin-bottom: 24px;
}

.hero-cta:hover {
    background: transparent;
    color: var(--primary);
}

/* NAVIGATION */
nav {
    background: white;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    width: 100%;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.3px;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--secondary);
    margin-bottom: 2.5rem;
    line-height: 1.9;
    font-weight: 300;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    color: var(--primary);
}
#NewConstructionCard:hover {
    background-image: url('/img/framing-medium.jpeg');
}

#CustomHomeCard:hover {
    background-image: url('/img/custom-medium.jpeg');
}

#GeneralContractingCard:hover {
    background-image: url('/img/general-contracting-medium.jpeg');
}

.service-card:hover {
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow:
        1px 1px 3px rgba(0,0,0,0.93);
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.service-card p {
    line-height: 1.8;
    font-weight: 300;
}

/* LICENSE INFO */
.license-info {
    background: var(--light-bg);
    padding: 2.5rem;
    border-left: 3px solid var(--accent);
    margin: 3.5rem 0;
}

.license-info p {
    margin-bottom: 0.8rem;
    color: var(--secondary);
    font-weight: 300;
}

.license-info strong {
    color: var(--primary);
    font-weight: 600;
}

/* CONTACT INFO */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin: 3.5rem 0;
}

.info-block {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border);
    background: white;
    transition: all 0.3s ease;
}

.info-block:hover {
    border-color: var(--accent);
    background: var(--light-bg);
}

.info-block h3 {
    color: var(--accent);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.info-block p {
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.8;
}

.info-block a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-block a:hover {
    color: var(--accent);
}

/* FORM */
form {
    background: white;
    padding: 2.5rem;
    border: 1px solid var(--border);
    max-width: 600px;
}

.form-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.95rem;
    border: 1px solid var(--border);
    background: var(--light-bg);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    color: var(--primary);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
}

textarea {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
}

button {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border: 1px solid var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
    width: 100%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-family: inherit;
}

button:hover {
    background: transparent;
    color: var(--primary);
}

/* CTA SECTION */
.cta-section {
    background: var(--light-bg);
    padding: 3.5rem 2rem;
    text-align: center;
    margin: 3.5rem 0;
    border: 1px solid var(--border);
}

.cta-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.05rem;
    color: var(--secondary);
    margin: 0;
    font-weight: 300;
}

/* FOOTER */
footer {
    background: var(--primary);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 0;
}

footer p {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.2px;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
}

.social-links a:hover {
    opacity: 0.7;
}

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in:nth-child(1) { animation-delay: 0s; }
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }

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

section {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

section:nth-of-type(1) { animation-delay: 0.2s; }
section:nth-of-type(2) { animation-delay: 0.3s; }
section:nth-of-type(3) { animation-delay: 0.4s; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.5rem 3.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    nav ul {
        gap: 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    form {
        padding: 1.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    nav {
        padding: 0.8rem 1.5rem;
    }
    #FormSuccessMessage {
        display: none;
        margin-top: 1rem;
        color: green;
        font-weight: 500;
        text-align: center;
    }
}