/* frodo.sk */

:root {
  --ink: #0c1f2b;
  --text: #34495a;
  --muted: #5b6d79;
  --line: #e2e8ec;
  --soft: #f2f6f8;
  --night: #081a24;
  --cyan: #00a6d8;   /* logo blue */
  --cyan-hi: #2bbde9;
  --teal: #006280;
  --green: #7b9e3e;  /* logo green */
  --radius: 16px;
  --shadow: 0 1px 2px rgba(12, 31, 43, .06), 0 12px 32px rgba(12, 31, 43, .09);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--font);
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: var(--ink); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; }

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

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .7rem 1rem; border-radius: 8px;
  background: #fff; color: var(--ink); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.icon {
  width: 1.2em; height: 1.2em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Eyebrow label with the three road stripes from the logo */
.eyebrow {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal);
}
.stripes {
  width: 20px; height: 14px; flex: none;
  background:
    linear-gradient(var(--green), var(--green)) 0 0 / 4px 100% no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 8px 0 / 4px 100% no-repeat,
    linear-gradient(var(--green), var(--green)) 16px 0 / 4px 100% no-repeat;
  transform: skewX(-28deg);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.5rem;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 1rem/1 var(--font);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn .icon { transition: transform .2s; }
.btn-primary { background: var(--cyan); color: #04212d; }
.btn-primary:hover { background: var(--cyan-hi); color: #04212d; transform: translateY(-1px); }
.btn-primary:hover .icon:last-child { transform: translateX(3px); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }
.btn-small { padding: .6rem 1.05rem; font-size: .9375rem; }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand img { width: auto; height: 34px; }

.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav > a:not(.btn) {
  position: relative;
  font-size: .96875rem; font-weight: 500; text-decoration: none;
  color: rgba(255, 255, 255, .9);
}
.site-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav > a:not(.btn):hover::after { transform: scaleX(1); }
.site-nav > a:not(.btn):hover { color: #fff; }

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(12, 31, 43, .05);
}
.is-scrolled .site-nav > a:not(.btn) { color: var(--ink); }
.is-scrolled .site-nav .btn-ghost { border-color: var(--line); color: var(--ink); }
.is-scrolled .site-nav .btn-ghost:hover { border-color: var(--cyan); background: var(--soft); }

/* Language switch: EN / SK */
.lang-switch {
  display: inline-flex; gap: 2px; padding: 3px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .06em; line-height: 1;
}
.lang-switch > * { padding: .45rem .65rem; border-radius: 999px; text-decoration: none; }
.lang-switch span { background: rgba(255, 255, 255, .18); color: #fff; }
.lang-switch a { color: rgba(255, 255, 255, .78); }
.lang-switch a:hover { color: #fff; }
.is-scrolled .lang-switch, .menu-open .lang-switch { border-color: var(--line); }
.is-scrolled .lang-switch span, .menu-open .lang-switch span { background: var(--soft); color: var(--ink); }
.is-scrolled .lang-switch a, .menu-open .lang-switch a { color: var(--muted); }
.is-scrolled .lang-switch a:hover, .menu-open .lang-switch a:hover { color: var(--ink); }
.site-nav .lang-switch + .btn { margin-left: -1rem; }
@media (max-width: 880px) {
  .site-nav .lang-switch { align-self: flex-start; margin-top: 1.25rem; }
  .site-nav .lang-switch + .btn { margin-left: 0; }
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0; margin-right: -8px;
  border: 0; background: none; color: #fff; cursor: pointer;
}
.is-scrolled .nav-toggle, .menu-open .nav-toggle { color: var(--ink); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; margin: auto;
  background: currentColor; border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.menu-open .nav-toggle-bars { background: transparent; }
.menu-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: min(100svh, 880px);
  color: #fff;
  background: var(--night);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 35% 55%;
  transform: scaleX(-1); /* truck on the right, text over the misty road on the left */
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 26, 36, .92) 0%, rgba(8, 26, 36, .72) 38%, rgba(8, 26, 36, .15) 72%, rgba(8, 26, 36, 0) 100%),
    linear-gradient(0deg, rgba(8, 26, 36, .55) 0%, rgba(8, 26, 36, 0) 35%);
}
.hero-content { padding-block: calc(var(--header-h) + 3rem) 4.5rem; }
.hero-content > * { max-width: 38rem; animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-content > :nth-child(2) { animation-delay: .08s; }
.hero-content > :nth-child(3) { animation-delay: .16s; }
.hero-content > :nth-child(4) { animation-delay: .24s; }
.hero .eyebrow { color: #8fdcf3; }
.hero h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.75rem, 6.2vw, 5rem);
  line-height: .98;
  letter-spacing: -.01em;
  color: #fff;
}
.hero h1 .accent { color: var(--cyan); }
.hero .lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: rgba(255, 255, 255, .84); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2.25rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Sections */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section-soft { background: var(--soft); }
.section h2 { font-size: clamp(2.125rem, 4.2vw, 3.25rem); }
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head p:not(.eyebrow) { margin-top: 1.1rem; font-size: 1.125rem; color: var(--muted); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card {
  padding: 2rem 2rem 2.25rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 1.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #dff4fb, #edf4e2);
  color: var(--teal);
}
.card-icon .icon { width: 26px; height: 26px; }
.card h3 { margin-bottom: .6rem; font-size: 1.625rem; }
.card p { color: var(--muted); }

/* Quote band */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(5rem, 11vw, 8.5rem);
  color: #fff;
  background: var(--night);
}
.band-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(0, 70, 96, .93) 0%, rgba(8, 26, 36, .82) 55%, rgba(8, 26, 36, .6) 100%);
}
.band-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: end; }
.band blockquote {
  margin: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.25rem, 4.8vw, 3.75rem); line-height: 1.02;
  text-wrap: balance;
}
.band blockquote::before {
  content: ""; display: block; width: 56px; height: 4px; margin-bottom: 1.75rem;
  background: linear-gradient(90deg, var(--green) 0 50%, var(--cyan) 50% 100%);
  border-radius: 2px;
}
.band-cta p { margin-bottom: 1.5rem; font-size: 1.125rem; color: rgba(255, 255, 255, .82); }

/* Contact */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.contact-intro { margin-top: 1.1rem; font-size: 1.125rem; color: var(--muted); }
.contacts { list-style: none; margin: 2.25rem 0 0; padding: 0; }
.contacts li { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.contacts li:last-child { border-bottom: 1px solid var(--line); }
.contacts h3 { margin-bottom: .45rem; font-family: var(--font); font-size: 1rem; font-weight: 600; line-height: 1.4; }
.contacts a {
  display: flex; align-items: center; gap: .6rem; width: fit-content;
  padding: .15rem 0;
  color: var(--text); text-decoration: none;
}
.contacts a .icon { width: 1rem; height: 1rem; color: var(--teal); }
.contacts a:hover { color: var(--teal); }

.form-card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.contact-form h3 { margin-bottom: 1.5rem; font-size: 1.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .4rem; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.field input,
.field textarea {
  display: block; width: 100%;
  padding: .85rem 1rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fafcfd; border: 1px solid #cfdae0; border-radius: 10px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 166, 216, .18);
}
.field ::placeholder { color: #8a9aa5; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* honeypot */
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .5rem; }
.form-foot p { font-size: .875rem; color: var(--muted); }
.form-error {
  margin-bottom: 1.25rem; padding: .85rem 1rem;
  border-radius: 10px; background: #fdeeee; color: #9b1c1c; font-size: .9375rem;
}
.form-success { padding: 2.5rem 1rem; text-align: center; }
.form-success .icon { width: 56px; height: 56px; margin: 0 auto 1.25rem; color: var(--green); }
.form-success h3 { margin-bottom: .5rem; font-size: 2rem; }
.form-success p { color: var(--muted); }

/* Map */
.map iframe { display: block; width: 100%; height: clamp(320px, 38vw, 440px); border: 0; }

/* Footer */
.site-footer { padding-block: 4rem 2rem; background: var(--night); color: rgba(255, 255, 255, .68); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { width: auto; height: 30px; margin-bottom: 1rem; }
.site-footer h2 {
  margin-bottom: .75rem;
  font-family: var(--font); font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #fff;
}
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .875rem; }

/* Scroll reveal (only when JS is running; see main.js) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3) { transition-delay: .16s; }

/* Tablet and below */
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1.5rem;
    background: #fff; box-shadow: 0 16px 30px rgba(12, 31, 43, .12);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav > a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; color: var(--ink); }
  .site-nav > a:not(.btn)::after { display: none; }
  .site-nav .btn-ghost { margin-top: 1.25rem; padding: .9rem; border-color: var(--line); color: var(--ink); }

  .hero { min-height: min(100svh, 760px); }
  .hero-bg { object-position: 55% 50%; }
  .hero::before {
    background: linear-gradient(0deg, rgba(8, 26, 36, .95) 0%, rgba(8, 26, 36, .8) 45%, rgba(8, 26, 36, .35) 100%);
  }
  .hero { align-items: flex-end; }

  .band-inner, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .brand img { height: 28px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .form-row { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
