/* ══════════════════════════════════════
   Habersberger – Court Interpreter
   ══════════════════════════════════════ */

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

:root {
    --navy: #1a2332;
    --navy-light: #243044;
    --gold: #b8945a;
    --gold-light: #d4b87a;
    --off-white: #f8f6f2;
    --text-dark: #2d3748;
    --text-light: #e8e0d4;
    --border-subtle: #d4c5a9;
}

[data-lang="cs"] [lang="en"] { display: none; }
[data-lang="en"] [lang="cs"] { display: none; }

html { scroll-behavior: smooth; scroll-padding-top: 150px; }

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text-dark);
    background: var(--off-white);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
}

/* ── Header ── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 3rem;
    max-width: 1000px;
    margin: 0 auto;
    transition: background 0.4s, box-shadow 0.4s;
}

.header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.4s, box-shadow 0.4s;
}

.header-wrap.scrolled {
    background: rgba(26, 35, 50, 0.95);
    box-shadow: 0 2px 30px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.header {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
}

.header__name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.02em;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.header-wrap.scrolled .header__name { opacity: 1; }

.header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header__links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.header__links a {
    color: var(--border-subtle);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    transition: color 0.3s;
}

.header__links a:hover {
    color: var(--gold);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 110;
}

/* Mobile lang toggle is hidden on desktop, shown only inside open mobile menu */
.lang-toggle--mobile { display: none; }
.header__links-lang { display: none; }

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-light);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.lang-toggle {
    display: flex;
    gap: 0;
    border: 1px solid rgba(184, 148, 90, 0.4);
    border-radius: 4px;
    overflow: hidden;
}

.lang-toggle a {
    background: transparent;
    color: var(--text-light);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    transition: background 0.3s, color 0.3s;
}

.lang-toggle a.active {
    background: var(--gold);
    color: var(--navy);
}

.lang-toggle a:hover:not(.active) {
    background: rgba(184, 148, 90, 0.15);
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--navy);
    color: var(--text-light);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(184,148,90,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(184,148,90,0.04) 0%, transparent 50%);
}

.hero__prefix {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 0.8s 0.3s forwards;
}

.hero__name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 0.8s 0.5s forwards;
}

.hero__divider {
    width: 80px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 1.5rem;
    transform: scaleX(0);
    animation: expandLine 0.8s 1s forwards;
}

.hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--border-subtle);
    max-width: 600px;
    opacity: 0;
    animation: slideUp 0.8s 1.2s forwards;
}

.hero__ctas {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeIn 0.8s 1.6s forwards;
}

.hero__cta {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s;
}

.hero__cta--primary {
    background: var(--gold);
    color: var(--navy);
}

.hero__cta--primary:hover {
    background: var(--gold-light);
}

.hero__cta--secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(184,148,90,0.4);
}

.hero__cta--secondary:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 0.8s 2s forwards;
}

.hero__scroll span {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    margin: 0 auto;
    animation: scrollPulse 2s infinite;
}

/* ── Sections ── */
.section {
    padding: 6rem 2rem;
    scroll-margin-top: 40vh;
}

.section__inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section__heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 3rem;
    line-height: 1.2;
}

/* ── Services ── */
.services__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.service-card {
    padding: 2.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--gold);
    transition: height 0.4s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26,35,50,0.08);
}

.service-card:hover::before {
    height: 100%;
}

.service-card__icon {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--gold);
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #5a6577;
    line-height: 1.8;
}


/* ── Credentials ── */
.credentials {
    background: var(--navy);
    color: var(--text-light);
    text-align: center;
}

.credentials .section__heading {
    color: var(--text-light);
}

.credentials__text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--border-subtle);
}

/* ── Coverage ── */
.coverage {
    text-align: center;
}

.coverage__desc {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1rem;
    color: #5a6577;
    line-height: 1.8;
}

.coverage__highlight {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    padding: 1.5rem 2rem;
    background: rgba(184, 148, 90, 0.08);
    border-left: 3px solid var(--gold);
    border-radius: 2px;
    text-align: left;
}

.coverage__highlight-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.coverage__highlight-text {
    font-size: 0.95rem;
    color: #5a6577;
    line-height: 1.8;
}

.locations {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.location {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    transition: border-color 0.3s;
}

.location:hover {
    border-color: var(--gold);
}

.location__name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
}

.location__region {
    font-size: 0.8rem;
    color: #8a9ab5;
    letter-spacing: 0.05em;
}

/* ── Driving Licence Strip ── */
.dl-strip {
    background: var(--gold);
    padding: 1.5rem 2rem;
}

.dl-strip__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.dl-strip__icon {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    flex-shrink: 0;
}

.dl-strip__content {
    flex: 1;
    min-width: 200px;
}

.dl-strip__heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.15rem;
}

.dl-strip__text {
    font-size: 0.85rem;
    color: var(--navy);
    letter-spacing: 0.02em;
}

.dl-strip__contact {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border: 1.5px solid var(--navy);
    border-radius: 2px;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s;
}

.dl-strip__contact:hover {
    background: var(--navy);
    color: var(--gold);
}


/* ── Testimonials ── */
.testimonials {
    background: var(--navy);
    color: var(--text-light);
}

.testimonials .section__heading {
    color: var(--text-light);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.testimonial {
    padding: 2rem;
    border: 1px solid rgba(184,148,90,0.15);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.testimonial__text {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--border-subtle);
    flex: 1;
}

.testimonial__author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: auto;
}

.testimonial__author strong {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
}

.testimonial__author span {
    font-size: 0.78rem;
    color: rgba(212,197,169,0.6);
}

/* ── Selected Clients ── */
.clients {
    background: var(--off-white);
    text-align: center;
}

.clients__list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
    row-gap: 0.85rem;
    max-width: 880px;
    margin: 0 auto;
    text-align: left;
}

.clients__list li {
    position: relative;
    padding: 0.6rem 0 0.6rem 1.5rem;
    font-size: 0.95rem;
    color: #5a6577;
    line-height: 1.5;
    border-bottom: 1px solid rgba(184,148,90,0.12);
}

.clients__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.15rem;
    width: 8px;
    height: 1px;
    background: var(--gold);
}

/* ── Contact ── */
.contact {
    background: var(--off-white);
    text-align: center;
}

.contact__primary {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.contact__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    padding: 1.5rem 2.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    transition: border-color 0.3s;
    min-width: 240px;
}

.contact__link:hover {
    border-color: var(--gold);
}

.contact__link-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
}

.contact__secondary {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #5a6577;
}

.contact__item-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
}


/* ── Footer ── */
.footer {
    background: var(--navy);
    color: var(--text-light);
    padding: 3rem 2rem 2rem;
}

.footer__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: start;
}

.footer__col {
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--border-subtle);
}

.footer__col--center {
    text-align: center;
}

.footer__col--right {
    text-align: right;
}

.footer__name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.footer__title {
    font-size: 0.8rem;
    color: var(--border-subtle);
}

.footer__divider {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 1rem;
}

.footer__legal {
    font-size: 0.72rem;
    color: rgba(232,224,212,0.5);
    line-height: 1.6;
}

.footer__bottom {
    max-width: 1000px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(184,148,90,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: rgba(232,224,212,0.35);
}

.footer__bottom a:not(.fd-credit-stamp) {
    color: rgba(232,224,212,0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.footer__bottom a:hover:not(.fd-credit-stamp) {
    color: var(--gold);
}

.footer__links-bottom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer__sep {
    color: rgba(232,224,212,0.25);
}

/* ── Legal page (GDPR) ── */
.header-wrap--solid {
    background: rgba(26, 35, 50, 0.95);
    box-shadow: 0 2px 30px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.header-wrap--solid .header__name {
    opacity: 1;
}

.legal-page {
    background: var(--off-white);
}

.legal {
    padding-top: 9rem;
    padding-bottom: 5rem;
    background: var(--off-white);
}

.legal__inner {
    max-width: 760px;
}

.legal h1.section__heading {
    margin-bottom: 1.5rem;
}

.legal__intro {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #5a6577;
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.legal h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin-top: 2.5rem;
    margin-bottom: 0.9rem;
    line-height: 1.3;
}

.legal p,
.legal li {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.8;
}

.legal p + p {
    margin-top: 0.8rem;
}

.legal ul {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.legal ul li {
    position: relative;
    padding: 0.25rem 0 0.25rem 1.5rem;
}

.legal ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 8px;
    height: 1px;
    background: var(--gold);
}

.legal strong {
    color: var(--navy);
    font-weight: 600;
}

.legal a {
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    transition: color 0.3s, border-color 0.3s;
}

.legal a:hover {
    color: var(--gold);
    border-bottom-color: var(--navy);
}

.legal__back {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.legal__back a {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-bottom: none;
}

.legal__back a:hover {
    border-bottom: 1px solid var(--gold);
}

/* ── Animations ── */
@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes expandLine {
    to { transform: scaleX(1); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

@keyframes menuFadeIn {
    to { opacity: 1; }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .header { padding: 0.75rem 1.5rem; }

    .header__nav {
        gap: 1rem;
    }

    .header__links {
        display: none;
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(26, 35, 50, 0.98);
        backdrop-filter: blur(20px);
        padding: 5rem 2rem 3rem;
        gap: 0.5rem;
        z-index: 105;
        opacity: 0;
        animation: menuFadeIn 0.3s ease forwards;
    }

    .header__links.open {
        display: flex;
    }

    .header__links li {
        list-style: none;
    }

    .header__links a {
        display: block;
        padding: 0.85rem 0;
        font-family: 'Playfair Display', serif;
        font-size: 1.5rem;
        font-weight: 400;
        color: var(--text-light);
        letter-spacing: 0.04em;
        text-align: center;
        transition: color 0.3s;
    }

    .header__links a:hover {
        color: var(--gold);
    }

    .hamburger {
        display: flex;
    }

    .lang-toggle {
        display: none;
    }

    .header__links-lang {
        display: block;
        margin-top: 2.5rem;
    }

    .lang-toggle--mobile {
        display: flex;
        justify-content: center;
        gap: 0;
        border: 1px solid rgba(184,148,90,0.4);
        border-radius: 4px;
        overflow: hidden;
    }

    .lang-toggle--mobile a {
        background: transparent;
        color: var(--text-light);
        font-family: 'Source Sans 3', sans-serif !important;
        font-size: 0.85rem !important;
        font-weight: 500;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        text-decoration: none;
        padding: 0.55rem 1.5rem !important;
        transition: background 0.3s, color 0.3s;
    }

    .lang-toggle--mobile a.active {
        background: var(--gold);
        color: var(--navy);
    }

    .lang-toggle--mobile a:hover:not(.active) {
        background: rgba(184,148,90,0.15);
        color: var(--text-light);
    }

    /* Force header background visible when menu is open */
    body.menu-open .header-wrap {
        background: transparent;
        box-shadow: none;
    }

    body.menu-open {
        overflow: hidden;
    }

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

    .services__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section { padding: 4rem 1.5rem; }

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

    .testimonials__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .clients__list {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 0;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__col--right { text-align: center; }

    .footer__bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* fana.design footer credit — "Brutal Stamp" v1.0 */
.fd-credit-stamp {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #666;
    font-family: inherit;
    font-size: 13px;
    padding: 4px 10px;
    isolation: isolate;
    transition:
        transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
        color 180ms ease;
}
.fd-credit-stamp::before {
    content: '';
    position: absolute;
    inset: -2px -8px;
    background: #FFD93D;
    box-shadow: 5px 5px 0 #0F2D7A;
    z-index: -1;
    opacity: 0;
    transform: scale(0.6);
    transform-origin: center;
    transition:
        opacity 180ms ease,
        transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fd-credit-stamp:hover,
.fd-credit-stamp:focus-visible {
    color: #0F2D7A;
    transform: rotate(-2deg);
}
.fd-credit-stamp:hover::before,
.fd-credit-stamp:focus-visible::before {
    opacity: 1;
    transform: scale(1);
}
.fd-credit-stamp .fd-dot { font-weight: 600; }
.fd-credit-stamp:focus-visible {
    outline: 2px solid #1F5FD6;
    outline-offset: 6px;
    border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
    .fd-credit-stamp,
    .fd-credit-stamp::before { transition-duration: 0.01ms !important; }
    .fd-credit-stamp:hover,
    .fd-credit-stamp:focus-visible { transform: none; }
}
