:root {
    /* Color Palette - Premium Business Selection */
    --primary: #595D8F;
    --primary-dark: #3F436F;
    --primary-light: #7A7FAD;
    --accent: #FF5B4F;
    --accent-hover: #E54A3F;
    --secondary: #8FCEC5;
    --bg-dark: #0F111A;
    /* Deeper dark for premium feel */
    --bg-light: #F8F9FF;
    /* Light with a hint of blue */
    --white: #ffffff;
    --text-main: #4A4A68;
    --text-heading: #1A1A2E;
    --text-muted: #8E8EA9;
    --border: rgba(89, 93, 143, 0.1);

    /* Glassmorphism & Effects */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --blur: 15px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-round: 50%;

    /* Shadows - Layered for depth */
    --shadow-sm: 0 4px 12px rgba(15, 17, 26, 0.05);
    --shadow-md: 0 12px 30px rgba(15, 17, 26, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 17, 26, 0.12);

    /* Typography */
    --font-main: 'Poppins', sans-serif;

    /* Spacing Scale - Mobile First (Compact) */
    --space-2xs: 4px;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

/* ========== BASE RESET - MOBILE FIRST ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
    /* Slightly smaller base for mobile */
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-heading);
    line-height: 1.3;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
}

/* ========== LAYOUT UTILITIES ========== */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-2xl) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-3xl) 0;
    }
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid {
    display: grid;
    gap: var(--space-md);
}

/* ========== COMPONENT: CARDS (Unified) ========== */
.card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

/* ========== COMPONENT: BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 20px rgba(255, 91, 79, 0.3);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========== TOP BAR ========== */
.top-bar {
    background: var(--bg-dark);
    color: var(--white);
    padding: var(--space-xs) 0;
    font-size: 0.8rem;
}

.top-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    align-items: center;
}

@media (min-width: 768px) {
    .top-info {
        flex-direction: row;
        gap: var(--space-lg);
    }
}

.top-info span {
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
}

.top-info i {
    color: var(--accent);
}

/* ========== HEADER & NAVIGATION ========== */
header {
    background: var(--white);
    padding: var(--space-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: var(--space-xs) 0;
    box-shadow: var(--shadow-sm);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
}

.logo-container {
    display: flex;
    flex-direction: column;
}

@media (max-width: 1023px) {
    .logo-container {
        flex-grow: 1;
    }
}

.logo-primary {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.logo-secondary {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.nav-links {
    display: none;
    /* Mobile hidden by default */
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        gap: var(--space-xl);
    }

    .nav-links a {
        font-weight: 600;
        color: var(--primary);
        font-size: 0.95rem;
        position: relative;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent);
        transition: var(--transition);
    }

    .nav-links a:hover::after,
    .nav-links a.active::after {
        width: 100%;
    }
}

/* BURGER MENU */
.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

@media (min-width: 1024px) {
    .burger {
        display: none;
    }
}

.burger div {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* MOBILE NAV PANEL */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    max-width: 300px;
    background: var(--bg-dark);
    padding: var(--space-3xl) var(--space-xl);
    transform: translateX(100%);
    transition: var(--transition);
    z-index: 2100;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav a {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--space-xs);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== HERO SECTION ========== */
.hero {
    padding: var(--space-3xl) 0 var(--space-xl);
    background: linear-gradient(rgba(15, 17, 26, 0.6), rgba(15, 17, 26, 0.4)),
        url('../images/accounting-696x466-1.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .hero {
        padding: var(--space-3xl) 0;
    }
}

.hero h1 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    opacity: 0.95;
}

/* ========== SECTION TITLES ========== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
    position: relative;
    display: inline-block;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 2.5rem;
    }
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* ========== HOTEL HIGHLIGHT ========== */
.hotel-highlight {
    background: var(--bg-light);
}

.hotel-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .hotel-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.hotel-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.hotel-features i {
    color: var(--accent);
}

.hotel-image {
    position: relative;
}

.hotel-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* ========== PRIMARY SERVICES GRID ========== */
.services-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    position: relative;
    overflow: hidden;
}

.service-card i {
    font-size: 3.5rem;
    margin-bottom: var(--space-lg);
    display: block;
}

.service-card.coral {
    border-top: 5px solid #FF5B4F;
}

.service-card.blue {
    border-top: 5px solid #4A4E8E;
}

.service-card.teal {
    border-top: 5px solid #6EBDB2;
}

.service-card.coral i {
    color: #FF5B4F;
}

.service-card.blue i {
    color: #4A4E8E;
}

.service-card.teal i {
    color: #6EBDB2;
}

.auto-card i {
    font-size: 2.5rem;
    color: var(--primary);
    /* Switched from accent to primary for more professional look */
    margin-bottom: var(--space-sm);
    display: block;
}

/* ========== PARTNER LOGOS ========== */
.partner-grid {
    grid-template-columns: repeat(2, 1fr);
    opacity: 0.6;
}

@media (min-width: 768px) {
    .partner-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .partner-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.partner-item {
    padding: var(--space-md);
    filter: grayscale(1);
    transition: var(--transition);
}

.partner-item:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* ========== SUBPAGE: RÓLUNK ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--space-xl) 0;
    color: var(--white);
    text-align: center;
}

.stats-grid {
    grid-template-columns: 1fr 1fr;
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-circle {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-md);
    }

    .stat-circle {
        width: 80px;
        height: 80px;
        font-size: 1.4rem;
    }
}

/* ========== AUTOMATION SECTION (LIGHT THEME) ========== */
.automation {
    background: var(--white);
}

.automation h2 {
    color: var(--primary);
}

.auto-grid {
    grid-template-columns: 1fr;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .auto-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .auto-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.auto-card {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.auto-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.auto-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    display: block;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-2xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
}

/* ========== FOOTER ========== */
footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-3xl) 0 var(--space-md);
}

.footer-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

footer h4 {
    color: var(--white);
    margin-bottom: var(--space-lg);
}

footer li {
    margin-bottom: var(--space-sm);
}

.copyright {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

/* ========== ENTRANCE ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
    position: fixed;
    bottom: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    z-index: 3000;
    box-shadow: var(--shadow-lg);
    transform: translateY(150%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
    visibility: hidden;
}

.cookie-banner.active {
    transform: translateY(0);
    visibility: visible;
}

.cookie-content {
    text-align: center;
    max-width: 900px;
}

.cookie-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.inline-link {
    color: var(--secondary);
    text-decoration: underline;
    font-weight: 500;
}

.inline-link:hover {
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

@media (min-width: 992px) {
    .cookie-banner {
        flex-direction: row;
        justify-content: space-between;
        padding: var(--space-md) var(--space-lg);
        left: 50%;
        right: auto;
        width: 95%;
        max-width: 1200px;
        transform: translate(-50%, 150%);
    }

    .cookie-banner.active {
        transform: translate(-50%, 0);
    }

    .cookie-content {
        text-align: left;
    }

    .cookie-actions {
        flex-shrink: 0;
    }
}

/* ========== LEGAL / PRIVACY PAGE ========== */
.legal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.last-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--glass-border);
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.legal-content h3 {
    font-size: 1.15rem;
    color: var(--secondary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-content h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
}

.legal-content p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.legal-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: var(--space-lg);
}

.legal-list li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.copyright a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-left: var(--space-xs);
}

.copyright a:hover {
    color: var(--white);
    text-decoration: underline;
}