/* ==========================================================================
   QARRI — shared.css
   Shared across all pages. Sections:
     Variables | Reset | Header | Mobile Menu | Buttons | Footer | Responsive
   ========================================================================== */

/* ── Variables ── */
:root {
    --bg:           #F8F7F3;
    --card:         #EFEBE2;
    --accent:       #A08261;
    --accent-hover: #8a6d4f;
    --accent-light: #CFB69A;
    --dark:         #232323;
    --line:         #E5E1D8;
    --pad-h:        163px;
    --header-h:     131px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Outfit', sans-serif; }

/* ── Base ── */
body {
    background: var(--bg);
    color: var(--dark);
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }

/* ── Header ── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg);
    box-shadow: 0 1px 20px rgba(0,0,0,.12);
    height: var(--header-h);
    display: flex; align-items: center;
}
.header-inner {
    width: 100%; max-width: 1920px; margin: 0 auto;
    padding: 0 var(--pad-h);
    display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { width: 174px; height: 36px; object-fit: contain; }

/* Desktop nav */
.site-nav { display: flex; gap: 64px; }
.site-nav a {
    font-size: 18px; font-weight: 400;
    color: var(--dark); text-decoration: none;
    letter-spacing: 0.01em; transition: color .2s;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a.active { font-weight: 500; }

/* ── Hamburger ── */
.menu-toggle {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 8px; margin-right: -8px;
    -webkit-tap-highlight-color: transparent;
}
.menu-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--dark); border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav overlay ── */
.nav-overlay {
    display: none;
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--bg); z-index: 99;
    flex-direction: column; align-items: center; justify-content: center; gap: 40px;
}
.nav-overlay.is-open { display: flex; }
.nav-overlay .site-nav { flex-direction: column; align-items: center; gap: 28px; }
.nav-overlay .site-nav a { font-size: 22px; }

/* ── Buttons ── */
.btn-kontakt {
    background: var(--accent); color: var(--bg);
    padding: 12px 32px; border-radius: 4px;
    font-size: 18px; font-weight: 400;
    text-decoration: none; transition: background .2s;
    letter-spacing: 0.02em; white-space: nowrap;
}
.btn-kontakt:hover,
.btn-kontakt.active-page { background: var(--accent-hover); }

.btn-white {
    display: inline-block; background: var(--bg); color: var(--dark);
    padding: 13px 32px; border-radius: 4px;
    font-size: 18px; font-weight: 400;
    text-decoration: none; transition: background .2s; white-space: nowrap;
}
.btn-white:hover { background: #e8e6e0; }

.btn-accent {
    display: inline-block; background: var(--accent); color: var(--bg);
    padding: 12px 32px; border-radius: 4px;
    font-size: 18px; font-weight: 400;
    text-decoration: none; transition: background .2s;
}
.btn-accent:hover { background: var(--accent-hover); }

/* ── Footer ── */
.site-footer { background: var(--card); padding: 56px 0 28px; }
.footer-inner { max-width: 1920px; margin: 0 auto; padding: 0 var(--pad-h); }
.footer-top {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 32px; border-bottom: 1.5px solid var(--accent);
    margin-bottom: 24px; gap: 24px;
}
.footer-nav { display: flex; gap: 48px; }
.footer-nav a {
    font-size: 14px; font-weight: 400;
    color: var(--dark); text-decoration: none; transition: color .2s;
}
.footer-nav a:hover { color: var(--accent); }
.footer-socials { display: flex; gap: 12px; align-items: center; }
.social-icon {
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: opacity .2s;
}
.social-icon:hover { opacity: .7; }
.footer-copy { text-align: center; font-size: 14px; font-weight: 400; color: var(--dark); }

/* ── Responsive: shared ── */
@media (max-width: 1400px) {
    :root { --pad-h: 80px; }
}
@media (max-width: 900px) {
    :root { --pad-h: 24px; --header-h: 72px; }
    .site-header { height: var(--header-h); }
    .header-inner { padding: 0 24px; }
    /* Hide desktop nav & CTA button on mobile */
    .header-inner > .site-nav,
    .header-inner > .btn-kontakt { display: none; }
    /* Show hamburger */
    .menu-toggle { display: flex; }
    .footer-inner { padding: 0 24px; }
    .footer-top { flex-direction: column; align-items: center; text-align: center; }
    .footer-nav { flex-wrap: wrap; justify-content: center; }
}
