/* Base & Reset */
:root {
    /* Colors */
    --primary: #0F2A4A; /* Deep Navy - Trust */
    --primary-light: #1A3E66;
    --accent: #D65A31; /* Terracotta - Roofing/Construction */
    --accent-hover: #b84924;
    --text-dark: #1E2022;
    --text-light: #6A6E75;
    --white: #ffffff;
    --off-white: #F8F9FA;
    --border: #e2e8f0;
    
    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.text-center { text-align: center; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--off-white); }
.highlight { color: var(--accent); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214, 90, 49, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
}

.btn-white:hover {
    background-color: var(--off-white);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.read-more {
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 8px;
}

/* Header */
#header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.top-bar {
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info, .location {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.9);
}

.contact-info a:hover {
    color: var(--white);
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text .brothers {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.logo-text .roofing {
    font-size: 0.85rem;
    color: var(--text-light);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary);
}

.nav-links li a:not(.btn):hover {
    color: var(--accent);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    margin-top: var(--header-height); /* Offset for fixed header */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 42, 74, 0.7), rgba(15, 42, 74, 0.5));
}

.hero-content {
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding-top: 40px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Features */
.features {
    padding: 0 0 60px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* About Section */
.about .row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about .col-text, .about .col-image {
    flex: 1;
}

.subheading {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--primary);
}

.check-list li span {
    color: var(--accent);
    font-size: 1.2rem;
}

.about .btn {
    margin-top: 20px;
}

.image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.image-wrapper img {
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.03);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background-color: var(--accent);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(214, 90, 49, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.experience-badge .number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.service-img {
    height: 220px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-icon-large {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    color: var(--primary);
}

.service-icon-large span {
    font-size: 5rem;
    opacity: 0.8;
}

.service-body {
    padding: 30px;
}

.service-body h3 {
    margin-bottom: 12px;
}

.service-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* CTA */
.cta-section {
    background-color: var(--primary);
    padding: 80px 0;
    color: var(--white);
    background-image: linear-gradient(rgba(15, 42, 74, 0.9), rgba(15, 42, 74, 0.9)), url('assets/hero.png');
    background-size: cover;
    background-attachment: fixed;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Contact */
.contact .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-details {
    margin-top: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(214, 90, 49, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item p, .contact-item a {
    color: var(--text-light);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0 30px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-about h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-about p {
    opacity: 0.7;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    opacity: 0.7;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-legal {
    text-align: center;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 991px) {
    .container { width: 92%; }
    
    .hero h1 { font-size: 3rem; }
    
    .feature-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about .row, .contact .row {
        flex-direction: column;
        display: flex;
    }
    
    .logo-number { font-size: 2rem; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 30px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav-links.active { display: flex; }
    
    .mobile-toggle { display: block; }
    
    .top-bar { display: none; }
    
    .header { height: 70px; }
    .hero { margin-top: 70px; }
    
    .footer-grid { display: flex; flex-direction: column; gap: 30px; }
}

/* Animations */
.fade-in { opacity: 0; width: 0; animation: fadeIn 1s forwards; }
@keyframes fadeIn { to { opacity: 1; width: 100%; } }

.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-right { opacity: 0; transform: translateX(-30px); transition: all 0.6s ease; }
.fade-right.visible { opacity: 1; transform: translateX(0); }

.fade-left { opacity: 0; transform: translateX(30px); transition: all 0.6s ease; }
.fade-left.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
