/* Services / packages page — aligned to main design system */

.services-hero {
    position: relative;
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 3rem;
    overflow: hidden;
}

.page-sec { padding: var(--section-y) 0; }
.page-wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.pricing-header {
    margin-bottom: 3rem;
    max-width: 560px;
}

.pricing-header .lead { margin-top: 0.85rem; }

#packages { background: var(--bg); }

.pkg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.pkg {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-shadow: none;
}

.pkg:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.pkg.feat {
    background: var(--bg-dark);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-md);
}

body[data-theme="dark"] .pkg.feat {
    background: #0F766E;
}

body[data-theme="dark"] .pkg {
    background: var(--bg-elevated);
}

body[data-theme="dark"] #packages {
    background: var(--bg);
}

.pkg-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-orange);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.pkg-sku {
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 0.4rem;
}

.pkg.feat .pkg-sku { color: rgba(255, 255, 255, 0.5); }

.pkg-icon {
    font-size: 1.5rem;
    margin-bottom: 0.85rem;
    color: var(--accent);
}

.pkg.feat .pkg-icon { color: rgba(255, 255, 255, 0.7); }

.pkg h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 650;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.pkg.feat h3 { color: #fff; }

.pkg-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0.85rem 0 0.4rem;
}

.pkg.feat .pkg-price { color: #fff; }

.pkg-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.pkg.feat .pkg-desc { color: rgba(255, 255, 255, 0.62); }

.pkg-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 1.25rem;
}

.pkg.feat .pkg-divider { background: rgba(255, 255, 255, 0.12); }

.pkg-feat-label {
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 0.85rem;
}

.pkg.feat .pkg-feat-label { color: rgba(255, 255, 255, 0.45); }

.pkg-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
    margin-bottom: 1.5rem;
    padding: 0;
}

.pkg-items li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.45;
}

.pkg.feat .pkg-items li { color: rgba(255, 255, 255, 0.88); }

.pkg-items li .chk {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.pkg-items li .chk i { color: var(--accent); font-size: 0.55rem; }
.pkg.feat .pkg-items li .chk { background: rgba(255, 255, 255, 0.12); }
.pkg.feat .pkg-items li .chk i { color: #fff; }

.pkg-btn {
    display: block;
    width: 100%;
    padding: 0.95rem;
    border-radius: var(--radius-md);
    font-weight: 650;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

/* Featured card CTA — fixed contrast regardless of theme toggle */
.pkg-btn.p {
    background: #fff;
    color: #0B0D10;
}

.pkg-btn.p:hover {
    background: #F4F4F5;
    color: #0B0D10;
    transform: translateY(-1px);
}

.pkg-btn.g {
    background: transparent;
    border: 1.5px solid var(--border-strong);
    color: var(--text);
}

.pkg-btn.g:hover {
    border-color: var(--text);
    background: var(--bg-muted);
}

.pkg.feat .pkg-btn.g {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.pkg.feat .pkg-btn.g:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.pkg-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.pkg-note i {
    color: var(--color-orange) !important;
}

/* CTA uses shared .cta-band from style.css — keep in sync with portfolio */
#cta.cta-band {
    background: var(--color-teal);
}

body[data-theme="dark"] #cta.cta-band {
    background: #0F766E;
}

.cta-shell {
    position: relative;
    max-width: 880px;
    margin-inline: auto;
    padding: clamp(1rem, 3vw, 1.5rem) 0;
}

.cta-inner {
    text-align: left;
    max-width: 640px;
}

.cta-label {
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.85rem;
    display: block;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 650;
    color: #fff;
    margin-bottom: 0.85rem;
    letter-spacing: -0.03em;
}

.cta-sub {
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.65;
    margin-bottom: 1.75rem;
    max-width: 42ch;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.5rem;
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--text);
    font-weight: 650;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cta-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.4rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-weight: 650;
    cursor: pointer;
    font-family: inherit;
    background: transparent;
    transition: background var(--transition-fast);
}

.cta-link:hover { background: rgba(255, 255, 255, 0.08); }

/* Quote modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
    touch-action: none;
}

.modal[aria-hidden="false"] { display: flex; }

.quote-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.quote-modal__dialog {
    position: relative;
    background: var(--bg);
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 2rem;
    margin: 20px auto;
    z-index: 1;
    animation: modalIn 0.3s var(--ease);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.quote-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.quote-close-button, .quote-back-button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-family: inherit;
}

.quote-close-button { font-size: 1.35rem; padding: 0.35rem; }
.quote-back-button { font-size: 0.95rem; font-weight: 650; display: flex; align-items: center; gap: 0.4rem; }
.quote-back-spacer { width: 56px; }
.is-hidden { display: none !important; }

.quote-progress {
    display: flex;
    gap: 0.45rem;
    flex: 1;
    justify-content: center;
    margin: 0 0.75rem;
}

.quote-progress__bar {
    height: 2px;
    width: 36px;
    background: var(--border);
    border-radius: 2px;
    transition: background 0.3s;
}

.quote-progress__bar.is-active { background: var(--text); }

.quote-modal__intro { text-align: center; margin-bottom: 2rem; }

.quote-modal__step-counter {
    font-size: 0.75rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-subtle);
    margin-bottom: 0.85rem;
}

.quote-modal__package-note {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--bg-muted);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    flex-wrap: wrap;
    justify-content: center;
}

.quote-modal__package-note span {
    background: var(--color-orange);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
}

.quote-modal__package-note strong { font-size: 0.92rem; }
.quote-modal__package-note small { color: var(--text-muted); }

.quote-step { display: none; animation: stepFadeIn 0.3s ease; }
.quote-step.is-active { display: block; }

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: none; }
}

.quote-step h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 650;
    text-align: center;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.quote-step > p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.quote-option-list { display: flex; flex-direction: column; gap: 0.85rem; }

.quote-option-button {
    width: 100%;
    text-align: left;
    padding: 1.1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: inherit;
    color: var(--text);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.quote-option-button:hover {
    border-color: var(--text);
    background: var(--bg-muted);
}

.quote-option-button__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.quote-option-button__icon--teal { background: var(--accent-soft); color: var(--accent); }
.quote-option-button__icon--orange { background: rgba(10, 10, 10, 0.06); color: var(--text); }

body[data-theme="dark"] .quote-option-button__icon--orange {
    background: rgba(255, 255, 255, 0.08);
}

.quote-option-button__text { font-weight: 650; font-size: 0.98rem; line-height: 1.35; }

.quote-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.quote-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.85rem; }
.quote-field span { font-weight: 550; font-size: 0.85rem; }

.quote-field input,
.quote-field textarea {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}

.quote-field textarea { min-height: 100px; resize: vertical; }

.quote-field input:focus,
.quote-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

body[data-theme="dark"] .quote-field input:focus,
body[data-theme="dark"] .quote-field textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}

.quote-field--full { grid-column: 1 / -1; }

.quote-primary-button {
    width: 100%;
    padding: 0.95rem;
    background: var(--color-teal);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.98rem;
    font-weight: 650;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    text-decoration: none;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.quote-primary-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    color: #fff;
}

body[data-theme="dark"] .quote-primary-button:hover {
    color: #0B0D10;
}

.quote-secondary-button {
    width: 100%;
    padding: 0.95rem;
    background: transparent;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    font-weight: 650;
    cursor: pointer;
    font-family: inherit;
    color: var(--text);
    margin-bottom: 0.65rem;
}

.quote-lead-form__note {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.85rem;
}

.quote-success { text-align: center; padding: 1.5rem 0; }
.quote-success__icon { font-size: 3rem; color: var(--accent); margin-bottom: 1rem; }
.quote-success__eyebrow { font-size: 0.75rem; font-weight: 650; text-transform: uppercase; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.quote-success h3 { font-family: var(--font-display); font-size: 1.65rem; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.quote-success p { color: var(--text-muted); margin-bottom: 1.75rem; line-height: 1.6; }

/* Service-page quote modal — dark mode polish */
body[data-theme="dark"] .quote-modal__backdrop {
    background: rgba(0, 0, 0, 0.72);
}

body[data-theme="dark"] .quote-modal__dialog {
    border: 1px solid var(--border);
}

body[data-theme="dark"] .quote-progress__bar.is-active {
    background: var(--accent);
}

body[data-theme="dark"] .quote-option-button:hover {
    border-color: var(--accent);
}

body[data-theme="dark"] .quote-secondary-button:hover {
    border-color: var(--accent);
    background: var(--bg-muted);
}

[data-r] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-r].on { opacity: 1; transform: none; }

@media (max-width: 860px) {
    .pkg-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: 0; }
}

@media (max-width: 680px) {
    .quote-form-grid { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; width: 100%; }
    .cta-btn, .cta-link { width: 100%; justify-content: center; }
}
