/* Explain: Global styles: resets, typography, and mobile scaling for the site. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    color: var(--text-color);
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button,
a,
select,
input {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    margin: 0;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

a {
    text-decoration: none;
}

::selection {
    background: var(--primary-color);
    color: #ffffff;
}

/* Global Tipografi İsteği: Başlıklar 20px, Yazılar 16px */
h1, h2, h3, h4, h5, h6,
.text-xl, .text-2xl, .text-3xl, .text-4xl, .text-5xl, .text-6xl {
    font-size: 20px !important;
    line-height: 1.4 !important;
}

body, p, a, button, input, select, textarea,
.text-base, .text-lg, .text-sm {
    font-size: 16px !important;
}

/* Aşırı taşmayı önlemek için bazı küçük UI detaylarına istisna (14px) */
.text-xs, .section-kicker, .form-label, .badge-soft {
    font-size: 14px !important;
}

/* Kart içi başlıklar (hizmet / firma / proje / rehber adları) 26px */
.firm-card-title,
.service-row-title,
.project-title,
.guide-title,
.category-card-title {
    font-size: 26px !important;
    line-height: 1.35 !important;
}

/* Telefonda metinleri daha kompakt göster */
@media (max-width: 639px) {
    h1, h2, h3, h4, h5, h6,
    .text-xl, .text-2xl, .text-3xl, .text-4xl, .text-5xl, .text-6xl {
        font-size: 18px !important;
    }

    body, p, a, button, input, select, textarea,
    .text-base, .text-lg {
        font-size: 14px !important;
    }

    .firm-card-title,
    .service-row-title,
    .project-title,
    .guide-title,
    .category-card-title {
        font-size: 20px !important;
    }
}