/**
 * Main CSS — Variables, Reset, Typography, Layout
 * Premium Luxury Hotel Foundation
 *
 * @package Hotel74
 */

/* ══════════════════════════════════
   CSS Custom Properties
   ══════════════════════════════════ */
:root {
    /* Brand Colors */
    --primary:        #1A1A2E;
    --primary-light:  #16213E;
    --primary-dark:   #0F0F1E;
    --accent:         #bf1e2e;
    --accent-hover:   #a81927;
    --accent-warm:    #d43545;
    --accent-light:   #e8444f;

    /* Warm Cream Palette */
    --cream:          #FAF5F2;
    --cream-light:    #FDF9F7;
    --cream-dark:     #F2E8E3;
    --body-bg:        #F9F6F3;

    /* Text */
    --text-dark:      #111111;
    --text-body:      #222222;
    --text-muted:     #333333;
    --text-soft:      #666666;
    --text-light:     #F0E6E4;
    --white:          #FEFEFE;

    /* Utility Colors */
    --success:        #4A7C59;
    --danger:         #8B3A3A;
    --warning:        #B8860B;
    --border-color:   #E5E0DC;
    --border-light:   #F0EBE8;

    /* Glass / Overlay */
    --glass-bg:       rgba(26, 26, 46, 0.75);
    --glass-border:   rgba(191, 30, 46, 0.2);
    --glass-blur:     12px;
    --overlay-dark:   rgba(15, 15, 30, 0.6);
    --overlay-accent: rgba(191, 30, 46, 0.08);

    /* Fonts */
    --font-heading:    'Cormorant Garamond', 'Playfair Display', serif;
    --font-subheading: 'Cormorant Garamond', serif;
    --font-body:       'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-accent:     'Cinzel', serif;
    --font-mono:       'DM Mono', 'Fira Code', monospace;

    /* Spacing (8px base grid) */
    --space-xs:  0.25rem;   /* 4px  */
    --space-sm:  0.5rem;    /* 8px  */
    --space-md:  1rem;      /* 16px */
    --space-lg:  1.5rem;    /* 24px */
    --space-xl:  2rem;      /* 32px */
    --space-2xl: 3rem;      /* 48px */
    --space-3xl: 4rem;      /* 64px */
    --space-4xl: 6rem;      /* 96px */
    --space-5xl: 6rem;      /* 96px */

    /* Layout */
    --container-width:  1200px;
    --container-narrow: 900px;
    --container-wide:   1440px;
    --header-height:    100px;

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

    /* Shadows */
    --shadow-xs:  0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.1);
    --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);
    --shadow-accent: 0 4px 20px rgba(191, 30, 46, 0.2);

    /* Transitions */
    --transition-fast:   0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow:   0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}


/* ══════════════════════════════════
   Reset & Base
   ══════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    font-size: 16px;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-body);
    background-color: var(--body-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

fieldset {
    border: none;
}

/* Remove animations for 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;
    }
}


/* ══════════════════════════════════
   Selection
   ══════════════════════════════════ */
::selection {
    background-color: var(--accent);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--accent);
    color: var(--white);
}


/* ══════════════════════════════════
   Accessibility — Skip to Content
   ══════════════════════════════════ */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    z-index: 10000;
    padding: var(--space-sm) var(--space-xl);
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    transition: top var(--transition-fast);
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.skip-to-content:focus {
    top: 0;
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ══════════════════════════════════
   Typography
   ══════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-dark);
    letter-spacing: -0.005em;
}

h1 {
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(2.25rem, 4.4vw, 3.6rem);
    line-height: 1.1;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.15;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.2;
}

h5 {
    font-size: 1.25rem;
    line-height: 1.3;
}

h6 {
    font-size: 1.0625rem;
    line-height: 1.4;
    font-weight: 600;
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-body);
}

p:last-child {
    margin-bottom: 0;
}

strong {
    font-weight: 700;
}

em {
    font-style: italic;
}

small {
    font-size: 0.875rem;
}

/* Heading accent label (HOSGELDiNiZ, HiZMETLER, etc.) */
.heading-accent {
    font-family: var(--font-accent);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-size: 0.8125rem !important;
    color: var(--accent) !important;
    font-weight: 700;
    display: block;
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

/* Subheading / description text */
.subheading {
    font-family: var(--font-subheading);
    font-style: italic;
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Price display */
.price {
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Blockquote */
blockquote {
    font-family: var(--font-subheading);
    font-style: italic;
    font-size: 1.375rem;
    line-height: 1.6;
    padding: var(--space-xl) var(--space-2xl);
    border-left: 4px solid var(--accent);
    margin: var(--space-2xl) 0;
    color: var(--text-muted);
    background-color: var(--cream-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

blockquote p {
    margin-bottom: 0;
    color: inherit;
}

blockquote cite {
    display: block;
    margin-top: var(--space-md);
    font-size: 0.9rem;
    font-style: normal;
    font-family: var(--font-body);
    color: var(--text-soft);
    letter-spacing: 0.02em;
}

blockquote cite::before {
    content: '\2014\00a0';
}

/* Horizontal rule */
hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: var(--space-3xl) 0;
}

/* Lead text */
.lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 400;
}

/* Caption / small text */
.caption {
    font-size: 0.8125rem;
    color: var(--text-soft);
    letter-spacing: 0.02em;
    line-height: 1.5;
}

/* Fancy initial letter */
.dropcap::first-letter {
    float: left;
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 0.8;
    font-weight: 700;
    color: var(--accent);
    padding-right: var(--space-sm);
    padding-top: 0.1em;
}


/* ══════════════════════════════════
   Layout — Container
   ══════════════════════════════════ */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--wide {
    max-width: var(--container-wide);
}

.container--full {
    max-width: 100%;
    padding-left: var(--space-3xl);
    padding-right: var(--space-3xl);
}


/* ══════════════════════════════════
   Layout — Sections
   ══════════════════════════════════ */
.section {
    padding-top: var(--space-5xl);
    padding-bottom: var(--space-5xl);
    position: relative;
}

.section--sm {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

.section--lg {
    padding-top: 10rem;
    padding-bottom: 10rem;
}

/* Cream section */
.section--cream {
    background-color: #FAF5F2;
    position: relative;
    border-top: 1px solid rgba(191, 30, 46, 0.06);
    border-bottom: 1px solid rgba(191, 30, 46, 0.06);
}

/* Dark section with rich gradient */
.section--dark {
    background-color: var(--primary);
    color: var(--text-light);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(191, 30, 46, 0.08) 0%, transparent 60%),
        linear-gradient(160deg, var(--primary) 0%, #0d0d1a 50%, #0a0a16 100%);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
    color: var(--white);
}

.section--dark p {
    color: var(--text-light);
}

.section--dark .subheading {
    color: rgba(240, 230, 228, 0.7);
}

.section--dark .heading-accent {
    color: var(--accent-warm) !important;
}

.section--dark a:hover {
    color: var(--accent-warm);
}

/* White section */
.section--white {
    background-color: var(--white);
}


/* ══════════════════════════════════
   Section Header
   ══════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: var(--space-md);
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    position: relative;
    display: inline-block;
    padding-bottom: var(--space-lg);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.section-header .heading-accent {
    margin-bottom: var(--space-sm);
}

.section-header .subheading {
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--space-md);
    color: var(--text-soft);
}

.section-header .ornament {
    margin: var(--space-md) auto;
    color: var(--accent);
    filter: drop-shadow(0 1px 3px rgba(191, 30, 46, 0.2));
}

/* Section header aligned left */
.section-header--left {
    text-align: left;
    margin-left: 0;
}

.section-header--left h2::after {
    left: 0;
    transform: none;
}


/* ══════════════════════════════════
   Grid System
   ══════════════════════════════════ */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid--auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid--auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Grid gap variants */
.grid--gap-sm {
    gap: var(--space-md);
}

.grid--gap-lg {
    gap: var(--space-2xl);
}

.grid--gap-xl {
    gap: var(--space-3xl);
}

/* Responsive grid breakpoints */
@media (max-width: 1024px) {
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }
}


/* ══════════════════════════════════
   Flex Utilities
   ══════════════════════════════════ */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-start {
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}


/* ══════════════════════════════════
   Spacing Utilities
   ══════════════════════════════════ */
.gap-xs  { gap: var(--space-xs); }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.pt-sm  { padding-top: var(--space-sm); }
.pt-md  { padding-top: var(--space-md); }
.pt-lg  { padding-top: var(--space-lg); }
.pt-xl  { padding-top: var(--space-xl); }
.pt-2xl { padding-top: var(--space-2xl); }
.pt-3xl { padding-top: var(--space-3xl); }

.pb-sm  { padding-bottom: var(--space-sm); }
.pb-md  { padding-bottom: var(--space-md); }
.pb-lg  { padding-bottom: var(--space-lg); }
.pb-xl  { padding-bottom: var(--space-xl); }
.pb-2xl { padding-bottom: var(--space-2xl); }
.pb-3xl { padding-bottom: var(--space-3xl); }


/* ══════════════════════════════════
   Text Utilities
   ══════════════════════════════════ */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-soft    { color: var(--text-soft); }
.text-white   { color: var(--white); }
.text-dark    { color: var(--text-dark); }

.text-sm      { font-size: 0.875rem; }
.text-base    { font-size: 1rem; }
.text-lg      { font-size: 1.125rem; }
.text-xl      { font-size: 1.25rem; }

.font-heading { font-family: var(--font-heading); }
.font-body    { font-family: var(--font-body); }
.font-accent  { font-family: var(--font-accent); }

.uppercase    { text-transform: uppercase; }
.capitalize   { text-transform: capitalize; }
.tracking-wide { letter-spacing: 0.08em; }
.tracking-wider { letter-spacing: 0.15em; }

.font-normal  { font-weight: 400; }
.font-medium  { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold    { font-weight: 700; }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ══════════════════════════════════
   Display & Position Utilities
   ══════════════════════════════════ */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky   { position: sticky; }

.block        { display: block; }
.inline-block { display: inline-block; }
.hidden       { display: none; }

.overflow-hidden { overflow: hidden; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.rounded-sm   { border-radius: var(--radius-sm); }
.rounded-md   { border-radius: var(--radius-md); }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-xl   { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }


/* ══════════════════════════════════
   Responsive — Container & Section
   ══════════════════════════════════ */
@media (max-width: 1024px) {
    .section {
        padding-top: var(--space-4xl);
        padding-bottom: var(--space-4xl);
    }

    .section--lg {
        padding-top: var(--space-5xl);
        padding-bottom: var(--space-5xl);
    }

    .container--full {
        padding-left: var(--space-xl);
        padding-right: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .section {
        padding-top: var(--space-3xl);
        padding-bottom: var(--space-3xl);
    }

    .section--sm {
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-2xl);
    }

    .section--lg {
        padding-top: var(--space-4xl);
        padding-bottom: var(--space-4xl);
    }

    .container {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }

    .container--full {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }

    .section-header {
        margin-bottom: var(--space-3xl);
    }

    h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    h2 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    h3 {
        font-size: clamp(1.375rem, 4vw, 1.875rem);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .section {
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-2xl);
    }

    .section-header h2::after {
        width: 56px;
    }
}
