/* ==============================================
   Water Damage Restoration Orange TX - CSS
   Professional & Responsive Design
   ============================================== */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a365d;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #4a5568;
}

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Color Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-dark: #1a365d;
    --text-light: #4a5568;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ==============================================
   HEADER STYLES
   ============================================== */

.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    min-height: 70px;
}

/* Logo Styles */
.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

.logo-text {
    line-height: 1.1;
}

.logo-text strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-text small {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Call Button */
.call-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.call-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.call-btn i {
    font-size: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-mobile.active {
    max-height: 400px;
}

.nav-menu-mobile {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-mobile li {
    border-bottom: 1px solid var(--border-color);
}

.nav-menu-mobile li:last-child {
    border-bottom: none;
}

.nav-menu-mobile a {
    display: block;
    padding: 1rem 0;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-menu-mobile a:hover {
    color: var(--primary-color);
    padding-left: 1rem;
}

/* ==============================================
   HERO SECTION
   ============================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8) 0%, rgba(29, 78, 216, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title .highlight {
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* CTA Buttons */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    justify-content: center;
}

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

.cta-btn.primary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-btn.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* ==============================================
   SECTION STYLES
   ============================================== */

section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ==============================================
   SERVICES SECTION
   ============================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ==============================================
   ABOUT SECTION
   ============================================== */

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.reputation-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.about-image img {
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

/* ==============================================
   PROCESS SECTION
   ============================================== */

.process-steps {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ==============================================
   WHY CHOOSE US SECTION
   ============================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 1.75rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ==============================================
   TESTIMONIALS SECTION
   ============================================== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stars i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-light);
}

.testimonial-author strong {
    color: var(--text-dark);
    font-weight: 600;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ==============================================
   SERVICE AREAS SECTION
   ============================================== */

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.area-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.area-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.area-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.area-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ==============================================
   FAQ SECTION
   ============================================== */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

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

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

.faq-answer p {
    padding: 1.5rem;
    margin: 0;
    border-top: 1px solid var(--border-color);
    line-height: 1.7;
}

/* ==============================================
   FINAL CTA SECTION
   ============================================== */

.final-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.cta-feature i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.cta-buttons {
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.9;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item i {
    color: var(--secondary-color);
}

/* ==============================================
   FOOTER SECTION
   ============================================== */

.footer {
    background: #1a202c;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.footer-logo span {
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-phone:hover {
    background: var(--primary-dark);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #a0aec0;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-info .info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #a0aec0;
}

.footer-info .info-item i {
    color: var(--primary-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 2rem;
    text-align: center;
}

.footer-legal p {
    color: #a0aec0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-keywords p {
    color: #718096;
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

/* Large screens */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

/* Medium screens */
@media (max-width: 992px) {
    /* Header adjustments */
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-mobile {
        display: block;
    }
    
    .call-btn .call-text {
        display: none;
    }
    
    .call-btn {
        padding: 0.75rem;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        justify-content: center;
    }
    
    /* Hero adjustments */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* About section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .reputation-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Process steps */
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    /* Contact info */
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Small screens */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Spacing */
    section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Header */
    .nav-wrapper {
        padding: 0.5rem 0;
        min-height: 60px;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .logo-text strong {
        font-size: 1rem;
    }
    
    .logo-text small {
        font-size: 0.75rem;
    }
    
    /* Hero */
    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Cards and grids */
    .services-grid,
    .features-grid,
    .testimonials-grid,
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card,
    .feature-card,
    .testimonial-card,
    .area-card {
        padding: 1.5rem;
    }
    
    /* Stats */
    .reputation-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Final CTA */
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    /* Typography */
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    /* Spacing */
    section {
        padding: 2.5rem 0;
    }
    
    /* Cards */
    .service-card,
    .feature-card,
    .testimonial-card,
    .area-card,
    .process-step {
        padding: 1.25rem;
    }
    
    /* Icons */
    .service-icon,
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i,
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    /* Step number */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Final CTA */
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .final-cta .cta-btn.large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* ==============================================
   UTILITIES & ANIMATIONS
   ============================================== */

/* Smooth scrolling offset for fixed header */
html {
    scroll-padding-top: 80px;
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.feature-card,
.testimonial-card,
.area-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus styles for accessibility */
.cta-btn:focus,
.call-btn:focus,
.service-btn:focus,
.mobile-menu-btn:focus,
.faq-question:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .mobile-menu-btn,
    .nav-mobile {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem 0;
        break-inside: avoid;
    }
    
    .service-card,
    .feature-card,
    .testimonial-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}