/* ============================================================
   WHEELCHAIR RAMP COST CALCULATOR — PAGE TEMPLATE STYLES
   Prefix: wrctp- (unique, no collision with plugin wrc-)
   Visual theme: blueprint / construction / measurement feel
   ============================================================ */

/* ── Page Header — blueprint-style dark green ────────────── */
.wrctp-page-header {
    background: linear-gradient(150deg, #1a4d38 0%, #0f3326 60%, #1a3a2e 100%);
    padding: 56px 0 0;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Blueprint grid overlay */
.wrctp-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Diagonal accent stripe at the bottom of the header */
.wrctp-page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    clip-path: polygon(0 100%, 100% 100%, 100% 30%, 0 100%);
}

.wrctp-header-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-bottom: 48px;
}

.wrctp-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.wrctp-hero-badge {
    display: inline-block;
    background: #F4A835;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 4px;
}

.wrctp-hero-rule {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.15);
    max-width: 200px;
}

.wrctp-hero-h1 {
    font-family: 'Lora', Georgia, serif !important;
    font-size: clamp(26px, 5vw, 40px) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
    margin-top: 0 !important;
}

.wrctp-hero-h1 span {
    color: #F4A835;
}

.wrctp-hero-sub {
    font-size: 16px !important;
    color: rgba(255,255,255,0.82) !important;
    line-height: 1.75 !important;
    max-width: 640px !important;
    margin-bottom: 28px !important;
    margin-top: 0 !important;
}

/* ── Header stats strip ───────────────────────────────────── */
.wrctp-header-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 4px;
}

.wrctp-header-stat {
    display: flex;
    flex-direction: column;
    padding: 16px 28px 16px 0;
    margin-right: 28px;
    border-right: 1px solid rgba(255,255,255,0.12);
}

.wrctp-header-stat:last-child {
    border-right: none;
}

.wrctp-header-stat-num {
    font-family: 'Lora', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    color: #F4A835;
    line-height: 1;
    margin-bottom: 4px;
}

.wrctp-header-stat-lbl {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    white-space: nowrap;
}

/* ── Main wrapper ─────────────────────────────────────────── */
.wrctp-wrap {
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ── Intro strip above tool ───────────────────────────────── */
.wrctp-intro-strip {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 44px 0 36px;
    border-bottom: 1px solid #E2E8F0;
}

.wrctp-intro-text { flex: 1; min-width: 0; }

.wrctp-intro-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #2E7D5E;
    background: #E8F5F0;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.wrctp-intro-h2 {
    font-family: 'Lora', Georgia, serif !important;
    font-size: clamp(20px, 3.5vw, 26px) !important;
    font-weight: 700 !important;
    color: #1A1A2E !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
    margin-top: 0 !important;
}

.wrctp-intro-p {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.85;
    margin-bottom: 14px;
    margin-top: 0;
    max-width: 100%;
}

.wrctp-intro-side {
    flex-shrink: 0;
    width: 220px;
    background: linear-gradient(135deg, #1a4d38, #2E7D5E);
    border-radius: 14px;
    padding: 24px 20px;
    color: #ffffff;
}

.wrctp-side-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wrctp-side-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.wrctp-side-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.88);
    line-height: 1.45;
    margin: 0;
    padding: 0;
}

.wrctp-side-list li::before {
    content: '→';
    color: #F4A835;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Tool embed section ───────────────────────────────────── */
.wrctp-tool-section {
    padding: 40px 0;
    border-bottom: 3px solid #E2E8F0;
}

.wrctp-tool-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.wrctp-tool-label-text {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2E7D5E;
}

.wrctp-tool-label-line {
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

/* ── Shared section ───────────────────────────────────────── */
.wrctp-section {
    padding: 52px 0;
    border-bottom: 1px solid #E2E8F0;
}

.wrctp-section:last-child { border-bottom: none; }

.wrctp-section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #2E7D5E;
    background: #E8F5F0;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.wrctp-section-h2 {
    font-family: 'Lora', Georgia, serif !important;
    font-size: clamp(21px, 3.5vw, 28px) !important;
    font-weight: 700 !important;
    color: #1A1A2E !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
    margin-top: 0 !important;
}

.wrctp-section-lead {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.8;
    max-width: 720px;
    margin-bottom: 32px;
    margin-top: 0;
}

.wrctp-body-text {
    font-size: 15px;
    color: #1A1A2E;
    line-height: 1.85;
    max-width: 720px;
    margin-bottom: 16px;
    margin-top: 0;
}

/* ── ADA rule explainer ───────────────────────────────────── */
.wrctp-ada-box {
    display: flex;
    gap: 0;
    border: 2px solid #2E7D5E;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 28px;
}

.wrctp-ada-left {
    background: #2E7D5E;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    text-align: center;
}

.wrctp-ada-ratio {
    font-family: 'Lora', Georgia, serif;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 6px;
}

.wrctp-ada-ratio-lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.75);
}

.wrctp-ada-right {
    padding: 24px 28px;
    background: #E8F5F0;
    flex: 1;
}

.wrctp-ada-right h3 {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1A1A2E !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
}

.wrctp-ada-right p {
    font-size: 14px !important;
    color: #6B7280 !important;
    line-height: 1.75 !important;
    margin: 0 0 8px !important;
}

.wrctp-ada-right p:last-child { margin-bottom: 0 !important; }

/* ── Cost comparison cards ────────────────────────────────── */
.wrctp-cost-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.wrctp-cost-card {
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.wrctp-cost-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-color: #2E7D5E;
}

.wrctp-cost-card-header {
    padding: 16px 20px 12px;
    border-bottom: 1px solid #E2E8F0;
    background: #f9fafb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wrctp-cost-card-icon { font-size: 28px; flex-shrink: 0; }

.wrctp-cost-card-header h3 {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1A1A2E !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.wrctp-cost-card-body { padding: 16px 20px; }

.wrctp-cost-range {
    font-family: 'Lora', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #2E7D5E;
    margin-bottom: 4px;
    display: block;
}

.wrctp-cost-unit {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 10px;
    display: block;
}

.wrctp-cost-card-body p {
    font-size: 13px !important;
    color: #6B7280 !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}

.wrctp-cost-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.wrctp-tag-green  { background:#DCFCE7; color:#15803d; }
.wrctp-tag-amber  { background:#FEF3C7; color:#92400e; }
.wrctp-tag-blue   { background:#DBEAFE; color:#1d4ed8; }
.wrctp-tag-purple { background:#F3E8FF; color:#7c3aed; }
.wrctp-tag-gray   { background:#F3F4F6; color:#374151; }

/* ── Factors to consider ──────────────────────────────────── */
.wrctp-factors {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.wrctp-factor {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 20px 22px;
    border-radius: 12px;
    border: 1.5px solid #E2E8F0;
    background: #ffffff;
    transition: border-color 0.2s;
}

.wrctp-factor:hover { border-color: #2E7D5E; }

.wrctp-factor-num {
    font-family: 'Lora', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: #E8F5F0;
    -webkit-text-stroke: 2px #2E7D5E;
    line-height: 1;
    flex-shrink: 0;
    min-width: 40px;
    text-align: center;
}

.wrctp-factor-body { flex: 1; min-width: 0; }

.wrctp-factor-body h3 {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1A1A2E !important;
    margin-bottom: 6px !important;
    margin-top: 0 !important;
}

.wrctp-factor-body p {
    font-size: 14px !important;
    color: #6B7280 !important;
    line-height: 1.75 !important;
    margin: 0 !important;
}

/* ── Permit section ───────────────────────────────────────── */
.wrctp-permit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.wrctp-permit-card {
    border-radius: 12px;
    padding: 20px 18px;
    text-align: center;
    border: 1.5px solid;
}

.wrctp-permit-rarely  { background:#EFFAF3; border-color:#6EE7B7; }
.wrctp-permit-often   { background:#FEF3C7; border-color:#FCD34D; }
.wrctp-permit-always  { background:#FEE2E2; border-color:#FECACA; }

.wrctp-permit-icon { font-size: 28px; display:block; margin-bottom:8px; }

.wrctp-permit-card h3 {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1A1A2E !important;
    margin-bottom: 6px !important;
    margin-top: 0 !important;
}

.wrctp-permit-card p {
    font-size: 12px !important;
    color: #6B7280 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ── Callouts ─────────────────────────────────────────────── */
.wrctp-callout {
    padding: 18px 22px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.7;
    margin-top: 24px;
    margin-bottom: 0;
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.wrctp-callout-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }

.wrctp-callout-green { background:#E8F5F0; border-color:#6EE7B7; color:#064e3b; }
.wrctp-callout-amber { background:#FFFBEB; border-color:#FCD34D; color:#78350f; }

.wrctp-callout p {
    font-size: 14px !important;
    color: inherit !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

/* ── Stats section ────────────────────────────────────────── */
.wrctp-stats-section {
    background: linear-gradient(150deg, #1a4d38 0%, #0f3326 100%);
    border-radius: 16px;
    padding: 44px 40px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.wrctp-stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.wrctp-stats-section .wrctp-section-label {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.wrctp-stats-section .wrctp-section-h2 {
    color: #ffffff !important;
    position: relative;
    z-index: 1;
}

.wrctp-stats-section .wrctp-section-lead {
    color: rgba(255,255,255,0.8) !important;
    position: relative;
    z-index: 1;
}

.wrctp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    position: relative;
    z-index: 1;
}

.wrctp-stat-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
}

.wrctp-stat-big {
    font-family: 'Lora', Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    color: #F4A835;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.wrctp-stat-box p {
    font-size: 13px !important;
    color: rgba(255,255,255,0.75) !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.wrctp-faq-list {
    display: flex;
    flex-direction: column;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.wrctp-faq-item { border-bottom: 1px solid #E2E8F0; }
.wrctp-faq-item:last-child { border-bottom: none; }

.wrctp-faq-q {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    background: #ffffff;
    border: none;
    cursor: pointer;
    font-family: 'Lora', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #1A1A2E;
    text-align: left;
    line-height: 1.4;
    transition: background 0.18s;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.wrctp-faq-q:hover { background: #f9fafb; }
.wrctp-faq-q[aria-expanded="true"] { background: #E8F5F0; color: #2E7D5E; }
.wrctp-faq-q:focus-visible { outline: 2px solid #2E7D5E; outline-offset: -2px; }

.wrctp-faq-icon { flex-shrink:0; color:#2E7D5E; display:flex; align-items:center; }

.wrctp-faq-a {
    padding: 0 22px 20px;
    background: #f9fafb;
    border-top: 1px solid #E2E8F0;
}

.wrctp-faq-a[hidden] { display: none; }

.wrctp-faq-a p {
    font-size: 15px !important;
    color: #6B7280 !important;
    line-height: 1.85 !important;
    margin: 16px 0 0 !important;
}

.wrctp-faq-cta { font-size:15px; color:#6B7280; text-align:center; padding:4px 0; }
.wrctp-faq-cta a { color:#2E7D5E; font-weight:600; text-decoration:underline; }

/* ── Bottom CTA ───────────────────────────────────────────── */
.wrctp-bottom-cta {
    background: linear-gradient(150deg, #F4A835 0%, #d4922b 100%);
    border-radius: 16px;
    padding: 44px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wrctp-bottom-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.06'%3E%3Cpath d='M20 20.5V18H0v5h5v5H0v5h20v-9.5zm-2 4.5h-1v-1h1v1zm1-10V14H0v2h19v-1zm-1 6h-1v-1h1v1z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.wrctp-bottom-cta h2 {
    font-family: 'Lora', Georgia, serif !important;
    font-size: clamp(20px, 3.5vw, 27px) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 10px !important;
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
}

.wrctp-bottom-cta p {
    font-size: 15px !important;
    color: rgba(255,255,255,0.88) !important;
    margin-bottom: 22px !important;
    margin-top: 0 !important;
    line-height: 1.7 !important;
    position: relative;
    z-index: 1;
}

.wrctp-cta-btn {
    display: inline-block;
    background: #1a4d38;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 34px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
    position: relative;
    z-index: 1;
}

.wrctp-cta-btn:hover {
    background: #0f3326;
    color: #ffffff !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .wrctp-intro-strip   { flex-direction: column; }
    .wrctp-intro-side    { width: 100%; }
    .wrctp-cost-grid     { grid-template-columns: 1fr; }
    .wrctp-stats-grid    { grid-template-columns: 1fr 1fr; }
    .wrctp-permit-grid   { grid-template-columns: 1fr; }
    .wrctp-stats-section { padding: 32px 24px; }
    .wrctp-bottom-cta    { padding: 32px 22px; }
    .wrctp-header-stats  { gap: 0; }
    .wrctp-header-stat   { padding: 12px 20px 12px 0; margin-right: 20px; }
}

@media (max-width: 480px) {
    .wrctp-page-header   { padding: 36px 0 0; }
    .wrctp-wrap          { padding-left: 16px; padding-right: 16px; }
    .wrctp-stats-grid    { grid-template-columns: 1fr; }
    .wrctp-section       { padding: 36px 0; }
    .wrctp-ada-box       { flex-direction: column; }
    .wrctp-ada-left      { min-width: auto; padding: 20px; }
    .wrctp-factor        { flex-direction: column; gap: 10px; }
    .wrctp-factor-num    { font-size: 24px; min-width: auto; }
}
