/* Global styles */
:root {
  --primary: #0a58ca;
  --primary-dark: #08408f;
  --accent: #ffc107;
  --dark: #111827;
  --text: #222;
  --light: #f5f7fa;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); line-height: 1.6; }
a { color: var(--primary); }
img { max-width: 100%; height: auto; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 6px; text-decoration: none; font-weight: 700; }
.btn-call { background: var(--accent); color: #000; }
.btn-call:hover { background: #ffca2c; }

/* Top bar */
.topbar { background: var(--dark); color: #fff; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Header / nav */
.site-header { background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.logo { font-size: 20px; color: var(--dark); text-decoration: none; }
.logo strong { color: var(--primary); }
.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav li { position: relative; }
.main-nav li > a { display: block; padding: 10px 12px; color: var(--dark); text-decoration: none; font-weight: 600; }
.main-nav li > a:hover { color: var(--primary); }
.submenu { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 8px 20px rgba(0,0,0,.08); flex-direction: column; display: none !important; }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: flex !important; }
.submenu:empty { display: none !important; }
.nav-toggle { display: none; background: none; border: 1px solid #ccc; border-radius: 6px; font-size: 22px; padding: 4px 10px; cursor: pointer; }

/* Footer */
.site-footer { background: var(--dark); color: #cbd5e1; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.site-footer h3 { color: #fff; font-size: 17px; margin-top: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-phone { color: var(--accent) !important; font-size: 22px; font-weight: 700; }
.footer-bottom { border-top: 1px solid #263244; font-size: 14px; padding: 16px 0; }
.footer-bottom p { margin: 0; }

/* Mobile */
@media (max-width: 900px) {
  .topbar .container > span { display: none; }
  .topbar .container { justify-content: center; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e5e7eb; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .submenu { position: static; display: flex !important; border: 0; box-shadow: none; padding-left: 14px; }
  .btn-call { text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Logo image in header */
.logo { display: flex; align-items: center; }
.logo img { display: block; height: 72px; width: auto; }
@media (max-width: 800px) { .logo img { height: 58px; } }

/* Mobile menu: scrollable panel, collapsible submenus */
.sub-toggle { display: none; }
@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; font-size: 24px; line-height: 1; border-radius: 10px; border-color: #d5dedc; color: var(--dark); background: #fff; }
  .main-nav {
    max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 6px 16px 18px; box-shadow: 0 16px 30px rgba(0, 0, 0, .12);
  }
  .main-nav ul { gap: 0; }
  .main-nav li { border-bottom: 1px solid #edf1f0; }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav li > a { padding: 15px 4px; font-size: 1.05rem; }
  .main-nav .has-sub { display: flex; flex-wrap: wrap; align-items: center; }
  .main-nav .has-sub > a { flex: 1 1 0; }
  .sub-toggle { display: grid; place-items: center; flex: none; width: 46px; height: 46px; padding: 0; background: none; border: 0; border-radius: 10px; color: var(--dark); cursor: pointer; }
  .sub-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
  .has-sub.open > .sub-toggle svg { transform: rotate(180deg); }
  .main-nav .has-sub > .submenu { display: none !important; position: static; flex: 1 1 100%; min-width: 0; margin: 0 0 10px; padding: 4px 0 4px 14px; border: 0; border-left: 3px solid #A5DDD4; box-shadow: none; background: #F6FBFA; border-radius: 0 10px 10px 0; }
  .main-nav .has-sub.open > .submenu { display: flex !important; }
  .main-nav .submenu li { border-bottom: 0; }
  .main-nav .submenu li > a { padding: 11px 6px; font-size: .98rem; font-weight: 500; }
}
/* Sticky call bar (mobile only) */
.mobile-call { display: none; }
@media (max-width: 800px) {
  .mobile-call {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    background: #E6BD7A; color: #0B3937; text-decoration: none;
    font-family: var(--font-display, inherit); font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em;
    box-shadow: 0 -6px 20px rgba(11,57,55,.22);
  }
  .mobile-call svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-call:active { background: #d9ae66; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}
/* Cookie banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 16px 18px; background: #0B3937; color: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.35); font-size: .92rem; line-height: 1.5; }
.cookie-banner p { margin: 0; flex: 1; }
.cookie-banner a { color: #E6BD7A; text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.cookie-btn { font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 999px; cursor: pointer; border: 2px solid #E6BD7A; background: transparent; color: #fff; }
.cookie-accept { background: #E6BD7A; color: #0B3937; }
.cookie-btn:focus-visible { outline: 3px solid #A5DDD4; outline-offset: 2px; }
.cookie-settings { font: inherit; background: none; border: 0; padding: 0; margin-left: 10px; color: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 600px) { .cookie-banner { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; } .cookie-actions { justify-content: stretch; } .cookie-btn { flex: 1; } }
@media print { .cookie-banner { display: none; } }
/* Cookie settings button (stays bottom-left after a choice is made) */
.cookie-fab { position: fixed; left: 16px; bottom: 16px; z-index: 150; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: #0B3937; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(11,57,55,.35); transition: transform .15s ease; }
.cookie-fab:hover { transform: scale(1.08); }
.cookie-fab:focus-visible { outline: 3px solid #E6BD7A; outline-offset: 3px; }
@media (max-width: 800px) { .cookie-fab { left: 12px; bottom: calc(56px + 12px + env(safe-area-inset-bottom)); width: 44px; height: 44px; font-size: 1.35rem; } }
@media print { .cookie-fab { display: none; } }