
/* ── TOKENS ── */
:root {
    --accent:      #5a8a10;
    --accent-light:#7ab520;
    --accent-glow: rgba(90,138,16,0.15);
    --bg:          #f8f9f6;
    --surface:     #ffffff;
    --text:        #18181b;
    --text-soft:   #3f3f46;
    --muted:       #71717a;
    --border:      #e4e4e7;
    --shadow-sm:   0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md:   0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.05);
    --shadow-lg:   0 12px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
    --radius:      12px;
    --radius-sm:   8px;
    --header-h:    68px;
}
.dark-mode {
    --bg:          #0f1010;
    --surface:     #18191a;
    --text:        #f4f4f5;
    --text-soft:   #d4d4d8;
    --muted:       #71717a;
    --border:      #27272a;
    --shadow-sm:   0 1px 3px rgba(0,0,0,.3);
    --shadow-md:   0 4px 16px rgba(0,0,0,.4);
    --shadow-lg:   0 12px 32px rgba(0,0,0,.5);
}

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

/* ── BASE ── */
body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    transition: background .35s, color .35s;
}

/* ── HEADER ── */
header {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    background: rgba(248,249,246,.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background .35s;
}
.dark-mode header {
    background: rgba(15,16,16,.85);
}
.logo-link   { display: flex; align-items: center; }
.logo        { height: 36px; display: block; }

/* Dark/light logo swap */
.logo-light { display: block; }   /* white logo — shown in dark mode */
.logo-dark  { display: block; }   /* dark logo — shown in light mode */
.dark-mode .logo-dark  { display: none; }
.dark-mode .logo-light { display: block; }
body:not(.dark-mode) .logo-light { display: none; }
body:not(.dark-mode) .logo-dark  { display: block; }

/* ── NAV ── */
#main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}
#main-nav a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 6px 13px;
    border-radius: 6px;
    transition: color .18s, background .18s;
}
#main-nav a:hover  { color: var(--text); background: var(--accent-glow); }
.nav-divider { width: 1px; height: 18px; background: var(--border); margin: 0 8px; }
.flag {
    width: 20px; margin: 0 3px;
    cursor: pointer; opacity: 0.6;
    border-radius: 2px;
    transition: opacity .18s, transform .18s;
}
.flag:hover { opacity: 1; transform: scale(1.1); }
.theme-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    width: 32px; height: 32px;
    border-radius: 8px;
    margin-left: 6px;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .18s, color .18s, background .18s;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.hamburger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    font-size: 18px;
    padding: 4px 10px;
    border-radius: 8px;
}

/* ── HERO ── */
.hero {
    position: relative;
    border-bottom: 1px solid var(--border);
    padding: 88px 48px 80px;
    overflow: hidden;
    background: var(--surface);
}

/* Slideshow layers — 3 divs stacked behind content */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
    z-index: 0;
}
.hero-slide.active { opacity: 1; }

/* Dark overlay so text stays readable */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity .6s;
}
.hero.has-slides::after { opacity: 1; }

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

/* When background slides are active, flip text colours */
.hero.has-slides .hero-eyebrow {
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.3);
}
.hero.has-slides h1 { color: #fff; }
.hero.has-slides p  { color: rgba(255,255,255,.85); }
.hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
    border: none;
    padding: 0;
    margin-bottom: 16px;
}
.hero p {
    font-size: 17px;
    color: var(--muted);
    margin-bottom: 32px;
    font-weight: 300;
}
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 12px 28px;
    border-radius: 8px;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(90,138,16,.35);
}
.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(90,138,16,.4);
}

/* ── PAGE TITLES ── */
main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 48px 72px;
}
.section-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.loading { color: var(--muted); font-size: 13px; padding: 16px 0; }

/* ── HOME NEWS ── */
#home-news       { display: flex; gap: 32px; }
.home-section    { flex: 1; min-width: 0; }

/* Section icon + label row */
.home-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 0;
}
.home-section-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}
.home-section h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
}

/* First news item image */
.news-item-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    display: block;
}

/* ── NEWS ITEM ── */
.news-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left .2s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover      { padding-left: 6px; }
.news-item .date {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.news-item a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 13.5px;
    line-height: 1.5;
    display: block;
    margin-bottom: 4px;
    transition: color .15s;
}
.news-item a:hover { color: var(--accent); }
.news-item p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── NEWS PAGE ── */
.news-columns { display: flex; gap: 32px; }
.col          { flex: 1; min-width: 0; }
.col-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    padding-bottom: 14px;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 0;
}
.col-title-icon { font-size: 22px; line-height: 1; }

/* ── COMPANY ── */
.content-block { max-width: 680px; margin-bottom: 48px; }
.content-block p {
    font-size: 16px;
    color: var(--text-soft);
    line-height: 1.8;
    font-weight: 300;
}
.company-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.value-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}
.value-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.value-icon {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 18px;
    display: block;
    color: #7a9878;
}
.value-item h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.value-item p  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── SERVICES ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.service-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .22s, box-shadow .22s, border-color .22s;
    cursor: pointer;
}
.service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.svc-icon {
    font-size: 32px;
    line-height: 1;
    display: block;
    margin-bottom: 18px;
}
.service-item h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.service-item p  { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── SERVICE MODAL ── */
.svc-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.svc-modal-overlay.open { display: flex; }
.svc-modal {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 624px;
    overflow: hidden;
    animation: modalIn .2s ease;
}
@keyframes modalIn {
    from { opacity:0; transform:translateY(18px) scale(.97); }
    to   { opacity:1; transform:none; }
}
.svc-modal-img {
    width: 100%;
    height: 264px;
    object-fit: cover;
    display: block;
}
.svc-modal-body {
    padding: 28px 28px 24px;
}
.svc-modal-body h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}
.svc-modal-body p {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.7;
}
.svc-modal-close {
    display: block;
    margin: 20px 28px 20px auto;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    min-width: 100px;
    transition: opacity .18s;
}
.svc-modal-close:hover { opacity: .85; }

/* ── CONTACTS ── */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 8px;
}
.contact-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s;
}
.contact-block:hover { box-shadow: var(--shadow-md); }
.contact-block h3 {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.contact-block p  { font-size: 14px; color: var(--text-soft); line-height: 1.75; }
.contact-block a  { color: var(--text); text-decoration: none; transition: color .15s; }
.contact-block a:hover { color: var(--accent); }

/* ── CONTENT BLOCK (cookie policy etc.) ── */
.content-block h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 28px 0 8px;
    color: var(--text);
}

/* ── FOOTER ── */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 36px 48px;
    text-align: center;
}
.footer-inner p      { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.footer-name         { font-weight: 700; font-size: 14px !important; color: var(--text) !important; margin-bottom: 8px !important; }

/* ── COOKIE BANNER ── */
#cookie-banner {
    position: fixed;
    bottom: 20px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 680px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 12.5px;
    color: var(--muted);
    z-index: 9999;
}
#cookie-banner a { color: var(--accent); text-decoration: underline; }
#cookie-banner button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: background .18s;
}
#cookie-banner button:hover { background: var(--accent-light); }

/* ── SCROLL ANIMATION ── */
.scroll-animate { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.scroll-visible  { opacity: 1; transform: translateY(0); }

/* ── MOBILE DRAWER ── */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 300;
    cursor: pointer;
}
.mobile-overlay.open { display: block; }

.mobile-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(300px, 82vw);
    background: var(--surface);
    border-left: 3px solid var(--accent);
    z-index: 400;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-header {
    display: flex;
    justify-content: flex-end;
    padding: 18px 18px 10px;
}
.drawer-close-btn {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    width: 36px; height: 36px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--text);
    display: flex; align-items: center; justify-content: center;
    transition: border-color .18s, color .18s;
}
.drawer-close-btn:hover { border-color: var(--accent); color: var(--accent); }

.drawer-lang { padding: 4px 20px 20px; }
.drawer-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.drawer-flags { display: flex; gap: 10px; }
.drawer-flag-btn {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: border-color .18s, background .18s;
}
.drawer-flag-btn:hover { border-color: var(--accent); background: var(--accent-glow); }
.drawer-flag-btn img { width: 28px; height: 20px; object-fit: cover; border-radius: 3px; display: block; }

.drawer-divider { height: 1px; background: var(--border); margin: 4px 20px; }

.drawer-nav { display: flex; flex-direction: column; padding: 8px 0; }
.drawer-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: var(--text-soft);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: color .18s, background .18s, border-color .18s;
}
.drawer-nav a::after { content: '›'; font-size: 20px; color: var(--border); line-height: 1; }
.drawer-nav a:hover  { color: var(--text); background: var(--accent-glow); border-left-color: var(--accent); }
.drawer-nav a.active { color: var(--accent); background: var(--accent-glow); border-left-color: var(--accent); font-weight: 600; }

.drawer-theme {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px;
    margin-top: auto;
}
.drawer-theme-icon { font-size: 18px; line-height: 1; }

/* Green/grey iOS-style toggle */
.theme-toggle {
    position: relative;
    width: 52px; height: 28px;
    background: #d1d5db;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: background .25s;
    padding: 0;
    flex-shrink: 0;
}
.dark-mode .theme-toggle { background: var(--accent); }
.theme-toggle-knob {
    position: absolute;
    top: 3px; left: 3px;
    width: 22px; height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: transform .25s;
    display: block;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.dark-mode .theme-toggle-knob { transform: translateX(24px); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    header         { padding: 0 24px; }
    .hero          { padding: 64px 24px 56px; }
    main           { padding: 40px 24px 56px; }
    footer         { padding: 28px 24px; }
    .services-grid  { grid-template-columns: repeat(2, 1fr); }
    .company-values { grid-template-columns: repeat(2, 1fr); }
    .contacts-grid  { grid-template-columns: 1fr; }
    #home-news      { flex-direction: column; gap: 28px; }
    .news-columns   { flex-direction: column; gap: 28px; }
}
@media (max-width: 640px) {
    header         { padding: 0 16px; }
    .hero          { padding: 48px 16px 40px; }
    main           { padding: 28px 16px 48px; }
    footer         { padding: 24px 16px; }
    #main-nav      { display: none !important; }
    .hamburger     { display: block; }
    .services-grid  { grid-template-columns: 1fr; }
    .company-values { grid-template-columns: 1fr; }
    #cookie-banner  { flex-direction: column; text-align: center; bottom: 12px; width: calc(100% - 24px); }
}
