/* 
   Hallinan Home Improvements - Main Stylesheet
   This CSS file contains all styles for the website
*/

/* ===============
   Global Styles 
   =============== */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: #1e88e5;
    transition: color 0.3s ease;
}

a:hover {
    color: #1565c0;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background-color: #1e88e5;
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    background-color: #1565c0;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #1e88e5;
}

.btn-secondary {
    background-color: #757575;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-nav {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ===============
   Header Styles 
   =============== */
.header {
    background-color: #1e3a8a;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    color: #fff;
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}

.nav-menu a:hover, 
.nav-menu a.active {
    color: #64b5f6;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #64b5f6;
    bottom: -3px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after, 
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu .btn {
    color: #fff;
}

.nav-menu .btn::after {
    display: none;
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
}

/* ===============
   Hero Section 
   =============== */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-home.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ===============
   Page Header 
   =============== */
.page-header {
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    color: #fff;
}

/* ===============
   Services Section 
   =============== */
.services, 
.services-overview {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #1e88e5;
    margin: 1rem auto 0;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.pool-img {
    background-image: url('../images/pool-card.jpg');
}

.security-img {
    background-image: url('../images/security-card.jpg');
}

.service-info {
    padding: 1.5rem;
}

.service-info h3 {
    margin-bottom: 1rem;
}

.service-info p {
    margin-bottom: 1.5rem;
}

/* ===============
   Detailed Service Sections 
   =============== */
.service-detail {
    padding: 4rem 0;
    border-bottom: 1px solid #eee;
}

.service-detail:last-child {
    border-bottom: none;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.service-content.reverse {
    direction: rtl;
}

.service-content.reverse .service-text {
    direction: ltr;
}

.service-image {
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.service-list {
    margin: 1.5rem 0;
    padding-left: 1.2rem;
}

.service-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1e88e5;
    font-weight: bold;
}

/* ===============
   Why Choose Us Section 
   =============== */
.why-choose-us {
    padding: 5rem 0;
    background-color: #f5f5f5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

/* Update this existing CSS */
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Keep this for any remaining image icons */
.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Add this new CSS for Font Awesome icons */
.feature-icon i {
    font-size: 48px; /* Adjust size as needed */
    color: #1e88e5; /* Match your site's color scheme */
}
/* ===============
   Benefits Section 
   =============== */
.benefits-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefit-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.benefit-icon i {
    font-size: 36px;
    color: #1e88e5;
}

/* ===============
   Testimonials Section 
   =============== */
.testimonials {
    padding: 5rem 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: #e0e0e0;
    position: absolute;
    left: -10px;
    top: -20px;
    z-index: -1;
}

.testimonial-author {
    font-weight: bold;
    color: #1e3a8a;
}

/* ===============
   CTA Section 
   =============== */
.quote-section, 
.cta-section {
    background-color: #f5f5f5;
    padding: 5rem 0;
    text-align: center;
}

.quote-content, 
.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

/* ===============
   FAQ Section 
   =============== */
.faq-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.faq-grid {
    display: grid;
    grid-gap: 1.5rem;
}

.faq-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    font-weight: bold;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: #1e3a8a;
}

/* ===============
   About Page Styles 
   =============== */
   .about-section {
    padding: 5rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Changed from 1fr 2fr to give the image more space */
    gap: 3rem;
    align-items: center; /* Changed from start to center for better vertical alignment */
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
    max-width: 100%;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease; /* Adds a subtle hover effect */
}

.about-image img:hover {
    transform: scale(1.02); /* Subtle zoom on hover */
}

/* Add responsive adjustments for mobile */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        max-width: 450px;
        margin: 0 auto 2rem;
    }
}

/* ===============
   Contact Page Styles 
   =============== */
.contact-section {
    padding: 5rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info, 
.contact-form-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h2, 
.contact-form-container h2 {
    margin-bottom: 1.5rem;
    position: relative;
}

.contact-info h2::after, 
.contact-form-container h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #1e88e5;
    margin-top: 0.5rem;
}

.contact-details {
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 24px;
    color: #1e88e5;
}

.contact-text h3 {
    margin-bottom: 0.3rem;
}

.contact-note {
    font-size: 0.9rem;
    color: #757575;
}

.service-hours {
    margin-top: 2rem;
}

.service-hours h3 {
    margin-bottom: 1rem;
}

.service-hours ul li {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.service-hours ul li span {
    font-weight: bold;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

/* ===============
   Form Styles 
   =============== */
.form-section {
    padding: 5rem 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.form-section-title {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.checkbox-item input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-item label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Form validation styles */
.error {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

input.error-field,
textarea.error-field,
select.error-field {
    border-color: #d32f2f;
}

/* Quote Process Section */
.process-section {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #1e88e5;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

/* ===============
   Footer Styles 
   =============== */
.footer {
    background-color: #1e3a8a;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-column h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-column h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: #64b5f6;
    margin-top: 0.5rem;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #bbdefb;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ===============
   Responsive Styles 
   =============== */
@media (max-width: 992px) {
    .contact-content,
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-image {
        height: 300px;
    }
    
    .service-content.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .header-content {
        position: relative;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1e3a8a;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 400px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .testimonial-grid,
    .values-grid,
    .features-grid,
    .benefits-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }
}