/*
 * MIN-2: design override (navy / amber, Verdana headings) based on the customer's HTML mockup.
 * Loaded after app.css, so it overrides the compiled SCSS without rebuilding the webpack bundle.
 */
:root {
  --navy: #101e36;
  --paper: #fff;
  --amber: #f4c169;
  --amber-dark: #87500f;
  --muted: #47536a;
  --line: #e2dcd0;
}

html, body {
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.58;
}

body {
  background: var(--paper);
  color: var(--navy);
}

a:focus-visible {
  outline: 3px solid #b67019;
  outline-offset: 5px;
}

/* ---------- headings ---------- */
h1, h2, h3, h4,
#main h2, #submain h2,
header .brand-bar .brand-text .brand-name {
  font-family: Verdana, Geneva, sans-serif;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.24;
  color: var(--navy);
}

#main h1, #submain h1 {
  font-size: clamp(34px, 4.75vw, 68px);
  line-height: 1.15;
  margin: 22px 0;
}

#main h2, #submain h2 {
  font-size: clamp(25px, 3vw, 39px);
  line-height: 1.2;
  margin: 1.2rem 0 .8rem;
}

/* remove the old blue underline decoration after h2 */
#main h2::after, #submain h2::after {
  content: none;
}

#main article, #submain article {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
  font-weight: 400;
  margin: 1rem 0 2rem;
}

#main article strong, #submain article strong {
  color: var(--navy);
}

/* ---------- header ---------- */
header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

header .brand-bar {
  padding: 0;
}

header .brand-bar .wrapper {
  min-height: 84px;
  padding: 0;
  gap: 24px;
  flex-wrap: nowrap;
  max-width: 1220px;
  width: min(1220px, calc(100% - 96px));
}

header .brand-bar .brand {
  width: auto;
  justify-content: flex-start;
}

header .brand-bar .brand-text {
  text-align: left;
}

header .brand-bar .brand-text .brand-name {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

header .brand-bar .brand-text .brand-slogan {
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .06em;
}

/* phone is in the footer in the new design */
header .brand-bar .servis-link {
  display: none;
}

/* navigation sits in the header bar, right aligned */
header .nav-bar {
  background: transparent;
  margin-left: auto;
}

header .nav-bar .menu ul {
  justify-content: flex-end;
  column-gap: clamp(12px, 2.8vw, 36px);
}

header .nav-bar .menu ul li a {
  color: var(--navy);
  font-weight: 750;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  text-underline-offset: 5px;
}

header .nav-bar .menu ul li a::after {
  content: none;
}

header .nav-bar .menu ul li a:hover,
header .nav-bar .menu ul li a.active {
  background: transparent;
  color: var(--navy);
  text-decoration: underline;
}

header .brand-bar .hamburger {
  color: var(--navy);
  margin-left: auto;
}

/* mobile: nav drops below the bar */
@media (max-width: 1023.98px) {
  header .brand-bar .wrapper {
    flex-wrap: wrap;
  }

  header .nav-bar {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  header .nav-bar .menu ul {
    align-items: flex-start;
    padding-bottom: 12px;
  }
}

@media (max-width: 980px) {
  header .brand-bar .wrapper {
    width: calc(100% - 56px);
  }
}

@media (max-width: 700px) {
  header .brand-bar .wrapper {
    width: calc(100% - 36px);
    min-height: 68px;
  }
}

/* ---------- banner ---------- */
.home-carousel {
  max-width: 1220px;
  width: min(1220px, calc(100% - 96px));
  margin: 20px auto 0;
  border-radius: 10px;
  overflow: hidden;
}

@media (max-width: 980px) {
  .home-carousel { width: calc(100% - 56px); }
}

@media (max-width: 700px) {
  .home-carousel { width: calc(100% - 36px); }
}

/* ---------- content ---------- */
#main .wrapper, #submain .wrapper {
  max-width: 1220px;
  width: min(1220px, calc(100% - 96px));
  padding: 1rem 0;
}

@media (max-width: 980px) {
  #main .wrapper, #submain .wrapper { width: calc(100% - 56px); }
}

@media (max-width: 700px) {
  #main .wrapper, #submain .wrapper { width: calc(100% - 36px); }
}

#main .wrapper + .wrapper,
#main .wrapper + .services-wrapper,
.services-wrapper {
  border-top: 1px solid var(--line);
}

/* ---------- footer ---------- */
footer {
  background: var(--navy);
  color: #fff;
  font-size: 1rem;
  line-height: 1.58;
  padding-block: 32px;
}

#submain + footer {
  border-top: 0;
}

footer .wrapper {
  max-width: 1220px;
  width: min(1220px, calc(100% - 96px));
  padding: 0;
}

@media (max-width: 980px) {
  footer .wrapper { width: calc(100% - 56px); }
}

@media (max-width: 700px) {
  footer .wrapper { width: calc(100% - 36px); }
}

footer .col-12 {
  margin-bottom: 1rem;
}

footer h2, footer h3, footer h4 {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 1rem;
  color: var(--amber);
  text-transform: none;
  margin-bottom: 8px;
}

footer h3::before {
  content: none;
}

footer a {
  color: #fff;
}

footer .menu {
  padding-top: 0;
}

footer #copyright {
  color: rgba(255, 255, 255, .7);
  font-size: .875rem;
  margin-top: 1rem;
}

header .brand-bar .brand-logo {
  display: flex;
  align-items: center;
}

header .brand-bar .brand-logo img {
  width: 29px;
  height: 43px;
  object-fit: contain;
}

/* logo column in the footer is hidden (no assets), so don't leave an empty column */
footer .row > .col-lg-3:first-child {
  display: none;
}

footer .row > .col-lg-3:not(:first-child) {
  flex: 0 0 33.333%;
  max-width: 33.333%;
}

@media (max-width: 991.98px) {
  footer .row > .col-lg-3:not(:first-child) {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 575.98px) {
  footer .row > .col-lg-3:not(:first-child) {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

#main article, #submain article {
  font-size: clamp(16px, 1.45vw, 20px);
}

/* ---------- homepage one-pager ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding-block: 48px;
}

.hero-copy { padding-block: 28px; }

.hero h1 {
  font-size: clamp(34px, 4.75vw, 68px);
  line-height: 1.15;
  margin: 0 0 22px;
}

.hero h1 span {
  display: block;
  color: var(--amber-dark);
}

.lead, .hero .lead p {
  max-width: 38ch;
  font-size: clamp(16px, 1.45vw, 20px);
  color: var(--muted);
  margin: 0;
}

.hero-art {
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 480px;
  padding: 40px;
  border-radius: 12px;
  background: #fff;
}

.hero-art img {
  display: block;
  width: min(100%, 425px);
  max-height: 420px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.about {
  border-top: 1px solid var(--line);
  padding-block: 37px 45px !important;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
}

.about h2 { margin: 0 !important; }
.about p { color: var(--muted); max-width: 70ch; margin: 0; }

#vyprodej {
  border-top: 1px solid var(--line);
  padding-block: 44px 64px !important;
}

#vyprodej h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.2;
  margin: 0 0 12px;
}

.items {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

#main .items article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 0;
  font-size: 1rem;
  color: var(--navy);
}

.items .photo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  padding: 20px;
  background: #fff;
}

.items .photo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.items .photo.duo img { max-width: 50%; }
.items .details { padding: 20px; }
.items .details h3 { font-size: 1.1rem; margin: 0; }
.items .details p { margin: 6px 0 12px; color: var(--muted); }
.items .price { font-weight: 850; }
.items .price span { font-weight: 500; color: var(--muted); }

@media (max-width: 980px) {
  .hero-art { min-height: 350px; padding: 26px; }
}

@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; padding-block: 34px 28px; gap: 26px; }
  .hero-copy { padding: 0; }
  .hero-art { min-height: 0; padding: 24px; }
  .hero-art img { max-height: 300px; }
  .about { grid-template-columns: 1fr; gap: 14px; }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .items { grid-template-columns: 1fr; }
}

/* ---------- subpages (Kontakty) ---------- */
#submain .wrapper {
  padding-block: 40px 64px;
}

#submain article > h2 {
  margin: 0 0 24px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}

.contact-card h3 {
  font-size: 1rem;
  color: var(--amber-dark);
  margin: 0 0 12px;
}

.contact-card p {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.58;
}

.contact-card p:last-child { margin-bottom: 0; }
.contact-card a { color: var(--navy); font-weight: 750; }

@media (max-width: 980px) {
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .contact-cards { grid-template-columns: 1fr; }
}

#submain article h2::after,
#submain h2::after {
  content: none !important;
}

#submain h1, #submain h2 { color: var(--navy); }

#submain .contact-card h3 {
  font-size: 1rem !important;
  line-height: 1.3 !important;
  margin: 0 0 12px !important;
}

#submain .contact-card p {
  font-size: 1rem !important;
  line-height: 1.58 !important;
}
