/* ═══════════════════════════════════════════════════════════════
   public.css — Public Layout Styles (columbusconstructioncost.com)
   
   Upload to: public_html/app/public/css/public.css
   Link from: Views/layouts/public_main.php
   
   CONTENTS:
   1. Variables & Base
   2. Dark Band (hero sections)
   3. Navbar
   4. Content Area
   5. Cards (dark + white variants)
   6. Footer
   7. Responsive
   ═══════════════════════════════════════════════════════════════ */


/* ─── 1. Variables & Base ─── */

:root {
    --teal: #57c1b6;
    --teal-dark: #3a9e94;
    --dark: #1a1f2e;
    --darker: #12151f;
    --accent: #f5a623;
    --light-bg: #f4f6f9;
    --text-dark: #2d3748;
    --text-mid: #556;
    --text-light: #8898aa;
    --border: #e2e8f0;
}

* { box-sizing: border-box; }

body {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--light-bg);
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
}


/* ─── 2. Dark Band ─── */

.dark-band {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    color: #fff;
}

.dark-band h1,
.dark-band h2,
.dark-band h3 {
    color: #fff;
}

.dark-band p {
    color: #c8d4da;
}


/* ─── 3. Navbar ─── */

.pub-navbar {
    background: var(--dark);
    padding: 14px 0;
    border-bottom: 2px solid var(--teal);
}

.pub-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
}

.pub-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--teal);
    text-decoration: none;
    white-space: nowrap;
}

.pub-brand span {
    color: #fff;
}

.pub-nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.pub-nav-links a {
    color: #c8d4da;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}

.pub-nav-links a:hover {
    color: var(--teal);
}

.pub-nav-links .btn-estimate {
    background: var(--teal);
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pub-nav-links .btn-estimate:hover {
    background: var(--teal-dark);
}


/* ─── 4. Content Area ─── */

.content-light {
    padding: 40px 0 60px;
}


/* ─── 5. Cards ─── */

/* Dark card — dark bg, light text, teal hover border */
.card-dark {
    background: var(--dark);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: #e2e8f0;
    transition: all 0.15s;
}

.card-dark:hover {
    border-color: var(--teal);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(26,31,46,0.25);
}

.card-dark h2,
.card-dark h3,
.card-dark h4 {
    color: #fff;
}

.card-dark p {
    color: #8898aa;
}

/* White card — light bg, dark text, teal hover border */
.card-white {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-dark);
    transition: all 0.15s;
}

.card-white:hover {
    border-color: var(--teal);
    box-shadow: 0 8px 24px rgba(87,193,182,0.1);
}


/* ─── 6. Footer ─── */

.pub-footer {
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 30px 0;
    margin-top: 0;
    text-align: center;
}

.pub-footer p {
    color: #8898aa;
    font-size: 12px;
    margin: 0;
}

.pub-footer a {
    color: var(--teal);
    text-decoration: none;
}

.pub-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 14px;
}

.pub-footer-links a {
    color: #c8d4da;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s;
}

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

.pub-footer .disclaimer {
    max-width: 700px;
    margin: 12px auto 0;
    font-size: 11px;
    color: #667;
    line-height: 1.6;
}


/* ─── 7. Responsive ─── */

@media (max-width: 768px) {
    .pub-nav-links { gap: 12px; }
    .pub-nav-links a:not(.btn-estimate) { display: none; }
}


/* ─── 8. Shared Utilities ─── */

.text-teal { color: var(--teal); }

.section-heading {
    text-align: center;
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-sub {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 32px;
}


/* ─── 9. Lead Form ─── */

.lead-form {
    max-width: 440px;
    margin: 0 auto;
    text-align: left;
}

.hp-trap {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

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

.form-label-sm {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-mid);
    display: block;
    margin-bottom: 4px;
}

.form-input {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    background: #fff;
    color: var(--text-dark);
    transition: border-color 0.15s;
}

.form-input:focus {
    outline: none;
    border-color: var(--teal);
}

.form-hint {
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    margin-top: 10px;
}

.btn-cta--full {
    width: 100%;
    border: none;
    cursor: pointer;
}

.lead-success {
    display: none;
    text-align: center;
    padding: 24px;
}

.lead-success-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.lead-success-title {
    color: var(--teal);
    font-size: 18px;
    margin-bottom: 6px;
}

.lead-success-msg {
    color: var(--text-mid);
    font-size: 14px;
}

.lead-success-msg a {
    color: var(--teal);
}


.hero-section {
    background: #fff;
    padding: 72px 0 56px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero-section h1 {
    font-size: 44px; font-weight: 700; color: var(--text-dark);
    line-height: 1.15; margin-bottom: 16px;
}

.hero-section h1 span { color: var(--teal); }

.hero-section .hero-sub {
    font-size: 18px; color: var(--text-light);
    max-width: 560px; margin: 0 auto 48px; line-height: 1.7;
}

.pathway-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 24px; max-width: 800px; margin: 0 auto;
}

.pathway-card {
    background: #fff; border: 2px solid var(--border);
    border-radius: 14px; padding: 36px 28px;
    text-align: center; transition: all 0.2s;
    cursor: pointer; text-decoration: none; display: block;
}

.pathway-card:hover {
    border-color: var(--teal); transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(87,193,182,0.12);
}

.pathway-icon { font-size: 44px; margin-bottom: 14px; }

.pathway-card h2 { font-size: 22px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.pathway-card:hover h2 { color: var(--teal); }
.pathway-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 20px; }

.pathway-tag {
    display: inline-block; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    padding: 8px 20px; border-radius: 6px;
    background: var(--teal); color: #fff; transition: background 0.15s;
}

.pathway-card:hover .pathway-tag { background: var(--teal-dark); }

.pathway-rooms {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 6px; margin-bottom: 18px;
}

.room-pill {
    font-size: 11px; padding: 4px 12px; border-radius: 14px;
    background: var(--light-bg); color: var(--text-mid);
    border: 1px solid var(--border);
}

.trust-section { padding: 44px 0; text-align: center; background: var(--light-bg); }
.trust-grid { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { text-align: center; }
.trust-item .trust-icon { font-size: 22px; color: var(--teal); margin-bottom: 6px; }
.trust-item .trust-label {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--text-light);
}

.how-section { padding: 56px 0 20px; }
.how-section h3 {
    text-align: center; font-size: 26px;
    color: var(--text-dark); margin-bottom: 36px; font-weight: 600;
}

.how-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; max-width: 820px; margin: 0 auto;
}

.how-step {
    text-align: center; padding: 28px 20px;
    background: #fff; border-radius: 12px; border: 1px solid var(--border);
}

.how-number {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--teal); color: #fff;
    font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}

.how-step h4 { font-size: 15px; color: var(--text-dark); margin-bottom: 6px; }
.how-step p { font-size: 13px; color: var(--text-light); line-height: 1.5; margin: 0; }

.cta-band { text-align: center; padding: 48px 0; background: #fff; border-top: 1px solid var(--border); }
.cta-band h3 { font-size: 24px; color: var(--text-dark); margin-bottom: 8px; }
.cta-band p { color: var(--text-light); font-size: 15px; margin-bottom: 20px; }
.cta-band .btn-cta {
    display: inline-block; background: var(--teal); color: #fff;
    padding: 14px 36px; border-radius: 6px;
    font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    text-decoration: none; transition: background 0.15s;
}
.cta-band .btn-cta:hover { background: var(--teal-dark); }

/* ─── Estimator Step Header & Progress ─── */

.estimator-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    padding: 40px 0 32px; text-align: center;
}
.estimator-header h1 { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.estimator-header p { font-size: 16px; color: #8898aa; }
.estimator-header .room-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(87,193,182,0.12); color: var(--teal);
    padding: 6px 16px; border-radius: 20px; font-size: 14px;
    font-weight: 600; margin-bottom: 12px;
}

.step-progress {
    max-width: 500px; margin: 24px auto 0;
    display: flex; align-items: center;
}

.step-dot {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 600;
    color: #556; flex-shrink: 0;
}
.step-dot.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.step-dot.done { background: rgba(87,193,182,0.3); border-color: var(--teal); color: var(--teal); }
.step-line { flex: 1; height: 2px; background: rgba(255,255,255,0.1); }
.step-line.done { background: var(--teal); }

/* ─── Estimator Navigation ─── */

.bottom-nav {
    max-width: 900px; margin: 36px auto 0;
    display: flex; justify-content: space-between; align-items: center;
}

.btn-est-outline {
    background: transparent; color: var(--text-light);
    border: 1.5px solid var(--border); padding: 12px 32px;
    border-radius: 6px; font-family: 'Oswald', sans-serif;
    font-size: 15px; font-weight: 600; text-decoration: none;
}
.btn-est-outline:hover { border-color: var(--teal); color: var(--teal); }

.disclaimer-note {
    max-width: 960px; margin: 24px auto 0; text-align: center;
    font-size: 11px; color: var(--text-light); line-height: 1.6;
}

/* ─── Landing & Shared Responsive ─── */

@media (max-width: 768px) {
    .hero-section h1 { font-size: 30px; }
    .hero-section { padding: 48px 0 36px; }
    .pathway-grid { grid-template-columns: 1fr; max-width: 400px; }
    .how-grid { grid-template-columns: 1fr; max-width: 360px; }
    .trust-grid { gap: 24px; }
    .estimator-header h1 { font-size: 24px; }
}


/* ─── Module Cards ─── */

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.module-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
    color: var(--text-dark);
}

.module-card--live {
    cursor: pointer;
}

.module-card--live:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(87,193,182,0.12);
}

.module-card--soon {
    opacity: 0.6;
    cursor: default;
}

.module-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.module-name {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.module-card--live:hover .module-name {
    color: var(--teal);
}

.module-range {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 8px;
}

.module-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 14px;
    min-height: 54px;
}

.module-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 20px;
    border-radius: 6px;
    background: var(--teal);
    color: #fff;
    transition: background 0.15s;
}

.module-card--live:hover .module-tag {
    background: var(--teal-dark);
}

.module-tag--soon {
    background: #ddd;
    color: #888;
}

@media (max-width: 768px) {
    .module-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .module-grid { grid-template-columns: 1fr; max-width: 360px; }
}


/* ─── Blog ─── */

.blog-hero {
    position: relative;
    padding: 130px 0 110px;
    min-height: 44vh;
    display: flex;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.blog-hero > .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

#blog-hero-title {
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.7),
        0 4px 18px rgba(0, 0, 0, 0.55);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

#blog-hero-sub {
    font-size: 19px;
    color: #f4f7fa;
    margin: 0;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.7),
        0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 700px) {
    .blog-hero { padding: 90px 0 72px; min-height: 34vh; }
    #blog-hero-title { font-size: 34px; }
    #blog-hero-sub { font-size: 16px; }
}

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

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

.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    display: block;
}

.blog-card:hover {
    border-color: var(--teal);
    box-shadow: 0 8px 24px rgba(87,193,182,0.1);
    transform: translateY(-2px);
}

.blog-card-img {
    height: 180px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 16px;
}

.blog-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.blog-card:hover .blog-card-title {
    color: var(--teal);
}

.blog-card-excerpt {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 8px;
}

.blog-card-meta {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    gap: 12px;
}

.blog-empty {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 48px 0;
}

#blog-pagination {
    margin-top: 32px;
    text-align: center;
}

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-grid--related { grid-template-columns: 1fr; }
}


/* ─── Blog sidebar ─── */

#blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 6px;
}

.sidebar-list a {
    color: var(--text-mid);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

.sidebar-list a:hover,
.sidebar-list a.active {
    color: var(--teal);
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 14px;
    background: var(--light-bg);
    color: var(--text-mid);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.15s;
}

.tag-pill:hover {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
    border-color: transparent;
}

.sidebar-cta .sidebar-title {
    color: #fff;
}

.sidebar-cta-text {
    font-size: 13px;
    color: #8898aa;
    margin-bottom: 12px;
}

.btn-cta-sm {
    display: inline-block;
    background: var(--teal);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-cta-sm:hover {
    background: var(--teal-dark);
    color: #fff;
}


/* ─── Blog post detail ─── */

#blog-post {
    padding-bottom: 48px;
}

#post-hero-img {
    max-height: 400px;
    overflow: hidden;
}

#post-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#post-header {
    padding: 36px 0 24px;
}

#post-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

#post-meta {
    font-size: 13px;
    color: var(--text-light);
}

.post-meta-sep {
    margin: 0 6px;
}

.post-category {
    color: var(--teal);
    text-decoration: none;
}

.post-category:hover {
    color: var(--teal-dark);
}

#post-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

#post-body h2, #post-body h3, #post-body h4 {
    margin-top: 32px;
    margin-bottom: 12px;
}

#post-body p {
    margin-bottom: 16px;
}

#post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

#post-body h2 { font-size: 1.5rem; }
#post-body h3 { font-size: 1.2rem; }

#post-body ul, #post-body ol {
    margin: 0 0 16px 1.25rem;
    padding-left: 1rem;
}
#post-body li { margin-bottom: 8px; }

#post-body blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background: var(--light-bg);
    border-left: 4px solid var(--teal);
    border-radius: 0 8px 8px 0;
    color: var(--text-dark);
}
#post-body blockquote p:last-child { margin-bottom: 0; }

#post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}
#post-body th, #post-body td {
    border: 1px solid var(--border);
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}
#post-body th { background: var(--light-bg); font-weight: 600; }

.glossary-term {
    border-bottom: 1px dotted var(--teal);
    cursor: help;
}

#post-tags {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#post-back {
    margin-top: 32px;
}

.back-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
}

.back-link:hover {
    color: var(--teal);
}

#related-posts {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}


/* ─── Glossary ─── */

#glossary-content {
    padding: 40px 0 60px;
}

#glossary-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 36px;
}

.glossary-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--light-bg);
    border: 1px solid var(--border);
    color: var(--text-mid);
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s;
}

.glossary-letter:hover {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}

.glossary-group {
    margin-bottom: 32px;
}

.glossary-letter-heading {
    font-size: 28px;
    font-weight: 700;
    color: var(--teal);
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.glossary-term-block {
    margin-bottom: 16px;
}

.glossary-term-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.glossary-term-def {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.6;
    margin: 0;
}

.glossary-term-source {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 4px 0 0;
}

.glossary-term-source a {
    color: var(--teal-dark);
    text-decoration: none;
}

.glossary-term-source a:hover {
    color: var(--teal);
    text-decoration: underline;
}

.glossary-term-source .fa-external-link-alt {
    font-size: 10px;
    opacity: 0.7;
}


/* ─── 12. Editorial Landing (prose, tables, levers, dig-deeper) ─── */

.prose {
    max-width: 760px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-dark);
}

.prose p {
    margin: 0 0 1.1em;
}

.prose a {
    color: var(--teal-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

.prose-band { padding-top: 40px; padding-bottom: 40px; }

.prose .lever-list,
.content-light .lever-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.1em;
}

.prose .lever-list li,
.content-light .lever-list li {
    position: relative;
    padding: 6px 0 6px 22px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
}

.prose .lever-list li:last-child,
.content-light .lever-list li:last-child { border-bottom: 0; }

.prose .lever-list li::before,
.content-light .lever-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
}

.fact-table-wrap {
    margin: 1.2em 0 1.4em;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}

.fact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.fact-table th,
.fact-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.fact-table thead th {
    background: var(--light-bg);
    color: var(--text-dark);
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 13px;
}

.fact-table tbody tr:last-child td { border-bottom: 0; }

.fact-table td:last-child { white-space: nowrap; color: var(--text-dark); font-weight: 500; }

.fact-table a {
    color: var(--teal-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* Three levers — dark band */

.dark-band {
    padding: 56px 0 48px;
}

.dark-band .section-heading.text-on-dark { color: #fff; }
.dark-band .section-sub.text-on-dark { color: #c8d4da; }

.lever-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.lever-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 24px 22px;
    color: #d5dde3;
    font-size: 14px;
    line-height: 1.65;
}

.lever-card p { margin: 0 0 0.9em; color: #d5dde3; }
.lever-card p:last-child { margin-bottom: 0; }

.lever-card strong { color: #fff; }

.lever-card a {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lever-number {
    display: inline-flex;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--dark);
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 12px;
}

.lever-title {
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 10px;
    letter-spacing: 0.3px;
}

.lever-card .lever-list { margin: 0.4em 0 0.9em; }
.lever-card .lever-list li {
    color: #d5dde3;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.lever-card .lever-list li strong { color: #fff; }


/* Estimator hint under module grid */

.estimator-hint {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 18px;
}


/* Dig deeper grid */

.dig-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}

.dig-card {
    display: block;
    padding: 22px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.dig-card:hover {
    transform: translateY(-2px);
    border-color: var(--teal);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    color: var(--text-dark);
}

.dig-card h4 {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 0 6px;
    letter-spacing: 0.3px;
}

.dig-range {
    font-size: 13px;
    color: var(--teal-dark);
    font-weight: 600;
    margin: 0 0 10px;
}

.dig-tag {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.dig-card:hover .dig-tag { color: var(--teal-dark); }


/* Responsive — landing editorial */

@media (max-width: 900px) {
    .lever-grid { grid-template-columns: 1fr; }
    .dig-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
    .dig-grid { grid-template-columns: 1fr; }
    .fact-table th, .fact-table td { padding: 10px 12px; font-size: 14px; }
}

/* ── Cost-guide pages (GuideController) ─────────────────────── */
.guide-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 96px 0 64px;
    /* photo banner: scale to fill, never distort; height grows with the viewport
       up to 768px, then stops. Dark scrim over it so the white headings read,
       darker toward the bottom for the transition into the content section. */
    min-height: clamp(280px, 44vh, 768px);
    background-color: var(--dark);
    background-image:
        linear-gradient(180deg, rgba(14, 19, 26, 0.58) 0%, rgba(14, 19, 26, 0.48) 40%, rgba(14, 19, 26, 0.76) 100%),
        url('../images/guide-hero.jpg');
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
}
.guide-hero > .container { width: 100%; }
/* These three must beat `body.roofing-site h1/h2/h3 { color: charcoal }` and the
   over-light photo behind them, hence the .guide-hero scope + text-shadow. */
.guide-hero .guide-hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.5);
}
.guide-hero .guide-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    color: #fff;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.55);
}
.guide-hero .guide-hero-sub {
    color: #fff;
    max-width: 660px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.5);
}
@media (max-width: 600px) {
    .guide-hero { padding: 80px 0 44px; min-height: clamp(220px, 36vh, 768px); background-position: center 40%; }
}

.guide-cat-group { margin-bottom: 2.5rem; }
.guide-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 700px) {
    .guide-list { grid-template-columns: 1fr 1fr; }
}
.guide-list-item {
    display: block;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: var(--text-dark);
    transition: border-color 0.12s, box-shadow 0.12s;
}
.guide-list-item:hover {
    border-color: var(--teal);
    box-shadow: 0 2px 10px rgba(20, 25, 35, 0.06);
}
.guide-list-item h3 { font-size: 1.05rem; margin: 0 0 0.35rem; color: var(--dark); }
.guide-list-item p { font-size: 0.9rem; color: var(--text-mid); margin: 0 0 0.5rem; }
.guide-list-meta { font-size: 0.82rem; font-weight: 600; color: var(--teal-dark); }

.guide-sources {
    margin: 2.5rem 0 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}
.guide-sources h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.guide-sources h2 a { color: var(--dark); text-decoration: none; }
.guide-sources h2 a:hover { color: var(--teal-dark); }
.guide-sources ul { margin: 0 0 1rem 1.1rem; padding-left: 1rem; }
.guide-sources li { margin-bottom: 0.5rem; font-size: 0.92rem; line-height: 1.5; }
.guide-sources-foot, .guide-hub-foot, .guide-back { margin-top: 1.25rem; font-size: 0.92rem; }
.guide-related { margin: 2rem 0 1.5rem; }
.guide-related ul { margin: 0.5rem 0 0 1.1rem; padding-left: 1rem; }
.guide-related li { margin-bottom: 0.4rem; }
.guide-note {
    font-size: 0.85rem;
    color: var(--text-mid);
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

/* ── Guide page: floating bottom toolbar + section sidebar ───── */
#roof-guide.has-guide-toolbar { padding-bottom: 78px; }
body.guide-nav-open { overflow: hidden; }

.guide-toolbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.5rem;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 14px rgba(20, 25, 35, 0.10);
    padding: 0 0.6rem;
    min-height: 56px;
}
.guide-toolbar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-dark);
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    padding: 0.45rem 0.6rem;
    cursor: pointer;
    min-width: 0;
}
.guide-toolbar-prev { justify-content: flex-start; flex: 1 1 0; }
.guide-toolbar-next { justify-content: flex-end;  flex: 1 1 0; text-align: right; }
.guide-toolbar-prev .guide-toolbar-txt { align-items: flex-start; }
.guide-toolbar-next .guide-toolbar-txt { align-items: flex-end; }
.guide-toolbar-btn:hover { color: var(--teal-dark); }
.guide-toolbar-ico { font-size: 1.15rem; line-height: 1; color: var(--teal-dark); flex: 0 0 auto; }
.guide-toolbar-txt {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
}
.guide-toolbar-kicker {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
}
.guide-toolbar-lbl {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.guide-toolbar-sections {
    flex: 0 0 auto;
    align-self: center;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--teal);
    border-radius: 999px;
    background: #f0faf8;
    color: var(--teal-dark);
    font-weight: 600;
}
.guide-toolbar-sections:hover { background: #e3f6f3; color: var(--teal-dark); }
.guide-toolbar-sections .guide-toolbar-ico { color: var(--teal-dark); }
.guide-toolbar-sections .guide-toolbar-lbl { white-space: nowrap; }
@media (max-width: 560px) {
    .guide-toolbar-prev .guide-toolbar-lbl,
    .guide-toolbar-next .guide-toolbar-lbl { display: none; }
    .guide-toolbar-sections { padding: 0.5rem 0.8rem; }
}

/* Section sidebar (slides in from the right; opened by the toolbar "Sections" button) */
.guide-section-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1035;
    background: rgba(15, 20, 30, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.guide-section-nav-backdrop.is-open { opacity: 1; }

.guide-section-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    width: min(360px, 86vw);
    background: #fff;
    box-shadow: -4px 0 22px rgba(20, 25, 35, 0.16);
    transform: translateX(100%);
    transition: transform 0.22s ease;
    display: flex;
    flex-direction: column;
}
.guide-section-nav.is-open { transform: translateX(0); }
.guide-section-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
}
.guide-section-nav-title { font-weight: 700; color: var(--dark); }
.guide-section-nav-close {
    border: none;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-mid);
    cursor: pointer;
    padding: 0.1rem 0.4rem;
}
.guide-section-nav-close:hover { color: var(--dark); }
.guide-section-nav-list {
    overflow-y: auto;
    padding: 0.5rem 0.6rem 1.5rem;
    flex: 1 1 auto;
}
.guide-section-link {
    display: block;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.35;
    border-left: 3px solid transparent;
}
.guide-section-link:hover { background: var(--light-bg); color: var(--text-dark); }
.guide-section-link.is-current {
    background: #f0faf8;
    color: var(--teal-dark);
    border-left-color: var(--teal);
    font-weight: 600;
}
.guide-section-link--top { font-weight: 700; color: var(--dark); margin-bottom: 0.25rem; }
.guide-section-link--l3 { padding-left: 1.5rem; font-size: 0.86rem; color: var(--text-mid); }

/* ── Guide page: paginated "reader" mode (one <h2> section per page) ───── */
.guide-page { margin-bottom: 0.5rem; }
.guide-page[hidden],
.guide-section-nav[hidden],
.guide-section-nav-backdrop[hidden] { display: none !important; }
@media (min-width: 700px) {
    .guide-page { min-height: 42vh; }   /* keep short sections from looking sparse */
}
.guide-page--wrapup { min-height: 0; }

/* progress bar on the toolbar */
.guide-toolbar { position: fixed; padding-top: 3px; }   /* room for the progress strip */
.guide-toolbar-progress {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--border);
}
.guide-toolbar-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    background: var(--teal);
    transition: width 0.2s ease;
}

/* the Sections button now carries the "n / m" position under the label */
.guide-toolbar-sections .guide-toolbar-txt { align-items: center; line-height: 1.15; }
.guide-toolbar-sections .guide-toolbar-kicker { color: var(--teal-dark); opacity: 0.85; }
