/* =====================================================================
   styles.css — Gabi Holiday Landing Page
   ===================================================================== */

:root {
    --primary: #2c3e50;
    --accent: #e67e22;
    --text: #2d3748;
    --text-light: #718096;
    --bg: #ffffff;
    --bg-alt: #f7f9fc;
    --border: #e2e8f0;
    --radius: 10px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    --transition: 0.25s ease;
    --nav-height: 60px;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--primary);
    text-decoration: none;
}

/* === HEADER === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.07);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.nav-brand:hover {
    color: var(--accent);
    text-decoration: none;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 10px;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-light);
    padding: 2px 5px;
    border-radius: 10px;
    transition: color var(--transition);
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    color: var(--accent);
}

.lang-btn.active {
    color: var(--accent);
}

.lang-sep {
    color: var(--border);
    font-size: 0.85rem;
}

/* === HERO === */
.hero {
    padding-top: calc(var(--nav-height) + 72px);
    padding-bottom: 60px;
    text-align: center;
    background: var(--bg-alt);
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 12px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === APARTMENTS GRID === */
.apartments {
    max-width: 1000px;
    margin: 0 auto;
    padding: 72px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.apt-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: var(--text);
}

.apt-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
    text-decoration: none;
}

.apt-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.apt-image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-alt);
}

.apt-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.apt-card:hover .apt-image-wrap img {
    transform: scale(1.05);
}

.apt-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
}

.apt-body {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.apt-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.apt-desc {
    font-size: 0.93rem;
    color: var(--text-light);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
}

.apt-cta {
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-size: 0.93rem;
    font-weight: 600;
    border: 2px solid currentColor;
    align-self: flex-start;
    transition: background var(--transition), color var(--transition);
}

.apt-cta-boborjan {
    color: #2c7be5;
    border-color: #2c7be5;
}

.apt-cta-boborjan:hover {
    background: #2c7be5;
    color: #fff;
    text-decoration: none;
}

.apt-cta-bambi {
    color: #2d7d44;
    border-color: #2d7d44;
}

.apt-cta-bambi:hover {
    background: #2d7d44;
    color: #fff;
    text-decoration: none;
}

/* === FOOTER === */
.site-footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-dev {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #718096;
}

.footer-dev-link {
    color: #90cdf4;
    text-decoration: none;
    font-weight: 600;
}

.footer-dev-link:hover {
    text-decoration: underline;
    color: #63b3ed;
}

/* === FOCUS === */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
    .hero-title {
        font-size: 2.1rem;
        letter-spacing: -0.5px;
    }

    .apartments {
        grid-template-columns: 1fr;
        padding: 48px 20px 60px;
    }
}