.page-services {
    width: 100%;
    background:
        linear-gradient(180deg, #fffdfb 0%, #fff5ee 32%, #ffefe4 100%);
    min-height: 100vh;
    margin-top: -150px;
    padding: 230px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-services::before {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    top: -300px;
    right: -120px;
    background: radial-gradient(circle, rgba(222, 115, 67, 0.18), rgba(222, 115, 67, 0));
    pointer-events: none;
}

.page-services .container {
    position: relative;
    z-index: 1;
}

.services-header {
    padding: 0 20px 40px;
    color: var(--color-dark);
}

.services-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--color-dark);
    font-weight: 800;
}

.services-header p {
    font-size: 1.2rem;
    color: var(--color-text-soft);
    font-weight: 500;
}

.services-note,
.services-quote-banner {
    display: block;
}

.services-quote-banner {
    width: fit-content;
    max-width: min(100%, 760px);
    margin: 20px auto 0;
    padding: 14px 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(222, 115, 67, 0.18), rgba(89, 46, 27, 0.1));
    border: 1px solid rgba(222, 115, 67, 0.24);
    color: var(--color-dark);
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.5;
    box-shadow: var(--shadow-warm);
}

.services-market-section,
.services-process-section,
.services-faq-section {
    margin-bottom: 34px;
}

.services-market-heading,
.services-process-heading,
.services-faq-heading {
    max-width: 760px;
    margin: 0 auto 22px;
    text-align: center;
}

.services-market-heading h2,
.services-process-heading h2,
.services-faq-heading h2 {
    margin-bottom: 10px;
    color: var(--color-dark);
}

.services-market-heading p,
.services-process-heading p,
.services-faq-heading p {
    margin-bottom: 0;
}

.services-market-grid,
.services-process-grid,
.services-faq-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.services-market-card,
.services-process-card,
.services-faq-card {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-soft);
}

.services-market-card h3,
.services-process-card h3,
.services-faq-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.services-market-card p,
.services-process-card p,
.services-faq-card p {
    margin-bottom: 0;
}

.services-faq-shell {
    padding: clamp(24px, 4vw, 38px);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(222, 115, 67, 0.16), rgba(255, 255, 255, 0.92) 56%),
        rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(222, 115, 67, 0.18);
    box-shadow: var(--shadow-soft);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-warm);
    background: rgba(255, 255, 255, 0.84);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(222, 115, 67, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.card-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-dark);
}

.card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(222, 115, 67, 0.1);
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.card-desc {
    font-size: 1rem;
    color: var(--color-text-soft);
    line-height: 1.6;
    margin-bottom: 22px;
}

.service-stack {
    display: grid;
    gap: 12px;
}

.service-detail {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-detail-label {
    display: inline-block;
    margin-bottom: 6px;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.service-detail p {
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.55;
    color: var(--color-text-soft);
}

.card-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 24px;
}

.btn-apply {
    background: #000000;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-apply:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .page-services {
        margin-top: -80px;
        padding: 130px 0 48px;
    }

    .services-market-grid,
    .services-process-grid,
    .services-faq-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .service-card {
        padding: 24px;
    }
}

html[data-theme="dark"] .page-services {
    background:
        linear-gradient(180deg, #110f0e 0%, #171210 38%, #1b1512 100%);
}

html[data-theme="dark"] .service-card {
    background: rgba(22, 18, 17, 0.82);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .service-card:hover {
    background: rgba(28, 23, 21, 0.9);
}

html[data-theme="dark"] .service-icon {
    background: rgba(222, 115, 67, 0.16);
}

html[data-theme="dark"] .tag {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .service-detail {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .services-quote-banner {
    background: linear-gradient(135deg, rgba(222, 115, 67, 0.22), rgba(89, 46, 27, 0.2));
    border-color: rgba(222, 115, 67, 0.3);
    color: #fff4ec;
}

html[data-theme="dark"] .services-market-card,
html[data-theme="dark"] .services-process-card,
html[data-theme="dark"] .services-faq-card {
    background: rgba(22, 18, 17, 0.82);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .services-faq-shell {
    background:
        linear-gradient(135deg, rgba(222, 115, 67, 0.16), rgba(20, 17, 16, 0.92) 56%),
        rgba(20, 17, 16, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .btn-apply {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}
