/* ================================================
   Ida Pearl Hotel — Design System
   ================================================ */

:root {
    --color-primary: #2C4A3E;
    --color-primary-light: #3D6B5A;
    --color-primary-dark: #1E3429;
    --color-secondary: #D4A853;
    --color-secondary-light: #E2C17A;
    --color-secondary-dark: #B8892E;
    --color-accent: #8B6F47;
    --color-bg: #FAF7F2;
    --color-bg-alt: #F0EBE3;
    --color-dark: #1A1A1A;
    --color-muted: #6B7B6E;
    --color-white: #FFFFFF;
    --color-border: #E0DAD0;
    --color-overlay: rgba(26,26,26,0.55);

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', 'Segoe UI', sans-serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;

    --text-xs: 0.8rem; --text-sm: 0.9rem; --text-base: 1.05rem;
    --text-lg: 1.2rem; --text-xl: 1.35rem; --text-2xl: 1.65rem;
    --text-3xl: 2.1rem; --text-4xl: 2.75rem; --text-5xl: 3.5rem;
    --text-hero: clamp(3rem, 6vw + 1rem, 6rem);

    --space-xs: 0.25rem; --space-sm: 0.5rem; --space-md: 1rem;
    --space-lg: 1.5rem; --space-xl: 2rem; --space-2xl: 3rem;
    --space-3xl: 5rem; --space-4xl: 7rem;
    --space-section: clamp(5rem, 10vw, 10rem);

    --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px;
    --radius-xl: 24px; --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

    --transition-fast: 0.2s cubic-bezier(0.4,0,0.2,1);
    --transition-base: 0.3s cubic-bezier(0.4,0,0.2,1);
    --transition-slow: 0.5s cubic-bezier(0.4,0,0.2,1);

    --container-max: 1280px;
    --container-narrow: 960px;
    --nav-height: 80px;
}

/* Tarayıcının otomatik dark mode uygulamasını engelle */
:root { color-scheme: light only; }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-dark);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.15; color: var(--color-dark); }
h1 { font-size: var(--text-hero); letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
p { margin-bottom: var(--space-md); color: var(--color-muted); line-height: 1.8; }

/* Kontrast düzeltmesi — altın sarısı koyulaştırıldı */
.text-accent { font-family: var(--font-accent); font-style: italic; color: var(--color-secondary-dark); }



.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-xl); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding: var(--space-section) 0; }
.section--alt { background-color: var(--color-bg-alt); }
.section--dark { background-color: var(--color-primary-dark); color: var(--color-white); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #FFFFFF; }
.section--dark p { color: rgba(255,255,255,0.85); }

/* Section subtitle kontrast düzeltmesi — WCAG AA */
.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-header__subtitle {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: var(--text-lg);
    color: var(--color-secondary-dark);
    margin-bottom: var(--space-sm);
    display: block;
    letter-spacing: 0.04em;
}



.section-header__title { margin-bottom: var(--space-md); }
.section-header__divider {
    width: 48px;
    height: 1px;
    background: var(--color-secondary);
    margin: var(--space-xl) auto;
    border: none;
    opacity: 0.6;
}
.section-header__desc { max-width: 640px; margin: 0 auto; font-size: var(--text-lg); line-height: 1.9; }

.grid { display: grid; gap: var(--space-2xl); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    :root { --nav-height: 64px; }
    .container { padding: 0 var(--space-lg); }
    .grid--2, .grid--3 { grid-template-columns: 1fr; }
    h2 { font-size: var(--text-3xl); }
}

/* ───────── Scroll Animations ───────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.5,0,0,1), transform 0.8s cubic-bezier(0.5,0,0,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ───────── Reduced Motion ───────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal, .reveal-stagger > * {
        opacity: 1;
        transform: none;
    }
}

/* ───────── Focus Styles ───────── */
:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ───────── Skip to Content ───────── */
.skip-to-content {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: var(--color-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: top var(--transition-fast);
}

.skip-to-content:focus {
    top: 0;
    outline: none;
}
