/* ============================================
   ROOFING - Slate Industrial Design
   Layout: Slate grays, strong typography, industrial
   ============================================ */

:root {
    --rf-bg: #f8fafc;
    --rf-bg-secondary: #e2e8f0;
    --rf-bg-card: #ffffff;
    --rf-primary: #334155;
    --rf-primary-light: #475569;
    --rf-secondary: #0f766e;
    --rf-accent: #dc2626;
    --rf-dark: #0f172a;
    --rf-text: #1e293b;
    --rf-text-secondary: #64748b;
    --rf-text-muted: #94a3b8;
    --font-heading: 'Barlow', sans-serif;
    --font-body: 'Barlow', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== HERO ===== */
/* ===== HERO - Weatherproofing Showcase ===== */
.rf-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}
.rf-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    /* Roof shingle/tile pattern - overlapping angular shapes */
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.1) 10px, rgba(255,255,255,0.1) 12px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,0.08) 10px, rgba(255,255,255,0.08) 12px);
    background-size: 30px 30px;
    animation: shingleShimmer 8s ease-in-out infinite;
}

@keyframes shingleShimmer {
    0%, 100% { opacity: 0.12; }
    50% { opacity: 0.18; }
}
.rf-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.9) 100%);
}
.rf-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}
.rf-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: white;
}
.rf-hero-phone {
    font-family: var(--font-heading);
    font-size: 18px;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}
.rf-hero-phone:hover {
    background: var(--rf-primary);
    transform: translateY(-2px);
}
.rf-hero-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.rf-hero-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.rf-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
}
.rf-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.12);
    border-color: var(--rf-primary);
}
.rf-card-icon { font-size: 28px; }
.rf-card-info h3 { font-family: var(--font-heading); font-size: 14px; color: white; margin-bottom: 2px; }
.rf-card-info p { font-size: 11px; color: rgba(255,255,255,0.6); }
.rf-hero-content { padding-left: 20px; }
.rf-hero-title { font-family: var(--font-heading); font-size: clamp(36px, 4vw, 52px); line-height: 1.1; color: white; margin-bottom: 20px; }
.rf-hero-title .highlight { color: var(--rf-primary); }
.rf-hero-subtitle { font-size: 17px; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 28px; max-width: 500px; }
.rf-hero-trust { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.rf-trust-item { display: flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(255,255,255,0.9); }
.rf-trust-icon { width: 24px; height: 24px; background: var(--rf-primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.rf-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.rf-btn-outline { background: transparent; border: 2px solid var(--rf-primary); color: var(--rf-primary); }
.rf-btn-outline:hover { background: var(--rf-primary); color: white; }
.rf-hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); position: relative; z-index: 2; }
.rf-stat { text-align: center; padding: 20px; background: rgba(255,255,255,0.05); border-radius: 12px; transition: all 0.3s ease; }
.rf-stat:hover { background: rgba(255,255,255,0.1); transform: scale(1.03); }
.rf-stat-number { font-family: var(--font-heading); font-size: 32px; color: var(--rf-primary); font-weight: 600; }
.rf-stat-label { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }
@media (max-width: 968px) {
    .rf-hero-main { grid-template-columns: 1fr; gap: 40px; }
    .rf-hero-showcase { order: 2; }
    .rf-hero-content { order: 1; padding-left: 0; }
    .rf-hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .rf-hero-top { flex-direction: column; gap: 16px; text-align: center; }
    .rf-hero-showcase { grid-template-columns: 1fr; }
    .rf-hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .rf-stat { padding: 16px 12px; }
    .rf-stat-number { font-size: 26px; }
}
/* ===== HERO ===== */
.rf-hero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(ellipse 60% 50% at 100% 50%, rgba(51, 65, 85, 0.08) 0%, transparent 50%);
}

.rf-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.rf-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(51, 65, 85, 0.1);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--rf-primary);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.rf-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 5vw, 56px);
    line-height: 1.05;
    color: var(--rf-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.rf-hero-title .highlight {
    color: var(--rf-accent);
}

.rf-hero-subtitle {
    font-size: 18px;
    color: var(--rf-text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.rf-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

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

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

.rf-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.rf-stat {
    text-align: left;
}

.rf-stat-number {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--rf-accent);
    font-weight: 700;
}

.rf-stat-label {
    font-size: 14px;
    color: var(--rf-text-secondary);
    text-transform: uppercase;
}

/* ===== HERO VISUAL ===== */
.rf-hero-visual {
    position: relative;
}

.rf-hero-image {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--rf-primary), var(--rf-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    position: relative;
    overflow: hidden;
}

.rf-hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.05) 10px,
        rgba(255,255,255,0.05) 12px
    );
}

.rf-float-card {
    position: absolute;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.rf-float-card-1 {
    bottom: -20px;
    left: -20px;
}

.rf-float-card-2 {
    top: 40px;
    right: -20px;
}

.rf-float-card-icon {
    width: 44px;
    height: 44px;
    background: var(--rf-bg-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.rf-float-card-text {
    font-size: 14px;
    color: var(--rf-text-secondary);
}

.rf-float-card-number {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--rf-dark);
}

/* ===== SECTION ===== */
.rf-section {
    padding: 100px 0;
}

.rf-section-alt {
    background: var(--rf-bg-secondary);
}

.rf-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.rf-section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    color: var(--rf-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.rf-section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 44px);
    color: var(--rf-dark);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.rf-section-desc {
    font-size: 16px;
    color: var(--rf-text-secondary);
}

/* ===== SERVICES ===== */
.rf-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rf-service-card {
    padding: 32px;
    background: var(--rf-bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.rf-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.rf-service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.1), rgba(15, 23, 42, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.rf-service-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--rf-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.rf-service-card p {
    font-size: 14px;
    color: var(--rf-text-secondary);
    line-height: 1.6;
}

/* ===== PROJECTS ===== */
.rf-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rf-project {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--rf-bg-secondary);
}

.rf-project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.rf-project:hover img {
    transform: scale(1.1);
}

.rf-project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s;
}

.rf-project:hover .rf-project-overlay {
    opacity: 1;
}

.rf-project-overlay h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: white;
}

/* ===== TESTIMONIALS ===== */
.rf-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rf-testimonial {
    padding: 32px;
    background: var(--rf-bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.rf-testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: var(--rf-accent);
    font-size: 18px;
}

.rf-testimonial-quote {
    font-size: 15px;
    color: var(--rf-text);
    line-height: 1.7;
    margin-bottom: 24px;
    position: relative;
}

.rf-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rf-testimonial-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--rf-primary), var(--rf-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 14px;
}

.rf-testimonial-info h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--rf-dark);
    margin-bottom: 2px;
}

.rf-testimonial-info span {
    font-size: 13px;
    color: var(--rf-text-muted);
}

/* ===== CTA ===== */
.rf-cta {
    padding: 100px 0;
    background: var(--rf-dark);
    text-align: center;
    position: relative;
}

.rf-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 48px);
    color: white;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.rf-cta-desc {
    font-size: 18px;
    color: var(--rf-text-muted);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.rf-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.rf-btn-white {
    background: white;
    color: var(--rf-accent);
}

.rf-btn-white:hover {
    background: var(--rf-bg-secondary);
    transform: translateY(-2px);
}

.rf-btn-ghost {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.rf-btn-ghost:hover {
    background: white;
    color: var(--rf-dark);
}

/* ===== FOOTER ===== */
.rf-footer {
    padding: 60px 0 40px;
    background: var(--rf-bg-secondary);
}

.rf-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.rf-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rf-footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--rf-primary), var(--rf-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.rf-footer-logo-text {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--rf-dark);
}

.rf-footer-text {
    font-size: 14px;
    color: var(--rf-text-muted);
}

.rf-footer-links {
    display: flex;
    gap: 24px;
}

.rf-footer-links a {
    font-size: 14px;
    color: var(--rf-text-secondary);
    transition: color 0.2s;
}

.rf-footer-links a:hover { color: var(--rf-primary); }

/* ===== FAQ ===== */
.rf-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.rf-faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.rf-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--rf-dark);
    transition: color 0.2s;
}

.rf-faq-question:hover {
    color: var(--rf-accent);
}

.rf-faq-question svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--rf-text-muted);
}

.rf-faq-question[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.rf-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.rf-faq-answer p {
    padding-bottom: 24px;
    font-size: 15px;
    color: var(--rf-text-secondary);
    line-height: 1.7;
}

.rf-faq-item.active .rf-faq-answer {
    max-height: 200px;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SERVICE AREAS ===== */
.rf-areas {
    background: linear-gradient(135deg, var(--rf-light) 0%, #fff 100%);
    padding: 80px 0;
}

.rf-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.rf-area-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.rf-area-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--rf-accent);
}

.rf-area-item h3 {
    font-size: 1.25rem;
    color: var(--rf-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.rf-area-item p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.rf-areas-note {
    text-align: center;
    margin-top: 32px;
    color: #666;
    font-size: 1rem;
}

/* ===== NUMBERED STEPS (REPLACES GRID) ===== */
.rf-services-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.rf-step {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.rf-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: var(--rf-accent);
}

.rf-step-number {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--rf-accent);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.rf-step-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    margin-top: 8px;
}

.rf-step-content h3 {
    font-size: 1.25rem;
    color: var(--rf-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.rf-step-content p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Hide original grid */
.rf-services-grid {
    display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .rf-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .rf-hero-visual { display: none; }
    
    .rf-hero-subtitle { margin-left: auto; margin-right: auto; }
    
    .rf-hero-actions { justify-content: center; }
    
    .rf-hero-stats { justify-content: center; }
    
    .rf-services-grid { grid-template-columns: repeat(2, 1fr); }
    
    .rf-projects-grid { grid-template-columns: repeat(2, 1fr); }
    
    .rf-testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .rf-nav { display: none; }
    
    .rf-phone { display: none; }
    
    .rf-services-grid,
    .rf-projects-grid { grid-template-columns: 1fr; }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--rf-primary);
    outline-offset: 2px;
}