/* ============================================
   PPI — Prague Property Inspections
   Classic light theme (close to current look)
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f7f6f3;
  --bg-3: #efeee9;
  --border: #e3e1db;
  --border-strong: #c8c5bc;
  --text: #1d1f22;
  --text-muted: #5f6166;
  --text-faint: #8d8f94;
  --accent: #1a2d4a;
  --accent-light: #2d4769;
  --accent-bg: #eef2f7;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', -apple-system, system-ui, sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}

h3 {
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

h4 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

p { color: var(--text); }
.muted { color: var(--text-muted); }

/* ============================================
   Header
   ============================================ */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark-svg {
  width: 64px;
  height: auto;
  flex-shrink: 0;
}

.brand-mark-svg img {
  width: 100%;
  height: auto;
  display: block;
}

.brand-name strong {
  font-weight: 700;
  color: var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.25rem 0;
  position: relative;
}

.nav-links a:hover, .nav-links a.is-active {
  color: var(--accent);
}

.nav-links a.is-active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  border-left: 1px solid var(--border);
  padding-left: 1.25rem;
}

.lang-switch a {
  color: var(--text-faint);
  padding: 0.35rem 0.55rem;
  transition: color 0.2s ease;
}

.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-active { color: var(--accent); font-weight: 600; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
}

/* ============================================
   Hero — video background
   ============================================ */

.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

.hero--video {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(5rem, 12vw, 9rem);
  min-height: clamp(420px, 65vh, 640px);
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0e1726;
  /* Fallback color visible while video loads */
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 17, 33, 0.55) 0%, rgba(10, 17, 33, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero--video .hero-title {
  color: #fff;
}

.hero--video .hero-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

/* Button variant for dark hero */
.btn-on-dark {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  background: transparent;
}

.btn-on-dark:hover {
  background: #fff;
  color: var(--text);
  border-color: #fff;
}

/* Respect data-saving / reduced motion preferences — hide video, rely on poster */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* Mobile: video uses too much data, prefer static poster */
@media (max-width: 720px) {
  .hero-video { display: none; }
  .hero-media {
    background-image: url('assets/img/hero-poster.jpg');
    background-size: cover;
    background-position: center;
  }
}

/* Old hero image (kept for fallback / other pages — currently unused) */
.hero-image {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 3rem;
  aspect-ratio: 16 / 7;
  background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1600&q=70');
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}

.hero-title {
  margin-bottom: 1.5rem;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 2.25rem;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid var(--text);
  background: transparent;
  color: var(--text);
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--bg);
}

.btn .arrow {
  transition: transform 0.2s ease;
}

.btn:hover .arrow { transform: translateX(3px); }

/* ============================================
   Section: Inspection contents
   ============================================ */

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-light {
  background: var(--bg-2);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.inspection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.inspection-item h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
}

.inspection-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.inspection-item p strong {
  color: var(--text);
  font-weight: 600;
}

/* ============================================
   Inline CTA after sections
   ============================================ */

.inline-cta {
  text-align: center;
  padding: 3rem 0 1rem;
}

/* ============================================
   Contact strip
   ============================================ */

.contact-strip {
  background: var(--bg-2);
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  text-align: center;
}

.contact-strip h2 { margin-bottom: 1.25rem; }

.contact-email {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent);
  margin: 1rem 0 2rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

.contact-email:hover {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

.contact-strip p {
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 auto 1.5rem;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--text);
  color: var(--bg-3);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col p, .footer-col a, .footer-col li {
  color: rgba(247, 246, 243, 0.65);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-col a:hover { color: var(--bg); }

.footer-col ul { list-style: none; }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 246, 243, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(247, 246, 243, 0.4);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .inspection-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; }
  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem var(--gutter);
    gap: 1.25rem;
  }
  .main-nav.is-open .nav-links { flex-direction: column; gap: 0.85rem; }
  .main-nav.is-open .lang-switch { padding-top: 1rem; border-top: 1px solid var(--border); border-left: 0; padding-left: 0; }
  .brand-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
