/* ======================================
   ROTTENBILLER — Soft Luxury Theme
   Unified Design System
   ====================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
    --bg: #FDFCFB;
    --bg-warm: #F7F4EE;
    --bg-card: #FFFFFF;
    --text: #1C1C1C;
    --text-soft: #5A5550;
    --text-muted: #8A847D;
    --accent: #B8A898;
    --accent-dark: #9A8C7C;
    --border: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

p {
    color: var(--text-soft);
    font-weight: 300;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: inline;
    }
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.bg-dark,
.bg-dark-alt {
    background: transparent;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid var(--text);
    background: transparent;
    color: var(--text);
    transition: all var(--transition);
    border-radius: 2px;
}

.btn:hover {
    background: var(--text);
    color: white;
}

.btn-primary {
    background: var(--text);
    color: white;
}

.btn-primary:hover {
    background: transparent;
    color: var(--text);
}

.btn-outline {
    border-color: var(--accent-dark);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--text);
    border-color: var(--text);
    color: white;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    color: white;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
    z-index: 1;
}

.hero-bg.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 750px;
    padding: 0 1rem;
}

.hero-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-title span {
    font-style: italic;
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: opacity var(--transition);
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.scroll-indicator:hover {
    opacity: 0.5;
}

/* ===== KEY STATS BAR ===== */
.key-stats {
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}

.stats-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 3rem;
}

.stat-item {
    text-align: center;
    min-width: 100px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text);
    font-weight: 400;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ===== SPLIT LAYOUT (Room Sections) ===== */
.split-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .split-layout {
        flex-direction: row;
        gap: 4rem;
    }

    .split-layout.reverse {
        flex-direction: row-reverse;
    }
}

.text-content {
    flex: 1;
    text-align: center;
}

@media (min-width: 768px) {
    .text-content {
        text-align: left;
    }
}

.text-content h2 {
    margin-bottom: 1rem;
}

.text-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ===== CAROUSELS ===== */
.carousel-container {
    flex: 1;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    background: var(--bg-warm);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-track img {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.carousel-btn.prev {
    left: 0.75rem;
}

.carousel-btn.next {
    right: 0.75rem;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

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

.section-header p {
    max-width: 550px;
    margin: 1rem auto 0;
    font-size: 0.95rem;
}

/* ===== FEATURE LIST ===== */
.feature-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .feature-list {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 2rem;
    }
}

.feature-list li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-soft);
    font-weight: 300;
    line-height: 1.6;
}

.feature-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.feature-list li strong {
    color: var(--text);
    font-weight: 500;
}

/* ===== ABOUT / DESCRIPTION GRID ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.about-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    color: var(--text);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.about-list {
    list-style: none;
}

.about-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-soft);
    font-weight: 300;
    line-height: 1.6;
}

.about-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.about-list strong {
    color: var(--text);
    font-weight: 500;
}

.about-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.about-footer p {
    font-size: 1.1rem;
    font-style: italic;
    font-family: var(--font-heading);
    color: var(--text);
}

/* ===== GALLERY ===== */
.gallery-grid {
    column-count: 1;
    column-gap: 1rem;
}

@media (min-width: 640px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        column-count: 3;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform var(--transition);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background var(--transition);
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.015);
}

/* Pagination */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.nav-btn {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text);
    padding: 0.5rem 1rem;
    transition: opacity var(--transition);
    background: none;
    border: none;
}

.nav-btn:disabled {
    opacity: 0.25;
    cursor: default;
}

.nav-btn:hover:not(:disabled) {
    opacity: 0.6;
}

#page-indicator {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* ===== LOCATION ===== */
.location-details {
    margin-top: 1rem;
}

.location-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 400;
}

.location-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.map-placeholder {
    height: 400px;
    margin-top: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.4) contrast(0.95);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--text);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto 2rem;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.cta-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.cta-desc strong {
    color: white;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all var(--transition);
    text-decoration: none;
}

.cta-btn-primary {
    background: white;
    color: var(--text);
    border: 1px solid white;
}

.cta-btn-primary:hover {
    background: transparent;
    color: white;
}

.cta-btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.cta-btn-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.cta-callback {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    font-family: var(--font-heading);
    transition: color var(--transition);
    padding: 0.5rem;
}

.cta-callback:hover {
    color: white;
}

/* ===== PROMO ===== */
.promo-section {
    background: var(--bg-warm);
    padding: 4rem 0;
    text-align: center;
}

.promo-card {
    max-width: 550px;
    margin: 0 auto;
    background: white;
    padding: 3rem 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.promo-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.promo-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.promo-card p {
    font-size: 0.95rem;
    color: var(--text-soft);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.promo-link-btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-style: italic;
    color: var(--text);
    border-bottom: 1px solid var(--text);
    padding-bottom: 2px;
    transition: all var(--transition);
}

.promo-link-btn:hover {
    color: var(--accent-dark);
    border-bottom-color: var(--accent-dark);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 6rem;
}

@media (min-width: 769px) {
    footer {
        padding-bottom: 2.5rem;
    }
}

.footer-inner {
    text-align: center;
}

.footer-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-brand a {
    color: var(--text);
    font-weight: 600;
    transition: opacity var(--transition);
}

.footer-brand a:hover {
    opacity: 0.6;
}

.footer-dot {
    color: var(--text-muted);
}

.footer-legal {
    margin-bottom: 1rem;
}

.footer-legal p {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0.2rem 0;
    line-height: 1.5;
}

.footer-copy {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ===== MOBILE STICKY BAR ===== */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.6rem 0;
    z-index: 90;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
}

@media (min-width: 769px) {
    .mobile-sticky-bar {
        display: none;
    }
}

.mobile-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    gap: 4px;
    letter-spacing: 0.5px;
    flex: 1;
    padding: 0.5rem 1rem;
    min-height: 48px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    border: none;
    background: none;
}

/* ===== DESKTOP FAB ===== */
.desktop-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--text);
    color: white;
    box-shadow: var(--shadow-lg);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 90;
    transition: transform var(--transition), box-shadow var(--transition);
}

.desktop-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

@media (min-width: 769px) {
    .desktop-fab {
        display: flex;
    }
}

/* ===== MODAL ===== */
.hidden {
    display: none !important;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius);
    position: relative;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text-muted);
    padding: 0.25rem;
    transition: color var(--transition);
}

.modal-close:hover {
    color: var(--text);
}

.modal-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.modal-content>p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Modal Contact List */
.modal-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    text-align: left;
}

.modal-contact-item:hover {
    background: var(--bg-warm);
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.modal-contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
}

.modal-contact-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.modal-contact-value {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--text-muted);
    z-index: 210;
    padding: 0.5rem;
    transition: color var(--transition);
}

.lightbox-close:hover {
    color: var(--text);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    padding: 1rem;
    transition: color var(--transition);
    z-index: 210;
}

.lightbox-nav:hover {
    color: var(--text);
}

.lightbox-nav.prev {
    left: 1rem;
}

.lightbox-nav.next {
    right: 1rem;
}

@media (max-width: 768px) {
    .lightbox-nav {
        display: none;
    }
}

/* ===== SECTION SEPARATOR ===== */
.section+.section {
    border-top: 1px solid var(--border);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .section {
        padding: 3.5rem 0;
    }

    .hero {
        height: auto;
        min-height: 85vh;
    }

    .carousel-container {
        aspect-ratio: 3/2;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .map-placeholder {
        height: 280px;
    }
}

/* ===== FEATURE LIST ===== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* ===== PAGINATION ===== */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.page-btn:hover:not(:disabled) {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.page-btn.active {
    background: var(--text);
    color: white;
    border-color: var(--text);
    font-weight: 600;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.page-btn.page-arrow {
    font-size: 1.4rem;
    font-weight: 300;
}

/* ===== MOBILE TEXT FIXES ===== */
@media (max-width: 768px) {
    .text-content h2 {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }

    .text-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .feature-list li {
        font-size: 0.88rem;
        padding-left: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .page-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}

/* ===== TYPEWRITER ===== */
.typewriter {
    min-height: 1.2em;
    border-right: 2px solid var(--accent);
    animation: blink-caret 0.7s step-end infinite;
    display: inline-block;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--accent);
    }
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    padding: 0.35rem;
    border-radius: 3rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 2rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    opacity: 0.7;
}

.lang-btn.active {
    background: white;
    color: var(--text);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

.lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.lang-flag-img {
    width: 22px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    filter: grayscale(0.8);
    transition: filter var(--transition);
}

.lang-btn.active .lang-flag-img {
    filter: grayscale(0);
}

.lang-text {
    letter-spacing: 0.5px;
    padding-top: 1px;
}

@media (max-width: 768px) {
    .lang-switcher {
        top: 1rem;
        right: 1rem;
        gap: 0.25rem;
        padding: 0.25rem;
    }

    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .lang-flag-img {
        width: 18px;
    }
}