/*
Theme Name: Boiler Brothers
Theme URI: https://boilerbrothers.com.au
Author: Boiler Brothers
Description: Custom theme for Boiler Brothers - Brisbane Hot Water Installation & Service
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: boiler-brothers
*/

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary: #f97316;
    --secondary-dark: #ea580c;
    --dark: #1f2937;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --success: #22c55e;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover { color: var(--primary-dark); }

/* Header */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-top a {
    color: var(--white);
    font-weight: 500;
}

.header-top a:hover {
    color: var(--secondary);
}

.header-main {
    padding: 15px 0;
}

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

.site-logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.site-logo span {
    color: var(--secondary);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

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

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

.header-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

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

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

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

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

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

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

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-top: 2rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.hero-feature svg {
    width: 24px;
    height: 24px;
    color: var(--success);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Trust Bar */
.trust-bar {
    background: var(--light-gray);
    padding: 30px 0;
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--gray);
}

.trust-item svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header h2 {
    color: var(--dark);
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

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

.service-card h3 {
    margin-bottom: 15px;
}

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

/* Why Choose Us */
.why-us {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0;
}

.why-us .section-header h2 {
    color: var(--white);
}

.why-us .section-header p {
    color: rgba(255,255,255,0.7);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-us-item {
    text-align: center;
    padding: 30px 20px;
}

.why-us-item .icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.why-us-item .icon svg {
    width: 35px;
    height: 35px;
    color: var(--white);
}

.why-us-item h4 {
    margin-bottom: 10px;
}

.why-us-item p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

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

.cta-section h2 {
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

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

.cta-section .btn:hover {
    background: var(--dark);
    color: var(--white);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--light-gray);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 20px;
}

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

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

.testimonial-info h5 {
    margin-bottom: 2px;
    font-size: 1rem;
}

.testimonial-info span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Service Areas */
.service-areas {
    padding: 80px 0;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.area-item {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.area-item:hover {
    background: var(--primary);
    color: var(--white);
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .site-logo {
    color: var(--white);
    margin-bottom: 15px;
    display: block;
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--secondary);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.7);
}

.footer-contact svg {
    width: 20px;
    height: 20px;
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

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

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.page-content {
    padding: 60px 0;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

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

/* Service Page Specific */
.service-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.service-sidebar {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 12px;
    height: fit-content;
}

.service-sidebar h4 {
    margin-bottom: 20px;
}

.service-sidebar ul {
    list-style: none;
}

.service-sidebar li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.service-sidebar li:last-child {
    border-bottom: none;
}

.service-sidebar a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark);
}

.service-sidebar a:hover {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid var(--light-gray);
    }

    .main-nav a {
        display: block;
        padding: 15px 0;
    }

    .header-cta {
        display: none;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero {
        padding: 50px 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

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

    .why-us-grid,
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .service-detail {
        grid-template-columns: 1fr;
    }

    .trust-items {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

    .header-top .container {
        flex-direction: column;
        text-align: center;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
