/* ============================================
   Phone a Handyman - Main Stylesheet
   ============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ---- Top Bar ---- */
.top-bar {
    background: #1a1a2e;
    padding: 10px 0;
}
.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.logo img { max-height: 70px; }
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}
.top-bar-right a {
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}
.top-bar-right a:hover { color: #ffd700; }
.top-bar-right img { width: 20px; height: auto; }

/* ---- Navigation ---- */
.main-nav {
    background: #7b2d8e;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.main-nav .container { display: flex; align-items: center; justify-content: center; }
.nav-toggle {
    display: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 12px 15px;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}
.nav-menu li { position: relative; }
.nav-menu > li > a {
    display: block;
    color: #fff;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.3s;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: rgba(255,255,255,0.15);
}
.nav-menu > li > a i { font-size: 10px; margin-left: 4px; }
.nav-phone a {
    background: #ffd700 !important;
    color: #1a1a2e !important;
    font-weight: 700 !important;
    border-radius: 4px;
}

/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 0 0 4px 4px;
    z-index: 100;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s, color 0.2s;
}
.dropdown li a:hover {
    background: #7b2d8e;
    color: #fff;
}

/* ---- Hero Section ---- */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
}
.hero-content { position: relative; z-index: 2; color: #fff; }
.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}
.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}
.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}
.hero-feature img { width: 40px; height: auto; }
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.or-text { color: #fff; font-size: 15px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}
.btn-primary {
    background: #7b2d8e;
    color: #fff;
    border-color: #7b2d8e;
}
.btn-primary:hover { background: #5e1f6e; border-color: #5e1f6e; }
.btn-phone {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-phone img { width: 22px; }
.btn-phone:hover { background: rgba(255,255,255,0.25); }
.btn-outline {
    background: transparent;
    color: #7b2d8e;
    border-color: #7b2d8e;
}
.btn-outline:hover { background: #7b2d8e; color: #fff; }
.btn-small { padding: 8px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---- Marquee ---- */
.marquee-bar {
    background: #7b2d8e;
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
}
.marquee-content {
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    font-size: 15px;
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ---- Features Section ---- */
.features-section { padding: 60px 0; background: #f9f9f9; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.feature-card {
    text-align: center;
    padding: 30px 20px;
}
.feature-number {
    font-size: 60px;
    font-weight: 700;
    color: #e0e0e0;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    margin-bottom: 10px;
}
.highlight {
    background: #ffd700;
    color: #1a1a2e;
    padding: 4px 12px;
    font-size: 16px;
    font-weight: 600;
}
.feature-card p {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

/* ---- Services Section ---- */
.services-section { padding: 60px 0; }
.section-title {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #7b2d8e;
    margin-bottom: 40px;
}
.text-white { color: #fff !important; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.service-card img { width: 100%; height: 220px; object-fit: cover; }
.service-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    margin: 15px 15px 8px;
    color: #333;
}
.service-card p {
    font-size: 14px;
    color: #666;
    padding: 0 15px;
    margin-bottom: 15px;
}
.service-card .btn {
    margin-bottom: 20px;
    background: #7b2d8e;
    color: #fff;
}
.service-card .btn:hover { background: #5e1f6e; }
.view-all-services {
    text-align: center;
    margin-top: 30px;
}
.view-all-services a {
    color: #7b2d8e;
    font-weight: 600;
    font-size: 16px;
    text-decoration: underline;
}

/* ---- Overseas Section ---- */
.overseas-section { padding: 60px 0; background: #f9f9f9; }
.overseas-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.overseas-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    margin-bottom: 20px;
}
.text-green { color: #27ae60; }
.overseas-text p { margin-bottom: 15px; color: #555; font-size: 15px; }
.overseas-cta { display: flex; gap: 15px; margin-top: 20px; flex-wrap: wrap; }
.overseas-images { display: flex; gap: 15px; }
.overseas-img-1 { width: 45%; border-radius: 6px; object-fit: cover; }
.overseas-img-2 { width: 55%; border-radius: 6px; object-fit: cover; }

/* ---- Quote Section ---- */
.quote-section { padding: 60px 0; }
.quote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.quote-form-container h2, .why-choose h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}
.quote-form-container h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #7b2d8e;
    margin-top: 10px;
}
.form-group { margin-bottom: 15px; }
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: #f8f0ff;
    transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #7b2d8e;
    outline: none;
}
.why-choose p { color: #555; margin-bottom: 20px; }
.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: #444;
}
.check-list img { width: 22px; height: 22px; }

/* ---- Testimonials Section ---- */
.testimonials-section {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 80px 0;
    text-align: center;
}
.testimonial-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
}
.testimonials-section .container { position: relative; z-index: 2; }
.testimonial-slider { max-width: 700px; margin: 0 auto; }
.testimonial-slide { display: none; color: #fff; }
.testimonial-slide.active { display: block; }
.testimonial-avatar { margin-bottom: 20px; }
.testimonial-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
}
.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    font-style: italic;
}
.testimonial-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffd700;
}
.testimonial-dots { margin-top: 25px; }
.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}
.dot.active { background: #7b2d8e; }

/* ---- Sticky Bottom Bar ---- */
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #7b2d8e;
    padding: 10px 0;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.bottom-form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bottom-form select,
.bottom-form input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}
.bottom-form .btn { white-space: nowrap; padding: 10px 25px; }

/* ---- Footer ---- */
.main-footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 50px 0 0;
    margin-bottom: 55px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
}
.footer-logo { max-height: 80px; margin-bottom: 15px; }
.footer-col h4 {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    margin-bottom: 15px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s;
}
.footer-col ul li a:hover { color: #ffd700; }
.footer-col p {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.8;
}
.footer-col p i { margin-right: 8px; color: #7b2d8e; }
.footer-col p a { color: #aaa; }
.footer-col p a:hover { color: #ffd700; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 15px 0;
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
}
.footer-bottom a { color: #ffd700; }

/* ---- Page Header (for subpages) ---- */
.page-header {
    background: #7b2d8e;
    padding: 40px 0;
    text-align: center;
}
.page-header h1 {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
}
.page-content {
    padding: 50px 0 80px;
}
.page-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    margin-bottom: 15px;
    color: #333;
}
.page-content p {
    margin-bottom: 15px;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}
.page-content .content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}
.sidebar {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 6px;
}
.sidebar h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}
.sidebar ul li {
    border-bottom: 1px solid #eee;
}
.sidebar ul li a {
    display: block;
    padding: 10px 0;
    color: #555;
    font-size: 14px;
    transition: color 0.3s, padding-left 0.3s;
}
.sidebar ul li a:hover {
    color: #7b2d8e;
    padding-left: 10px;
}
.cta-box {
    background: #7b2d8e;
    color: #fff;
    padding: 25px;
    border-radius: 6px;
    text-align: center;
    margin-top: 20px;
}
.cta-box h3 { margin-bottom: 10px; }
.cta-box .btn { margin-top: 10px; background: #ffd700; color: #1a1a2e; border-color: #ffd700; }

/* ---- Contact Page ---- */
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-form .form-group input,
.contact-form .form-group textarea,
.contact-form .form-group select {
    background: #fff;
}

/* ---- Services Page Grid ---- */
.services-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .features-grid,
    .services-grid,
    .services-page-grid { grid-template-columns: repeat(2, 1fr); }
    .overseas-content { grid-template-columns: 1fr; }
    .quote-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .page-content .content-grid { grid-template-columns: 1fr; }
    .contact-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .top-bar-right { display: none; }
    .nav-toggle { display: block; }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #7b2d8e;
    }
    .nav-menu.active { display: flex; }
    .nav-menu > li > a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .dropdown {
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,0.1);
    }
    .dropdown li a { color: #fff; border-bottom-color: rgba(255,255,255,0.05); }
    .has-dropdown:hover .dropdown { display: none; }
    .has-dropdown.open .dropdown { display: block; }
    .hero-content h1 { font-size: 28px; }
    .features-grid,
    .services-grid,
    .services-page-grid { grid-template-columns: 1fr; }
    .bottom-form { flex-wrap: wrap; }
    .bottom-form select,
    .bottom-form input { flex: 1 1 45%; }
    .sticky-bottom-bar { display: none; }
}
