/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    /* Prevent zoom on input focus on mobile */
    touch-action: manipulation;
}

body {
    font-family: var(--font-body);
    color: var(--color-black);
    background-color: var(--color-bg-main);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Improve mobile scrolling */
    -webkit-overflow-scrolling: touch;
    /* Prevent horizontal scroll */
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    /* Better touch targets on mobile */
    -webkit-tap-highlight-color: rgba(224, 120, 86, 0.2);
    tap-highlight-color: rgba(224, 120, 86, 0.2);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Prevent image dragging on mobile */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    /* Better touch targets on mobile */
    -webkit-tap-highlight-color: rgba(224, 120, 86, 0.2);
    tap-highlight-color: rgba(224, 120, 86, 0.2);
    touch-action: manipulation;
    /* Minimum touch target size */
    min-height: 44px;
    min-width: 44px;
}

ul {
    list-style: none;
}

/* ===== DIACRITICS OPTIMIZATION ===== */
* {
    font-feature-settings: "liga" 1, "kern" 1;
    text-rendering: optimizeLegibility;
}

/* Specific rules for Romanian diacritics */
.hero-subtitle,
.intro-text,
.content-text p,
.service-card p,
.group-content p,
.media-content p,
.testimonial-text,
.book-description,
.contact-info p,
.feature-item p {
    font-feature-settings: "liga" 1, "kern" 1, "calt" 1;
    font-variant-ligatures: common-ligatures;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 10;
    background-color: var(--color-cream);
}

.section-alt {
    background-color: var(--color-beige-dark);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-brown-dark);
    margin-bottom: var(--spacing-sm);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--color-orange), var(--color-yellow), var(--color-green));
    margin: 0 auto;
    border-radius: 2px;
}

