/* Shared styles for Dean Carpentry service pages */
:root {
    --oak: #8B6914;
    --oak-light: #C49A2A;
    --oak-dark: #5C4510;
    --charcoal: #1a1a1a;
    --warm-gray: #f5f0eb;
    --cream: #faf8f5;
    --text: #2d2d2d;
    --text-light: #6b6b6b;
    --white: #ffffff;
    --shadow: 0 4px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 40px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--cream);
}

/* NAV */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
}
nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 2rem;
}
.nav-logo { height: 50px; }
.nav-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; font-weight: 700;
    color: var(--charcoal);
    text-decoration: none;
}
.nav-logo-text span { color: var(--oak); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
    text-decoration: none; color: var(--text-light);
    font-size: 0.9rem; font-weight: 500;
    transition: color 0.3s;
    letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--oak); }
.nav-cta {
    background: var(--oak); color: var(--white) !important;
    padding: 0.6rem 1.5rem; border-radius: 6px;
    transition: background 0.3s !important;
}
.nav-cta:hover { background: var(--oak-dark) !important; }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 24px; height: 2px; background: var(--charcoal); transition: 0.3s; }

/* BUTTONS */
.btn {
    display: inline-block; padding: 0.9rem 2rem;
    border-radius: 6px; font-weight: 600;
    text-decoration: none; font-size: 0.95rem;
    transition: all 0.3s; cursor: pointer; border: none;
}
.btn-primary { background: var(--oak); color: var(--white); }
.btn-primary:hover { background: var(--oak-light); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(139,105,20,0.3); }
.btn-outline { border: 1px solid rgba(0,0,0,0.15); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--oak); color: var(--oak); }
.btn-white { background: var(--white); color: var(--oak-dark); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

/* SECTIONS */
section { padding: 6rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
    display: inline-block;
    color: var(--oak);
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase;
    margin-bottom: 0.8rem;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--charcoal);
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* SERVICE HERO */
.service-hero {
    padding-top: 140px; padding-bottom: 4rem;
    padding-left: 2rem; padding-right: 2rem;
    background: var(--white);
}
.service-hero-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
}
.back-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 0.4rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s;
}
.back-link:hover { color: var(--oak); }
.service-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--charcoal);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.service-hero .lead {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}
.service-hero-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.service-hero-image img {
    width: 100%; height: 450px; object-fit: cover;
    display: block;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* FEATURES */
.features {
    background: var(--cream);
}
.features-header { max-width: 700px; margin: 0 auto 3rem; text-align: center; }
.features-header p { color: var(--text-light); font-size: 1.05rem; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.4s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.feature-icon {
    width: 50px; height: 50px;
    background: var(--warm-gray);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--oak);
    margin-bottom: 1.2rem;
}
.feature-icon svg { width: 24px; height: 24px; stroke-width: 1.75; }
.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}
.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--oak-dark) 0%, var(--oak) 50%, var(--oak-light) 100%);
    text-align: center;
    padding: 5rem 2rem;
}
.cta h2 {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}
.cta p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.05rem; }

/* FOOTER */
footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.6);
    padding: 4rem 2rem 2rem;
}
.footer-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand .nav-logo-text { font-size: 1.3rem; }
.footer-brand p { margin-top: 1rem; font-size: 0.9rem; line-height: 1.8; }
footer h4 {
    color: var(--white); font-size: 0.9rem;
    font-weight: 600; margin-bottom: 1rem;
    letter-spacing: 0.05em; text-transform: uppercase;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.5rem; }
footer ul li a {
    color: rgba(255,255,255,0.5); text-decoration: none;
    font-size: 0.9rem; transition: color 0.3s;
}
footer ul li a:hover { color: var(--oak-light); }
.footer-bottom {
    max-width: 1200px; margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2rem;
    display: flex; justify-content: space-between;
    font-size: 0.85rem;
}

/* RELATED SERVICES */
.related-services {
    background: var(--white);
    padding: 5rem 2rem;
}
.related-grid {
    max-width: 1200px; margin: 2rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.related-card {
    background: var(--cream);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: var(--charcoal);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.related-card:hover {
    background: var(--oak);
    color: var(--white);
    transform: translateY(-2px);
}
.related-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
}
.related-card svg { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; }

/* MOBILE */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--white);
        padding: 1.5rem 2rem;
        box-shadow: var(--shadow);
        gap: 1rem;
    }
    .service-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .service-hero-image img { height: 280px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    section { padding: 4rem 1.5rem; }
    .service-hero { padding-top: 120px; padding-left: 1.5rem; padding-right: 1.5rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* ANIMATIONS */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
