/* ============================================================
   Interiéry Horyna s.r.o. — GitHub Pages stylesheet
   Font: Montserrat | Primary: #478ac9 | Text: #111111
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #478ac9;
  --primary-dark: #2d6da8;
  --accent:       #ef3f3c;
  --dark:         #111111;
  --grey:         #6b7280;
  --light:        #f5f6f8;
  --white:        #ffffff;
  --radius:       4px;
  --shadow:       0 2px 12px rgba(0,0,0,.10);
  --transition:   0.25s ease;
  --max-w:        1200px;
  --header-h:     88px;
}

html { scroll-behavior: smooth; }

body {
  font-family: Montserrat, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark);
  background: var(--white);
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-subtitle {
  color: var(--grey);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 48px;
}
.section-header { margin-bottom: 0; }
.section-header .section-subtitle { margin-bottom: 0; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 24px;
  font-family: Montserrat, sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0,0,0,.09);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}
.logo img {
  height: 52px;
  width: auto;
}
.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  gap: 2px;
  font-size: .82rem;
}
.header-contact a {
  color: var(--dark);
  transition: color var(--transition);
}
.header-contact a:hover { color: var(--primary); }
.header-contact .phone {
  font-weight: 700;
  font-size: .95rem;
  color: var(--primary);
}

/* Nav */
.site-nav { margin-left: 32px; }
.site-nav ul {
  display: flex;
  list-style: none;
  gap: 0;
}
.site-nav a {
  display: block;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--white);
  border-top: 1px solid #e5e7eb;
  padding: 48px 0 32px;
  text-align: center;
}
.footer-logo img { height: 52px; margin: 0 auto 24px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}
.footer-col p,
.footer-col a {
  font-size: .88rem;
  color: var(--grey);
  line-height: 1.8;
  display: block;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
  color: var(--grey);
  font-size: .82rem;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a1a2e;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .5;
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 640px;
  padding: 80px 0;
}
.hero-eyebrow {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Page hero (subpages) */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  background: #1a1a2e;
  overflow: hidden;
}
.page-hero .hero-bg { opacity: .45; }
.page-hero .hero-content { padding: 60px 0; }
.page-hero .hero-title { font-size: clamp(1.6rem, 4vw, 2.6rem); }

/* ── Services grid ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.service-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.service-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.service-card:hover .service-card-img { transform: scale(1.04); }
.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 50%, transparent 100%);
}
.service-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  color: var(--white);
}
.service-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.service-card-body p {
  font-size: .8rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-card-body .btn {
  font-size: .78rem;
  padding: 7px 16px;
}

/* Secondary services (smaller) */
.services-grid-sm {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.service-card-sm {
  background: var(--light);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  transition: background var(--transition), box-shadow var(--transition);
  border: 1px solid #e5e7eb;
}
.service-card-sm:hover {
  background: var(--white);
  box-shadow: var(--shadow);
}
.service-card-sm .icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.service-card-sm h4 {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.service-card-sm p {
  font-size: .78rem;
  color: var(--grey);
}

/* ── Gallery ──────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(71,138,201,.0);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .gallery-item-overlay { background: rgba(71,138,201,.35); }
.gallery-item-overlay span {
  color: white;
  font-size: 2rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item-overlay span { opacity: 1; }

/* Gallery modal */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.9);
  align-items: center;
  justify-content: center;
}
.gallery-modal.open { display: flex; }
.gallery-modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
  object-fit: contain;
}
.gallery-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.gallery-modal-prev,
.gallery-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255,255,255,.15);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.gallery-modal-prev { left: 16px; }
.gallery-modal-next { right: 16px; }
.gallery-modal-prev:hover,
.gallery-modal-next:hover { background: rgba(255,255,255,.3); }

/* ── Partner logos ────────────────────────────────────────── */
.logos-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
  margin-top: 40px;
}
.logos-strip img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .65;
  transition: filter var(--transition), opacity var(--transition);
}
.logos-strip img:hover { filter: grayscale(0); opacity: 1; }

/* ── Text + image split ───────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-img { order: -1; }
.split-img {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.split-text p {
  color: var(--grey);
  margin-bottom: 16px;
}
.split-text ul {
  padding-left: 20px;
  color: var(--grey);
  margin-bottom: 16px;
}
.split-text ul li { margin-bottom: 6px; }
.split-text .btn { margin-top: 8px; }

/* ── Feature list ─────────────────────────────────────────── */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.feature-item {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
}
.feature-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.feature-item p { font-size: .9rem; color: var(--grey); }

/* ── Process steps ────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
  counter-reset: step;
}
.step {
  text-align: center;
  padding: 24px 12px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50%;
  margin: 0 auto 16px;
}
.step h4 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.step p  { font-size: .82rem; color: var(--grey); }

/* ── CTA banner ───────────────────────────────────────────── */
.cta-banner {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-banner p {
  color: rgba(255,255,255,.8);
  max-width: 520px;
  margin: 0 auto 28px;
}

/* ── Contact page ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-info-item .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.contact-info-item h4 {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.contact-info-item p, .contact-info-item a {
  font-size: .95rem;
  color: var(--grey);
  display: block;
}
.contact-info-item a:hover { color: var(--primary); }

.contact-form { background: var(--light); border-radius: 12px; padding: 36px; }
.contact-form h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: Montserrat, sans-serif;
  font-size: .95rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .78rem; color: var(--grey); margin-top: 12px; }

/* Map placeholder */
.map-wrap {
  border-radius: 10px;
  overflow: hidden;
  height: 360px;
  background: var(--light);
  margin-top: 48px;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── About page ───────────────────────────────────────────── */
.about-intro {
  max-width: 760px;
}
.about-intro p {
  font-size: 1.05rem;
  color: var(--grey);
  margin-bottom: 20px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  text-align: center;
}
.stat-item { padding: 32px 16px; background: var(--light); border-radius: 8px; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: .9rem; color: var(--grey); font-weight: 600; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid     { grid-template-columns: repeat(3, 1fr); }
  .services-grid-sm  { grid-template-columns: repeat(3, 1fr); }
  .steps             { grid-template-columns: repeat(3, 1fr); }
  .footer-cols       { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }

  .header-contact { display: none; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    z-index: 99;
    margin-left: 0;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid #e5e7eb;
    border-right: none;
  }

  .menu-toggle { display: flex; }

  .services-grid    { grid-template-columns: repeat(2, 1fr); }
  .services-grid-sm { grid-template-columns: repeat(2, 1fr); }
  .split            { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-img { order: 0; }
  .gallery-grid     { grid-template-columns: repeat(2, 1fr); }
  .feature-list     { grid-template-columns: 1fr; }
  .steps            { grid-template-columns: repeat(2, 1fr); }
  .contact-grid     { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols      { grid-template-columns: 1fr; }
  .stats-row        { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .services-grid-sm { grid-template-columns: repeat(2, 1fr); }
  .service-card-body h3 { font-size: .9rem; }
  .service-card-body p  { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero         { min-height: 420px; }
  .page-hero    { min-height: 240px; }
  .hero-btns    { flex-direction: column; }
  .steps        { grid-template-columns: 1fr; }
  .stats-row    { grid-template-columns: repeat(2, 1fr); }
  .contact-form { padding: 24px 16px; }
}
