/* Recima Group — základní styly dle manuálu firemní identity v1.0 */

:root {
  --navy: #12233D;
  --steel: #2A5C8C;
  --teal: #1B9E7B;
  --slate: #4A5B6E;
  --bg-light: #F4F6F8;
  --white: #FFFFFF;
  --border: #E1E6EB;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
}

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

a { color: var(--steel); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { font-weight: 700; margin: 0 0 16px; color: var(--navy); }
h1 { font-size: 2.4rem; line-height: 1.15; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 16px; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

section { padding: 72px 0; }
section.alt { background: var(--bg-light); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--slate); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: #178a6a; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo img { height: 34px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
}
.main-nav a:hover { color: var(--steel); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #0E1C31 0%, var(--navy) 100%);
  color: var(--white);
  padding: 88px 0 0;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy, .hero-media { min-width: 0; }
.hero-copy .eyebrow { color: #5FD8B6; }
.hero h1 { color: var(--white); }
.hero p.lead { color: #C8D2DE; font-size: 1.1rem; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; margin: 28px 0 40px; flex-wrap: wrap; }

.hero-facts {
  display: flex;
  gap: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  margin-bottom: 72px;
}
.hero-facts div strong { display: block; font-size: 1.6rem; color: var(--white); }
.hero-facts div span { font-size: 0.85rem; color: #9FB0C3; }

.hero-media {
  position: relative;
  height: 100%;
  min-height: 340px;
  align-self: stretch;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroSlideshow 18s infinite;
}
.hero-media img:nth-child(1) { animation-delay: 0s; }
.hero-media img:nth-child(2) { animation-delay: -6s; }
.hero-media img:nth-child(3) { animation-delay: -12s; }

@keyframes heroSlideshow {
  0%, 100% { opacity: 0; }
  8% { opacity: 1; }
  25% { opacity: 1; }
  33% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; opacity: 0; }
  .hero-media img:first-child { opacity: 1; }
}

/* Division tiles on home */
.division-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: -56px;
  position: relative;
  z-index: 5;
  padding-bottom: 64px;
}
.tile {
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(18,35,61,0.14);
  padding: 28px;
  border-top: 4px solid var(--teal);
}
.tile:nth-child(2) { border-top-color: var(--steel); }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--slate); margin-bottom: 0; font-size: 0.95rem; }

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border);
}
.timeline li {
  position: relative;
  padding: 0 0 32px 28px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline .year { font-weight: 700; color: var(--steel); display: block; margin-bottom: 4px; }

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.card-body { padding: 20px 22px 24px; }
.card-body h3 { margin-bottom: 6px; }
.card-body p { color: var(--slate); font-size: 0.93rem; margin-bottom: 0; }
.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.card-toggle { cursor: pointer; transition: box-shadow .2s ease, border-color .2s ease; }
.card-toggle:hover, .card-toggle:focus-visible { box-shadow: 0 10px 24px rgba(18,35,61,0.1); border-color: var(--teal); }
.card-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.card-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.85rem;
}
.card-cta .chevron { display: inline-block; transition: transform .3s ease; font-size: 1rem; }
.card-toggle[aria-expanded="true"] .card-cta .chevron { transform: rotate(90deg); }

/* Flip effect on hover — front stays identical to a normal card, back teases more */
.card-flip { perspective: 1000px; padding: 0; height: 460px; }
.card-flip .flip-card-inner { height: 100%; }
.card-flip:hover .flip-card-inner { transform: rotateY(180deg); }
.card-flip .flip-card-front {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.card-flip .flip-card-front img { width: 100%; height: 170px; object-fit: cover; }
.card-flip .flip-card-back {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.card-flip .flip-card-back img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-flip .flip-caption {
  position: relative;
  z-index: 1;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(18,35,61,0.95), rgba(18,35,61,0));
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
}
.card-flip .flip-card-back.text-only {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 24px;
}
.card-flip .flip-card-back.text-only .flip-stat {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.card-flip .flip-card-back.text-only .flip-sub {
  font-size: 0.82rem;
  color: #C8D2DE;
  line-height: 1.5;
}

/* Division group heading */
.division-group { margin-bottom: 48px; }
.division-group:last-child { margin-bottom: 0; }
.division-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.division-group-head h3 { margin: 0; font-size: 1.3rem; }
.division-group-head span { color: var(--slate); font-size: 0.88rem; }

/* Expandable product spotlight — modal overlay (toggled by a .card-toggle card) */
.expand-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 38, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.expand-panel.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .25s ease;
}
.expand-dialog {
  background: var(--white);
  border-radius: 10px;
  max-width: 960px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  transform: translateY(16px) scale(0.98);
  transition: transform .25s ease;
}
.expand-panel.is-open .expand-dialog {
  transform: translateY(0) scale(1);
}
.expand-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-light);
  color: var(--navy);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
  z-index: 1;
}
.expand-close:hover { background: var(--border); }
body.modal-open { overflow: hidden; }

.expand-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}
.expand-media img,
.expand-media video {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--navy);
}
.expand-hero-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--navy);
}
.expand-copy .card-tag { margin-bottom: 10px; }
.expand-copy h3 { font-size: 1.35rem; margin-bottom: 16px; }
.expand-copy h4 { font-size: 1.02rem; margin: 22px 0 8px; color: var(--navy); }
.expand-copy p { color: var(--slate); font-size: 0.95rem; }
.expand-copy > p:first-of-type { margin-top: 0; }

.expand-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  color: var(--slate);
  font-size: 0.92rem;
}
.expand-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
.expand-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.expand-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.expand-stats span {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
}

.expand-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 20px;
}
.expand-brands img {
  height: 32px;
  max-width: 110px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.8);
  transition: filter .2s ease;
}
.expand-brands img:hover { filter: grayscale(0) opacity(1); }
.expand-brands .chip-dark {
  background: var(--navy);
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  height: 32px;
  box-sizing: border-box;
}
.expand-brands .chip-dark img {
  height: 16px;
  max-width: 90px;
  filter: none;
}

.expand-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.88rem;
}
.expand-table th, .expand-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}
.expand-table th {
  color: var(--navy);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.expand-table td { color: var(--slate); }

.warning-box {
  background: #FFF7ED;
  border-left: 3px solid #D97706;
  padding: 14px 18px;
  border-radius: 4px;
  color: #7C5210;
  font-size: 0.88rem;
  margin: 16px 0;
}
.warning-box strong { color: #7C5210; }

/* Steps (Podmínky spolupráce) */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 0.92rem; margin-bottom: 0; }

.note-box {
  background: var(--bg-light);
  border-left: 3px solid var(--teal);
  padding: 18px 22px;
  border-radius: 4px;
  color: var(--slate);
  font-size: 0.93rem;
  margin-top: 32px;
}

/* Form */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.form-side p { color: var(--slate); }
.form-side ul { color: var(--slate); padding-left: 20px; font-size: 0.93rem; }
.form-side li { margin-bottom: 8px; }

form.inquiry {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(42,92,140,0.15);
}
fieldset { border: 1px solid var(--border); border-radius: 4px; padding: 14px 16px; margin: 0; }
fieldset legend { font-size: 0.85rem; font-weight: 700; padding: 0 6px; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.checkbox-grid label { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 0.9rem; }
.checkbox-grid input { width: auto; }
.form-disclaimer { font-size: 0.78rem; color: var(--slate); margin-top: 14px; margin-bottom: 0; }

/* References */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}
.ref-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--slate);
  font-size: 0.82rem;
  text-align: center;
  padding: 12px 16px;
}
.ref-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1) opacity(0.75);
  transition: filter 0.2s ease;
}
.ref-logo:hover img { filter: grayscale(0) opacity(1); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-card .role { color: var(--teal); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; display: block; }
.contact-card div.line { font-size: 0.92rem; color: var(--slate); margin-bottom: 4px; }
.contact-person { margin-bottom: 16px; }
.contact-person:last-child { margin-bottom: 0; }
.contact-person .line strong { color: var(--navy); }
.contact-card .line a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.contact-card .line a:hover { text-decoration: underline; }
.contact-card .line svg { flex-shrink: 0; color: var(--steel); }

.contact-lead {
  max-width: 360px;
  margin-bottom: 24px;
  border-top: 4px solid var(--teal);
  padding: 0;
  height: 208px;
  overflow: hidden;
  perspective: 1000px;
  cursor: pointer;
}
.contact-lead h3 { font-size: 1.3rem; }

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .6s ease;
  transform-style: preserve-3d;
}
.contact-lead:hover .flip-card-inner,
.contact-lead.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-card-front {
  padding: 24px;
  background: var(--white);
}
.flip-card-back {
  transform: rotateY(180deg);
  background: var(--navy);
}
.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #B7C3D1;
  padding: 56px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-top .logo img { height: 30px; margin-bottom: 14px; }
.footer-top p { color: #94A3B8; font-size: 0.9rem; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-col a { display: block; color: #B7C3D1; font-size: 0.92rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.8rem;
  color: #7C8CA3;
}

/* Thank-you page */
.thanks {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.thanks .icon { font-size: 2.4rem; color: var(--teal); margin-bottom: 16px; }

/* Responsive */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .division-tiles { grid-template-columns: 1fr; margin-top: 24px; }
  .form-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .expand-dialog { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px; transform: translateX(100%); transition: transform 0.25s ease; }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  h1 { font-size: 1.9rem; }
  section { padding: 52px 0; }
  .hero { padding-top: 40px; }
  .hero-facts { flex-wrap: wrap; row-gap: 16px; }
  .form-row.two { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .expand-panel { padding: 0; }
  .expand-dialog { padding: 24px; max-height: 100vh; border-radius: 0; }
  .expand-media { grid-template-columns: 1fr; }
}
