/* =========================================================================
   EUROMAKS – production stylesheet
   Mobile-first. No external CSS framework, no build step.
   ========================================================================= */

:root {
  /* Brand colors: navy sampled from the EUROMAKS logo; warm terracotta/brown
     accent (earthy, construction/soil-adjacent) replaces a gold accent so the
     palette doesn't read the same as other navy+gold hauling-company sites. */
  --navy-900: #101d2e;
  --navy-800: #16283f;
  --navy-700: #1a4771;
  --navy-600: #235c93;
  --terra-600: #8c4a20;
  --terra-500: #ad5f29; /* slightly darker than the approved swatch so white button text clears WCAG AA (4.5:1) */
  --terra-300: #e3934f;
  --terra-050: #f4e3d3;
  --cream-100: #f5efe6;
  --white: #ffffff;
  --ink-900: #1c1f24;
  --ink-600: #52585f;
  --line: #e3e0d6;
  --line-dark: rgba(255, 255, 255, 0.16);
  --danger: #b3261e;
  --danger-bg: #fbeae8;
  --success: #276b45;
  --success-bg: #eaf6ee;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 10px rgba(16, 29, 46, 0.08);
  --shadow-md: 0 10px 28px rgba(16, 29, 46, 0.14);
  --shadow-lg: 0 22px 48px rgba(16, 29, 46, 0.20);

  --container: 1180px;
  --header-h: 64px;
  --mobile-bar-h: 62px;
}

@media (min-width: 1024px) {
  :root { --header-h: 80px; }
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--mobile-bar-h);
  overflow-x: hidden;
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.35rem); }
h3 { font-size: 1.15rem; }

p { color: var(--ink-600); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

:focus-visible {
  outline: 3px solid var(--terra-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 18px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-large { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--terra-500); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--terra-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }
.btn-outline-dark { border-color: var(--navy-700); color: var(--navy-800); }
.btn-outline-dark:hover { background: var(--navy-700); color: var(--white); }

/* ---------- Phone picker (details/summary, no JS required) ---------- */
.phone-picker { position: relative; }
.phone-picker summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--terra-500);
  color: var(--navy-900);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  user-select: none;
}
.phone-picker summary::-webkit-details-marker { display: none; }
.phone-picker summary:hover { background: var(--terra-600); }
.phone-picker[open] summary { background: var(--navy-800); color: var(--white); }
.phone-picker-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 60;
  animation: pop-in 0.12s ease;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.phone-picker-panel a {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--navy-900);
}
.phone-picker-panel a:hover { background: var(--cream-100); }
.phone-picker-panel a span { font-size: 0.75rem; color: var(--ink-600); text-transform: uppercase; letter-spacing: 0.04em; }
.phone-picker-panel a strong { font-size: 1.15rem; font-family: var(--font-display); }

/* header variant sits under a light-ish header; mobile bar variant must pop upward */
.phone-picker-mobile-bar .phone-picker-panel { top: auto; bottom: calc(100% + 10px); left: 0; right: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.site-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { height: 38px; width: auto; }
@media (min-width: 1024px) { .brand-logo { height: 46px; } }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy-900);
  letter-spacing: 0.02em;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy-900);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--navy-700); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--terra-500);
  transform: scaleX(0);
  transition: transform 0.15s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.phone-picker-header { display: none; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  appearance: none;
  -webkit-appearance: none;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  flex: 0 0 auto;
  background: var(--navy-900);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.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); }

@media (min-width: 900px) {
  .main-nav {
    display: flex;
    position: static;
    background: none;
    box-shadow: none;
    padding: 0;
  }
  .phone-picker-header { display: block; }
  .menu-toggle { display: none; }
}

/* mobile dropdown nav panel */
@media (max-width: 899.98px) {
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 18px;
    gap: 2px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: none; }
}

/* ---------- Mobile sticky CTA bar ---------- */
.mobile-cta-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 450;
  background: var(--navy-900);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.18);
}
@media (min-width: 900px) { .mobile-cta-bar { display: none; } }
.mobile-cta-bar .phone-picker { flex: 1; }
.mobile-cta-bar .phone-picker summary {
  width: 100%;
  justify-content: center;
}
.mobile-cta-enquiry {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); overflow: hidden; }
.hero-media { width: 100%; height: 100%; position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 29, 46, 0.55) 0%, rgba(16, 29, 46, 0.72) 55%, rgba(16, 29, 46, 0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 78px 20px 56px;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
@media (min-height: 780px) { .hero-content { min-height: 70vh; } }
.hero-eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--terra-300);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.hero-content h1 { color: var(--white); max-width: 16ch; }
.hero-subtitle { color: rgba(255, 255, 255, 0.88); font-size: 1.05rem; max-width: 46ch; margin: 16px 0 22px; }

.hero-phones { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  font-size: 1rem;
  backdrop-filter: blur(2px);
}
.hero-phone:hover { background: rgba(255, 255, 255, 0.22); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Mobile already has the same two actions in the always-visible sticky bottom
   bar (see .mobile-cta-bar) – showing them again here would just duplicate it. */
@media (max-width: 899.98px) { .hero-actions { display: none; } }

/* ---------- Sections ---------- */
.section { padding: 64px 20px; max-width: var(--container); margin: 0 auto; }
.section-alt { background: var(--cream-100); }
.section-alt.section { max-width: none; padding: 64px 0; }
.section-alt .section-heading,
.section-alt .locations-box,
.section-alt .services-grid,
.section-alt .gallery-grid { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 1024px) { .section { padding: 96px 20px; } .section-alt.section { padding: 96px 0; } }

/* .onas-section is always a full-bleed image/text split regardless of
   background color – kept independent of .section-alt on purpose. */
.onas-section.section { max-width: none; padding: 0; }

.section-heading { max-width: 640px; margin: 0 0 40px; }
.section-heading .eyebrow,
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-700);
  margin-bottom: 10px;
}
.section-heading p { margin-top: 10px; font-size: 1.05rem; }

/* ---------- Services grid ---------- */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  flex: 1 1 260px;
  max-width: 340px;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--terra-050);
  color: var(--navy-700);
  margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.service-card p { font-size: 0.96rem; margin: 0; }

/* ---------- O nas split section ---------- */
.onas-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}
@media (min-width: 900px) {
  .onas-section { grid-template-columns: 0.85fr 1.15fr; }
}
.onas-media { position: relative; min-height: 280px; }
.onas-media picture, .onas-media img { height: 100%; width: 100%; object-fit: cover; }
.onas-copy { padding: 48px 20px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 900px) { .onas-copy { padding: 64px 60px; } }
.onas-copy h2 { margin-bottom: 18px; }
.onas-copy p { font-size: 1.02rem; margin-bottom: 14px; }
.onas-actions { margin-top: 10px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--cream-100);
  border: none;
  padding: 0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(16, 29, 46, 0.45) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 16, 24, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.lightbox img { max-width: 92vw; max-height: 78vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox figcaption { color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; text-align: center; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }

/* ---------- Locations / obmocje ---------- */
.locations-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.locations-box p { font-size: 1.02rem; max-width: 60ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-900); color: var(--white); padding: 64px 20px; }
.cta-band-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.82); font-size: 1.08rem; margin: 12px 0 26px; }
.cta-phones { justify-content: center; margin-bottom: 0; }

/* ---------- Kontakt ---------- */
.kontakt-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 900px) { .kontakt-wrap { grid-template-columns: 0.85fr 1.15fr; gap: 40px; } }

.kontakt-info {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.kontakt-name { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 6px; }
.kontakt-name span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.92rem; color: rgba(255, 255, 255, 0.7); margin-top: 4px; }
.kontakt-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-dark); font-weight: 500; }
.kontakt-item svg { flex-shrink: 0; color: var(--terra-300); }
.kontakt-area { color: rgba(255, 255, 255, 0.85); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
}
@media (min-width: 640px) { .form-card { padding: 36px 34px; } }

/* ---------- Forms ---------- */
.euromaks-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.9rem; font-weight: 600; color: var(--navy-900); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-900);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--navy-700);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 71, 113, 0.15);
}
.form-field textarea { resize: vertical; min-height: 110px; }

.form-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--ink-600); }
.form-checkbox input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.form-checkbox a { color: var(--navy-700); text-decoration: underline; }

.form-note { font-size: 0.82rem; color: var(--ink-600); margin: 0; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0;
}
.form-success {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--success-bg);
  color: var(--success);
  padding: 22px;
  border-radius: var(--radius-md);
}
.form-success strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.form-success p { color: var(--success); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.82); }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 20px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo-img { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-tagline { font-size: 0.92rem; color: rgba(255, 255, 255, 0.65); }
.footer-col h4 { font-family: var(--font-display); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--terra-300); margin-bottom: 14px; }
.footer-col p { color: rgba(255, 255, 255, 0.82); font-size: 0.94rem; line-height: 1.7; }
.footer-col a:hover { color: var(--terra-300); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; font-size: 0.94rem; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 18px 20px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Legal page ---------- */
.legal-content { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.legal-content h1 { margin-bottom: 24px; }
.legal-content h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.legal-content p, .legal-content li { color: var(--ink-600); margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; }
.legal-updated { color: var(--ink-600); font-size: 0.9rem; margin-bottom: 32px; }

/* ---------- 404 page ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  gap: 16px;
}
.error-page .eyebrow { margin-bottom: 0; }
.error-page-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
