/* ===========================================
   ValleySons Home Repairs - Custom Styles
   Mobile-First, Clean, Modern
=========================================== */

/* CSS Variables */
:root {
    --primary: #F7931E;
    --primary-dark: #e07d0a;
    --secondary: #2d2d2d;
    --dark: #1a1a1a;
    --light: #f8f8f8;
    --white: #ffffff;
    --gray: #666666;
    --gray-light: #999999;
    --shadow: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray);
    background: var(--white);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(247, 147, 30, 0.4);
}

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

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

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

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

/* ===========================================
   Animations
=========================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Animation Classes */
.animate {
    opacity: 0;
}

.animate.visible {
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.animate.visible.fade-in { animation-name: fadeIn; }
.animate.visible.fade-in-up { animation-name: fadeInUp; }
.animate.visible.fade-in-down { animation-name: fadeInDown; }
.animate.visible.fade-in-left { animation-name: fadeInLeft; }
.animate.visible.fade-in-right { animation-name: fadeInRight; }
.animate.visible.scale-in { animation-name: scaleIn; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ===========================================
   Header & Navigation
=========================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 10px 0;
}

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

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 45px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

header:not(.scrolled) .menu-toggle span {
    background: var(--white);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    padding: 100px 30px 30px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

nav.active {
    right: 0;
}

nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

nav ul li a {
    display: block;
    padding: 15px 0;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary);
    padding-left: 10px;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Phone CTA in Nav */
.nav-cta {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.nav-cta a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--primary);
}

.nav-cta svg {
    width: 24px;
    height: 24px;
}

/* ===========================================
   Hero Section
=========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(26,26,26,0.9) 0%, rgba(45,45,45,0.85) 100%),
                url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    padding: 120px 0 60px;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--white), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(247, 147, 30, 0.2);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 18px;
    max-width: 500px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* ===========================================
   Section Styles
=========================================== */
section {
    padding: 60px 0;
}

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

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 15px;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================================
   Services Section
=========================================== */
.services {
    background: var(--light);
}

.services-grid {
    display: grid;
    gap: 20px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: var(--transition);
}

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

.service-card:hover::before {
    transform: scaleY(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 15px;
    margin-bottom: 15px;
}

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

.service-link svg {
    width: 18px;
    transition: var(--transition);
}

.service-link:hover svg {
    transform: translateX(5px);
}

/* ===========================================
   About Section
=========================================== */
.about {
    position: relative;
}

.about-grid {
    display: grid;
    gap: 40px;
}

.about-image {
    position: relative;
}

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

.about-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 20px 25px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.about-badge span {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.about-badge small {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content h2 {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    gap: 15px;
    margin: 25px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 3px;
}

.feature-icon svg {
    width: 14px;
    height: 14px;
    color: var(--white);
}

.feature-item strong {
    color: var(--secondary);
}

/* ===========================================
   Projects Section
=========================================== */
.projects {
    background: var(--secondary);
    color: var(--white);
}

.projects .section-title {
    color: var(--white);
}

.projects .section-desc {
    color: rgba(255,255,255,0.7);
}

.projects-grid {
    display: grid;
    gap: 15px;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,26,0.9), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
}

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

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

.project-card h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.project-card span {
    font-size: 14px;
    color: var(--primary);
}

/* ===========================================
   Testimonials Section
=========================================== */
.testimonials {
    background: var(--light);
}

.testimonials-grid {
    display: grid;
    gap: 20px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 80px;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 15px;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
}

.testimonial-card p {
    font-size: 15px;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

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

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
}

.testimonial-info strong {
    display: block;
    color: var(--secondary);
}

.testimonial-info span {
    font-size: 13px;
    color: var(--gray-light);
}

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

.cta h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 15px;
}

.cta p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 25px;
}

.cta-phone svg {
    width: 32px;
    height: 32px;
    animation: pulse 2s infinite;
}

/* ===========================================
   Contact Info Bar
=========================================== */
.info-bar {
    background: var(--dark);
    color: var(--white);
}

.info-grid {
    display: grid;
    gap: 30px;
    padding: 40px 0;
}

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

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(247, 147, 30, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.info-text h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 5px;
}

.info-text p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* ===========================================
   Footer
=========================================== */
footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin: 20px 0;
    font-size: 14px;
}

.footer-brand .logo img {
    height: 60px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

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

.footer-links a {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a::before {
    content: '→';
    color: var(--primary);
    transition: var(--transition);
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

.footer-bottom span {
    color: var(--primary);
}

/* ===========================================
   Back to Top Button
=========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ===========================================
   Media Queries
=========================================== */

/* Tablet */
@media (min-width: 768px) {
    section {
        padding: 80px 0;
    }
    
    .hero {
        padding: 150px 0 100px;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-stats {
        max-width: 500px;
        margin: 50px auto 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    /* Desktop Navigation */
    .menu-toggle {
        display: none;
    }
    
    nav {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }
    
    nav ul {
        flex-direction: row;
        gap: 35px;
    }
    
    nav ul li a {
        padding: 10px 0;
        font-size: 14px;
        border-bottom: none;
        color: var(--white);
        position: relative;
    }
    
    nav ul li a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary);
        transition: var(--transition);
    }
    
    nav ul li a:hover::after {
        width: 100%;
    }
    
    nav ul li a:hover {
        color: var(--primary);
        padding-left: 0;
    }
    
    header.scrolled nav ul li a {
        color: var(--secondary);
    }
    
    header.scrolled nav ul li a:hover {
        color: var(--primary);
    }
    
    .nav-cta {
        display: none;
    }
    
    .nav-overlay {
        display: none;
    }
    
    /* Header Phone */
    .header-phone {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: 30px;
        padding-left: 30px;
        border-left: 1px solid rgba(255,255,255,0.2);
        color: var(--white);
    }
    
    header.scrolled .header-phone {
        color: var(--secondary);
        border-left-color: rgba(0,0,0,0.1);
    }
    
    .header-phone svg {
        width: 20px;
        height: 20px;
        color: var(--primary);
    }
    
    .header-phone span {
        font-family: var(--font-heading);
        font-weight: 600;
    }
    
    section {
        padding: 100px 0;
    }
    
    .hero {
        text-align: left;
    }
    
    .hero-content {
        max-width: 600px;
        text-align: left;
    }
    
    .hero p {
        margin: 0 0 30px 0;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .hero-stats {
        margin: 50px 0 0 0;
    }
    
    .stat-item {
        text-align: left;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* Large Desktop */
@media (min-width: 1280px) {
    .hero h1 {
        font-size: 4rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Hide desktop phone on mobile */
.header-phone {
    display: none;
}
