/* 
   Handyman Pro by Tyler LLC
   Main Stylesheet
*/

/* ===== VARIABLES ===== */
:root {
    /* Brand Colors */
    --primary-color: #FF6600;
    --secondary-color: #333333;
    --accent-color: #FFB74D;
    --light-color: #f9f9f9;
    --dark-color: #222222;
    
    /* Text Colors */
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-muted: #777777;
    
    /* Background Colors */
    --bg-light: #ffffff;
    --bg-gray: #f5f5f5;
    --bg-dark: #222222;
    
    /* UI Elements */
    --border-color: #dddddd;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-round: 50%;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--accent-color);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1rem;
}

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

/* ===== UTILITY CLASSES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    font-family: 'Montserrat', sans-serif;
}

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

.btn-primary:hover {
    background-color: #e55c00;
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #444444;
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: var(--radius-sm);
}

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

/* ===== HEADER & NAVIGATION ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-light);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-normal);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

.main-nav li {
    margin: 0 1rem;
}

.main-nav a {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-contact .phone-button {
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.header-contact .phone-button i {
    margin-right: 0.5rem;
}

.header-contact .phone-button:hover {
    background-color: #e55c00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* ===== HERO SECTION ===== */
#hero {
    position: relative;
    height: 600px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    margin-top: 80px;
}

.hero-content {
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 700px;
}

.hero-text h1 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-rating .stars {
    color: var(--accent-color);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

/* ===== SERVICES OVERVIEW SECTION ===== */
#services-overview {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

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

.service-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    opacity: 0.05;
    transition: var(--transition-normal);
    z-index: -1;
}

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

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.service-link {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.service-link i {
    margin-left: 0.5rem;
    transition: var(--transition-normal);
}

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

.services-cta {
    text-align: center;
}

/* ===== WHY CHOOSE US SECTION ===== */
#why-choose-us {
    padding: 5rem 0;
    background-color: var(--bg-gray);
}

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

.benefit-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-normal);
}

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

.benefit-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    height: 80px;
    width: 80px;
    line-height: 80px;
    border-radius: var(--radius-round);
    background-color: rgba(255, 102, 0, 0.1);
    margin: 0 auto 1.5rem;
}

.benefit-card h3 {
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--text-muted);
}

/* ===== FEATURED PROJECTS SECTION ===== */
#featured-projects {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.project-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.project-slide {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.project-image {
    flex: 1;
    overflow: hidden;
}

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

.project-slider:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    background-color: var(--bg-light);
    padding: 2rem;
    text-align: center;
}

.project-info h3 {
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.slider-controls button {
    background-color: var(--bg-light);
    color: var(--secondary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-round);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.slider-controls button:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

/* ===== TESTIMONIALS SECTION ===== */
#testimonials {
    padding: 5rem 0;
    background-color: var(--bg-gray);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.testimonial-slide {
    padding: 1rem;
}

.testimonial-content {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(255, 102, 0, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content .stars {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.customer-info {
    text-align: right;
}

.customer-name {
    font-weight: 600;
    color: var(--secondary-color);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.testimonial-controls button {
    background-color: var(--bg-light);
    color: var(--secondary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-round);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.testimonial-controls button:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

.testimonials-cta {
    text-align: center;
}

/* ===== CALL TO ACTION SECTION ===== */
#cta {
    padding: 5rem 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

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

/* ===== SERVICE AREAS SECTION ===== */
#service-areas {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.service-area-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.service-area-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    background-color: #e9e9e9;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-area-list h3 {
    margin-bottom: 1.5rem;
}

.service-area-list ul {
    list-style: none;
    margin-bottom: 2rem;
}

.service-area-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.service-area-list li i {
    color: var(--primary-color);
    margin-right: 0.75rem;
}

/* ===== FOOTER ===== */
#footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding-top: 4rem;
}

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

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-logo p {
    font-style: italic;
    color: var(--accent-color);
}

.footer-contact h3,
.footer-hours h3,
.footer-social h3 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-contact p,
.footer-hours p {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.footer-contact a {
    color: var(--text-light);
}

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

.footer-hours span {
    font-weight: 600;
    margin-right: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-round);
    color: var(--text-light);
    transition: var(--transition-normal);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-muted);
}

.footer-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* ===== STICKY CONTACT BAR (MOBILE) ===== */
.sticky-contact {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-light);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.sticky-contact a {
    flex: 1;
    text-align: center;
    padding: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-contact i {
    margin-right: 0.5rem;
}

.sticky-phone {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.sticky-quote {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

/* ===== BACK TO TOP BUTTON ===== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-round);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 998;
    box-shadow: var(--shadow-md);
}

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

#back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}