/*
Theme Name: Lau Home Inspections
Theme URI: https://lauhomeinspections.com
Author: Caleb Lau
Description: Custom theme for Lau Home Inspections - professional home inspection services in the Greater Seattle area.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: lauhomeinspections
*/

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

:root {
    --primary: #1a3a5c;
    --primary-light: #2a5a8c;
    --accent: #d4a54a;
    --accent-hover: #c4952a;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --bg-light: #f7f8fa;
    --bg-dark: #0f2440;
    --border: #e0e0e0;
    --success: #2e7d32;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --max-width: 1200px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Header & Navigation ========== */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

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

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    height: 60px;
    width: auto;
}

.site-branding .site-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.site-branding .site-title a {
    color: inherit;
}

.site-branding .site-title a:hover {
    color: var(--primary-light);
}

.site-branding .tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
    margin-top: -2px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
}

.main-navigation a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--primary);
    background: var(--bg-light);
}

.main-navigation .btn-nav {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

.main-navigation .btn-nav:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--primary);
}

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

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

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.03)" width="50" height="50"/><rect fill="rgba(255,255,255,0.03)" x="50" y="50" width="50" height="50"/></svg>') repeat;
    background-size: 60px;
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero .btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========== Sections ========== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-light);
}

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

.section-header-spaced {
    margin-top: 32px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* ========== Services ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid var(--border);
}

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

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========== Why Choose Us ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature .icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.feature h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.feature p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ========== CTA Banner ========== */
.btn-group-center {
    justify-content: center;
}

.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}

.cta-banner-inline {
    margin-top: 56px;
    border-radius: var(--radius);
}

.cta-banner h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* ========== Contact Info ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-item .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--primary);
    font-weight: 500;
}

/* ========== Schedule Page ========== */
.schedule-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.schedule-intro h1 {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.schedule-intro p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.calendar-embed {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.calendar-embed iframe {
    width: 100%;
    border: none;
    height: 1100px;
    min-height: 600px;
}

.calendar-fallback,
.calendar-fallback-text {
    text-align: center;
    margin-top: 24px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.calendar-fallback-text a {
    font-weight: 500;
}

.schedule-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.schedule-step {
    text-align: center;
    padding: 24px;
}

.schedule-step .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.schedule-step h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.schedule-step p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========== Payment Page ========== */
.payment-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.payment-intro h1 {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.payment-intro p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto 48px;
}

.payment-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
}

.payment-card .icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.payment-card h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.payment-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.pricing-table {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 16px 24px;
    text-align: left;
}

.pricing-table thead {
    background: var(--primary);
    color: #fff;
}

.pricing-table th {
    font-weight: 600;
    font-size: 0.95rem;
}

.pricing-table tbody tr {
    border-bottom: 1px solid var(--border);
}

.pricing-table tbody tr:last-child {
    border-bottom: none;
}

.pricing-table tbody tr:hover {
    background: var(--bg-light);
}

.pricing-table td {
    font-size: 0.95rem;
    color: var(--text);
}

.pricing-note {
    text-align: center;
    margin-top: 32px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========== Generic Page ========== */
.page-content {
    padding: 60px 0 80px;
}

.page-content .container {
    max-width: 800px;
}

.page-content h1 {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.page-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

/* ========== Footer ========== */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 24px;
}

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

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(255,255,255,0.8);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        padding: 16px;
    }

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

    .main-navigation ul {
        flex-direction: column;
        gap: 4px;
    }

    .main-navigation a {
        padding: 12px 16px;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 56px 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

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

    .pricing-table th,
    .pricing-table td {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .calendar-embed iframe {
        height: 800px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .hero .btn-group {
        flex-direction: column;
    }
}

