/* ==========================================================================
   INDUSTRY PAGES - Styles for industry-specific landing pages
   e.g. website-design-for-plumbers.html, google-ads-for-dentists.html

   These pages use a hybrid of service-page.css (hero, features, pricing, FAQ)
   and tradesmen.css (calculator, ticker, cost-of-inaction, trust strip).
   This file adds ONLY the industry-specific components not covered by either.
   ========================================================================== */

/* ==========================================================================
   VISUAL BREADCRUMBS - Shown above hero on industry/location pages
   ========================================================================== */
.breadcrumbs {
    padding: 0.6rem 0;
    margin-top: 72px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--color-border);
}
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.78rem;
}
.breadcrumbs li { display: flex; align-items: center; gap: 0.35rem; }
.breadcrumbs a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumbs a:hover { color: var(--color-accent-light); }
.breadcrumbs .bc-sep {
    color: rgba(255,255,255,0.2);
    font-size: 0.65rem;
}
.breadcrumbs .bc-current {
    color: var(--color-accent-light);
    font-weight: 500;
}

/* ==========================================================================
   INDUSTRY BADGE - Shown in hero below breadcrumb
   ========================================================================== */
.ind-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 0.75rem;
    background: rgba(116,0,206,0.1);
    border: 1px solid rgba(116,0,206,0.25);
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-accent-light);
    margin-bottom: 1.25rem;
}
.ind-badge-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* ==========================================================================
   INDUSTRY PAIN POINTS - 2-column grid with icon + text
   ========================================================================== */
.ind-pains {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}
@media (min-width: 640px) {
    .ind-pains { grid-template-columns: repeat(2, 1fr); }
}

.ind-pain-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}
.ind-pain-card:hover {
    border-color: var(--color-border-hover);
    background: var(--color-bg-card-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.ind-pain-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.ind-pain-icon--red {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.15);
}
.ind-pain-icon--amber {
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.15);
}
.ind-pain-icon--purple {
    background: var(--color-accent-glow);
    border: 1px solid rgba(116,0,206,0.15);
}

.ind-pain-card h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}
.ind-pain-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   INDUSTRY FEATURES - What we build for [industry]
   ========================================================================== */
.ind-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 480px) {
    .ind-features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .ind-features { grid-template-columns: repeat(3, 1fr); }
}

.ind-feature-card {
    padding: 1.75rem 1.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    text-align: center;
}
.ind-feature-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.ind-feature-icon {
    font-size: 2rem;
    margin-bottom: 0.85rem;
    line-height: 1;
}
.ind-feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}
.ind-feature-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   INDUSTRY STATS ROW - Key metrics
   ========================================================================== */
.ind-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 720px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}
.ind-stat {
    text-align: center;
}
.ind-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.2;
}
.ind-stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

@media (max-width: 480px) {
    .ind-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    .ind-stat {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-align: left;
    }
    .ind-stat-number { font-size: 1.35rem; }
}

/* ==========================================================================
   CROSS-LINKING - Other services for this industry
   ========================================================================== */
.ind-cross-links {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
}
.ind-cross-links h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    font-weight: 500;
}
.ind-cross-links p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}
.ind-link-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.ind-link-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
}
.ind-link-card:hover {
    border-color: var(--color-accent);
    color: var(--color-white);
    background: rgba(116,0,206,0.08);
    transform: translateY(-2px);
}

/* ==========================================================================
   INDUSTRIES HUB - Grid of industry cards
   ========================================================================== */
.ind-hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 480px) {
    .ind-hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .ind-hub-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .ind-hub-grid { grid-template-columns: repeat(4, 1fr); }
}

.ind-hub-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    text-align: center;
    text-decoration: none;
}
.ind-hub-card:hover {
    border-color: var(--color-accent);
    background: rgba(116,0,206,0.06);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}
.ind-hub-icon {
    font-size: 2.5rem;
    line-height: 1;
}
.ind-hub-card h3 {
    font-size: 1rem;
    color: var(--color-text-heading);
}
.ind-hub-card p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}
.ind-hub-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    margin-top: auto;
}
.ind-hub-services a {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all 0.2s;
}
.ind-hub-services a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent-light);
    background: rgba(116,0,206,0.08);
}

/* ==========================================================================
   RESPONSIVE - Industry page specific
   ========================================================================== */

/* ---- Small mobile (up to 480px) ---- */
@media (max-width: 480px) {
    .ind-badge { font-size: 0.72rem; padding: 0.35rem 0.85rem 0.35rem 0.6rem; }
    .ind-badge-icon { font-size: 0.95rem; }

    .ind-pain-card { padding: 1.25rem; gap: 0.85rem; }
    .ind-pain-icon { width: 42px; height: 42px; min-width: 42px; font-size: 1.25rem; }
    .ind-pain-card h3 { font-size: 0.95rem; }
    .ind-pain-card p { font-size: 0.82rem; }

    .ind-feature-card { padding: 1.5rem 1.25rem; }
    .ind-feature-icon { font-size: 1.6rem; margin-bottom: 0.65rem; }
    .ind-feature-card h3 { font-size: 0.95rem; }
    .ind-feature-card p { font-size: 0.82rem; }

    .ind-link-card { padding: 0.65rem 1.25rem; font-size: 0.85rem; }

    .ind-hub-card { padding: 1.5rem 1.25rem; }
    .ind-hub-icon { font-size: 2rem; }
}

/* ---- Tablet (481px to 768px) ---- */
@media (min-width: 481px) and (max-width: 768px) {
    .ind-pains { gap: 1rem; }
    .ind-pain-card { padding: 1.35rem; }
}

/* ==========================================================================
   COST OF INACTION - Phone mockup + math breakdown
   (Shared with tradesmen/local-businesses pages)
   ========================================================================== */
.f-cost-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .f-cost-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; } }

/* Google search mockup */
.f-phone-mock {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4); max-width: 380px; margin: 0 auto;
}
.f-phone-mock > img { width: 100%; display: block; filter: brightness(0.6); }
.f-phone-search {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    justify-content: center; padding: 2rem 1.5rem; gap: 0.5rem;
}
.f-search-bar {
    background: rgba(255,255,255,0.95); color: #333; padding: 0.7rem 1rem;
    border-radius: 24px; font-size: 0.85rem; font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); font-family: var(--font-body);
    display: flex; align-items: center; gap: 0.5rem;
}
.f-search-bar svg { width: 16px; height: 16px; flex-shrink: 0; }
.f-search-result {
    background: rgba(255,255,255,0.92); padding: 0.65rem 1rem; border-radius: var(--radius-sm);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.f-search-result strong { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: #1a0dab; font-family: var(--font-heading); }
.f-search-result strong svg { width: 14px; height: 14px; flex-shrink: 0; }
.f-search-result span { font-size: 0.7rem; color: #555; }
.f-search-competitor strong { color: #1a0dab; }
.f-search-you { border: 2px dashed var(--color-error); background: rgba(239,68,68,0.08) !important; }
.f-search-you strong { color: var(--color-error) !important; }
.f-search-you span { color: var(--color-error); }

.f-cost-content h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); line-height: 1.15; margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.f-cost-content > p { font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.7; margin-bottom: 2rem; }

/* Money math */
.f-cost-math {
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius-md); overflow: hidden; margin-bottom: 2rem;
}
.f-math-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-border);
}
.f-math-row:last-child { border-bottom: none; }
.f-math-label { font-size: 0.88rem; color: var(--color-text-muted); }
.f-math-value { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--color-text-heading); }
.f-math-total { background: rgba(116,0,206,0.08); }
.f-math-total .f-math-label { color: var(--color-text); font-weight: 600; }
.f-math-total .f-math-value { color: var(--color-accent); font-size: 1.4rem; }

/* ==========================================================================
   CALCULATOR OVERLAY
   ========================================================================== */
.calc-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(5,5,15,0.96);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-y: auto; padding: 2rem 1rem;
}
.calc-overlay.open { opacity: 1; visibility: visible; }

.calc-overlay-inner {
    width: 100%; max-width: 620px; position: relative;
}

.calc-close {
    position: fixed; top: 1.25rem; right: 1.25rem;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6); cursor: pointer;
    transition: all 0.2s; z-index: 10001;
}
.calc-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* Calculator steps */
.calc-step { display: none; animation: calcFadeIn 0.5s ease; }
.calc-step.active { display: block; }

@keyframes calcFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Calculator header */
.calc-header { text-align: center; margin-bottom: 2.5rem; }
.calc-header h2 {
    font-family: var(--font-heading); font-size: 2rem; font-weight: 700;
    color: #fff; margin-bottom: 0.75rem; line-height: 1.25;
}
.calc-header p { font-size: 1.05rem; color: rgba(255,255,255,0.6); }

/* Sliders */
.calc-sliders { display: flex; flex-direction: column; gap: 2rem; margin-bottom: 2.5rem; }
.calc-slider-group label {
    display: block; font-size: 0.95rem; color: rgba(255,255,255,0.8);
    margin-bottom: 0.85rem; font-weight: 500;
}
.calc-slider-row { display: flex; align-items: center; gap: 1.25rem; }
.calc-slider-value {
    font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700;
    color: var(--color-accent-light); min-width: 72px; text-align: right;
}

/* Custom range slider */
.calc-range {
    -webkit-appearance: none; appearance: none;
    flex: 1; height: 8px; border-radius: 999px;
    background: linear-gradient(90deg, var(--color-accent) 0%, rgba(255,255,255,0.1) 0%);
    outline: none; cursor: pointer;
}
.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--color-accent); border: 3px solid #fff;
    box-shadow: 0 0 20px rgba(116,0,206,0.5);
    cursor: grab; transition: box-shadow 0.2s;
}
.calc-range::-webkit-slider-thumb:active { cursor: grabbing; box-shadow: 0 0 30px rgba(116,0,206,0.8); }
.calc-range::-moz-range-thumb {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--color-accent); border: 3px solid #fff;
    box-shadow: 0 0 20px rgba(116,0,206,0.5); cursor: grab;
}

/* Results */
.calc-result {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md); padding: 2rem; margin-bottom: 2rem;
}
.calc-result-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 0;
}
.calc-result-row span { font-size: 1rem; color: rgba(255,255,255,0.6); }
.calc-big-number { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: #ef4444; }
.calc-result-year { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 0.5rem; padding-top: 1rem; }
.calc-result-year .calc-big-number { font-size: 2.5rem; }

/* VS comparison */
.calc-vs {
    display: flex; align-items: center; gap: 1rem;
    margin-top: 1.5rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.calc-vs-box {
    flex: 1; text-align: center; padding: 1.15rem 0.75rem;
    border-radius: var(--radius-sm);
}
.calc-vs-lose {
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
}
.calc-vs-lose strong { color: #ef4444; font-size: 1.15rem; font-weight: 700; }
.calc-vs-invest {
    background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2);
}
.calc-vs-invest strong { color: #22c55e; font-size: 1.15rem; font-weight: 700; }
.calc-vs-label { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.04em; }
.calc-vs-divider { font-size: 0.85rem; color: rgba(255,255,255,0.3); font-weight: 700; text-transform: uppercase; }

/* Next / CTA button */
.calc-next-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 100%; padding: 1.15rem; gap: 0.25rem;
    background: var(--color-accent); color: #fff; border: none; border-radius: var(--radius-sm);
    font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
    position: relative; overflow: hidden;
}
.calc-next-btn:hover { background: var(--color-accent-light); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(116,0,206,0.4); }
.calc-next-btn::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}
.calc-next-btn small { font-size: 0.75rem; font-weight: 500; opacity: 0.8; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Savings badge */
.calc-savings-badge {
    display: inline-block; padding: 0.55rem 1.25rem; border-radius: 999px;
    background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25);
    color: #ef4444; font-size: 0.88rem; margin-bottom: 1rem;
}
.calc-savings-badge strong { color: #ef4444; }

/* Calculator form */
.calc-form { max-width: 440px; margin: 0 auto; }

/* Calculator form inputs */
.f-input-group { margin-bottom: 0.7rem; position: relative; }
.f-input-group input {
    width: 100%; padding: 0.85rem 1rem; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm);
    color: var(--color-white); font-size: 0.92rem; transition: all 0.2s;
}
.f-input-group input::placeholder { color: rgba(255,255,255,0.3); }
.f-input-group input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-glow); background: rgba(116,0,206,0.05); }
.f-input-group.error input { border-color: var(--color-error); }
.f-input-group .form-error { display: none; font-size: 0.72rem; color: var(--color-error); margin-top: 0.25rem; position: absolute; right: 0; top: 0; padding: 0.2rem 0.5rem; }
.f-input-group.error .form-error { display: block; }

.f-submit-btn {
    width: 100%; padding: 1rem; background: var(--color-accent); color: var(--color-white);
    font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
    border-radius: var(--radius-sm); cursor: pointer; border: none;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: all 0.2s; position: relative; overflow: hidden;
    box-shadow: 0 6px 24px rgba(116,0,206,0.4);
}
.f-submit-btn:hover { background: var(--color-accent-light); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(116,0,206,0.5); }

.f-form-fine {
    display: flex; align-items: center; gap: 0.4rem; justify-content: center;
    font-size: 0.7rem; color: var(--color-text-muted); margin-top: 0.85rem;
}

/* Calculator success */
.calc-success { text-align: center; padding: 2rem 0; }
.calc-success h2 { font-family: var(--font-heading); font-size: 1.75rem; color: #fff; margin: 1.25rem 0 0.75rem; }
.calc-success p { font-size: 1rem; color: rgba(255,255,255,0.6); line-height: 1.7; }
.calc-success strong { color: #ef4444; }

.calc-close-btn {
    display: inline-block; margin-top: 2rem; padding: 0.75rem 2rem;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm); color: rgba(255,255,255,0.7);
    font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
}
.calc-close-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* Next steps (success screen) */
.f-next-steps {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1.75rem 0 1.5rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.f-next-step {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}
.f-next-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
}
.f-next-step > span:last-child {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    padding-top: 0.15rem;
}
