/* Self-hosted Montserrat font */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/Montserrat.d41d8cd98f00.woff2") format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/Montserrat.d41d8cd98f00.woff2") format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/Montserrat.d41d8cd98f00.woff2") format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/Montserrat.d41d8cd98f00.woff2") format('woff2');
}

/* Self-hosted flag icons (replaces flag-icons CDN) */
.fi {
    display: inline-block;
    width: 1.33333em;
    line-height: 1em;
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;
}

.fi-cz { background-image: url("../img/flags/cz.859f18a5acfd.svg"); }
.fi-sk { background-image: url("../img/flags/sk.2c0bed77082c.svg"); }
.fi-at { background-image: url("../img/flags/at.a0e5865313bb.svg"); }
.fi-hu { background-image: url("../img/flags/hu.966f49336f74.svg"); }
.fi-ro { background-image: url("../img/flags/ro.e9130a28a9ba.svg"); }
.fi-it { background-image: url("../img/flags/it.1d72a5dec3ac.svg"); }
.fi-es { background-image: url("../img/flags/es.e3ee044c3d0d.svg"); }
.fi-gr { background-image: url("../img/flags/gr.71452bbd08d6.svg"); }
.fi-co { background-image: url("../img/flags/co.eefa6c2cd269.svg"); }
.fi-fr { background-image: url("../img/flags/fr.bf4cae9b80cd.svg"); }
.fi-nl { background-image: url("../img/flags/nl.8c9bb5ae9234.svg"); }
.fi-pt { background-image: url("../img/flags/pt.f0f95b343296.svg"); }
.fi-br { background-image: url("../img/flags/br.5fc02ad513bf.svg"); }
.fi-de { background-image: url("../img/flags/de.e88d88604d65.svg"); }
.fi-pl { background-image: url("../img/flags/pl.f7adaa942c63.svg"); }
.fi-se { background-image: url("../img/flags/se.79da0f189e8f.svg"); }
.fi-dk { background-image: url("../img/flags/dk.33bba71c1289.svg"); }
.fi-no { background-image: url("../img/flags/no.859a13561a1b.svg"); }
.fi-fi { background-image: url("../img/flags/fi.0e5ef3f583da.svg"); }
.fi-eu { background-image: url("../img/flags/eu.2eba7797bc85.svg"); }
.fi-bg { background-image: url("../img/flags/bg.813f4105785c.svg"); }
.fi-hr { background-image: url("../img/flags/hr.94bd640c006c.svg"); }
.fi-si { background-image: url("../img/flags/si.47234c7980dc.svg"); }
.fi-ee { background-image: url("../img/flags/ee.04932206a89d.svg"); }
.fi-lv { background-image: url("../img/flags/lv.d9382151115a.svg"); }
.fi-lt { background-image: url("../img/flags/lt.89b5f342c886.svg"); }
.fi-tr { background-image: url("../img/flags/tr.5f080489cb57.svg"); }
.fi-ua { background-image: url("../img/flags/ua.6f96dc4191bd.svg"); }
.fi-ru { background-image: url("../img/flags/ru.8b2aa18f6e17.svg"); }
.fi-sa { background-image: url("../img/flags/sa.f82fbbe0ba72.svg"); }
.fi-il { background-image: url("../img/flags/il.c2850af73dc5.svg"); }
.fi-jp { background-image: url("../img/flags/jp.b71cb55d4380.svg"); }
.fi-kr { background-image: url("../img/flags/kr.170af4ff442b.svg"); }
.fi-in { background-image: url("../img/flags/in.6a13b5e1b7c0.svg"); }
.fi-th { background-image: url("../img/flags/th.47ecb5f94f92.svg"); }
.fi-vn { background-image: url("../img/flags/vn.6ec5161aeae3.svg"); }
.fi-id { background-image: url("../img/flags/id.72abc22025ff.svg"); }
.fi-my { background-image: url("../img/flags/my.f31eb677e0f3.svg"); }

:root {
    --primary-color: #00BF9C;
    /* Teal/Green from visual */
    --primary-dark: #009e82;
    --secondary-color: #2d3436;
    --accent-color: #00BF9C;
    --bg-light: #F9FAFB;
    --text-color: #1a1a1a;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --spacing-unit: 1rem;
    --radius: 12px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --btn-spacing: 0.5px;
    --radius-pill: 8px;
}

html, body {
    overflow-x: clip;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

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

/* Header */
header {
    background: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: box-shadow 0.3s;
}

header.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-text-svg {
    height: 16px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.auth-buttons .btn-login {
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-buttons .btn-register {
    background: linear-gradient(135deg, #11968B 0%, #05BD86 100%);
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: var(--btn-spacing);
    transition: background 0.2s, transform 0.2s;
}

.auth-buttons .btn-register:hover {
    background: linear-gradient(135deg, #0e7d75 0%, #04a574 100%);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 100px 0 0;
    background: #fff;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\203A";
    padding: 0 0.5rem;
    color: #999;
}

.breadcrumb-item a {
    color: var(--primary-color);
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.breadcrumb-item.active {
    color: #666;
}

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    background: #fff;
    overflow: hidden;
    position: relative;
}

/* Background blobs for premium feel */
.hero::before {
    content: '';
    position: absolute;
    right: -10%;
    top: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 191, 156, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 7;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.hero-image {
    flex: 3;
    min-width: 250px;
    flex-shrink: 0;
    position: relative;
}

.hero-placeholder-img {
    width: 100%;
    height: auto;
    display: block;
    /* Placeholder visualization */
    background: #eafffa;
    border-radius: 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

/* Hero Dashboard Image */
.hero-dashboard-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    background: #fff;
}

.tagline {
    display: inline-block;
    background: #f0fdf9;
    color: #666;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 1px solid #e0f2f1;
}

.hero h1 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.hero h1 .hero-title-green {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.3em;
}

.hero p {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.6;
}

.hero .btn-primary {
    margin-right: 1.2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #11968B 0%, #05BD86 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    /* Pill shape for main CTA */
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: var(--btn-spacing);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 191, 156, 0.3);
    background: linear-gradient(135deg, #0e7d75 0%, #04a574 100%);
}

.btn-primary:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-secondary {
    background: white;
    color: var(--text-color);
    padding: 1rem 2rem;
    border: 2px solid #eee;
    /* Slightly thicker */
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: var(--btn-spacing);
    transition: border 0.2s, color 0.2s;
}

.btn-secondary:hover {
    border-color: #ccc;
}

.btn-secondary:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Green text highlight for section headings */
.text-primary {
    color: var(--primary-color);
}

/* Rad ikoniek medzi nadpisom a textom — len na mobile */
.hero-mobile-icons {
    display: none;
}

/* Hero Trust Badge */
.hero-trust-badge {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.trust-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.trust-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.trust-item strong {
    color: var(--secondary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .trust-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .trust-item {
        font-size: 0.85rem;
    }
}

/* Hero 3D Composition */
.hero-3d-composition {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 4/5;
    margin: 0 auto;
}

/* Bledé rozmazané pozadie — cez celú hero sekciu */
.hero-blurred-bg {
    position: absolute;
    top: -40%;
    left: -120%;
    width: 260%;
    height: 180%;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-blurred {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.95;
}

/* Ostré ikonky vo vrchnej vrstve */
.hero-float {
    position: absolute;
    z-index: 2;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.18));
}

/* === Horná skupina: 3 ikony zoskupené vpravo hore (podľa Figmy) === */

/* Charts (graf) — hore v strede */
.float-charts {
    width: 48%;
    top: 8%;
    right: 15%;
    animation: float-drift-1 7s ease-in-out infinite;
}

/* Appointment (kalendár) — vľavo, mierne nižšie */
.float-appointment {
    width: 42%;
    top: 28%;
    left: -10%;
    animation: float-drift-2 8s ease-in-out infinite;
}

/* Analytics (koláčový graf) — vpravo, stred */
.float-analytics {
    width: 44%;
    top: 35%;
    right: -2%;
    animation: float-drift-3 9s ease-in-out infinite;
}

/* Records — dole v strede */
.float-records {
    width: 38%;
    height: auto;
    top: 62%;
    left: 15%;
    animation: float-drift-4 7.5s ease-in-out infinite;
}

/* Každá ikona má korekčnú rotáciu (vyrovnanie 3D náklonu) + jemný pohyb */

/* Charts — bez rotácie */
@keyframes float-drift-1 {
    0%   { transform: translate(0, 0) rotate(0deg); }
    33%  { transform: translate(4px, -8px) rotate(1deg); }
    66%  { transform: translate(-3px, -4px) rotate(-0.5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Appointment — base 10° doprava */
@keyframes float-drift-2 {
    0%   { transform: translate(0, 0) rotate(10deg); }
    25%  { transform: translate(-5px, -6px) rotate(9deg); }
    50%  { transform: translate(-2px, -12px) rotate(10.5deg); }
    75%  { transform: translate(3px, -5px) rotate(9.5deg); }
    100% { transform: translate(0, 0) rotate(10deg); }
}

/* Analytics — base 20° doprava */
@keyframes float-drift-3 {
    0%   { transform: translate(0, 0) rotate(20deg); }
    40%  { transform: translate(5px, -10px) rotate(21deg); }
    70%  { transform: translate(-2px, -6px) rotate(19deg); }
    100% { transform: translate(0, 0) rotate(20deg); }
}

/* Records — base 12° doprava */
@keyframes float-drift-4 {
    0%   { transform: translate(0, 0) rotate(12deg); }
    30%  { transform: translate(3px, -7px) rotate(10.5deg); }
    60%  { transform: translate(-4px, -11px) rotate(13deg); }
    100% { transform: translate(0, 0) rotate(12deg); }
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-Title-tag {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* CSS based on Visual Analysis of Screenshots */
/* Features Grid: 3 Columns */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Feature Cards with Accent Borders */
.feature-card {
    padding: 2rem;
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    /* Stack icon and text */
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

/* Colored left border accents */
.feature-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 4px;
    background: var(--primary-color);
    background: var(--primary-color);
    border-radius: 4px 0 0 4px;
}

/* Varying accents for different cards if desired, or uniform green as per theme. 
   Screenshot hinted at different colors. Let's iterate with nth-child for visual variety if user wants, 
   but for now uniform green is safer unless distinct classes are added. 
   Actually, looking closer at description "Green bar for Scheduling, Yellow folder...", 
   I will add specific classes in HTML later, but default to green here. 
*/

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: auto;
    height: auto;
    background: none;
    /* Icon is standalone */
    color: var(--text-color);
    font-size: 2.5rem;
    /* Larger icon */
    margin-bottom: 0.5rem;
    justify-content: flex-start;
    padding: 0;
}

.feature-icon img {
    /* 3D Icon sizing — fixed box so all icons appear same size */
    width: 90px;
    height: 90px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon img {
    transform: scale(1.1) rotate(5deg);
}

/* Buttons Uppercase */
.btn-primary,
.btn-secondary,
.btn-login,
.btn-register {
    text-transform: uppercase;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #11968B 0%, #05BD86 100%);
    box-shadow: 0 4px 14px rgba(0, 191, 156, 0.4);
}

/* Tagline Pill */
.tagline {
    border-radius: 50px;
    /* Fully rounded pill */
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: #f1f8f6;
    color: #555;
    border: none;
}

/* Roles Timeline Refinement - removed, using role-card styles instead */

/* Pricing Card Refinement */
.pricing-card {
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    gap: 2rem;
}

.pricing-left {
    background: linear-gradient(135deg, #138d8c 0%, #00d183 100%);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 191, 156, 0.25), 0 5px 15px rgba(0, 0, 0, 0.08);
}

.pricing-right {
    background: #f4f5f6;
    border: 2px dashed #b8d8d0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.pricing-right::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background: url("../img/logo.e0442bb83b06.svg") no-repeat center center;
    background-size: contain;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.pricing-right > * {
    position: relative;
    z-index: 1;
}


.feature-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    color: var(--secondary-color);
}

.feature-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Roles Section */
.roles-section {
    padding: 6rem 0;
    background: #f5f6f7;
    position: relative;
    overflow: hidden;
}

/* Roles — logo na pozadí celej sekcie, vľavo */
.roles-section::before {
    content: '';
    position: absolute;
    left: -5%;
    top: 0;
    bottom: 0;
    width: 50%;
    background: url("../img/logo.e0442bb83b06.svg") no-repeat center left;
    background-size: contain;
    opacity: 0.03;
    pointer-events: none;
}

/* Roles — karty pod sebou s timeline */
.roles-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 2.5rem;
}

/* Timeline čiara — len medzi prvou a poslednou bodkou */
.roles-grid::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 75px;
    bottom: 75px;
    width: 0;
    border-left: 2px dashed #b2dfdb;
}

.role-card {
    display: flex;
    align-items: stretch;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: visible;
}

/* Timeline bodky — na čiare */
.role-card::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #b2dfdb;
    z-index: 1;
    margin-left: 9px;
}

.role-card:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    border-color: #e0f2ed;
}

/* Obrázok na celú výšku karty, prilepený k ľavému okraju */
.role-card-image {
    width: 200px;
    flex-shrink: 0;
    border-radius: 16px 0 0 16px;
    overflow: hidden;
}

.role-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

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

.role-card-content {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.role-card-content h4 {
    margin-bottom: 0.4rem;
    font-size: 1.15rem;
    color: var(--secondary-color);
}

.role-card-content p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 0;
    background: #fff;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Matches visual */
    border: none;
}

.pricing-left {
    background: linear-gradient(135deg, #138d8c 0%, #00d183 100%);
    color: white;
    padding: 3rem;
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.pricing-right {
    padding: 3rem;
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f4f5f6;
}

.price {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin: 0.5rem 0 0.5rem;
    color: white;
}

.price span {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* About Bar (SEO text above footer) */
.about-bar {
    background: #f8f9fa;
    padding: 3rem 0;
    border-top: 1px solid #eee;
}

.about-bar-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.about-bar-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    opacity: 0.7;
}

.about-bar p {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
footer.site-footer {
    background: #1a1a1a;
    /* Enforce Dark Theme */
    padding: 6rem 0 2rem;
    border-top: 1px solid #333;
    font-size: 0.95rem;
    color: #ccc;
}

.footer-grid {
    display: grid;
    gap: 2rem 3rem;
}

.footer-row-1 {
    grid-template-columns: 1.5fr 1fr 1fr;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #333;
}

.footer-row-2 {
    grid-template-columns: 1.4fr 1fr 1fr 0.7fr;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .footer-row-1 {
        grid-template-columns: 1fr 1fr;
    }

    .footer-row-2 {
        grid-template-columns: 1fr 1fr;
    }

    .brand-col {
        grid-column: 1 / -1;
        margin-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    .footer-row-1,
    .footer-row-2 {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #999;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-col ul li a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.brand-col .footer-logo {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Logo in original colors */
}

.footer-bio {
    color: #999;
    line-height: 1.6;
    max-width: 300px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #999;
    font-size: 0.9rem;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-contact-item:hover {
    color: var(--primary-color);
}

.footer-contact-item svg {
    flex-shrink: 0;
    color: var(--primary-color);
}

.footer-whatsapp svg {
    color: var(--primary-color);
}

.footer-whatsapp:hover {
    color: #25d366;
}

.footer-whatsapp:hover svg {
    color: #25d366;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.footer-languages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.lang-link {
    color: #666;
    text-decoration: none;
    font-size: 1.2rem;
    /* Initial size */
    transition: transform 0.2s, color 0.2s, filter 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    filter: grayscale(100%);
    /* Start greyed out */
}

.lang-link:hover {
    color: var(--primary-color);
    transform: scale(1.2);
    opacity: 1;
    filter: grayscale(0%);
    /* Full color on hover */
}

/* Ensure flag icons and SVGs are consistent */
.lang-link span.fi {
    width: 24px;
    line-height: 1.5rem;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 2px;
    /* Slight rounding for flags */
}

.lang-link svg {
    color: inherit;
    /* Allow color override */
}

.lang-link:hover svg {
    color: var(--primary-color);
}

/* =============================================
   MOBILE RESPONSIVE STYLES
   ============================================= */

/* Tablet and smaller */
@media (max-width: 1024px) {
    .container {
        padding: 0 2em;
    }

    .hero-container {
        gap: 2rem;
    }

    .hero-content {
        flex: 8;
    }

    .hero-image {
        flex: 2;
        min-width: 160px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    /* Floating ikony — vertikálny stĺpec na tablete */
    .hero-3d-composition {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        aspect-ratio: auto;
        max-width: 110px;
    }

    .hero-float {
        position: static;
        width: 100% !important;
        animation: none !important;
        transform: none !important;
    }

    .hero-blurred-bg {
        display: none;
    }

    .section-title p {
        max-width: 100%;
    }

    /* Roles tablet - no changes needed */

    .pricing-card {
        flex-direction: column;
    }

    .pricing-left {
        flex: none;
        padding: 2rem;
    }

    .pricing-right {
        padding: 2rem;
    }
}

/* Mobile devices */
@media (max-width: 768px) {

    /* Header mobile — kompaktnejší */
    header {
        padding: 0.6rem 0;
    }

    /* Hero mobile */
    .hero {
        padding: 70px 0 40px;
    }

    .hero-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    /* Desktop kompozícia skrytá na mobile */
    .hero-image {
        display: none;
    }

    /* Rad 3 ikoniek medzi nadpisom a textom */
    .hero-mobile-icons {
        display: flex;
        justify-content: center;
        gap: 1.2rem;
        margin: 1.5rem 0 1.5rem;
    }

    .hero-mobile-icons img {
        width: 70px;
        height: 70px;
        object-fit: contain;
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h1 .hero-title-green {
        white-space: normal;
    }

    .hero p {
        font-size: 1rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .hero .btn-primary,
    .hero .btn-secondary {
        display: block;
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 0.9rem 1.5rem;
        margin: 0.6rem auto;
    }

    .tagline {
        font-size: 0.75rem;
    }

    /* Features mobile */
    .features-section {
        padding: 3rem 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 0.95rem;
    }

    /* About bar mobile */
    .about-bar-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .about-bar-logo {
        width: 45px;
        height: 45px;
    }

    /* Roles mobile — bez timeline, viac priestoru */
    .roles-section {
        padding: 3rem 0;
    }

    .roles-section::before {
        display: none;
    }

    .roles-grid {
        gap: 1.2rem;
        padding-left: 0;
    }

    .roles-grid::before,
    .roles-grid::after {
        display: none;
    }

    .role-card::before,
    .role-card:last-child::after {
        display: none;
    }

    .role-card-image {
        width: 110px;
        border-radius: 16px 0 0 16px;
    }

    .role-card-content {
        padding: 1rem 1.2rem;
    }

    /* Pricing mobile */
    .pricing-section {
        padding: 3rem 0;
    }

    .pricing-card {
        flex-direction: column;
        margin: 0 1rem;
    }

    .pricing-left,
    .pricing-right {
        padding: 2rem;
        text-align: center;
    }

    .price {
        font-size: 3rem;
    }

    /* Footer mobile */
    footer.site-footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .footer-bio {
        max-width: 100%;
    }

    .footer-bottom {
        padding-top: 1.5rem;
    }

    .footer-languages {
        gap: 0.5rem;
    }

    .lang-link {
        font-size: 0.8rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1.2rem;
    }

    .feature-icon {
        font-size: 1.5rem;
    }

    .feature-icon img {
        width: 50px;
        height: 50px;
    }

    .feature-content h3 {
        font-size: 1rem;
    }

    .feature-content p {
        font-size: 0.9rem;
    }

    .price {
        font-size: 2.5rem;
    }
}

/* =============================================================================
   Footer Keywords Section - SEO Long-tail Keywords
   ============================================================================= */

.footer-keywords {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.keyword-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.keyword-tag:hover {
    background: rgba(0, 191, 156, 0.2);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .keywords-list {
        gap: 0.4rem;
    }

    .keyword-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* =============================================================================
   RTL Support (Arabic, Hebrew)
   ============================================================================= */

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 0;
}

[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .feature-card {
    text-align: right;
}

[dir="rtl"] .footer-grid {
    direction: rtl;
}

[dir="rtl"] .breadcrumb {
    direction: rtl;
}

[dir="rtl"] .breadcrumb li + li::before {
    content: "\00AB";  /* « instead of > */
    margin: 0 0.5rem;
}

[dir="rtl"] .auth-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .pricing-card {
    text-align: right;
}

[dir="rtl"] ul, [dir="rtl"] ol {
    padding-right: 1.5em;
    padding-left: 0;
}

/* =============================================================================
   Skip to Content (WCAG 2.1 Level A)
   ============================================================================= */

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    transition: top 0.2s;
}

.skip-to-content:focus {
    top: 0;
}

/* =============================================================================
   Global Focus Visible (WCAG)
   ============================================================================= */

*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* =============================================================================
   Print Styles
   ============================================================================= */

@media print {
    header, footer, .site-footer, .chatbot-widget, .chatbot-toggle,
    .auth-buttons, .mobile-menu-toggle, .cookie-consent-banner,
    .skip-to-content, nav {
        display: none !important;
    }

    main {
        margin: 0;
        padding: 0;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }
}