/* =========================================================
   INTEA nova – kuchyňské studio
   Light luxury · gold accent · readable & calm
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg-primary: #FAF8F4;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F0EAE0;
  --bg-dark: #1A1A1A;
  --text-primary: #1A1A1A;
  --text-secondary: #5C5C5C;
  --text-muted: #8A8A8A;
  --accent-gold: #B8924D;
  --accent-gold-hover: #9A7A3D;
  --border: #E5E0D8;
  --border-dark: #2A2A2A;

  --font-serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --section-pad-y: 90px;
  --container: 1280px;
  --container-narrow: 1080px;

  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 768px) {
  :root { --section-pad-y: 60px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
p { margin: 0 0 1.2em; color: var(--text-secondary); }
p.lead { font-size: 1.125rem; color: var(--text-secondary); }
strong { font-weight: 600; color: var(--text-primary); }

.overline {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--accent-gold);
  margin: 0 0 1rem;
}
.hairline {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--accent-gold);
  margin: 0 0 1.5rem;
  border: none;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}
.container--narrow { max-width: var(--container-narrow); }
section { padding-block: var(--section-pad-y); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}
.btn--gold {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
}
.btn--gold:hover { background: var(--accent-gold-hover); border-color: var(--accent-gold-hover); }
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}
.btn--outline:hover { background: var(--text-primary); color: #fff; }
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}
.site-logo { display: block; }
.site-logo img { height: 50px; width: auto; }
@media (max-width: 768px) { .site-logo img { height: 40px; } }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  width: 40px; height: 40px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after  { top:  7px; left: 0; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
  }
  .nav.is-open { max-height: 600px; padding-top: 16px; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav a:last-of-type { border-bottom: none; }
  .nav .btn { margin-top: 12px; align-self: flex-start; }
}

/* ---------- Hero (fullwidth video) ---------- */
.hero {
  position: relative;
  padding: 0;
  margin: 0;
  height: 85vh;
  min-height: 560px;
  overflow: hidden;
  background: #1a1a1a;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero__copy {
  max-width: 700px;
  color: #fff;
}
.hero__copy h1 { color: #fff; }
.hero__copy .overline { color: var(--accent-gold); }
.hero__copy .hairline { background: var(--accent-gold); }
.hero__copy .lead { color: rgba(255,255,255,0.88); }
.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Stats strip — stays light below the hero */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 24px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-primary);
}
.stats-strip__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.stats-strip__inner span.sep { color: var(--accent-gold); }

@media (max-width: 768px) {
  .hero {
    height: 80vh;
    min-height: 520px;
  }
  .hero__overlay {
    background: rgba(0,0,0,0.6);
  }
  .hero__inner {
    justify-content: center;
    text-align: center;
  }
  .hero__copy {
    max-width: 100%;
  }
  .hero__copy .hairline { margin-inline: auto; }
  .hero__cta { justify-content: center; }
}

/* ---------- Sections (generic two-column) ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 768px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}
.section-head__copy h2 { margin-bottom: 0; }
.section-head__body p:last-child { margin-bottom: 0; }

/* alternating surface */
.surface-alt { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Why grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-gold); }
.card__icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  margin-bottom: 20px;
}
.card__icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--text-secondary); }

/* ---------- Services showcase ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }
.service {
  display: block;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.service:hover { transform: translateY(-6px); border-color: var(--accent-gold); }
.service__media {
  aspect-ratio: 4 / 5;
  background: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
}
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.service:hover .service__media img { transform: scale(1.03); }
.service__body { padding: 24px 28px 28px; }
.service__body h3 { margin-bottom: 8px; }
.service__body p { margin-bottom: 16px; color: var(--text-secondary); }
.service__arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-gold);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.service__arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.service:hover .service__arrow svg { transform: translateX(4px); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.7); max-width: 580px; margin-inline: auto; }
.cta-banner .overline { color: var(--accent-gold); }
.cta-banner .hairline { margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding-block: 72px 24px;
  font-size: 0.95rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
}
@media (max-width: 768px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.site-footer a:hover { color: var(--accent-gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__brand img {
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  margin-bottom: 18px;
}
.site-footer__brand p { color: rgba(255,255,255,0.6); max-width: 280px; }
.site-footer__bottom {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding-block: 96px 64px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}
.page-hero__inner { max-width: 780px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1.05rem; margin: 0; }

/* ---------- Gallery (masonry-ish via CSS columns) ---------- */
.gallery {
  column-count: 3;
  column-gap: 16px;
}
@media (max-width: 1024px) { .gallery { column-count: 2; } }
@media (max-width: 600px)  { .gallery { column-count: 1; } }
.gallery__item {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.gallery__item:hover { transform: translateY(-3px); border-color: var(--accent-gold); }
.gallery__item img { width: 100%; height: auto; display: block; transition: opacity 0.4s var(--ease); }

/* ---------- Services list (rekonstrukce) ---------- */
.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}
@media (max-width: 768px) { .services-list { grid-template-columns: 1fr; } }
.services-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.services-list li svg {
  flex: none;
  width: 20px; height: 20px;
  color: var(--accent-gold);
  margin-top: 4px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.info-block { font-size: 1rem; }
.info-block dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px 16px;
  margin: 0 0 28px;
}
.info-block dt {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding-top: 2px;
}
.info-block dd { margin: 0; color: var(--text-primary); }
.info-block a { color: var(--text-primary); border-bottom: 1px solid var(--border); transition: border-color 0.25s; }
.info-block a:hover { border-bottom-color: var(--accent-gold); color: var(--accent-gold); }

.map-embed {
  margin-top: 28px;
  width: 100%;
  height: 400px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Form ---------- */
.form-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
@media (max-width: 600px) { .form-card { padding: 28px 24px; } }
.form-card h2 { margin-bottom: 8px; }
.form-card .lead { margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  font: inherit;
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: #fffdf8;
}
.field textarea { min-height: 140px; resize: vertical; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 8px 0 24px;
}
.checkbox input { margin-top: 4px; accent-color: var(--accent-gold); }
.form-status { display: none; margin-top: 16px; padding: 14px 18px; border-radius: var(--radius); font-size: 0.95rem; }
.form-status.is-success { display: block; background: #f0f7ee; border: 1px solid #c9e0c2; color: #2f6b22; }
.form-status.is-error { display: block; background: #fbeeee; border: 1px solid #e0c2c2; color: #8a2a2a; }

/* ---------- 404 ---------- */
.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.notfound .code {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

/* ---------- Cookie bar ---------- */
.cookie-bar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  max-width: 720px;
  margin-inline: auto;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.cookie-bar.is-visible { transform: translateY(0); opacity: 1; }
.cookie-bar p { margin: 0; flex: 1 1 280px; }
.cookie-bar .actions { display: flex; gap: 8px; }
.cookie-bar button {
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.cookie-bar button.primary {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #fff;
}
.cookie-bar button.primary:hover { background: var(--accent-gold-hover); border-color: var(--accent-gold-hover); }
.cookie-bar button:not(.primary):hover { border-color: var(--text-primary); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,14,12,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); }
.lightbox__btn {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s;
}
.lightbox__btn:hover { background: rgba(255,255,255,0.18); border-color: #fff; }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox__prev { left: 12px; }
  .lightbox__next { right: 12px; }
}

/* ---------- Animations ----------
   Default = final rendered state (SEO / no-JS friendly).
   JS opts into the hidden state by adding `js-reveal` to <html>. */
.reveal {
  opacity: 1;
  transform: none;
}
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}
html.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.js-reveal .reveal { opacity: 1; transform: none; }
}
