/* =============================================
   Hogo fogo — style.css
   Bold magical theme, Czech locale
   ============================================= */

:root {
  --primary:        oklch(0.40 0.25 290);
  --primary-light:  oklch(0.55 0.15 290);
  --primary-dark:   oklch(0.20 0.20 290);
  --accent:         oklch(0.65 0.26 320);
  /* --accent-text: darker shade for readable text on light surfaces */
  --accent-text:    oklch(0.38 0.22 320);
  --surface:        oklch(0.97 0.02 290);
  --surface-alt:    oklch(0.93 0.03 290);
  --dark:           oklch(0.15 0.05 290);
  --light:          oklch(0.97 0.01 290);
  --muted:          oklch(0.45 0.05 290);
  --font-display:   'Montserrat', Georgia, serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --max-width:      1200px;
  --header-height:  72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== Selection ===== */
::selection { background: var(--accent); color: #fff; }

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===== Focus visible ===== */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ===== Fluid Type Scale ===== */
h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw + 1rem, 5rem); font-weight: 900; line-height: 1.1; }
h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw + 0.5rem, 3rem); font-weight: 800; line-height: 1.2; }
h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw + 0.3rem, 1.9rem); font-weight: 700; line-height: 1.3; }
h4 { font-family: var(--font-display); font-size: clamp(1.1rem, 1.5vw + 0.2rem, 1.4rem); font-weight: 700; line-height: 1.4; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: oklch(0.40 0.25 290 / 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: oklch(0.18 0.15 290 / 0.97);
  box-shadow: 0 2px 20px oklch(0.15 0.20 290 / 0.5);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: none;
  gap: 0.25rem;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
  background: oklch(1 0 0 / 0.12);
}

.nav-hamburger {
  background: none;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 6px;
  color: #fff;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s;
}
.nav-hamburger:hover { border-color: #fff; }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav open */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: var(--primary-dark);
  z-index: 999;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 0.5rem;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  color: rgba(255,255,255,0.9);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  padding: 0.75rem 0;
  border-bottom: 1px solid oklch(1 0 0 / 0.12);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--accent); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(0.15 0.20 290 / 0.35);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
}
.btn-primary:hover { box-shadow: 0 8px 24px oklch(0.65 0.26 320 / 0.45); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-dark {
  background: var(--primary);
  color: #fff;
}

/* ===== Section Commons ===== */
section { padding: 5rem 1.25rem; }
.container { max-width: var(--max-width); margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}
.section-heading { margin-bottom: 1rem; }
.section-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ===== Hero ===== */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, oklch(0.35 0.20 310) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-particles::before,
.hero-particles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.15;
  filter: blur(80px);
}
.hero-particles::before { width: 600px; height: 600px; top: -200px; right: -100px; }
.hero-particles::after  { width: 400px; height: 400px; bottom: -100px; left: -100px; }

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 7rem 0 5rem;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: oklch(1 0 0 / 0.12);
  border: 1px solid oklch(1 0 0 / 0.2);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease both;
}
.hero-title {
  color: #fff;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.6s ease 0.15s both;
}
.hero-title .highlight {
  background: linear-gradient(90deg, var(--accent), oklch(0.80 0.22 60));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255,255,255,0.8);
  max-width: 550px;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease 0.30s both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeInUp 0.6s ease 0.45s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Features Grid ===== */
#features_grid {
  background: var(--surface-alt);
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid oklch(0.88 0.04 290);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px oklch(0.40 0.25 290 / 0.15); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #fff;
}
.feature-card h3 { margin-bottom: 0.5rem; color: var(--dark); }
.feature-card p  { color: var(--muted); font-size: 0.95rem; }

/* ===== Custom (Kouzla) ===== */
#custom {
  background: linear-gradient(135deg, var(--primary-dark) 0%, oklch(0.28 0.22 300) 100%);
  color: #fff;
}
#custom .section-label { color: var(--accent); } /* on dark bg — ok */
#custom .section-heading { color: #fff; }
#custom .section-sub { color: rgba(255,255,255,0.75); }

.kouzla-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.kouzla-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: oklch(1 0 0 / 0.08);
}
.kouzla-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.kouzla-card:hover img { transform: scale(1.05); }
.kouzla-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.15 0.15 290 / 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.kouzla-card-overlay h3 { color: #fff; font-size: 1.1rem; }

/* ===== Gallery ===== */
#gallery {
  background: var(--surface);
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface-alt);
}
.gallery-item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  loading: lazy;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ===== Portfolio ===== */
#portfolio {
  background: var(--surface-alt);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.portfolio-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid oklch(0.88 0.04 290);
  transition: transform 0.3s, box-shadow 0.3s;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px oklch(0.40 0.25 290 / 0.15);
}
.portfolio-card-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
}
.portfolio-card-body { padding: 1.5rem; }
.portfolio-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  margin-bottom: 0.5rem;
}
.portfolio-card h3 { margin-bottom: 0.5rem; }
.portfolio-card p  { color: var(--muted); font-size: 0.9rem; }

/* ===== Footer ===== */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 1.25rem 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; max-width: 320px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid oklch(1 0 0 / 0.12);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ===== Mobile CTA Bar ===== */
.mobile-cta {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 998;
  padding: 0.75rem 1rem;
  background: var(--primary-dark);
  border-top: 1px solid oklch(1 0 0 / 0.15);
  gap: 0.75rem;
  backdrop-filter: blur(8px);
}
.mobile-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 0.5rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.mobile-cta a:hover { transform: translateY(-1px); }
.mobile-cta__call {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
}
.mobile-cta__contact {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 2px solid rgba(255,255,255,0.4);
}

/* ===== Responsive 768px ===== */
@media (min-width: 768px) {
  section { padding: 7rem 2rem; }

  .nav-links { display: flex; }
  .nav-hamburger { display: none; }

  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .kouzla-grid   { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid  { grid-template-columns: repeat(3, 1fr); }
  .gallery-item:first-child { grid-column: unset; aspect-ratio: 1; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }

  .mobile-cta { display: none; }

  body { padding-bottom: 0; }
}

/* ===== Mobile Body Padding (for CTA bar) ===== */
@media (max-width: 767px) {
  body { padding-bottom: 72px; }
}

/* ===== Print ===== */
@media print {
  .site-header,
  footer,
  .mobile-cta,
  form,
  .btn { display: none !important; }

  body { color: #000; background: #fff; padding: 0; }
  section { padding: 2rem 0; }

  a::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }

  h1, h2, h3, h4 { page-break-after: avoid; }
  .feature-card, .kouzla-card, .portfolio-card { break-inside: avoid; }
}
