/*
 * Stud Mount Seattle — inner-page sections (about, contact, privacy, services listing,
 * service detail template). Loaded after css/base.css. Shared chrome
 * (nav/footer/buttons/cards/mobile bar/quote modal shell) lives in base.css.
 */

/* ---------- Page hero ---------- */

.page-hero {
    padding-block: clamp(40px, 5vw, 64px) clamp(32px, 4vw, 48px);
}

.breadcrumbs,
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1.1rem;
    padding: 0;
    color: var(--muted);
    font-size: 0.86rem;
    list-style: none;
}

.breadcrumbs li:not(:last-child)::after,
.breadcrumb-list li:not(:last-child)::after {
    content: "/";
    margin-left: 0.4rem;
    color: #9aa5b4;
}

.breadcrumbs a,
.breadcrumb-list a {
    color: var(--accent-strong);
    text-decoration: none;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: center;
    gap: 3rem;
}

/* .page-kicker is defined with the other eyebrow labels in base.css */

.page-title {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.15rem, 5vw, 3.4rem);
    line-height: 1.05;
    color: var(--ink);
}

.page-lead {
    max-width: 68ch;
    margin: 1.1rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.page-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.3rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.page-button:hover {
    transform: translateY(-2px);
}

.page-button.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
}

.page-button.primary:hover {
    background: linear-gradient(135deg, var(--accent-strong), var(--accent-strong));
    box-shadow: 0 7px 14px rgba(232, 68, 46, 0.35);
}

.page-button.secondary {
    border-color: var(--line);
    background: #ffffff;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.page-button.secondary:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.hero-proof {
    position: relative;
    padding: 1.6rem;
    border-radius: var(--radius-lg);
    background: var(--surface-dark);
    color: var(--on-dark-muted);
    box-shadow: var(--shadow-dark);
    overflow: hidden;
}

.hero-proof::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -70px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(232, 68, 46, 0.16);
}

.hero-proof-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #ffffff;
    font-size: 1.4rem;
}

.hero-proof h2 {
    position: relative;
    z-index: 1;
    margin: 1.1rem 0 0.5rem;
    color: #ffffff;
    font-size: 1.3rem;
}

.hero-proof p {
    position: relative;
    z-index: 1;
    margin: 0;
}

.proof-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.65rem;
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
}

.proof-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.5;
}

.proof-list i {
    color: var(--accent-strong);
}

.proof-list a {
    color: inherit;
}

/* ---------- Generic page sections ----------
   .page-section / .section-heading live in base.css (shared with the home
   page); only the inner-page components stay here. */

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.content-card {
    display: block;
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

a.content-card:hover {
    border-color: rgba(232, 68, 46, 0.4);
    transform: translateY(-3px);
}

.content-card i {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 1.15rem;
}

.content-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.02rem;
    color: var(--ink);
}

.content-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    align-items: start;
    gap: 2.2rem;
}

.prose h2 {
    margin: 0 0 0.9rem;
    font-size: clamp(1.7rem, 3.6vw, 2.3rem);
    color: var(--ink);
}

.prose h2:not(:first-child) {
    margin-top: 1.8rem;
}

.prose h3 {
    margin: 1.6rem 0 0.5rem;
    font-size: 1.15rem;
    color: var(--ink);
}

.prose p {
    margin: 0 0 1rem;
    color: var(--muted);
    line-height: 1.75;
}

.prose a {
    color: var(--accent-strong);
    font-weight: 600;
}

.check-list {
    display: grid;
    gap: 0.7rem;
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    gap: 0.6rem;
    color: var(--ink);
    line-height: 1.55;
}

.check-list i {
    flex: none;
    margin-top: 0.2rem;
    color: var(--accent-strong);
}

.side-panel {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--surface-dark);
    color: var(--on-dark-muted);
    box-shadow: var(--shadow-dark);
}

.side-panel h2 {
    margin: 0 0 0.6rem;
    color: #ffffff;
    font-size: 1.25rem;
}

.side-panel p {
    margin: 0 0 1rem;
    line-height: 1.6;
}

.side-panel .page-button {
    width: 100%;
    margin-top: 0.5rem;
}

.side-panel .page-button.secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--line-dark);
    color: #ffffff;
    box-shadow: none;
}

.side-panel .page-button.secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* ---------- Process grid ---------- */

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    counter-reset: steps;
}

.process-card {
    position: relative;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    counter-increment: steps;
}

.process-card::before {
    content: "[ " counter(steps, decimal-leading-zero) " ]";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.6rem;
    margin-bottom: 0.9rem;
    border: 1px solid var(--steel);
    border-radius: var(--radius-sm);
    color: var(--steel-strong);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
}

.process-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.02rem;
    color: var(--ink);
}

.process-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

/* ---------- FAQ (details/summary) ---------- */

.faq-list {
    display: grid;
    gap: 0.7rem;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #ffffff;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.05rem 1.15rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    float: right;
    color: var(--accent-strong);
    font-size: 1.2rem;
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-item[open] summary {
    color: var(--accent-strong);
}

.faq-answer {
    padding: 0 1.15rem 1.1rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ---------- Related / service cards ---------- */

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.related-card {
    display: block;
    padding: 1.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.related-card:hover {
    border-color: rgba(232, 68, 46, 0.45);
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(232, 68, 46, 0.12);
}

.related-card span {
    color: var(--accent-strong);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.related-card i {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 1.1rem;
    transition: transform 0.3s var(--ease);
}

.related-card:hover i {
    transform: scale(1.15) rotate(5deg);
}

.related-card h3 {
    margin: 0.3rem 0 0;
    font-size: 1.02rem;
    color: var(--ink);
}

/* Scroll-reveal: hidden only once js/ui-refresh.js confirms it's running
   (html.js-reveal), so cards stay fully visible if JS fails/is disabled.
   Uses the standalone `translate` property (not `transform`) so it doesn't
   fight with the :hover/:active transform rules on these same cards. */
html.js-reveal .content-card,
html.js-reveal .process-card,
html.js-reveal .related-card {
    opacity: 0;
    translate: 0 16px;
    transition: opacity 0.5s var(--ease), translate 0.5s var(--ease);
}

html.js-reveal .content-card.is-visible,
html.js-reveal .process-card.is-visible,
html.js-reveal .related-card.is-visible {
    opacity: 1;
    translate: 0 0;
}

.related-card p {
    margin: 0.6rem 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.two-column > aside .related-grid {
    grid-template-columns: 1fr;
}

/* ---------- Page CTA ---------- */

.page-cta {
    padding: 2.1rem;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(232, 68, 46, 0.24), transparent 30%),
        var(--surface-dark);
    color: var(--on-dark-muted);
    box-shadow: var(--shadow-dark);
}

.page-cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
}

.page-cta h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

.page-cta p {
    margin: 0.6rem 0 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
    .page-hero-grid,
    .two-column {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }

    .content-grid,
    .related-grid,
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .hero-actions,
    .page-cta-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .page-button,
    .page-cta .page-button {
        width: 100%;
    }

    .content-grid,
    .related-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .page-cta {
        padding: 1.5rem;
    }
}
