/* ---------------------------------------------------------
   Reesk theme — Palette FreelanceDay
   --------------------------------------------------------- */

:root {
    --teal: #32B1B2;
    --teal-dark: #258585;
    --teal-darker: #195859;
    --teal-soft: rgba(50, 177, 178, 0.08);
    --skalis: #1E3A5F;
    --skalis-dark: #142A47;
    --skalis-soft: rgba(30, 58, 95, 0.08);
    --black: #0A0A0A;
    --ink: #111111;
    --muted: #5A5A5A;
    --line: #E8E8E8;
    --bg: #FFFFFF;
    --bg-soft: #FAFAFA;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-soft: 0 6px 24px rgba(0, 0, 0, 0.06);
    --shadow-lift: 0 18px 40px rgba(50, 177, 178, 0.22);
    --transition: 0.25s ease;
    --container: 1200px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); }

h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    color: var(--black);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 0.4em;
}

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

/* ----------- Header ----------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(180%) blur(10px);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.brand-logo {
    height: 38px;
    width: auto;
    display: block;
}
.brand-logo--small { height: 30px; }
.brand-mark {
    font-weight: 800;
    font-size: 26px;
    letter-spacing: 0.04em;
    color: var(--black);
}
.brand-mark::after {
    content: '.';
    color: var(--teal);
}
.brand-mark--small { font-size: 20px; }

.primary-nav .nav-list,
.footer-nav .footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
}
.primary-nav a {
    color: var(--ink);
    font-weight: 500;
    font-size: 15px;
    transition: color var(--transition);
}
.primary-nav a:hover { color: var(--teal); }

.header-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

/* ----------- Language switcher ----------- */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.lang-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1;
    transition: background var(--transition), color var(--transition);
}
.lang-switcher a:hover { color: var(--ink); background: var(--bg-soft); }
.lang-switcher a.is-active {
    background: var(--teal);
    color: #fff;
}
.lang-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
    display: inline-block;
    margin-right: 6px;
    flex-shrink: 0;
    overflow: hidden;
    vertical-align: middle;
}
.lang-flag svg { display: block; width: 100%; height: 100%; }

/* ----------- Hero choice (homepage) ----------- */
.hero-choice {
    position: relative;
    padding: 110px 0 120px;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.hero-choice::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    z-index: -2;
}
.hero-choice::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(10, 10, 10, 0.85) 0%, rgba(25, 88, 89, 0.85) 100%),
        radial-gradient(900px 500px at 80% 100%, rgba(50, 177, 178, 0.35), transparent 60%);
    z-index: -1;
}
.hero-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
    color: #fff;
}
.hero-intro .eyebrow { color: #6FE3E4; }
.hero-intro .hero-title { color: #fff; }
.hero-intro .hero-sub { color: rgba(255,255,255,0.85); }
.eyebrow {
    display: inline-block;
    color: var(--teal);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 18px;
}
.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    margin: 0 0 18px;
}
.hero-sub {
    color: var(--muted);
    font-size: 18px;
    margin: 0;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.choice-card {
    display: block;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 44px 36px;
    color: var(--ink);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.choice-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 0;
}
.choice-card__inner { position: relative; z-index: 1; }
.choice-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: transparent;
}
.choice-card:hover::before { opacity: 1; }
.choice-card:hover .choice-card__title,
.choice-card:hover .choice-card__desc,
.choice-card:hover .choice-card__cta,
.choice-card:hover .choice-card__icon { color: #fff; }
.choice-card:hover .choice-card__icon { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.12); }

.choice-card__icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--teal-soft);
    border: 1px solid rgba(50,177,178,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    margin-bottom: 24px;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.choice-card__title {
    font-size: 32px;
    margin: 0 0 10px;
    transition: color var(--transition);
}
.choice-card__desc {
    color: var(--muted);
    font-size: 16px;
    margin: 0 0 24px;
    transition: color var(--transition);
}
.choice-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--teal);
    transition: color var(--transition);
}
.choice-card__cta svg {
    transition: transform var(--transition);
}
.choice-card:hover .choice-card__cta svg { transform: translateX(4px); }

/* ----------- Page hero (Company / Consultant) ----------- */
.page-hero {
    position: relative;
    padding: 120px 0 100px;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    text-align: left;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10, 10, 10, 0.82) 0%, rgba(25, 88, 89, 0.78) 60%, rgba(50, 177, 178, 0.55) 100%);
    z-index: -1;
}
.page-hero--company::before { background-image: url('../img/company.jpg'); }
.page-hero--consultant::before { background-image: url('../img/consultant.jpg'); }
.page-hero .container { max-width: 880px; position: relative; z-index: 1; }
.page-hero .eyebrow { color: #6FE3E4; }
.page-hero .page-title { color: #fff; }
.page-hero .page-lead { color: rgba(255, 255, 255, 0.9); }
.page-hero .btn-primary {
    background: #fff;
    color: var(--teal-dark);
}
.page-hero .btn-primary:hover {
    background: var(--black);
    color: #fff;
}
.page-title {
    font-size: clamp(36px, 5vw, 56px);
    margin: 12px 0 18px;
}
.page-lead {
    color: var(--muted);
    font-size: 18px;
    margin: 0 0 28px;
    max-width: 720px;
}

/* ----------- Buttons ----------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}
.btn-primary {
    background: var(--teal);
    color: #fff;
}
.btn-primary:hover {
    background: var(--teal-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(50,177,178,0.28);
}
.btn-lg { padding: 18px 32px; font-size: 17px; }

/* ----------- Features ----------- */
.features {
    padding: 70px 0;
    background: var(--bg-soft);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform var(--transition), box-shadow var(--transition);
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}
.feature-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--teal-soft);
    color: var(--teal);
    font-weight: 700;
    margin-bottom: 18px;
}
.feature h3 {
    font-size: 20px;
    margin: 0 0 10px;
}
.feature p {
    color: var(--muted);
    margin: 0;
    font-size: 15.5px;
}

/* ----------- Services / Ecosystem section ----------- */
.services-section {
    padding: 80px 0 90px;
    background: var(--bg-soft);
}
.services-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}
.services-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin: 8px 0 12px;
}
.services-head p {
    color: var(--muted);
    margin: 0;
    font-size: 17px;
}
.services-group { margin-bottom: 44px; }
.services-group:last-child { margin-bottom: 0; }
.services-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
    padding: 0 4px;
    flex-wrap: wrap;
}
.services-group-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink);
    margin: 0;
}
.services-group-title::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--teal);
}
.services-group--skalis .services-group-title::before { background: var(--skalis); }
.services-group-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.services-group-link:hover { color: var(--teal); }
.services-group--skalis .services-group-link:hover { color: var(--skalis); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}
.service-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 22px 22px;
    color: var(--ink);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    min-height: 150px;
}
.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--teal);
    box-shadow: 0 12px 28px rgba(50,177,178,0.15);
}
.services-group--skalis .service-card:hover {
    border-color: var(--skalis);
    box-shadow: 0 12px 28px rgba(30,58,95,0.18);
}
.service-card-title {
    font-size: 16.5px;
    font-weight: 700;
    margin: 0;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.service-card-desc {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}
.service-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--teal);
    margin-top: auto;
    padding-top: 8px;
}
.services-group--skalis .service-card-cta { color: var(--skalis); }
.service-card-cta svg { transition: transform var(--transition); }
.service-card:hover .service-card-cta svg { transform: translateX(3px); }

/* ----------- Video / Fred AI section ----------- */
.video-section {
    padding: 90px 0;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}
.video-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 400px at 0% 50%, var(--teal-soft), transparent 60%),
        radial-gradient(600px 400px at 100% 0%, rgba(50, 177, 178, 0.06), transparent 60%);
    z-index: 0;
}
.video-section .container { position: relative; z-index: 1; }
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: center;
}
.video-copy .eyebrow { margin-bottom: 14px; }
.video-copy h2 {
    font-size: clamp(28px, 3.6vw, 38px);
    margin: 0 0 18px;
}
.video-copy h2 .accent { color: var(--teal); }
.video-copy p {
    color: var(--muted);
    font-size: 17px;
    margin: 0 0 26px;
}
.video-copy .btn { margin-top: 4px; }
.video-frame {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 24px 48px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.06);
    background: var(--black);
}
.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 860px) {
    .video-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ----------- Form section ----------- */
.form-section {
    padding: 80px 0 90px;
    background: var(--bg);
    position: relative;
}
.form-section::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 280px;
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    z-index: 0;
}
.form-section .container { position: relative; z-index: 1; }
.form-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}
.form-section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin: 8px 0 12px;
}
.form-section-head p {
    color: var(--muted);
    margin: 0;
    font-size: 17px;
}
.form-embed {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.form-embed iframe {
    display: block;
    width: 100%;
    border: 0;
    min-height: 1100px;
    background: #fff;
}
.form-fallback {
    text-align: center;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 14.5px;
}
.form-fallback a { color: var(--teal-dark); font-weight: 600; }

/* ----------- CTA section ----------- */
.cta-section {
    padding: 90px 0;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: #fff;
    text-align: center;
}
.cta-section h2 {
    color: #fff;
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 12px;
}
.cta-section p {
    margin: 0 0 28px;
    opacity: 0.95;
}
.cta-section .btn-primary {
    background: #fff;
    color: var(--teal-dark);
}
.cta-section .btn-primary:hover {
    background: var(--black);
    color: #fff;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

/* ----------- Content / Page generic ----------- */
.content-section {
    padding: 60px 0 90px;
}
.page-article p { color: var(--ink); }
.page-article a { color: var(--teal); }

/* ----------- Footer ----------- */
.site-footer {
    background: var(--black);
    color: #c9c9c9;
    padding: 56px 0 28px;
}
.site-footer .brand-mark { color: #fff; }
.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
}
.footer-tagline {
    margin: 8px 0 0;
    color: #9d9d9d;
    font-size: 14.5px;
}
.footer-nav a { color: #c9c9c9; font-size: 14.5px; }
.footer-nav a:hover { color: var(--teal); }
.footer-copy {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 22px;
    margin: 28px 0 0;
    font-size: 13px;
    color: #7d7d7d;
}
.footer-legal {
    grid-column: 1 / -1;
    margin: 18px 0 0;
    padding: 18px 22px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.03);
    font-size: 12.5px;
    line-height: 1.65;
    color: #9a9a9a;
}
.footer-legal strong { color: #d8d8d8; font-weight: 600; }
.footer-legal p { margin: 0 0 6px; }
.footer-legal p:last-child { margin-bottom: 0; }
.footer-legal a { color: var(--teal); }

/* ----------- Responsive ----------- */
@media (max-width: 860px) {
    .choice-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-nav .footer-nav-list { justify-content: center; flex-wrap: wrap; }
    .hero-choice { padding: 60px 0 80px; }
    .page-hero { padding: 60px 0 40px; }
    .features, .cta-section { padding: 60px 0; }
}

@media (max-width: 540px) {
    .header-inner { padding: 14px 20px; }
    .primary-nav .nav-list { gap: 16px; }
    .brand-mark { font-size: 22px; }
}

/* ----------- Reveal animation ----------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
