/* =========================================================
   Studio Esence — hlavní styly
   ========================================================= */

:root {
  --color-bg: #faf7f2;
  --color-bg-alt: #f2e9dc;
  --color-surface: #ffffff;
  --color-text: #2b2622;
  --color-text-light: #6b6259;
  --color-accent: #b3673f;
  --color-accent-dark: #8a4d2e;
  --color-line: #e6dccb;
  --font-heading: "Playfair Display", "Georgia", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 38, 34, 0.08);
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--color-text);
}

h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--color-text-light); }

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

.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 14px;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */
.topbar {
  background: var(--color-text);
  color: #f2e9dc;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: #f2e9dc; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__social { display: flex; gap: 14px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo span { color: var(--color-accent); }

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.nav__actions { display: flex; align-items: center; gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid var(--color-accent);
  transition: all 0.2s ease;
}
.btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.btn--primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }
.btn--outline {
  background: transparent;
  color: var(--color-accent);
}
.btn--outline:hover { background: var(--color-accent); color: #fff; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-text);
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 100px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero__content .eyebrow { margin-top: 0; }
.hero__actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
}
.hero__image img { width: 100%; height: 100%; object-fit: cover; }

.hero__meta {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero__meta div strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-accent);
}
.hero__meta div span { font-size: 0.85rem; color: var(--color-text-light); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 64px 0 56px;
  text-align: center;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-line);
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--color-accent); }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(43,38,34,0.12); }

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

/* Team cards */
.team-card {
  text-align: center;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-line);
}
.team-card__photo { aspect-ratio: 3/4; overflow: hidden; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: 22px 16px 28px; }
.team-card__body h3 { margin-bottom: 6px; }
.team-card__body a {
  color: var(--color-accent);
  font-weight: 600;
}

/* Pricing table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.price-table caption { display: none; }
.price-table th, .price-table td {
  text-align: left;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-line);
}
.price-table th {
  background: var(--color-bg-alt);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}
.price-table td:last-child, .price-table th:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--color-accent-dark);
  white-space: nowrap;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.contact-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
  align-items: flex-start;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list strong { display: block; }
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-line);
}
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Partners */
.partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  opacity: 0.85;
}
.partners img { max-height: 46px; width: auto; filter: grayscale(100%); }

/* CTA banner */
.cta-banner {
  background: var(--color-text);
  color: #f2e9dc;
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #d9cdbd; }

/* Footer */
.site-footer {
  background: var(--color-text);
  color: #cfc4b4;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__image { order: -1; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links, .nav__actions .btn--outline { display: none; }
  .nav__toggle { display: flex; }
  .site-header.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-line);
    gap: 18px;
  }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 20px; }
  .section { padding: 60px 0; }
}
