/* ============================================
   HRDÝ EKOLOG — CSS
   ============================================ */

/* VARIABLES */
:root {
    --green-900: #1A3D2B;
    --green-700: #2A5C3F;
    --green-500: #3D8A58;
    --green-300: #7EC89A;
    --green-100: #E8F5EC;
    --green-50:  #F2FAF5;
    --white:     #FFFFFF;
    --gray-50:   #F9FAFB;
    --gray-100:  #F3F4F6;
    --gray-200:  #E5E7EB;
    --gray-400:  #9CA3AF;
    --gray-500:  #6B7280;
    --gray-700:  #374151;
    --gray-900:  #111827;

    --font: 'Inter', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.07);
    --shadow-md: 0 8px 40px rgba(0,0,0,0.10);
    --transition: 0.3s ease;
    --container: 1140px;
    --navbar-h: 72px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray-900); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* CONTAINER */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--navbar-h);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
    border-bottom-color: var(--gray-200);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.navbar__brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.navbar__name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-700);
    letter-spacing: -0.02em;
}
.navbar__sub {
    font-size: 0.7rem;
    color: var(--gray-400);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.navbar__links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.navbar__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: color var(--transition);
}
.navbar__link:hover { color: var(--green-500); }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn--primary {
    background: var(--green-700);
    color: var(--white);
    border-color: var(--green-700);
}
.btn--primary:hover {
    background: var(--green-900);
    border-color: var(--green-900);
}
.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--white);
}
.btn--white {
    background: var(--white);
    color: var(--green-700);
    border-color: var(--white);
}
.btn--white:hover {
    background: var(--green-50);
}
.btn--nav {
    background: var(--green-700);
    color: var(--white);
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
}
.btn--nav:hover { background: var(--green-900); }
.btn--full { width: 100%; }

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition);
}
.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); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--navbar-h);
}
@media (min-width: 769px) {
    .hero { min-height: min(100vh, 46vw); }
}
.hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(13,40,27,0.88) 0%, rgba(13,40,27,0.68) 38%, rgba(13,40,27,0.3) 70%, rgba(13,40,27,0.08) 100%),
        linear-gradient(0deg, rgba(13,40,27,0.55) 0%, transparent 32%),
        url("../hero-bg.jpg") center center / cover no-repeat;
    z-index: 0;
}
.hero__content {
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: heroReveal 0.9s ease forwards;
    animation-delay: 3s;
    padding-top: 5rem;
    padding-bottom: 5rem;
    margin-left: 0;
    padding-left: clamp(24px, 6vw, 100px);
}
.hero__badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}
.hero__title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    max-width: 600px;
}
.accent { color: var(--green-300); }
.hero__subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    font-weight: 400;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 2.25rem;
}
.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}
.hero__stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.stat { text-align: left; }
.stat__number {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
}
.stat__label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.stat__divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 96px 0; }
.section--alt { background: var(--green-50); }
.section--green { background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%); }

.section__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}
.section__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--green-500);
    margin-bottom: 0.75rem;
}
.section__label--light { color: rgba(255,255,255,0.6); }
.section__title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}
.section__title--light { color: var(--white); }
.section__subtitle {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ============================================
   CARDS
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-300);
}
.card__icon {
    width: 48px;
    height: 48px;
    background: var(--green-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--green-700);
}
.card__icon svg { width: 22px; height: 22px; }
.card__visuals {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.card__tile {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.card__tile svg { width: 24px; height: 24px; color: var(--white); }
.card__tile--blue { background: linear-gradient(135deg, #60A5FA, #2563EB); }
.card__tile--green { background: linear-gradient(135deg, var(--green-300), var(--green-700)); }
.card__tile--amber { background: linear-gradient(135deg, #FBBF24, #D97706); }
.card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}
.card__text {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}
.card__tagline {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--green-700);
    margin-bottom: 0.5rem;
}
.card__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.9rem;
}
.card__list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-500);
}
.card__list li svg {
    width: 14px;
    height: 14px;
    color: var(--green-500);
    flex-shrink: 0;
}

/* ============================================
   AUDIT
   ============================================ */
.audit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.audit__text .section__title { margin-bottom: 1rem; }
.audit__para {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}
.audit__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.audit__list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
}
.audit__list li svg {
    width: 16px;
    height: 16px;
    color: var(--green-300);
    flex-shrink: 0;
}
.audit__form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 1rem; }
.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.4rem;
}
.form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font);
    color: var(--gray-900);
    background: var(--white);
    transition: border-color var(--transition);
    outline: none;
}
.form-input:focus { border-color: var(--green-500); }
.form-input::placeholder { color: var(--gray-400); }
.form__note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-top: 0.75rem;
}

/* ============================================
   FILOZOFIE
   ============================================ */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.about__image-placeholder {
    aspect-ratio: 4/3;
    background: var(--green-100);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--green-300);
    border: 2px dashed var(--green-300);
}
.about__image-placeholder svg { width: 40px; height: 40px; }
.about__image-placeholder span { font-size: 0.8rem; color: var(--gray-400); }
.about__photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
    box-shadow: var(--shadow-md);
}
.about__text .section__title { margin-bottom: 1rem; }
.about__para {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ============================================
   PARTNEŘI
   ============================================ */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.partner-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition);
}
.partner-card:hover { border-color: var(--green-300); }
.partner-card img {
    height: 46px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.55;
    transition: filter var(--transition), opacity var(--transition);
}
.partner-card img.logo-wordmark {
    height: 22px;
}
.partner-card img[alt="Opel"] {
    filter: grayscale(100%) brightness(0.4);
}
.partner-card:hover img[alt="Opel"] {
    filter: grayscale(0%) brightness(1);
}
.partner-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================
   POVOLENÍ
   ============================================ */
.permits-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 760px;
    margin: 0 auto;
}
.permit-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.permit-card:hover {
    border-color: var(--green-300);
    box-shadow: var(--shadow);
}
.permit-card__icon {
    width: 40px;
    height: 40px;
    background: var(--green-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
    flex-shrink: 0;
}
.permit-card__icon svg { width: 18px; height: 18px; }
.permit-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.2rem;
}
.permit-card__text {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ============================================
   KONTAKT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.contact-item__icon {
    width: 44px;
    height: 44px;
    background: var(--green-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
    flex-shrink: 0;
}
.contact-item__icon svg { width: 18px; height: 18px; }
.contact-item__label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    font-weight: 600;
    margin-bottom: 0.1rem;
}
.contact-item__value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    transition: color var(--transition);
}
.contact-item__value:hover { color: var(--green-500); }
.tagline {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gray-500);
    border-left: 3px solid var(--green-300);
    padding-left: 1rem;
    line-height: 1.6;
}
.cta-box {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
}
.cta-box__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}
.cta-box__text {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--green-900);
    padding: 2.5rem 0;
}
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer__logo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}
.footer__tagline {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    margin-top: 0.2rem;
}
.footer__nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer__nav a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
    transition: color var(--transition);
}
.footer__nav a:hover { color: var(--white); }
.footer__copy {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
}

/* ============================================
   HERO REVEAL
   ============================================ */
@keyframes heroReveal {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero__content { opacity: 1; animation: none; }
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .cards-grid { grid-template-columns: 1fr; }
    .audit-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about { grid-template-columns: 1fr; gap: 2.5rem; }
    .about__visual { order: -1; }
    .contact-grid { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .navbar__links {
        display: none;
        position: fixed;
        top: var(--navbar-h);
        left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem 1.5rem 2rem;
        gap: 0.25rem;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
    }
    .navbar__links.open { display: flex; }
    .navbar__link { padding: 0.65rem 0; font-size: 1rem; border-bottom: 1px solid var(--gray-100); width: 100%; }
    .btn--nav { margin-top: 0.5rem; width: 100%; text-align: center; }
    .hamburger { display: flex; }
    .hero__stats { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .stat__divider { width: 40px; height: 1px; }
    .section { padding: 64px 0; }
    .footer__inner { flex-direction: column; text-align: center; }
    .footer__nav { justify-content: center; }
}

@media (max-width: 480px) {
    .partners-grid { grid-template-columns: 1fr; }
    .hero__actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
}
