/*
Theme Name: Outline Inspections
Author: Outline Inspections
Description: Custom theme for Outline Inspections — Durham Region & Kawartha Lakes home inspection services.
Version: 1.0
*/

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Montserrat', sans-serif;
    background: #f7f6f3;
    color: #1a1a1a;
    font-size: 15px;
    line-height: 1.6;
}

/* ── CSS Variables ── */
:root {
    --green: #23a23a;
    --green-dark: #1b7d2d;
    --green-light: #eaf5ec;
    --copper: #b87333;
    --white: #ffffff;
    --off-white: #f7f6f3;
    --card-bg: #ffffff;
    --border: #e4e2dc;
    --text-primary: #1a1a1a;
    --text-secondary: #555551;
    --text-muted: #888883;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
    --shadow-hover: 0 2px 8px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.06);
}

/* ── Navigation ── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav .nav-logo img,
nav.nav .nav-logo img {
    height: 60px !important;
    width: auto !important;
    max-height: 60px !important;
    max-width: none !important;
    min-height: 0 !important;
    display: block;
}
.nav-logo span { color: var(--green); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
    background: var(--green);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 99px;
    font-size: 15px;
    font-weight: 600 !important;
    transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--green-dark) !important; color: #fff !important; }

/* ── Instagram icon in nav (desktop) ── */
.nav-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: color 0.15s, background 0.15s;
}
.nav-social:hover {
    color: var(--green-dark);
    background: var(--green-light);
}

/* ── Instagram link in nav (mobile dropdown) ── */
.nav-mobile-social {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    color: var(--text-secondary) !important;
}
.nav-mobile-social svg { flex-shrink: 0; }
.nav-mobile-social:hover { color: var(--text-primary) !important; }

/* ── Hero ── */
.hero {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 4rem 2rem 3rem;
    text-align: center;
}
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 99px;
    margin-bottom: 1.5rem;
    border: 1px solid #c8eacf;
}
.hero-badge::before { content: "✅"; font-size: 13px; }
.hero h1 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}
.hero-sub {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 0.75rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.hero-personal {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.75rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: #fff;
    padding: 13px 28px;
    border-radius: 99px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 2px 12px rgba(35,162,58,0.25);
}
.hero-cta:hover { background: var(--green-dark); transform: translateY(-1px); }
.hero-cta::after { content: "→"; }
.hero-meta {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    justify-content: center;
}
.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.hero-meta-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

/* ── Shared Section Styles ── */
.section {
    padding: 3rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.section-full { padding: 3rem 2rem; }
.section-full-inner {
    max-width: 900px;
    margin: 0 auto;
}
.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 0.4rem;
    font-family: 'IBM Plex Sans', sans-serif;
}
.section-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--text-primary);
    margin-bottom: 2rem;
}
.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* ── About ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}
.about-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.about-text p:last-child { margin-bottom: 0; }
.about-credential {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-light);
    border: 1px solid #c8eacf;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    color: var(--green-dark);
    margin-top: 1.25rem;
}
.about-credential::before { content: "✅"; }
.about-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--border);
    aspect-ratio: 1;
    background: #e8e6e0;
    box-shadow: var(--shadow);
}
.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── What is a Home Inspection ── */
.what-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
.what-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.inspection-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.inspection-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}
.inspection-list li::before {
    content: "✓";
    font-size: 13px;
    color: var(--green);
    font-weight: 700;
    width: 20px;
    height: 20px;
    background: var(--green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.what-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--border);
    aspect-ratio: 1;
    background: #e8e6e0;
    box-shadow: var(--shadow);
}
.what-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Services ── */
.services-section {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: box-shadow 0.15s, transform 0.1s, border-color 0.15s;
    cursor: default;
}
.service-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: #c8d8cb;
}
.service-card.featured {
    border-color: var(--green);
    border-width: 2px;
    position: relative;
}
.service-popular {
    display: inline-block;
    background: var(--green);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: 0.85rem;
}
.service-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 22px;
}
.service-card h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.service-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── Additional Services ── */
.addl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.addl-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-align: center;
    transition: box-shadow 0.15s, transform 0.1s;
}
.addl-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.addl-card.coming-soon { opacity: 0.55; }
.addl-icon {
    font-size: 28px;
    margin-bottom: 0.6rem;
    display: block;
}
.addl-card h4 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}
.addl-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.55;
}
.addl-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f2ece0;
    color: var(--copper);
    padding: 2px 8px;
    border-radius: 99px;
    margin-bottom: 0.5rem;
}

/* ── CTA Banner ── */
.cta-section {
    background: var(--green);
    padding: 2.25rem 2rem;
    text-align: center;
}
.cta-section h2 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
    letter-spacing: -0.4px;
}
.cta-section p {
    font-size: 15px;
    color: rgba(255,255,255,0.82);
    margin-bottom: 2rem;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}
.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-btn-primary {
    background: #fff;
    color: var(--green-dark);
    padding: 13px 28px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.cta-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.cta-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.55);
    padding: 13px 28px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}
.cta-btn-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}
.service-areas {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}
.area-chip {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.9);
    padding: 5px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
}

/* ── Footer ── */
.footer {
    background: #1a1a1a;
    padding: 2rem 2rem;
}
.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-logo {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}
.footer-logo span { color: var(--green); }
.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }

/* ── Footer social (Instagram icon only) ── */
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--green);
    text-decoration: none;
    transition: color 0.15s, background 0.15s, transform 0.1s;
}
.footer-social a:hover {
    color: var(--green-dark);
    background: rgba(35,162,58,0.12);
    transform: translateY(-1px);
}
.footer-social svg { flex-shrink: 0; }

.footer-copy {
    font-size: 12px;
    color: #555;
    width: 100%;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #2a2a2a;
    margin-top: 0.5rem;
}

/* ── Hamburger button ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
    position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg);  top: 0; }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg); top: 0; }

/* ── Mobile dropdown panel ── */
.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem 1.25rem;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.15s;
}
.nav-mobile a:hover { color: var(--text-primary); }
.nav-mobile .nav-cta {
    margin-top: 0.75rem;
    background: var(--green);
    color: #fff !important;
    padding: 12px 18px;
    border-radius: 99px;
    text-align: center;
    font-weight: 700 !important;
    font-size: 14px;
    border-bottom: none !important;
}
.nav-mobile .nav-cta:hover { background: var(--green-dark) !important; }

/* ── Default content styles for WP pages ── */
.site-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}
.site-main h1 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}
.site-main h2 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 1.75rem 0 0.75rem;
    color: var(--text-primary);
}
.site-main p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.site-main a { color: var(--green); }
.site-main a:hover { color: var(--green-dark); }

@media (min-width: 681px) {
    .nav { justify-content: center; gap: 3rem; }
}

/* ── Responsive ── */
@media (max-width: 680px) {
    .nav-toggle { display: flex; }
    .nav-links { display: none; }
    .hero h1 { font-size: 26px; }
    .about-grid, .what-grid { grid-template-columns: 1fr; }
    .about-photo, .what-image { max-width: 320px; }
    .services-grid { grid-template-columns: 1fr; }
    .addl-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-meta { gap: 1rem; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}