/* ==========================================================================
   SERVICE 4: RESIDENTIAL CONSTRUCTION (LIGHT THEME, ARCHITECTURE 3)
   ========================================================================== */

:root {
    --primary: #0f172a;       /* Deep Navy */
    --brand-primary: #0284c7; /* Trustworthy Builder Blue */
    --brand-accent: #f59e0b;  /* Hardhat Warm Yellow/Orange */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
img { max-width: 100%; display: block; border-radius: 8px; }

/* Utilities */
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.josef-preview-banner { background: var(--bg-light); color: var(--text-main); text-align: center; padding: 8px; font-size: 13px; border-bottom: 1px solid var(--border); }

/* =========================================================
   MASTER PROTOCOL: ARCHITECTURE 3 (ENTERPRISE TRADESMAN)
   ========================================================= */
.header-3 { background: white; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.h3-container { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo { font-size: 1.8rem; font-weight: 800; text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--brand-primary); }

.h3-nav { display: flex; gap: 35px; height: 100%; align-items: center; }
.h3-nav a { color: var(--text-muted); font-weight: 600; text-decoration: none; height: 100%; display: flex; align-items: center; border-bottom: 3px solid transparent; transition: all 0.2s; }
.h3-nav a:hover { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }

.h3-utility { display: flex; align-items: center; gap: 20px; }
.h3-phone { font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.h3-phone i { color: var(--brand-primary); font-size: 1.3rem; }
.h3-btn { background: var(--brand-primary); color: white; padding: 12px 28px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: background 0.2s; }
.h3-btn:hover { background: #0369a1; }

/* Hero Section */
.builder-hero { padding: 60px 0 80px 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.trust-badge { display: inline-flex; align-items: center; gap: 8px; background: #f0f9ff; color: var(--brand-primary); padding: 8px 16px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; margin-bottom: 20px; border: 1px solid #bae6fd; }
.hero-text h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 20px; letter-spacing: -1px; } /* Medium, strict adherence to rules */
.hero-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 35px; max-width: 500px; }

.hero-actions { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.btn-primary { background: var(--primary); color: white; padding: 15px 32px; border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 1.05rem; transition: background 0.2s; }
.btn-primary:hover { background: #1e293b; }

.google-rating { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--text-muted); }
.stars { color: var(--brand-accent); font-size: 1.2rem; }

.hero-image { position: relative; }
.hero-image img { height: 600px; object-fit: cover; }
.floating-card { position: absolute; bottom: 30px; left: -30px; background: white; padding: 20px 25px; border-radius: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 15px; border: 1px solid var(--border); }
.floating-card i { font-size: 2.5rem; color: var(--brand-primary); }
.floating-card strong { display: block; color: var(--primary); font-size: 1.1rem; }
.floating-card span { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }

/* Services Section */
.services-section { padding: 100px 0; }
.section-header { margin-bottom: 60px; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 15px; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.service-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; background: white; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.06); }
.service-card img { border-radius: 0; height: 240px; width: 100%; object-fit: cover; }
.card-content { padding: 30px; }
.card-content h3 { font-size: 1.4rem; margin-bottom: 10px; }
.card-content p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; line-height: 1.6; }
.text-link { color: var(--brand-primary); font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 5px; font-size: 0.95rem; }

/* Process Section */
.process-section { padding: 100px 0; border-top: 1px solid var(--border); }
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 50px; }
.step { background: white; padding: 40px; border-radius: 12px; border: 1px solid var(--border); position: relative; }
.step-number { font-size: 3rem; font-weight: 800; color: #f1f5f9; position: absolute; top: 20px; right: 20px; line-height: 1; }
.step h3 { font-size: 1.3rem; margin-bottom: 15px; position: relative; z-index: 2; }
.step p { color: var(--text-muted); position: relative; z-index: 2; }

/* Footer */
.builder-footer { background: var(--primary); color: white; padding: 80px 0 30px 0; }
.footer-flex { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 60px; }
.footer-brand .logo { color: white; margin-bottom: 15px; display: block; }
.footer-brand p { color: #94a3b8; max-width: 300px; }
.footer-contact h4 { color: white; margin-bottom: 20px; font-size: 1.2rem; }
.footer-contact p { color: #94a3b8; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.footer-contact i { color: var(--brand-primary); }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; color: #64748b; font-size: 0.9rem; text-align: center; }

/* Animations */
.fade-in-up { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile */
@media (max-width: 992px) {
    .hide-mobile { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .floating-card { left: 20px; right: 20px; bottom: -20px; }
    .h3-container { padding: 0 20px; }
}