/* ============================================
   Texas Pro Remodeling - Main Stylesheet
   ============================================ */

/* === CSS VARIABLES === */
:root {
    --navy-dark: #0a1628;
    --navy-medium: #1a2b4a;
    --orange-primary: #F97316;
    --orange-hover: #ea580c;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --gray-dark: #6c757d;
    --text-dark: #212529;
    --text-medium: #495057;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

/* === GLOBAL RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

/* === TOP BAR === */
.top-bar {
    background: var(--navy-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 2px solid var(--orange-primary);
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-item i {
    color: var(--orange-primary);
}

.top-bar-phone {
    font-weight: 600;
    color: var(--orange-primary);
}

.stars {
    color: #FFD700;
}

/* === NAVIGATION === */
.navbar {
    background: var(--navy-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
    width: auto;
}

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

.nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--orange-primary);
}

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

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

/* Services Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 280px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    border-radius: 8px;
    padding: 15px 0;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 20px;
    color: var(--text-dark);
    display: block;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--gray-light);
    color: var(--orange-primary);
    padding-left: 25px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* === BUTTONS === */
.btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    font-size: 16px;
}

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

.btn-primary:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

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

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

/* === HERO SECTION === */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%230a1628" width="1200" height="600"/><g fill-opacity="0.05"><circle fill="white" cx="100" cy="100" r="80"/><circle fill="white" cx="900" cy="400" r="120"/><circle fill="white" cx="600" cy="200" r="60"/></g></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === TRUST BADGES === */
.trust-badges {
    background: var(--white);
    padding: 40px 20px;
    box-shadow: var(--shadow-md);
}

.badges-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.badge-item {
    text-align: center;
    padding: 20px;
}

.badge-icon {
    font-size: 3rem;
    color: var(--orange-primary);
    margin-bottom: 15px;
}

.badge-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--navy-dark);
}

.badge-item p {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* === SECTIONS === */
.section {
    padding: 80px 20px;
}

.section-gray {
    background: var(--gray-light);
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

/* === CARDS === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-medium);
}

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

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

.card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--navy-dark);
}

.card p {
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.7;
}

.card-link {
    color: var(--orange-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-link:hover {
    gap: 12px;
}

/* === SERVICES SECTION === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.service-card-content {
    padding: 30px;
}

.service-icon {
    font-size: 3rem;
    color: var(--orange-primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--navy-dark);
}

.service-card p {
    color: var(--text-medium);
    margin-bottom: 20px;
}

/* === ABOUT SECTION === */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--navy-dark);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === FEATURES GRID === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
}

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

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--navy-dark);
}

.feature-item p {
    color: var(--text-medium);
}

/* === PROCESS SECTION === */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 30px 20px;
}

.process-number {
    width: 70px;
    height: 70px;
    background: var(--orange-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
}

.process-step h3 {
    font-size: 1.4rem;
    color: var(--navy-dark);
    margin-bottom: 15px;
}

.process-step p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* === SERVICE AREAS === */
.service-areas {
    background: var(--gray-light);
    padding: 60px 20px;
}

.areas-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.area-item {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--navy-dark);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.area-item:hover {
    background: var(--orange-primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* === TESTIMONIALS === */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--orange-primary);
}

.testimonial-stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--text-medium);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 700;
    color: var(--navy-dark);
}

.testimonial-location {
    color: var(--text-medium);
    font-size: 0.9rem;
}

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

.faq-item {
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--navy-dark);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--gray-light);
    color: var(--orange-primary);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

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

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

.faq-answer-content {
    padding: 0 25px 20px 25px;
    color: var(--text-medium);
    line-height: 1.8;
}

/* === CTA BANNER === */
.cta-banner {
    background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-hover) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === CONTACT FORM === */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

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

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-medium);
    border-radius: 6px;
    font-size: 16px;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--orange-primary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

/* === CONTACT INFO === */
.contact-info {
    padding: 40px;
    background: var(--navy-dark);
    color: var(--white);
    border-radius: 12px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--orange-primary);
    margin-top: 3px;
}

.info-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-text p {
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--orange-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--orange-hover);
    transform: translateY(-3px);
}

/* === MAP === */
.map-container {
    margin-top: 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* === FOOTER === */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--orange-primary);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    display: block;
}

.footer-section a:hover {
    color: var(--orange-primary);
    padding-left: 5px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* === SERVICE PAGE SPECIFIC === */
.service-hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.service-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.service-hero .location {
    font-size: 1.3rem;
    color: var(--orange-primary);
}

.service-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.service-content h2 {
    font-size: 2rem;
    color: var(--navy-dark);
    margin-top: 40px;
    margin-bottom: 20px;
}

.service-content p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-content ul {
    list-style: none;
    margin: 20px 0;
}

.service-content ul li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-medium);
}

.service-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--orange-primary);
}

.external-link-box {
    background: var(--orange-primary);
    color: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.external-link-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.external-link-box a {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: underline;
}

.external-link-box a:hover {
    gap: 15px;
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--navy-medium);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--navy-dark);
        margin-top: 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }

    .badges-container {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-hero h1 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
