/* ==========================================================================
   C2 Land Works — additions.css
   Styles for generated pages: service pages, service-area pages, service map,
   estimator. Uses the design tokens already defined in styles.css :root.
   ========================================================================== */

/* ---------------------------------------------------------- breadcrumbs */
.crumbs {
    background: var(--dark-800);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--header-height);
}
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.crumbs .crumb-sep { color: var(--text-dim); margin: 0 0.15rem; }
.crumbs [aria-current] { color: var(--text-light); }
@media (max-width: 900px) { .crumbs { margin-top: var(--header-height-mobile); } }

/* ------------------------------------------------------------ page hero */
.page-hero {
    position: relative;
    background: var(--gradient-dark);
    padding: 4.5rem 0 3.5rem;
    border-bottom: 1px solid var(--border);
}
.page-hero.compact { padding: 3rem 0 2rem; }
.page-hero-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    z-index: 0;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .eyebrow {
    color: var(--primary);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}
.page-hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.9rem, 5vw, 3rem);
    line-height: 1.1;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.lede { font-size: 1.06rem; line-height: 1.7; color: var(--text-light); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }

/* --------------------------------------------------------------- prose */
.prose-section { padding: 3.25rem 0; background: var(--dark-900); }
.prose-section.alt { background: var(--dark-800); }
.prose { max-width: 72ch; }
.prose h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    color: var(--text-white);
    margin: 2.2rem 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-light); line-height: 1.8; margin-bottom: 1rem; }
.notes { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.notes li {
    position: relative;
    padding: 0.85rem 0 0.85rem 1.6rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
    line-height: 1.7;
}
.notes li::before {
    content: '';
    position: absolute;
    left: 0; top: 1.45rem;
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 2px;
}
.muted { color: var(--text-muted); font-size: 0.92rem; margin-top: 1.25rem; }
.muted a { color: var(--primary); text-decoration: none; }
.muted a:hover { text-decoration: underline; }

/* ------------------------------------------------------------- projects */
.proj-section { padding: 3.25rem 0; background: var(--dark-800); }
.proj-section h2, .linkgrid-section h2, .tiers-section h2, .faq-section h2, .map-teaser h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--text-white);
    text-transform: uppercase;
    margin-bottom: 1.4rem;
}
.proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.1rem;
}
.proj-card {
    margin: 0;
    background: var(--dark-700);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.proj-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.proj-card figcaption { padding: 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.proj-card strong { color: var(--text-white); font-size: 0.95rem; }
.proj-card span { color: var(--text-muted); font-size: 0.85rem; }

/* ------------------------------------------------------------ link grids */
.linkgrid-section { padding: 3rem 0; background: var(--dark-900); }
.linkgrid-section.alt { background: var(--dark-800); }
.linkgrid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.linkgrid a {
    display: inline-block;
    padding: 0.6rem 1rem;
    background: var(--dark-700);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.linkgrid a:hover { border-color: var(--primary); color: var(--primary); }

.svc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.svc-card {
    display: block;
    padding: 1.4rem;
    background: var(--dark-700);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
}
.svc-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.svc-card h3 { font-family: 'Oswald', sans-serif; color: var(--text-white); margin-bottom: 0.5rem; font-size: 1.05rem; }
.svc-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.75rem; }
.svc-card-go { color: var(--primary); font-size: 0.85rem; font-weight: 600; }

/* ------------------------------------------------------------------ FAQ */
.faq-section { padding: 3.25rem 0; background: var(--dark-900); }
.faq-list { max-width: 76ch; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--dark-700);
    margin-bottom: 0.6rem;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    padding: 1rem 1.2rem;
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.97rem;
    list-style: none;
    position: relative;
    padding-right: 2.75rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.2rem; top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.35rem;
    line-height: 1;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 1.2rem 1.15rem; color: var(--text-light); line-height: 1.75; margin: 0; }

/* ------------------------------------------------------------ CTA band */
.cta-band { padding: 3.25rem 0; background: var(--gradient-primary); text-align: center; }
.cta-band h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}
.cta-band p { color: rgba(255,255,255,0.94); margin-bottom: 1.4rem; }
.cta-band-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-primary { background: #111; color: #fff; border-color: #111; }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band-hours { font-size: 0.85rem; margin-top: 1.2rem; margin-bottom: 0; opacity: 0.9; }

/* ----------------------------------------------------------- tier cards */
.tiers-section { padding: 3rem 0; background: var(--dark-800); }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.tier-card {
    padding: 1.4rem;
    background: var(--dark-700);
    border: 1px solid var(--border);
    border-left: 4px solid var(--tier, var(--primary));
    border-radius: var(--radius-md);
}
.tier-card h3 { font-family: 'Oswald', sans-serif; color: var(--text-white); margin-bottom: 0.35rem; }
.tier-radius { color: var(--tier, var(--primary)); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.6rem; }
.tier-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* ------------------------------------------------------------- map page */
.map-section { padding: 2rem 0 3.5rem; background: var(--dark-900); }
.map-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.map-tool {
    background: var(--dark-700);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.1rem;
}
.map-tool label { display: block; color: var(--text-white); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.55rem; }
.addr-row { display: flex; gap: 0.5rem; }
.addr-row input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.85rem;
    background: var(--dark-900);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-size: 0.95rem;
}
.addr-row input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.measure-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.addr-result { margin-top: 0.7rem; font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; min-height: 1.2em; }
.addr-result.ok { color: var(--accent); }
.addr-result.warn { color: #ffb300; }
.addr-result.err { color: #ff5252; }
.addr-result strong { color: var(--text-white); }

.map-layers { display: flex; flex-wrap: wrap; gap: 1rem; padding: 0.85rem 0; font-size: 0.9rem; color: var(--text-light); }
.map-layers label { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.map-layers input { accent-color: var(--primary); width: 1.05rem; height: 1.05rem; }

.map-canvas {
    height: 520px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--dark-700);
    z-index: 1;
}
@media (max-width: 700px) { .map-canvas { height: 62vh; min-height: 380px; } }

.map-note { margin-top: 0.75rem; font-size: 0.85rem; color: #ffb300; }
.map-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.9rem; font-size: 0.83rem; color: var(--text-muted); }
.legend-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.legend-item i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.legend-item i.legend-pin { background: var(--primary); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }

.disclaimer {
    margin-top: 1rem;
    background: var(--dark-800);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
}
.disclaimer summary { cursor: pointer; color: var(--text-light); font-size: 0.9rem; font-weight: 600; }
.disclaimer p { color: var(--text-muted); font-size: 0.86rem; line-height: 1.65; margin: 0.75rem 0 0; }
.disclaimer strong { color: var(--text-light); }

.map-teaser { padding: 3rem 0; background: var(--dark-800); text-align: center; }
.map-teaser p { color: var(--text-muted); max-width: 60ch; margin: 0 auto 1.3rem; line-height: 1.7; }

/* Leaflet popup theming */
.leaflet-popup-content-wrapper { background: var(--dark-700); color: var(--text-light); border-radius: var(--radius-md); }
.leaflet-popup-tip { background: var(--dark-700); }
.leaflet-popup-content { margin: 0.85rem 1rem; font-size: 0.88rem; }
.leaflet-popup-content img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 0.5rem; }
.leaflet-popup-content h4 { color: var(--text-white); font-family: 'Oswald', sans-serif; margin-bottom: 0.2rem; }
.leaflet-popup-content a { color: var(--primary); }
.leaflet-container { font-family: 'Inter', sans-serif; }

/* ------------------------------------------------------------- estimator */
.est-section { padding: 2.5rem 0 3.5rem; background: var(--dark-900); }
.est-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .est-grid { grid-template-columns: 1fr; } }
.est-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    background: var(--dark-700);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.4rem;
}
.est-field label { display: block; color: var(--text-white); font-size: 0.88rem; font-weight: 600; margin-bottom: 0.4rem; }
.est-field .hint { display: block; font-weight: 400; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }
.est-field .hint a { color: var(--primary); }
.est-field select, .est-field input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    background: var(--dark-900);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-size: 0.92rem;
}
.est-field select:focus, .est-field input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

.est-result {
    background: var(--dark-700);
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}
@media (max-width: 860px) { .est-result { position: static; } }
.est-placeholder { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }
.est-range {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.6rem, 5vw, 2.3rem);
    color: var(--primary);
    line-height: 1.1;
    margin: 0.25rem 0 0.35rem;
}
.est-label { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; }
.est-peracre { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1rem; }
.est-breakdown { list-style: none; padding: 0; margin: 0 0 1rem; border-top: 1px solid var(--border); }
.est-breakdown li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.est-breakdown li span:last-child { color: var(--text-light); white-space: nowrap; }
.est-caveat { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.est-actions { display: flex; flex-direction: column; gap: 0.5rem; }

/* ----------------------------------------------------------- sticky call */
.sticky-call {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    background: var(--gradient-primary);
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 0.9rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.45);
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.sticky-call svg { width: 20px; height: 20px; }
@media (max-width: 768px) {
    .sticky-call { display: flex; }
    body { padding-bottom: 56px; }
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

@media (prefers-reduced-motion: reduce) {
    .svc-card, .linkgrid a { transition: none; }
    .svc-card:hover { transform: none; }
}
