@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Inter:wght@100..900&display=swap");

@font-face {
    font-family: "Vazirmatn";
    src: url("/fonts/Vazirmatn.woff2") format("woff2"),
        url("/fonts/Vazirmatn.woff") format("woff");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "B Nazanin";
    src: url("/fonts/B-Nazanin.woff2") format("woff2"),
        url("/fonts/B-Nazanin.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --scd-green: #168356;
    --scd-green-dark: #0f5d41;
    --scd-orange: #f6b333;
    --scd-navy: #14213d;
    --scd-ink: #1f2937;
    --scd-muted: #64748b;
    --scd-soft: #f5f8f6;
    --scd-line: #dce5df;
    --font-latin: "Inter", Arial, sans-serif;
    --font-fa: "B Nazanin", "Vazirmatn", Tahoma, serif;
    --font-ar: "Cairo", Tahoma, Arial, sans-serif;
}

html[lang="de"],
html[lang="en"],
html[lang="tr"],
html[lang="fr"] {
    font-family: var(--font-latin);
}

html[lang="fa"] {
    font-family: var(--font-fa);
}

html[lang="ar"] {
    font-family: var(--font-ar);
}

.lang-font-de,
.lang-font-en,
.lang-font-tr,
.lang-font-fr {
    font-family: var(--font-latin);
}

.lang-font-fa {
    font-family: var(--font-fa);
}

.lang-font-ar {
    font-family: var(--font-ar);
}

body {
    color: var(--scd-ink);
    background: #fff;
    font-family: inherit;
}

a {
    color: var(--scd-green-dark);
}

.site-header {
    box-shadow: 0 8px 24px rgba(20, 33, 61, .08);
}

.navbar-brand strong {
    color: var(--scd-navy);
    letter-spacing: 0;
}

.brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    background: var(--scd-green);
}

.nav-cta {
    color: #172033;
    font-weight: 700;
}

.hero-section {
    padding: 48px 0 56px;
    color: #fff;
    background:
        linear-gradient(110deg, rgba(20, 33, 61, .95), rgba(15, 93, 65, .90)),
        linear-gradient(45deg, #14213d, #168356);
}

.hero-breadcrumb .breadcrumb,
.hero-breadcrumb a {
    color: rgba(255, 255, 255, .74);
}

.hero-breadcrumb .active {
    color: #fff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .85rem;
    color: var(--scd-green-dark);
    font-weight: 800;
    text-transform: uppercase;
    font-size: .78rem;
}

.hero-section .eyebrow {
    color: #ffe2a1;
}

.hero-section h1,
.not-found-section h1 {
    max-width: 900px;
    font-size: clamp(2.2rem, 4vw, 4.8rem);
    line-height: 1.04;
    font-weight: 850;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 760px;
    color: rgba(255, 255, 255, .86);
    font-size: 1.2rem;
}

.hero-actions,
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1.4rem;
}

.hero-trust span {
    display: inline-flex;
    gap: .45rem;
    align-items: center;
    padding: .45rem .7rem;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.calculator-panel,
.order-form,
.local-note {
    border: 1px solid var(--scd-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(20, 33, 61, .15);
}

.calculator-panel {
    padding: 1.4rem;
    color: var(--scd-ink);
}

.calculator-panel h2 {
    color: var(--scd-navy);
    font-size: 1.35rem;
    font-weight: 800;
}

.city-locked select {
    border-color: rgba(22, 131, 86, .35);
    background-color: #f2fbf7;
}

.price-result {
    padding: 1rem;
    border-radius: 8px;
    background: #effaf4;
    border: 1px solid #ccebd9;
}

.price-result strong,
.price-result span,
.price-result b {
    display: block;
}

.price-result b {
    margin-top: .45rem;
    color: var(--scd-green-dark);
    font-size: 2rem;
}

.price-result.compact b {
    font-size: 1.55rem;
}

.image-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .75rem;
}

.image-preview {
    display: grid;
    width: 112px;
    gap: .35rem;
}

.image-preview img {
    width: 112px;
    height: 84px;
    object-fit: cover;
    border: 1px solid var(--scd-line);
    border-radius: 8px;
}

.image-preview small {
    overflow: hidden;
    color: var(--scd-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trust-strip,
.sizes-section,
.faq-section,
.supported-cities-section {
    background: var(--scd-soft);
}

.trust-strip,
.content-band,
.waste-section,
.sizes-section,
.process-section,
.permit-section,
.faq-section,
.supported-cities-section,
.reviews-section,
.order-section,
.not-found-section {
    padding: 64px 0;
}

.trust-item,
.waste-card,
.size-card,
.city-link-card,
.review-card,
.permit-panel {
    transform: translateY(12px);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease, border-color .2s ease;
}

.trust-item.is-visible,
.waste-card.is-visible,
.size-card.is-visible,
.city-link-card.is-visible,
.review-card.is-visible,
.permit-panel.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.trust-item {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: .85rem;
    padding: 1rem;
    border: 1px solid var(--scd-line);
    border-radius: 8px;
    background: #fff;
    font-weight: 800;
}

.trust-item i,
.local-note i,
.waste-card i,
.city-link-card i,
.permit-panel > i {
    color: var(--scd-green);
    font-size: 1.7rem;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 1.5rem;
}

.section-heading h2,
.content-band h2,
.order-section h2,
.permit-panel h2 {
    color: var(--scd-navy);
    font-weight: 850;
    letter-spacing: 0;
}

.rich-content {
    font-size: 1.05rem;
    line-height: 1.75;
}

.local-note {
    position: sticky;
    top: 96px;
    padding: 1.3rem;
}

.city-switch-menu {
    max-height: 340px;
    overflow: auto;
}

.city-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .85rem;
}

.city-link-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon name"
        "icon region";
    align-items: center;
    gap: .05rem .65rem;
    min-height: 78px;
    padding: 1rem;
    color: var(--scd-ink);
    text-decoration: none;
    border: 1px solid rgba(35, 132, 67, .16);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(35, 132, 67, .08);
}

.city-link-card:hover {
    color: var(--scd-ink);
    border-color: var(--scd-green);
    transform: translateY(-2px);
}

.city-link-card i {
    grid-area: icon;
}

.city-link-card span {
    grid-area: name;
    color: var(--scd-navy);
    font-weight: 850;
}

.city-link-card small {
    grid-area: region;
    color: var(--scd-muted);
}

.waste-card {
    display: grid;
    min-height: 194px;
    align-content: start;
    gap: .65rem;
    padding: 1.1rem;
    color: var(--scd-ink);
    text-decoration: none;
    border: 1px solid var(--scd-line);
    border-radius: 8px;
    background: #fff;
}

.waste-card:hover {
    border-color: var(--scd-green);
    color: var(--scd-ink);
    box-shadow: 0 16px 34px rgba(20, 33, 61, .09);
}

.waste-card strong {
    color: var(--scd-navy);
    font-size: 1.08rem;
}

.waste-card span,
.size-card span {
    color: var(--scd-muted);
}

.size-grid,
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.size-card,
.process-grid > div {
    min-height: 118px;
    padding: 1rem;
    border: 1px solid var(--scd-line);
    border-radius: 8px;
    background: #fff;
}

.size-card strong {
    display: block;
    color: var(--scd-green-dark);
    font-size: 1.6rem;
}

.process-grid > div {
    background: var(--scd-navy);
    color: #fff;
}

.process-grid span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 8px;
    color: var(--scd-navy);
    background: var(--scd-orange);
    font-weight: 900;
}

.process-grid strong {
    display: block;
}

.permit-panel {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 1.2rem;
    padding: 1.4rem;
    border: 1px solid #cfe5d8;
    border-radius: 8px;
    background: #f2fbf7;
}

.accordion-item {
    border-color: var(--scd-line);
}

.accordion-button {
    font-weight: 800;
}

.accordion-button:not(.collapsed) {
    color: var(--scd-green-dark);
    background: #effaf4;
}

.review-card {
    min-height: 220px;
    padding: 1.1rem;
    border: 1px solid var(--scd-line);
    border-radius: 8px;
    background: #fff;
}

.stars {
    color: #f2a81d;
    letter-spacing: 0;
}

.review-card blockquote {
    margin: 1rem 0;
    color: var(--scd-ink);
}

.review-card figcaption {
    color: var(--scd-muted);
    font-weight: 800;
}

.order-section {
    background: linear-gradient(180deg, #ffffff, #f7faf8);
}

.order-form {
    padding: 1.4rem;
}

.site-footer {
    color: #fff;
    background: var(--scd-navy);
}

.footer-link {
    display: block;
    margin: .35rem 0;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
}

.footer-link:hover {
    color: #fff;
}

.footer-legal-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .1rem .75rem;
}

.city-link-grid-footer {
    column-count: 2;
    column-gap: 1.25rem;
}

.city-link-grid-footer .footer-link {
    break-inside: avoid;
}

.language-pill {
    padding: .35rem .4rem;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: small;
}

.language-name {
    line-height: 1.45;
}

.footer-map {
    overflow: hidden;
    min-height: 220px;
    border: 1px solid rgba(22, 131, 86, .55);
    border-radius: 8px;
    background: rgba(22, 131, 86, .12);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .22);
}

.footer-map iframe {
    display: block;
    width: 100%;
    min-height: 220px;
    border: 0;
    filter: saturate(.9) contrast(1.05);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.25rem;
    color: rgba(255, 255, 255, .64);
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .92rem;
}

.not-found-section {
    min-height: 70vh;
    background: var(--scd-soft);
}

.chat-widget {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1070;
}

.rtl .chat-widget {
    right: auto;
    left: 1rem;
}

.chat-toggle {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 52px;
    padding: .75rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--scd-green);
    color: #fff;
    box-shadow: 0 16px 38px rgba(20, 33, 61, .22);
    font-weight: 800;
}

.chat-toggle i {
    font-size: 1.25rem;
}

.chat-panel {
    position: absolute;
    right: 0;
    bottom: 68px;
    display: grid;
    width: min(380px, calc(100vw - 2rem));
    height: min(560px, calc(100vh - 6rem));
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    border: 1px solid var(--scd-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(20, 33, 61, .24);
}

.rtl .chat-panel {
    right: auto;
    left: 0;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: var(--scd-navy);
    color: #fff;
}

.chat-header strong,
.chat-header small {
    display: block;
}

.chat-header small {
    color: rgba(255, 255, 255, .68);
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    overflow: auto;
    padding: 1rem;
    background: var(--scd-soft);
}

.chat-message {
    max-width: 86%;
    padding: .72rem .85rem;
    border-radius: 8px;
    background: #fff;
    color: var(--scd-ink);
    box-shadow: 0 6px 18px rgba(20, 33, 61, .07);
    white-space: pre-wrap;
}

.chat-message.user {
    align-self: flex-end;
    background: var(--scd-green);
    color: #fff;
}

.chat-message.error {
    border: 1px solid #f1b8b8;
    background: #fff5f5;
}

.chat-message.loading {
    min-width: 64px;
}

.chat-message .typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    min-height: 1.25rem;
}

.chat-message .typing-indicator span {
    display: block;
    width: .42rem;
    height: .42rem;
    border-radius: 999px;
    background: var(--scd-green);
    opacity: .35;
    animation: chatTyping 1s infinite ease-in-out;
}

.chat-message .typing-indicator span:nth-child(2) {
    animation-delay: .15s;
}

.chat-message .typing-indicator span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes chatTyping {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: .35;
    }

    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.chat-message b,
.chat-message small,
.chat-message span {
    display: block;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .75rem;
}

.chat-option {
    padding: .1rem .25rem;
    border: 1px solid #cfe5d8;
    border-radius: 6px;
    background: #fff;
    color: var(--scd-green-dark);
    font-weight: 700;
    font-size: 12px;
}

.chat-option:hover {
    border-color: var(--scd-green);
    background: #effaf4;
}

.chat-option:disabled {
    opacity: .55;
}

.chat-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .5rem;
    padding: .75rem;
    border-top: 1px solid var(--scd-line);
    background: #fff;
}

.cookie-consent {
    position: fixed;
    inset: auto 0 0;
    z-index: 1080;
    padding: 1rem;
    background: rgba(20, 33, 61, .24);
}

.cookie-consent-panel {
    width: min(100%, 960px);
    max-height: calc(100vh - 2rem);
    margin: 0 auto;
    overflow: auto;
    padding: 1.7rem;
    border: 1px solid var(--scd-line);
    border-radius: 8px 8px 0 0;
    background: #fff;
    box-shadow: 0 -18px 50px rgba(20, 33, 61, .22);
}

.cookie-consent-panel h2 {
    margin-bottom: 1rem;
    color: var(--scd-navy);
    font-size: 1.55rem;
    font-weight: 850;
}

.cookie-consent-copy {
    color: var(--scd-ink);
    line-height: 1.55;
}

.cookie-consent-copy p:last-child {
    margin-bottom: 0;
}

.cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem;
    margin-top: 1.6rem;
}

.cookie-consent-actions .btn {
    min-height: 58px;
    font-weight: 800;
}

.cookie-consent-actions .btn-success {
    border-color: #98c915;
    background: #98c915;
    color: #fff;
}

.cookie-consent-actions .btn-success:hover {
    border-color: var(--scd-green);
    background: var(--scd-green);
}

.cookie-consent-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.35rem;
    margin-top: 1.45rem;
}

.cookie-switch {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: #8a929f;
    cursor: pointer;
    font-weight: 500;
}

.cookie-switch input {
    position: absolute;
    opacity: 0;
}

.cookie-switch span {
    position: relative;
    width: 31px;
    height: 17px;
    border-radius: 999px;
    background: #9ca3af;
    transition: background-color .18s ease;
}

.cookie-switch span::after {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: #fff;
    content: "";
    transition: transform .18s ease;
}

.cookie-switch input:checked + span {
    background: #98c915;
}

.cookie-switch input:checked + span::after {
    transform: translateX(14px);
}

.cookie-switch input:focus-visible + span {
    outline: 3px solid rgba(246, 179, 51, .45);
    outline-offset: 2px;
}

.cookie-switch input:disabled + span,
.cookie-switch input:disabled ~ b {
    cursor: default;
}

.cookie-switch b {
    font-weight: 500;
}

.rtl .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 32px;
    }

    .hero-section h1,
    .not-found-section h1 {
        font-size: 2.45rem;
    }

    .size-grid,
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .local-note {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .trust-strip,
    .content-band,
    .waste-section,
    .sizes-section,
    .process-section,
    .permit-section,
    .faq-section,
    .supported-cities-section,
    .reviews-section,
    .order-section,
    .not-found-section {
        padding: 44px 0;
    }

    .size-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .permit-panel {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .cookie-consent {
        padding: .5rem;
    }

    .cookie-consent-panel {
        padding: 1rem;
    }

    .cookie-consent-actions {
        grid-template-columns: 1fr;
    }

    .cookie-consent-options {
        justify-content: flex-start;
    }

    .chat-widget {
        right: .75rem;
        bottom: .75rem;
        left: .75rem;
    }

    .chat-toggle {
        width: 100%;
        justify-content: center;
    }

    .chat-panel,
    .rtl .chat-panel {
        right: 0;
        left: 0;
        width: 100%;
    }
}
