/* =========================================================
   Mavi Konak Hotel — demo site for Cooqee CMP
   Boutique hotel · Istanbul · Türkiye
   ========================================================= */

/* ---------- design tokens ---------- */
:root {
    --brand:        #0f3862;   /* deep sea blue */
    --brand-dark:   #082846;
    --accent:       #c69c45;   /* warm gold */
    --accent-dark:  #a37d2d;
    --ink:          #1a1f2e;
    --ink-soft:     #4b5565;
    --muted:        #8b94a4;
    --line:         #e2e6ed;
    --cream:        #faf7f2;
    --paper:        #ffffff;
    --bg:           #f8f9fb;

    --radius-sm:    6px;
    --radius:       10px;
    --radius-lg:    18px;

    --shadow-sm:    0 1px 2px rgba(16, 24, 40, .06);
    --shadow:       0 4px 20px rgba(16, 24, 40, .08);
    --shadow-lg:    0 20px 48px rgba(16, 24, 40, .14);

    --f-head: "Playfair Display", "Cormorant Garamond", Georgia, serif;
    --f-body: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;

    --wrap: 1200px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--f-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-dark); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
    font-family: var(--f-head);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 .6em 0;
}
h1 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em 0; color: var(--ink-soft); }

.wrap   { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------- Topbar ---------- */
.topbar {
    background: var(--brand-dark);
    color: #cfd8e4;
    font-size: 13px;
    padding: 8px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #cfd8e4; }
.topbar a:hover { color: var(--accent); }
.topbar-lang { display: flex; gap: 10px; }
.topbar-lang a {
    padding: 2px 8px; border-radius: 4px; font-weight: 500;
}
.topbar-lang a.active { background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--f-head);
    color: var(--brand-dark);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .01em;
}
.brand-mark {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand); color: #fff;
    border-radius: 50%;
    font-family: var(--f-head);
    font-size: 1.1rem; font-weight: 700;
    letter-spacing: .02em;
}
.brand small {
    display: block;
    font-family: var(--f-body);
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 500;
}

.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
    color: var(--ink);
    font-weight: 500;
    font-size: 14.5px;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: border-color .18s, color .18s;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--accent); }
.nav-cta {
    background: var(--brand);
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-sm);
    border-bottom: none !important;
    transition: background .18s;
}
.nav-cta:hover { background: var(--brand-dark); color: #fff; }

.nav-toggle {
    display: none;
    background: none; border: 1px solid var(--line);
    width: 42px; height: 42px; border-radius: var(--radius-sm);
    align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--ink);
    position: relative; transition: transform .18s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(8, 40, 70, .55), rgba(8, 40, 70, .75)),
        url("https://images.unsplash.com/photo-1566073771259-6a8506099945?w=1800&q=80") center/cover no-repeat;
}
.hero--inner { min-height: 320px; }
.hero-inner {
    padding: 90px 0;
    max-width: 760px;
}
.hero .eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 6px 14px;
    border: 1px solid rgba(198, 156, 69, .5);
    border-radius: 999px;
    margin-bottom: 24px;
    font-weight: 500;
}
.hero h1 { color: #fff; margin-bottom: .4em; text-wrap: balance; }
.hero p { color: rgba(255, 255, 255, .9); font-size: 1.1rem; max-width: 580px; margin-bottom: 2em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14.5px;
    letter-spacing: .01em;
    border: 1px solid transparent;
    transition: transform .12s ease, background .18s, border-color .18s, color .18s;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost   { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-dark    { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-dark); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow {
    display: inline-block;
    font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 14px; font-weight: 600;
}
.section-head p { max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Highlights (3-col) ---------- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.card-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    background: var(--cream);
    color: var(--accent-dark);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { font-size: 14.5px; margin-bottom: 0; }

/* ---------- Showcase (image + text) ---------- */
.showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.showcase-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-lg);
}
.showcase-img img { width: 100%; height: 100%; object-fit: cover; }
.showcase h2 { margin-bottom: .5em; }
.showcase-list { list-style: none; padding: 0; margin: 24px 0 0 0; }
.showcase-list li {
    padding: 12px 0 12px 32px;
    position: relative;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}
.showcase-list li:last-child { border-bottom: none; }
.showcase-list li::before {
    content: "✓"; position: absolute; left: 0; top: 12px;
    width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent); color: #fff;
    border-radius: 50%; font-size: 12px; font-weight: 700;
}

/* ---------- Rooms grid ---------- */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.room-card {
    background: var(--paper);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform .2s, box-shadow .2s;
}
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.room-img { aspect-ratio: 4 / 3; overflow: hidden; }
.room-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.room-card:hover .room-img img { transform: scale(1.04); }
.room-body { padding: 24px; }
.room-tag {
    display: inline-block;
    font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-dark); font-weight: 600;
    margin-bottom: 10px;
}
.room-body h3 { margin-bottom: 8px; }
.room-body p  { font-size: 14px; margin-bottom: 14px; }
.room-foot {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 16px; border-top: 1px solid var(--line);
}
.room-price { font-family: var(--f-head); color: var(--brand); font-size: 1.4rem; font-weight: 600; }
.room-price span { font-size: 12px; color: var(--muted); font-weight: 400; }

/* ---------- Testimonials ---------- */
.quote {
    background: var(--brand-dark);
    color: #fff;
    padding: 72px 48px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.quote::before {
    content: "“";
    position: absolute;
    top: -60px; left: 30px;
    font-family: var(--f-head);
    font-size: 320px;
    line-height: 1;
    color: rgba(198, 156, 69, .18);
    pointer-events: none;
}
.quote blockquote {
    font-family: var(--f-head);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
    max-width: 720px;
    margin: 0 auto 24px;
    font-style: italic;
    text-wrap: balance;
}
.quote cite {
    display: block;
    font-family: var(--f-body);
    font-style: normal;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
}
.contact-info h3 { margin-bottom: 12px; color: var(--brand); }
.contact-info ul { list-style: none; padding: 0; margin: 0; }
.contact-info li {
    padding: 14px 0 14px 36px;
    border-bottom: 1px solid var(--line);
    position: relative;
    color: var(--ink);
    font-size: 14.5px;
}
.contact-info li:last-child { border-bottom: none; }
.contact-info li::before {
    content: "";
    position: absolute; left: 0; top: 18px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--cream); color: var(--accent-dark);
    display: inline-flex; align-items: center; justify-content: center;
}
.contact-info li.phone::before   { content: "☎"; }
.contact-info li.email::before   { content: "✉"; }
.contact-info li.address::before { content: "📍"; }
.contact-info li.hours::before   { content: "🕒"; }

form.booking {
    background: var(--paper);
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-field { display: flex; flex-direction: column; }
.form-field label {
    font-size: 12px; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
    font-family: inherit; font-size: 15px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper); color: var(--ink);
    transition: border-color .18s, box-shadow .18s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(198, 156, 69, .15);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--muted); margin: 8px 0 20px; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--brand-dark);
    color: #cfd8e4;
    padding: 72px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 56px;
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand small { color: rgba(255,255,255,.5); }
.footer-brand p { color: rgba(255,255,255,.7); margin-top: 16px; font-size: 14px; }
.site-footer h4 {
    color: #fff; font-family: var(--f-body);
    font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
    margin-bottom: 20px; font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 14px; }
.site-footer a { color: #cfd8e4; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
    font-size: 13px; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.75); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Legal page (Privacy) ---------- */
.legal {
    background: var(--paper);
    padding: 72px 0 96px;
}
.legal h2 { margin-top: 40px; color: var(--brand); font-size: 1.5rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { color: var(--brand-dark); font-size: 1.1rem; margin-top: 24px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; color: var(--ink-soft); }
.legal .meta {
    background: var(--cream);
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 24px 0;
    font-size: 14px;
    color: var(--ink-soft);
}

/* ---------- CMP admin notice (dev-only banner on page) ---------- */
.cmp-notice {
    background: linear-gradient(90deg, #082846, #0f3862);
    color: #fff;
    text-align: center;
    padding: 10px 24px;
    font-size: 13px;
    letter-spacing: .02em;
}
.cmp-notice strong { color: var(--accent); }
.cmp-notice a { color: #fff; text-decoration: underline; margin-left: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .grid-3,
    .rooms-grid { grid-template-columns: 1fr 1fr; }
    .showcase, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .showcase-img { aspect-ratio: 16 / 10; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--paper);
        flex-direction: column;
        gap: 0;
        padding: 12px 24px 20px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }
    .site-nav.open { display: flex; }
    .site-nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
        width: 100%;
    }
    .site-nav a:last-child { border-bottom: none; }
    .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
    .section { padding: 60px 0; }
    .grid-3,
    .rooms-grid,
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .quote { padding: 48px 24px; }
    .quote blockquote { font-size: 1.2rem; }
    .hero-inner { padding: 60px 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
