/* ================================================================
   Toronto Catch Basin — Main Stylesheet
   Design: Professional contractor, dark navy + orange accent
   ================================================================ */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
    --navy:        #1a2332;
    --navy-dark:   #111b27;
    --navy-mid:    #243044;
    --orange:      #f5821f;
    --orange-dark: #d96d0c;
    --white:       #ffffff;
    --gray-light:  #f5f7fa;
    --gray-mid:    #e8eaed;
    --text:        #2c3e50;
    --muted:       #6b7a8d;
    --border:      #dde2ea;
    --radius:      6px;
    --shadow:      0 2px 12px rgba(0,0,0,0.10);
    --shadow-lg:   0 8px 32px rgba(0,0,0,0.16);
    --container:   1200px;
    --transition:  0.22s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); text-decoration: underline; }

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5 {
    line-height: 1.2;
    color: var(--navy);
    font-weight: 700;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--navy);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

/* Top bar */
.header-top {
    background: var(--navy-dark);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.site-logo-link { display: inline-flex; align-items: center; }
.site-logo { height: 50px; width: auto; }

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color var(--transition);
}
.header-phone:hover { color: #fff; text-decoration: none; }
.header-phone-icon { font-size: 1.3rem; }

/* ── Main Nav ───────────────────────────────────────────────── */
.site-nav { background: var(--navy-mid); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.nav-link {
    display: inline-block;
    color: rgba(255,255,255,0.88);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 14px 16px;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.has-dropdown:hover > .nav-link {
    color: #fff;
    background: rgba(255,255,255,0.08);
    text-decoration: none;
}

.nav-cta-btn {
    background: var(--orange);
    color: #fff !important;
    border-radius: var(--radius);
    padding: 10px 20px;
    margin-left: 8px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.nav-cta-btn:hover {
    background: var(--orange-dark) !important;
    color: #fff !important;
    text-decoration: none;
}

.nav-arrow { font-size: 0.65rem; margin-left: 4px; opacity: 0.7; }

/* Dropdown */
.has-dropdown { position: relative; }

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    overflow: hidden;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
    display: block;
}

.nav-dropdown li a {
    display: block;
    padding: 11px 18px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), color var(--transition);
    text-decoration: none;
}
.nav-dropdown li:last-child a { border-bottom: none; }
.nav-dropdown li a:hover {
    background: var(--gray-light);
    color: var(--orange);
    text-decoration: none;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 8px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 580px;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 50%, #1e3a5f 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(245,130,31,0.12) 0%, transparent 65%),
                url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26,35,50,0.7) 0%, rgba(26,35,50,0.3) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 80px 20px;
}

.hero-content { max-width: 660px; }

.hero-eyebrow {
    display: inline-block;
    background: rgba(245,130,31,0.2);
    color: var(--orange);
    border: 1px solid rgba(245,130,31,0.4);
    border-radius: 100px;
    padding: 5px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.08rem;
    color: rgba(255,255,255,0.82);
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
    box-shadow: 0 4px 16px rgba(245,130,31,0.35);
}
.btn-hero-primary:hover {
    background: var(--orange-dark);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.3);
    text-decoration: none;
    transition: background var(--transition);
    backdrop-filter: blur(4px);
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
    text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
   ══════════════════════════════════════════════════════════════ */
.page-hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
    padding: 70px 20px;
    text-align: center;
}

.page-hero--slim { padding: 48px 20px; }

.page-hero-inner { max-width: 760px; margin: 0 auto; }

.page-hero h1 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    color: #fff;
    font-weight: 800;
    margin-bottom: 14px;
}

.page-hero-subtitle,
.page-hero-sub {
    color: rgba(255,255,255,0.78);
    font-size: 1.05rem;
    margin-bottom: 28px;
    line-height: 1.65;
}

.page-hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background var(--transition);
}
.btn-primary:hover { background: var(--orange-dark); color: #fff; text-decoration: none; }

.btn-secondary {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.3);
    text-decoration: none;
    transition: background var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.22); color: #fff; text-decoration: none; }

.btn-outline {
    display: inline-block;
    border: 2px solid var(--orange);
    color: var(--orange);
    font-weight: 700;
    padding: 11px 26px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
}
.btn-outline:hover { background: var(--orange); color: #fff; text-decoration: none; }

/* ══════════════════════════════════════════════════════════════
   TRUST BADGES
   ══════════════════════════════════════════════════════════════ */
.trust-section {
    background: var(--navy);
    padding: 28px 0;
    border-bottom: 3px solid var(--orange);
}

.trust-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    color: #fff;
}

.trust-icon {
    color: var(--orange);
    flex-shrink: 0;
}

.trust-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.trust-text span {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
}

/* ══════════════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════════════ */
.section { padding: 72px 0; }
.section-white { background: var(--white); }
.section-gray  { background: var(--gray-light); }

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

.section-title {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
}

.section-title::after {
    content: '';
    display: block;
    width: 52px;
    height: 3px;
    background: var(--orange);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-footer-link {
    text-align: center;
    margin-top: 36px;
}

/* ══════════════════════════════════════════════════════════════
   SERVICES GRID
   ══════════════════════════════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--orange);
    transform: translateY(-3px);
    text-decoration: none;
    color: var(--text);
}

.service-card-icon {
    color: var(--orange);
    margin-bottom: 16px;
}

.service-card-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.service-card-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.service-card-more {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--orange);
    margin-top: auto;
}

/* ══════════════════════════════════════════════════════════════
   PROCESS STEPS
   ══════════════════════════════════════════════════════════════ */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    position: relative;
}

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

.process-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--orange);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.process-step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.process-step-desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   CTA BAR
   ══════════════════════════════════════════════════════════════ */
.cta-bar {
    background: var(--orange);
    padding: 52px 0;
}

.cta-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.cta-bar-text h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    color: #fff;
    font-weight: 800;
    margin-bottom: 6px;
}

.cta-bar-text p {
    color: rgba(255,255,255,0.88);
    font-size: 1rem;
}

.cta-bar-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.btn-cta-primary {
    display: inline-block;
    background: #fff;
    color: var(--orange);
    font-weight: 800;
    font-size: 1.05rem;
    padding: 13px 26px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.btn-cta-primary:hover { background: var(--navy); color: #fff; text-decoration: none; }

.btn-cta-secondary {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.5);
    text-decoration: none;
    transition: background var(--transition);
    white-space: nowrap;
}
.btn-cta-secondary:hover { background: rgba(255,255,255,0.28); color: #fff; text-decoration: none; }

/* ══════════════════════════════════════════════════════════════
   SERVICE AREAS (city grid)
   ══════════════════════════════════════════════════════════════ */
.city-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.city-pill {
    display: inline-block;
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--navy);
    border-radius: 100px;
    padding: 8px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.city-pill:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════
   RESOURCES GRID
   ══════════════════════════════════════════════════════════════ */
.resources-grid, .resources-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.resource-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}

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

.resource-card-body { padding: 24px; }

.resource-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.4;
}

.resource-card-link {
    color: var(--navy);
    text-decoration: none;
}
.resource-card-link:hover { color: var(--orange); text-decoration: none; }

.resource-card-desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.resource-card-more {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--orange);
}
.resource-card-more:hover { color: var(--orange-dark); text-decoration: none; }

/* ══════════════════════════════════════════════════════════════
   RELATED LINKS (service-location pages)
   ══════════════════════════════════════════════════════════════ */
.related-links-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.related-links-wrap h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--orange);
}

.related-links li { margin-bottom: 8px; }
.related-links li a { color: var(--navy); font-size: 0.9rem; font-weight: 500; }
.related-links li a:hover { color: var(--orange); }

/* ══════════════════════════════════════════════════════════════
   PROSE CONTENT (service descriptions, blog articles, etc.)
   ══════════════════════════════════════════════════════════════ */
.prose { max-width: 860px; margin: 0 auto; }

.prose h1 { font-size: 2rem; margin-bottom: 20px; }
.prose h2 { font-size: 1.45rem; margin: 36px 0 14px; color: var(--navy); }
.prose h3 { font-size: 1.18rem; margin: 28px 0 10px; color: var(--navy); }
.prose h4 { font-size: 1rem; margin: 20px 0 8px; color: var(--navy); }

.prose p { margin-bottom: 16px; color: var(--text); }

.prose ul, .prose ol {
    margin: 14px 0 18px 24px;
    list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; color: var(--text); }

.prose a { color: var(--orange); }
.prose a:hover { color: var(--orange-dark); }

.prose strong { color: var(--navy); font-weight: 700; }

.prose blockquote {
    border-left: 4px solid var(--orange);
    padding: 12px 20px;
    background: var(--gray-light);
    margin: 20px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--muted);
}

/* ══════════════════════════════════════════════════════════════
   PAGE BODY (homepage DB content section)
   ══════════════════════════════════════════════════════════════ */
.page-body { max-width: 900px; margin: 0 auto; }
.page-body h1, .page-body h2, .page-body h3, .page-body h4 { color: var(--navy); }
.page-body p { margin-bottom: 16px; }
.page-body ul { margin: 12px 0 16px 24px; list-style: disc; }
.page-body li { margin-bottom: 6px; }
.page-body h2 { font-size: 1.45rem; margin: 32px 0 12px; }
.page-body h3 { font-size: 1.18rem; margin: 24px 0 10px; }

/* ══════════════════════════════════════════════════════════════
   BLOG / ARTICLE PAGES
   ══════════════════════════════════════════════════════════════ */
.blog-article-content { max-width: 820px; margin: 0 auto; padding: 40px 20px; }

.blog-article-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.blog-article-category {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.blog-article h1 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.blog-breadcrumbs {
    background: var(--gray-light);
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 20px;
    color: var(--muted);
}
.blog-breadcrumbs a { color: var(--orange); }
.blog-breadcrumbs a:hover { color: var(--orange-dark); }

.blog-date-wrapper {
    color: var(--muted);
    font-size: 0.875rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.blog-date-wrapper i { color: var(--orange); }

.blog-image-wrapper { margin: 24px 0; text-align: center; }
.blog-image-wrapper .blog-image { max-width: 100%; border-radius: var(--radius); }

.blog-description-wrapper {
    color: var(--text);
    line-height: 1.75;
    font-size: 1rem;
}
.blog-description-wrapper p { margin-bottom: 16px; }
.blog-description-wrapper h2 { font-size: 1.4rem; margin: 28px 0 12px; color: var(--navy); }
.blog-description-wrapper h3 { font-size: 1.15rem; margin: 22px 0 10px; color: var(--navy); }
.blog-description-wrapper ul, .blog-description-wrapper ol { margin: 12px 0 16px 24px; }
.blog-description-wrapper ul { list-style: disc; }
.blog-description-wrapper ol { list-style: decimal; }
.blog-description-wrapper li { margin-bottom: 6px; }

.blog-additional-info {
    background: var(--gray-light);
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 28px;
    border-left: 4px solid var(--orange);
}
.blog-author { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.blog-author-label { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.blog-author-name { color: var(--orange); font-weight: 600; font-size: 0.9rem; }

/* Blog list */
.blog-list-container { margin-top: 8px; }
.blog-page-label { display: none; }

.blog-item {
    display: flex;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}
.blog-item:hover { box-shadow: var(--shadow-lg); }

.blog-item-image-wrapper {
    flex-shrink: 0;
    width: 200px;
    height: 130px;
    overflow: hidden;
}
.blog-item-image { width: 100%; height: 100%; object-fit: cover; }
.blog-item-image-link { display: block; width: 100%; height: 100%; }

.blog-item-info-wrapper {
    flex: 1;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-item-title {
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    margin-bottom: 8px;
}
.blog-item-title:hover { color: var(--orange); text-decoration: none; }

.blog-item-publish {
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.blog-item-publish i { color: var(--orange); }

.blog-item-description { color: var(--text); font-size: 0.9rem; line-height: 1.5; }

/* ══════════════════════════════════════════════════════════════
   NEWS PAGES (keep existing styles, updated palette)
   ══════════════════════════════════════════════════════════════ */
.news-page-label { display: none; }
.news-list-container { margin-top: 8px; }

.news-item {
    display: flex;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.news-item-image-wrapper { flex-shrink: 0; width: 200px; height: 130px; overflow: hidden; }
.news-item-image { width: 100%; height: 100%; object-fit: cover; }
.news-item-image-link { display: block; width: 100%; height: 100%; }
.news-item-info-wrapper { flex: 1; padding: 18px 20px; }
.news-item-title { color: var(--navy); font-size: 1.05rem; font-weight: 700; text-decoration: none; }
.news-item-title:hover { color: var(--orange); }
.news-item-publish { color: var(--muted); font-size: 0.82rem; margin: 8px 0; display: flex; align-items: center; gap: 5px; }
.news-item-publish i { color: var(--orange); }
.news-item-description { color: var(--text); font-size: 0.9rem; }

.news-article-content { max-width: 820px; margin: 0 auto; padding: 40px 20px; }
.news-article-wrapper { background: var(--white); border-radius: var(--radius); padding: 36px; border: 1px solid var(--border); }
.news-article-category { display: inline-block; background: var(--orange); color: #fff; padding: 4px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 700; margin-bottom: 16px; }
.news-article h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--border); }
.news-breadcrumbs { background: var(--gray-light); padding: 10px 14px; border-radius: var(--radius); font-size: 0.875rem; margin-bottom: 20px; }
.news-breadcrumbs a { color: var(--orange); }
.news-date-wrapper { color: var(--muted); font-size: 0.875rem; margin-bottom: 20px; display: flex; align-items: center; gap: 6px; }
.news-date-wrapper i { color: var(--orange); }
.news-description-wrapper { line-height: 1.75; }
.news-description-wrapper p { margin-bottom: 16px; }
.news-description-wrapper h2, .news-description-wrapper h3 { color: var(--navy); margin: 22px 0 10px; }
.news-description-wrapper ul, .news-description-wrapper ol { margin: 12px 0 16px 24px; }
.news-description-wrapper ul { list-style: disc; }
.news-description-wrapper ol { list-style: decimal; }
.news-description-wrapper li { margin-bottom: 6px; }
.news-additional-info { background: var(--gray-light); padding: 20px; border-radius: var(--radius); margin-top: 28px; border-left: 4px solid var(--orange); }
.news-author { display: flex; align-items: center; gap: 8px; }
.news-author-label { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.news-author-name { color: var(--orange); font-size: 0.9rem; }

/* ══════════════════════════════════════════════════════════════
   CONTENT PAGES (about, policy, etc.)
   ══════════════════════════════════════════════════════════════ */
#content-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 52px 20px;
}
#content-page h1 { font-size: 2rem; margin-bottom: 24px; color: var(--navy); }
.content-description { line-height: 1.75; color: var(--text); }
.content-description p { margin-bottom: 14px; }
.content-description h2 { font-size: 1.45rem; margin: 28px 0 12px; color: var(--navy); }
.content-description h3 { font-size: 1.15rem; margin: 20px 0 8px; color: var(--navy); }
.content-description ul { margin: 10px 0 14px 24px; list-style: disc; }
.content-description li { margin-bottom: 6px; }

/* service content */
.service-content { max-width: 860px; margin: 0 auto; line-height: 1.75; }
.service-content h2 { font-size: 1.45rem; margin: 28px 0 12px; color: var(--navy); }
.service-content h3 { font-size: 1.15rem; margin: 20px 0 8px; color: var(--navy); }
.service-content p { margin-bottom: 14px; color: var(--text); }
.service-content ul { margin: 10px 0 14px 24px; list-style: disc; }
.service-content li { margin-bottom: 6px; color: var(--text); }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.75);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-about .footer-logo-link { display: inline-flex; margin-bottom: 14px; }
.footer-logo { height: 44px; width: auto; }
.footer-about p { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.6); }

.footer-col h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--orange);
    display: inline-block;
}

.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.65);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--orange); text-decoration: none; }

.footer-contact p {
    font-size: 0.875rem;
    margin-bottom: 8px;
}
.footer-contact p a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-contact p a:hover { color: var(--orange); text-decoration: none; }

.footer-links-misc {
    margin-top: 14px;
    font-size: 0.8rem;
}
.footer-links-misc a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}
.footer-links-misc a:hover { color: var(--orange); }

.footer-bottom {
    background: rgba(0,0,0,0.25);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 16px 0;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    text-align: center;
}

/* ══════════════════════════════════════════════════════════════
   ERROR PAGE
   ══════════════════════════════════════════════════════════════ */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
    text-align: center;
}
.error-content { max-width: 480px; }
.error-code { font-size: 5rem; font-weight: 800; color: var(--orange); }
.error-title { font-size: 1.8rem; color: var(--navy); margin: 12px 0; }
.error-message { color: var(--muted); margin-bottom: 24px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 24px; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.btn-primary-solid { background: var(--orange); color: #fff; }
.btn-primary-solid:hover { background: var(--orange-dark); color: #fff; text-decoration: none; }
.btn-secondary-solid { background: var(--navy); color: #fff; }
.btn-secondary-solid:hover { background: var(--navy-mid); color: #fff; text-decoration: none; }

/* ══════════════════════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════════════════════ */
.clear { clear: both; }
.d-n  { display: none !important; }

/* Yii2 pagination */
.pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    flex-wrap: wrap;
    margin-top: 24px;
    justify-content: center;
}
.pagination li a,
.pagination li span {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--navy);
    font-size: 0.88rem;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
.pagination li.active span,
.pagination li a:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — 1024px
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .trust-badges { gap: 8px; }
    .trust-badge { padding: 8px 10px; }

    .cta-bar-inner {
        flex-direction: column;
        text-align: center;
    }
    .cta-bar-actions { justify-content: center; }

    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — 768px
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Header */
    .header-top-inner { flex-wrap: wrap; gap: 8px; }
    .site-logo { height: 40px; }

    /* Nav */
    .hamburger { display: flex; }
    .nav-inner { flex-wrap: wrap; }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        background: var(--navy);
        gap: 0;
        padding-bottom: 8px;
        order: 3;
    }
    .nav-menu.open { display: flex; }

    .nav-link { padding: 13px 20px; display: block; width: 100%; text-align: left; }
    .nav-cta-btn { margin: 8px 20px; width: calc(100% - 40px); text-align: center; }

    .has-dropdown .nav-dropdown {
        position: static;
        display: none;
        box-shadow: none;
        border-radius: 0;
        background: rgba(0,0,0,0.2);
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .has-dropdown.open .nav-dropdown { display: block; }

    .nav-dropdown li a {
        padding: 10px 20px 10px 36px;
        color: rgba(255,255,255,0.75);
        background: transparent;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        font-size: 0.875rem;
    }
    .nav-dropdown li a:hover { color: var(--orange); background: transparent; }

    /* Hero */
    .hero { min-height: 460px; }
    .hero-inner { padding: 56px 20px; }

    /* Trust */
    .trust-badges { flex-direction: column; align-items: flex-start; gap: 8px; }

    /* Services */
    .services-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .service-card { padding: 20px 16px; }

    /* Process */
    .process-steps { grid-template-columns: 1fr 1fr; }

    /* Resources */
    .resources-grid, .resources-list { grid-template-columns: 1fr; }

    /* Blog items */
    .blog-item {
        flex-direction: column;
    }
    .blog-item-image-wrapper { width: 100%; height: 180px; }
    .blog-item-info-wrapper { padding: 14px 16px; }

    .news-item { flex-direction: column; }
    .news-item-image-wrapper { width: 100%; height: 180px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

    /* Blog article */
    .blog-article-wrapper, .news-article-wrapper { padding: 20px; }
    .blog-article h1, .news-article h1 { font-size: 1.4rem; }

    /* CTA bar */
    .cta-bar { padding: 36px 0; }
    .cta-bar-actions { flex-direction: column; width: 100%; }
    .btn-cta-primary, .btn-cta-secondary { text-align: center; }

    /* Related links */
    .related-links-wrap { grid-template-columns: 1fr; gap: 20px; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — 480px
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .section { padding: 48px 0; }

    .services-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }

    .hero-actions { flex-direction: column; }
    .btn-hero-primary, .btn-hero-secondary { text-align: center; }

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

    .page-hero { padding: 44px 16px; }

    .blog-article-content, .news-article-content { padding: 20px 12px; }

    #content-page { padding: 32px 16px; }

    .trust-section { padding: 20px 0; }
    .trust-badge { flex-direction: column; align-items: flex-start; gap: 8px; }

    .quote-layout { grid-template-columns: 1fr; }
    .quote-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   QUOTE / CONTACT FORM
   ══════════════════════════════════════════════════════════════ */
.quote-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.quote-form { width: 100%; }

.quote-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field-wrap { margin-bottom: 20px; }
.field-wrap label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); font-size: 0.9rem; }
.field-wrap label .req { color: var(--orange); }

.quote-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.quote-input:focus { outline: none; border-color: var(--orange); }
.quote-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea.quote-input { resize: vertical; min-height: 120px; }

.quote-submit { margin-top: 8px; }

.btn-quote-submit {
    background: var(--orange);
    color: #fff;
    border: none;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
}
.btn-quote-submit:hover { background: var(--orange-dark); }

.quote-note { margin-top: 10px; color: var(--muted); font-size: 0.85rem; }

.quote-flash {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 500;
}
.quote-flash--success { background: #eafaf1; border: 1px solid #27ae60; color: #1a7a42; }
.quote-flash--error   { background: #fdf0f0; border: 1px solid #e74c3c; color: #c0392b; }

/* Sidebar */
.quote-sidebar { display: flex; flex-direction: column; gap: 20px; }

.quote-sidebar-card {
    background: var(--gray-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.quote-sidebar-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 10px; }
.quote-sidebar-card p  { color: var(--muted); font-size: 0.9rem; margin: 0; }

.quote-phone {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--orange);
    text-decoration: none;
    margin-bottom: 6px;
}
.quote-phone:hover { color: var(--orange-dark); }

.quote-expect-list { list-style: none; padding: 0; margin: 0; }
.quote-expect-list li { color: var(--muted); font-size: 0.9rem; padding: 4px 0 4px 18px; position: relative; }
.quote-expect-list li::before { content: '✓'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }

/* Yii ActiveForm error styling */
.field-wrap .help-block { color: #e74c3c; font-size: 0.82rem; margin-top: 4px; }

/* ═══ ABOUT PAGE ═══ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}
@media (max-width: 860px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-sidebar { order: -1; }
}

.about-text h2 { font-size: 1.3rem; color: var(--navy); margin: 2rem 0 0.5rem; }
.about-text h2:first-child { margin-top: 0; }
.about-text p { color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }

.about-services-list,
.about-why-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.about-services-list li,
.about-why-list li {
    padding: 5px 0 5px 22px;
    position: relative;
    color: var(--muted);
    line-height: 1.5;
}
.about-services-list li::before { content: '▸'; position: absolute; left: 0; color: var(--orange); }
.about-why-list li::before { content: '✓'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }

.about-contact-card {
    background: var(--navy);
    color: #fff;
    border-radius: 10px;
    padding: 28px 24px;
}
.about-contact-card h3 { color: #fff; margin: 0 0 8px; font-size: 1.1rem; }
.about-contact-card p { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin: 0 0 12px; }

.about-phone {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--orange);
    text-decoration: none;
    margin-bottom: 4px;
}
.about-phone:hover { color: #e07010; }
.about-hours { color: rgba(255,255,255,0.6) !important; font-size: 0.82rem !important; }

/* ═══ POLICY PAGE ═══ */
.policy-content.prose { max-width: 780px; margin: 0 auto; }
.policy-content h2 { font-size: 1.15rem; color: var(--navy); margin: 2rem 0 0.5rem; }
.policy-content h2:first-child { margin-top: 0; }
.policy-content p { color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
.policy-content ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.policy-content ul li { color: var(--muted); line-height: 1.6; margin-bottom: 4px; }
.policy-content a { color: var(--orange); }
.policy-content a:hover { color: var(--navy); }
