/* --- Variables & Reset (Industrial High-Contrast) --- */
:root {
    --charcoal-dark: #1a1a1a;  
    --charcoal-light: #2d2d34;
    --construction-orange: #C4A484;        
    --zinc-light: #f4f4f6;       
    --text-main: #333333;
    --font-display: 'Oswald', sans-serif; 
    --font-body: 'Roboto', sans-serif;    
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-main); line-height: 1.6; background-color: white; }

/* --- Typography Utilities --- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--charcoal-dark); text-transform: uppercase; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
.section-padding { padding: 100px 0; }
.bg-zinc { background-color: var(--zinc-light); }
.text-center { text-align: center; }

/* --- Header & Nav --- */
header {
    position: fixed; top: 0; width: 100%; padding: 20px 0; z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease;
    background: rgba(26, 26, 26, 0.95); 
    border-bottom: 3px solid var(--construction-orange);
}
header.scrolled { background: var(--charcoal-dark); padding: 15px 0; box-shadow: 0 4px 6px rgba(0,0,0,0.3); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-display); font-size: 1.8rem; color: white; text-decoration: none; font-weight: 700; letter-spacing: 1px; }
.logo .light { font-weight: 400; color: var(--construction-orange); }
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { color: white; text-decoration: none; font-size: 1rem; font-weight: 500; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--construction-orange); }
.btn-outline { border: 2px solid var(--construction-orange); color: white; background: var(--construction-orange); padding: 10px 24px; text-decoration: none; font-weight: 700; font-family: var(--font-display); font-size: 1.1rem; text-transform: uppercase; transition: 0.2s; border-radius: 2px; }
.btn-outline:hover { background: transparent; color: var(--construction-orange); }
.hamburger { display: none; color: white; font-size: 1.8rem; cursor: pointer; }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    /* Updated background for carpentry context */
    background: linear-gradient(rgba(26,26,26,0.7), rgba(26,26,26,0.8)), url('images/VibeVetted_carpenter_starterkit_hero_image.webp') no-repeat center center/cover;
    background-attachment: fixed; 
    display: flex; align-items: center; justify-content: center; text-align: center; color: white;
}
.hero-content { max-width: 800px; padding: 0 20px; }
.subtitle { text-transform: uppercase; letter-spacing: 4px; font-weight: 700; font-size: 1rem; margin-bottom: 20px; color: var(--construction-orange); font-family: var(--font-display); }
.hero h1 { font-size: 5rem; line-height: 1.1; margin-bottom: 20px; color: white; letter-spacing: 2px; }
.hero-text { font-size: 1.2rem; margin-bottom: 40px; color: #e0e0e0; }
.btn-primary { background-color: var(--construction-orange); color: white; padding: 18px 40px; border: none; text-decoration: none; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 2px; font-size: 1.2rem; font-weight: 700; transition: 0.3s; display: inline-block; border-radius: 2px; }
.btn-primary:hover { background-color: white; color: var(--charcoal-dark); }

/* --- About Section --- */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.divider { width: 60px; height: 4px; background-color: var(--construction-orange); margin: 20px 0; }
.image-block img { width: 100%; border-radius: 2px; box-shadow: -15px 15px 0px var(--zinc-light); }

/* --- Services --- */
.section-header h2 { font-size: 3rem; margin-bottom: 10px; }
.sub-header { color: #555; margin-bottom: 60px; font-size: 1.2rem; font-weight: 500; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.service-card { background: white; padding: 40px 30px; text-align: left; transition: transform 0.2s; border: 2px solid #eaeaea; border-radius: 4px; border-bottom: 4px solid var(--charcoal-light); }
.service-card:hover { border-color: var(--construction-orange); border-bottom-color: var(--construction-orange); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.service-card i { font-size: 2.5rem; color: var(--construction-orange); margin-bottom: 20px; display: block; }
.service-card h3 { margin-bottom: 15px; font-size: 1.6rem; letter-spacing: 1px; }

/* --- Stats Strip --- */
.stats-strip { background-color: var(--charcoal-dark); color: white; padding: 80px 0; border-top: 5px solid var(--construction-orange); }
.stats-flex { display: flex; justify-content: space-around; text-align: center; }
.stat span { display: block; font-family: var(--font-display); font-size: 4rem; font-weight: 700; color: var(--construction-orange); line-height: 1; margin-bottom: 10px; }
.stat p { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px; color: #aaa; }

/* --- Direct Contact Section --- */
.contact-subtext { max-width: 650px; margin: 0 auto 50px auto; color: #555; font-size: 1.2rem; }
.direct-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.contact-card { background: var(--zinc-light); padding: 40px 20px; border-radius: 4px; text-decoration: none; color: var(--text-main); transition: all 0.2s ease; display: flex; flex-direction: column; align-items: center; border: 2px solid transparent; }
.contact-card:hover { background: white; border-color: var(--construction-orange); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
.contact-card.whatsapp:hover .icon-wrap { background: #25D366; color: white; }
.icon-wrap { width: 80px; height: 80px; background: var(--construction-orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--charcoal-dark); margin-bottom: 20px; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 2px solid #eaeaea; }
.contact-card:hover .icon-wrap { border-color: var(--construction-orange); color: var(--zinc-light); }
.contact-card h3 { margin-bottom: 10px; font-size: 1.6rem; }
.contact-card p { font-size: 1.2rem; margin-bottom: 15px; font-weight: 700; color: var(--charcoal-dark); }
.link-text { font-size: 1rem; text-transform: uppercase; font-family: var(--font-display); letter-spacing: 1px; color: var(--construction-orange); font-weight: 700; }

/* --- Footer --- */
footer { background-color: #111; color: #777; text-align: center; padding: 40px 0; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; font-family: var(--font-display); }

/* --- Sticky CTA --- */
.sticky-cta { position: fixed; bottom: 20px; right: 20px; z-index: 9999; background-color: var(--construction-orange); color: #ffffff; text-decoration: none; padding: 15px 35px; border-radius: 4px; box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4); font-weight: 700; font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 12px; transition: all 0.2s ease; border: 2px solid transparent; }
.sticky-cta:hover { background-color: var(--charcoal-dark); border-color: var(--construction-orange); color: var(--construction-orange); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
.sticky-cta i { font-size: 1.4rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links, .btn-outline { display: none; }
    .hamburger { display: block; }
    .hero h1 { font-size: 3.5rem; }
    .split-layout { grid-template-columns: 1fr; }
    .stats-flex { flex-direction: column; gap: 40px; }
    
    .nav-links.active { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--charcoal-dark); justify-content: center; align-items: center; z-index: 999; }
}

@media (max-width: 600px) {
    .sticky-cta { left: 50%; transform: translateX(-50%); bottom: 15px; width: 90%; justify-content: center; padding: 18px 20px; }
    .sticky-cta:hover { transform: translateX(-50%); }
}


@media (max-width: 360px) {
    /* 1. Reclaim horizontal screen space */
    .container { 
        padding: 0 15px; 
    }
    
    /* 2. Reduce excessive vertical whitespace */
    .section-padding { 
        padding: 60px 0; 
    }
    
    /* 3. Scale down Header & Logo */
    .logo { 
        font-size: 1.4rem; 
    }
    
    /* 4. Scale down Hero Elements to prevent text wrapping awkwardly */
    .hero h1 { 
        font-size: 2.5rem; 
        letter-spacing: 1px; 
    }
    .hero-text { 
        font-size: 1rem; 
        margin-bottom: 30px; 
    }
    .btn-primary { 
        padding: 15px 25px; 
        font-size: 1rem; 
    }
    
    /* 5. Adjust Section Typography */
    .section-header h2, 
    .text-block h2 { 
        font-size: 2.2rem; 
    }
    .sub-header {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    /* 6. Tighten Grid Cards */
    .services-grid, 
    .direct-contact-grid { 
        gap: 20px; 
    }
    .service-card { 
        padding: 25px 20px; 
    }
    .contact-card { 
        padding: 25px 15px; 
    }
    .contact-card h3 {
        font-size: 1.3rem;
    }
    .contact-card p {
        font-size: 1.1rem;
    }
    
    /* 7. Scale down Stats */
    .stat span { 
        font-size: 3rem; 
    }
    
    /* 8. Make Sticky CTA fit perfectly */
    .sticky-cta { 
        font-size: 1rem; 
        padding: 15px 15px; 
        width: 92%; 
        bottom: 10px;
    }
}