/* ===========================
   CSS VARIABLES (like #define in C++)
   We set colours and fonts once here,
   then reuse them everywhere below.
=========================== */
:root {
    --black:  #0a0a0a;   /* page background */
    --dark:   #141414;   /* card / nav background */
    --gold:   #c8a96e;   /* accent colour */
    --white:  #ffffff;   /* main text */
    --grey:   #888888;   /* subtle text */
    --font:   'Segoe UI', sans-serif;
}

/* ===========================
   TRANSLATION FLASH PREVENTION
   The inline <script> in each <head> adds this class immediately
   (before the browser paints anything). JS removes it once
   translations have been applied, so users never see Czech text
   flash before English is loaded.
=========================== */
html.lang-loading {
    visibility: hidden;
}

/* ===========================
   RESET
   Browsers add their own default padding/margin.
   We zero everything out for a clean slate.
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font);
}

/* ===========================
   NAVIGATION
=========================== */
header {
    background-color: var(--dark);
    position: sticky;   /* nav stays at top when you scroll */
    top: 0;
    z-index: 100;       /* stays on top of other elements */
}

nav {
    max-width: 1200px;      /* content won't stretch wider than this */
    margin: 0 auto;         /* centres the nav on wide screens */
    padding: 1.2rem 2rem;
    display: flex;              /* lay items in a row */
    justify-content: space-between; /* logo left, links right */
    align-items: center;        /* vertically centred */
}

.logo img {
    height: 45px;       /* fixed height, width adjusts automatically */
    display: block;     /* removes the small gap browsers add under images */
}

.nav-links {
    list-style: none;   /* removes bullet points from <ul> */
    display: flex;      /* makes list items sit in a row */
    gap: 2.5rem;        /* space between each menu item */
}

.nav-links a {
    color: var(--white);
    text-decoration: none;  /* removes underline from links */
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    transition: color 0.2s; /* smooth colour change on hover */
}

.nav-links a:hover {
    color: var(--gold);     /* turns gold when you mouse over it */
}

/* ===========================
   LANGUAGE SWITCHER
=========================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 2rem;
    color: var(--grey);
    font-size: 0.8rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--grey);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 0.2rem 0.3rem;
    transition: color 0.2s;
}

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

.lang-btn.active {
    color: var(--gold);         /* active language shown in gold */
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
    min-height: 90vh;           /* takes up most of the screen height */
    display: flex;
    align-items: center;        /* vertically centres the content */
    padding: 4rem 2rem;
    background: radial-gradient(ellipse at top left, #3d2e00 0%, #1a1200 50%, var(--black) 75%);
    /* radial-gradient = a circular glow effect, gold-tinted top left fading to black */
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    /* clamp(min, preferred, max) — font scales with screen size
       never smaller than 2.2rem, never bigger than 4rem */
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--grey);
    margin-bottom: 2.5rem;
    max-width: 480px;           /* keeps the subtitle from stretching too wide */
    line-height: 1.6;
}

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

/* --- Buttons --- */
.btn {
    padding: 0.85rem 2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;       /* smooth animation on hover */
    display: inline-block;
}

.btn-primary {
    background-color: var(--gold);
    color: #000;                /* black text on gold background */
}

.btn-primary:hover {
    background-color: #d4b87a; /* slightly lighter gold on hover */
    transform: translateY(-2px); /* moves up 2px — subtle lift effect */
}

.btn-outline {
    border: 1px solid var(--grey);
    color: var(--white);
}

.btn-outline:hover {
    border-color: var(--white);
    transform: translateY(-2px);
}

/* ===========================
   SERVICES STRIP
=========================== */
.services-strip {
    background-color: var(--dark);
    border-top: 1px solid #222;     /* subtle dividing line */
    border-bottom: 1px solid #222;
    padding: 2.5rem 2rem;
}

.services-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;  /* spreads the 4 items evenly */
    align-items: center;
    gap: 2rem;
}

.service-item {
    display: flex;
    flex-direction: column;         /* icon on top, text below */
    align-items: center;
    gap: 0.75rem;
    color: var(--grey);
    transition: color 0.2s;
}

.service-item:hover {
    color: var(--gold);             /* whole item turns gold on hover */
}

.service-item svg {
    width: 36px;
    height: 36px;
}

.service-item span {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;   /* keeps multi-line labels centred on small screens */
}

/* ===========================
   ABOUT SECTION
=========================== */
.about {
    padding: 6rem 2rem;
}

.about-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;  /* two equal columns */
    gap: 5rem;
    align-items: center;
}

/* section-label is the small gold text above headings e.g. "O nás" */
.section-label {
    display: block;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.about-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--grey);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--dark);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.2s;
}

.feature-card:hover {
    border-color: var(--gold);      /* gold border on hover */
}

.feature-number {
    display: block;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--grey);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===========================
   FOOTER
=========================== */
footer {
    background-color: var(--dark);
    border-top: 1px solid #222;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;  /* brand column is twice as wide */
    gap: 3rem;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
    display: block;
}

.footer-brand p {
    color: var(--grey);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-nav h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.footer-nav ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-nav a,
.footer-contact a {
    color: var(--grey);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--gold);
}

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

.footer-address p {
    color: var(--grey);
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-social {
    margin-top: 1.2rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--grey);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-social-link:hover {
    color: var(--gold);
}

.company-social {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding: 1.5rem 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--grey);
    font-size: 0.8rem;
}

/* ===========================
   ACTIVE NAV LINK
   Highlights the current page in the navbar
=========================== */
.nav-links a.active {
    color: var(--gold);
}

/* ===========================
   PAGE HERO
   Smaller header used on inner pages (Služby, Reference, Kontakt)
   instead of the full-screen hero on the homepage
=========================== */
.page-hero {
    padding: 6rem 2rem 4rem;
    background: radial-gradient(ellipse at top left, #3d2e00 0%, #1a1200 50%, var(--black) 75%);
    border-bottom: 1px solid #222;
}

.page-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-hero p {
    color: var(--grey);
    font-size: 1.1rem;
    max-width: 500px;
    line-height: 1.7;
}

/* ===========================
   SERVICES MAIN
   Two column layout with service categories and bullet lists
=========================== */
.services-main {
    padding: 6rem 2rem;
    border-bottom: 1px solid #222;
}

.services-main-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.service-category h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #222;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-list li {
    color: var(--grey);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 1.2rem;
    position: relative;     /* needed for the :: before pseudo-element below */
}

.service-list li::before {
    content: '—';           /* adds a dash before each item */
    color: var(--gold);
    position: absolute;
    left: 0;
}

/* ===========================
   SERVICE CARDS
   Four detailed cards at the bottom of the Služby page
=========================== */
.service-cards {
    padding: 6rem 2rem;
}

.service-cards-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.service-card {
    background-color: var(--dark);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 2.5rem;
    transition: border-color 0.2s;
}

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

.service-card svg {
    width: 32px;
    height: 32px;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--grey);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===========================
   REFERENCE PAGE — PROJECT CARDS
=========================== */
.projects {
    padding: 6rem 2rem;
}

.projects-inner {
    max-width: 1200px;
    margin: 0 auto;
}

#projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 3 cards per row */
    gap: 2rem;
}

.project-card {
    display: block;             /* <a> is inline by default — make it block */
    text-decoration: none;      /* remove underline from the link */
    color: inherit;             /* don't change text colour */
    background-color: var(--dark);
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;           /* keeps content inside the rounded corners */
    transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px); /* lifts card up on hover */
}

.project-card-body {
    padding: 2rem;
}

.project-category {
    display: inline-block;
    background-color: #1f1a0e;  /* very dark gold tint */
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-card p {
    color: var(--grey);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--grey);
    border-top: 1px solid #222;
    padding-top: 1rem;
}

/* photo on the reference card */
.project-card-image {
    display: block;
    position: relative;
    overflow: hidden;
    height: 220px;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* crops the image to fill the box neatly */
    transition: transform 0.4s;
}

.project-card:hover .project-card-image img {
    transform: scale(1.05);     /* subtle zoom on hover */
}

.project-card-overlay {
    position: absolute;
    inset: 0;                   /* shorthand for top/right/bottom/left: 0 */
    background: rgba(0,0,0,0.45);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-card-overlay {
    opacity: 1;                 /* overlay appears on hover */
}

/* ===========================
   PROJECT DETAIL PAGE
=========================== */
.project-detail-hero {
    padding: 6rem 2rem 4rem;
    background: radial-gradient(ellipse at top left, #3d2e00 0%, #1a1200 50%, var(--black) 75%);
    border-bottom: 1px solid #222;
}

.project-detail-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    color: var(--grey);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--gold);
}

.project-detail-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-detail-meta {
    display: flex;
    gap: 2rem;
    color: var(--grey);
    font-size: 0.9rem;
}

.project-main-photo {
    padding: 4rem 2rem 0;
}

.project-main-photo-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.project-main-photo img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;            /* shows hand cursor so user knows it's clickable */
    transition: opacity 0.2s;
}

.project-main-photo img:hover {
    opacity: 0.9;
}

.project-content {
    padding: 4rem 2rem 6rem;
}

.project-content-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.project-description h2,
.project-gallery h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.project-description p {
    color: var(--grey);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.2s;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    opacity: 0.85;
}

/* ===========================
   VÍCE PROJEKTŮ SECTION
=========================== */
.more-projects {
    background-color: var(--dark);
    border-top: 1px solid #222;
    padding: 5rem 2rem;
    text-align: center;
}

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

.more-projects h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.more-projects p {
    color: var(--grey);
    margin-bottom: 2rem;
}

.more-projects-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ===========================
   LIGHTBOX
=========================== */
.lightbox {
    position: fixed;            /* covers the whole screen */
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;       /* invisible and unclickable by default */
    transition: opacity 0.3s;
}

.lightbox.open {
    opacity: 1;
    pointer-events: all;        /* visible and clickable when open */
}

.lightbox img {
    max-width: 90vw;            /* vw = viewport width, vh = viewport height */
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

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

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--white);
    font-size: 3.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem 1.2rem;
    transition: color 0.2s;
    user-select: none;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--gold);
}

/* ===========================
   KONTAKT PAGE
=========================== */
.contact-people {
    padding: 6rem 2rem;
    border-bottom: 1px solid #222;
}

.contact-people-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.person-card {
    background-color: var(--dark);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: border-color 0.2s;
}

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

.person-photo {
    flex-shrink: 0;         /* prevents photo from shrinking if text is long */
    width: 80px;
    height: 80px;
    border-radius: 50%;     /* makes it a circle */
    overflow: hidden;
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* shown if the photo file doesn't exist yet */
.person-photo-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    background-color: #1f1a0e;
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.person-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.person-role {
    color: var(--grey);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.person-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.person-contacts a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--grey);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.person-contacts svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Company info block */
.contact-company {
    padding: 6rem 2rem;
}

.contact-company-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.company-info-card {
    background-color: var(--dark);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 600px;
}

.company-info-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #222;
}

.company-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.company-info-item {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
}

.info-label {
    color: var(--grey);
    min-width: 100px;       /* keeps labels aligned */
}

.company-info-item a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

.company-info-item a:hover {
    color: var(--gold);
}


/* ===========================
   CONTACT FORM
=========================== */
.contact-form-section {
    padding: 5rem 2rem;
    border-top: 1px solid #222;
}

.contact-form-inner {
    max-width: 680px;
    margin: 0 auto;
}

.contact-form-inner h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.contact-form-inner > p {
    color: var(--grey);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--dark);
    border: 1px solid #333;
    color: var(--white);
    font-family: var(--font);
    font-size: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

#form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.95rem;
    min-height: 1.4em;
}

.form-status.success { color: #6fcf97; }
.form-status.error   { color: #eb5757; }

/* ===========================
   BRANDS SECTION (homepage marquee)
=========================== */
.brands-section {
    padding: 5rem 2rem;
    border-top: 1px solid #222;
    overflow: hidden;
}

.brands-section-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
    text-align: center;
}

.brands-section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
}

.brands-marquee {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.brands-track {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
}

.brand-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    border: 1px solid #222;
    border-radius: 12px;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 200px;
    margin-right: 2rem;
    transition: border-color 0.2s, background-color 0.2s;
}

.brand-logo-item:hover {
    border-color: var(--gold);
    background-color: var(--dark);
}

.brand-logo-item img {
    height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: invert(1);
    transition: filter 0.3s, opacity 0.3s;
}

.brand-logo-item:hover img {
    filter: invert(1);
    opacity: 0.8;
}

/* JT Motors — flatten all colours to white via CSS only */
a[href="znacky-jtmotors.html"].brand-logo-item img,
a[href="znacky-jtmotors.html"].brand-logo-item:hover img,
a[href="znacky-jtmotors.html"].brand-card .brand-card-logo img {
    filter: brightness(0) invert(1);
}

/* ===========================
   BRANDS OVERVIEW PAGE (znacky.html)
=========================== */
.brands-grid-section {
    padding: 6rem 2rem;
}

.brands-grid-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.brand-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: var(--dark);
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}

.brand-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.brand-card-logo {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    border-bottom: 1px solid #222;
    background-color: #0f0f0f;
}

.brand-card-logo img {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    filter: invert(1);
}

.brand-card-body {
    padding: 2rem;
}

.brand-card-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.brand-card-body p {
    color: var(--grey);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.brand-card-link {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ===========================
   BRAND DETAIL PAGE
=========================== */
.brand-intro {
    padding: 6rem 2rem;
    border-bottom: 1px solid #222;
}

.brand-intro-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: center;
}

.brand-logo-display {
    background-color: var(--dark);
    border: 1px solid #222;
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.brand-logo-display img {
    max-height: 100px;
    max-width: 220px;
    object-fit: contain;
    filter: invert(1);
}

.brand-description h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.brand-description p {
    color: var(--grey);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.brand-products {
    padding: 6rem 2rem;
    border-bottom: 1px solid #222;
}

.brand-products-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.brand-products-inner h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.product-category {
    margin-bottom: 4rem;
}

.product-category-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #222;
}

.product-category-heading svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.brand-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.brand-product-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: var(--dark);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.2s, transform 0.2s;
}

.brand-product-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.brand-product-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.brand-product-card p {
    color: var(--grey);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.brand-product-card .card-link {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.brand-cta {
    padding: 5rem 2rem;
    text-align: center;
    background-color: var(--dark);
    border-top: 1px solid #222;
}

.brand-cta p {
    color: var(--grey);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

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


/* ===========================
   HAMBURGER BUTTON
   Hidden on desktop, visible on mobile
=========================== */
.hamburger {
    display: none;          /* hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: transform 0.3s, opacity 0.3s;
}

/* Animate to X when open */
.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);
}

/* ===========================
   RESPONSIVE — TABLET & MOBILE
=========================== */
@media (max-width: 768px) {

    /* ── Navigation ── */
    nav {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
    }

    .hamburger {
        display: flex;      /* show hamburger on mobile */
        padding: 0.4rem;
        flex-shrink: 0;
    }

    .logo {
        /* Absolutely centered regardless of hamburger/switcher width */
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        height: 38px;
    }

    .lang-switcher {
        margin-left: 0;
        gap: 0.25rem;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    .lang-btn {
        font-size: 0.75rem;
        padding: 0.15rem 0.2rem;
    }

    .nav-links {
        display: none;          /* hidden by default */
        position: absolute;
        top: 100%;              /* below the nav bar */
        left: 0;
        right: 0;
        background-color: var(--dark);
        flex-direction: column;
        padding: 1.5rem 2rem 2rem;
        gap: 0;
        border-bottom: 1px solid #222;
    }

    .nav-links.open {
        display: flex;          /* shown when hamburger is clicked */
    }

    .nav-links li {
        padding: 0.75rem 0;
        border-bottom: 1px solid #1a1a1a;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    /* ── Hero ── */
    .hero {
        /* Fill the viewport below the sticky nav so nothing else peeks above the fold */
        min-height: calc(100vh - 64px);
        padding: 3rem 1.5rem;
    }

    .hero-content p {
        display: none;   /* hide subtitle on mobile — headline + buttons are enough */
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        text-align: center;
    }

    /* ── Services strip ── */
    .services-strip-inner {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .service-item {
        width: 40%;
    }

    /* ── About ── */
    .about-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* ── Footer ── */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* ── Page hero (inner pages) ── */
    .page-hero {
        padding: 4rem 1.5rem 3rem;
    }

    /* ── Services page ── */
    .services-main-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .service-cards-inner {
        grid-template-columns: 1fr;
    }

    /* ── Reference cards ── */
    #projects-grid {
        grid-template-columns: 1fr;
    }

    /* ── Project detail ── */
    .project-content-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-main-photo img {
        height: 300px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* ── Contact page ── */
    .contact-people-inner {
        grid-template-columns: 1fr;
    }

    .person-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .person-contacts {
        align-items: center;
    }

    /* ── Company info card ── */
    .company-info-card {
        padding: 1.5rem;
    }

    .company-info-item {
        flex-direction: column;  /* stack label above value so email doesn't overflow */
        gap: 0.2rem;
    }

    /* ── Brands overview ── */
    .brands-grid-inner {
        grid-template-columns: 1fr;
    }

    /* ── Brand detail ── */
    .brand-intro-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .brand-logo-display {
        max-width: 280px;
        margin: 0 auto;
    }

    .brand-products-grid {
        grid-template-columns: 1fr;
    }

    /* ── More projects section ── */
    .more-projects-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ===========================
   RESPONSIVE — SMALL MOBILE
=========================== */
@media (max-width: 480px) {

    nav {
        padding: 1rem 1.2rem;
        gap: 0.75rem;
    }

    .logo img {
        height: 36px;
        }

    .lang-switcher {
        font-size: 0.7rem;
    }

    .lang-btn {
        font-size: 0.7rem;
    }

    .hero {
        min-height: calc(100vh - 64px);
        padding: 2.5rem 1.2rem;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .services-strip {
        padding: 2rem 1rem;
    }

    .service-item {
        width: 45%;
    }

    .about {
        padding: 4rem 1.2rem;
    }

    .page-hero {
        padding: 3rem 1.2rem 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .project-main-photo img {
        height: 200px;
    }

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