/* ============================================
   Premium Financial Advisor Website
   Petr Vlasák: Elevated Design
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  --color-white: #FFFFFF;
  --color-charcoal: #2B2B2B;
  --color-black: #151515;
  --color-light-gray: #F7F7F5;
  --color-mid-gray: #E8E6E3;
  --color-gold: #C5962C;
  --color-gold-dark: #A67B1F;
  --color-gold-light: #D4AF37;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1200px;
  --nav-height: 72px;

  --duration-hover: 250ms;
  --duration-accordion: 350ms;
  --duration-section: 600ms;

  /* HERO IMAGE: change this single variable to replace the background */
  --hero-image: url('assets/petr-vlasak-hero.jpg');
  --hero-overlay-opacity: 0.6;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--color-black);
  letter-spacing: -0.01em;
}

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

/* --- Focus Indicators (Accessibility) --- */
*:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Skip Link --- */
.skip-link {
  position: fixed;
  top: -100%;
  left: 8px;
  z-index: 1000;
  padding: 10px 20px;
  background: var(--color-gold);
  color: var(--color-black);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
}
.skip-link:focus { top: 8px; }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-on-scroll { opacity: 1 !important; transform: none !important; }
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) { .container { padding: 0 2rem; } }
@media (min-width: 1024px) { .container { padding: 0 2.5rem; } }

/* --- Buttons (Premium Polish) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration-hover) cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 44px;
  min-width: 44px;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-hover);
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: 10px 20px; font-size: 0.875rem; }
.btn--md { padding: 14px 28px; font-size: 0.9375rem; }
.btn--lg { padding: 18px 36px; font-size: 1.0625rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(197, 150, 44, 0.3);
}
.btn--primary:hover {
  box-shadow: 0 8px 28px rgba(197, 150, 44, 0.4);
}

.btn--secondary {
  background: var(--color-charcoal);
  color: var(--color-white);
}
.btn--secondary:hover { background: var(--color-black); }

.btn--outline-light {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: var(--color-white);
  backdrop-filter: blur(4px);
}
.btn--outline-light:hover {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

/* --- Section Defaults (Premium Spacing) --- */
.section {
  padding: 4rem 0;
  position: relative;
}
@media (min-width: 768px) { .section { padding: 5.5rem 0; } }
@media (min-width: 1024px) { .section { padding: 7rem 0; } }

.section--gray { background-color: var(--color-light-gray); }
.section--dark { background-color: var(--color-black); }

.section__heading {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}
.section__heading--center { text-align: center; }
.section__heading--white { color: var(--color-white); }

@media (min-width: 768px) { .section__heading { font-size: 2.25rem; margin-bottom: 3.5rem; } }
@media (min-width: 1024px) { .section__heading { font-size: 2.5rem; margin-bottom: 4rem; } }

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-section) cubic-bezier(0.16, 1, 0.3, 1), transform var(--duration-section) cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Navigation (Premium) --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  height: var(--nav-height);
  transition: background 300ms, box-shadow 300ms;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}
.nav__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
@media (min-width: 640px) { .nav__container { padding: 0 2rem; } }

/* Logo: text-only, intentional premium typemark */
.nav__brand {
  display: flex;
  align-items: center;
}
.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-charcoal);
  letter-spacing: -0.02em;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2px;
}
@media (min-width: 768px) { .nav__links { display: flex; } }

.nav__link {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-charcoal);
  border-radius: 6px;
  transition: color var(--duration-hover), background var(--duration-hover);
  position: relative;
}
.nav__link:hover { color: var(--color-gold); }
.nav__link.active { color: var(--color-gold); }
.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 1px;
}
.nav__cta { margin-left: 20px; }

.nav__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-charcoal);
  border-radius: var(--radius-sm);
  transition: color var(--duration-hover), background var(--duration-hover);
}
.nav__hamburger:hover { color: var(--color-gold); background: var(--color-light-gray); }
@media (min-width: 768px) { .nav__hamburger { display: none; } }
.nav__hamburger svg { width: 24px; height: 24px; }
.nav__hamburger .close-icon { display: none; }
.nav__hamburger[aria-expanded="true"] .hamburger-icon { display: none; }
.nav__hamburger[aria-expanded="true"] .close-icon { display: block; }

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.5rem;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; transform: translateY(0); }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

.mobile-menu__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 14px 16px;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-charcoal);
  border-radius: var(--radius-sm);
  transition: color var(--duration-hover), background var(--duration-hover);
}
.mobile-menu__link:hover, .mobile-menu__link.active {
  color: var(--color-gold);
  background: var(--color-light-gray);
}
.mobile-menu__cta { margin-top: 20px; width: 100%; max-width: 320px; }

/* ============================================
   HERO: Premium Full-Image Background
   To change the hero image, edit --hero-image
   in :root above.
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.25rem 4rem;
}

/* Background image layer */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Dark overlay for text readability (55-65% opacity) */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(21, 21, 21, 0.7) 0%,
    rgba(21, 21, 21, var(--hero-overlay-opacity)) 40%,
    rgba(21, 21, 21, 0.75) 100%
  );
}

/* Subtle glow behind content for depth */
.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(197, 150, 44, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
}

.hero__headline {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.12;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
@media (min-width: 640px) { .hero__headline { font-size: 2.5rem; } }
@media (min-width: 1024px) { .hero__headline { font-size: 3.25rem; margin-bottom: 1.75rem; } }
@media (min-width: 1280px) { .hero__headline { font-size: 3.75rem; } }

.hero__subheadline {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}
@media (min-width: 640px) { .hero__subheadline { font-size: 1.125rem; } }
@media (min-width: 1024px) { .hero__subheadline { font-size: 1.1875rem; margin-bottom: 3rem; } }

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
@media (min-width: 640px) {
  .hero__ctas { flex-direction: row; justify-content: center; width: auto; gap: 1.25rem; }
}

/* ============================================
   PORTRAIT: Premium Advisor Photo Component
   Replace src of .portrait__img to change photo.
   ============================================ */
.portrait {
  position: relative;
  width: 240px;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 3px solid rgba(197, 150, 44, 0.2);
}
@media (min-width: 640px) { .portrait { width: 300px; height: 380px; } }
@media (min-width: 1024px) { .portrait { width: 340px; height: 420px; } }

.portrait::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(145deg, var(--color-gold-light), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.portrait__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.portrait__fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-light-gray) 0%, var(--color-mid-gray) 100%);
  display: none; /* Shown via JS onerror */
  align-items: center;
  justify-content: center;
}
.portrait__fallback svg {
  width: 48px;
  height: 48px;
  color: rgba(43, 43, 43, 0.25);
}

/* --- About Section (Premium Spacing) --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 768px) { .about__grid { grid-template-columns: auto 1fr; gap: 4.5rem; } }

.about__image-col {
  display: flex;
  justify-content: center;
}
@media (min-width: 768px) { .about__image-col { justify-content: flex-start; } }

.about__name {
  font-size: 1.625rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}
@media (min-width: 1024px) { .about__name { font-size: 1.875rem; } }

.about__title {
  color: var(--color-gold-dark);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}
.about__experience {
  font-weight: 500;
  margin-bottom: 1.25rem;
  color: var(--color-charcoal);
}
.about__values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.about__value-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-charcoal);
  background: var(--color-white);
  border-radius: 999px;
  border: 1px solid var(--color-mid-gray);
  transition: border-color var(--duration-hover), box-shadow var(--duration-hover);
}
.about__value-tag:hover {
  border-color: var(--color-gold);
  box-shadow: 0 2px 8px rgba(197, 150, 44, 0.15);
}
.about__description p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
  color: rgba(43, 43, 43, 0.85);
}
.about__description p:last-child { margin-bottom: 0; }

/* --- Services (Premium Cards, 3+2 Layout) --- */
.services__grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.services__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .services__row--3 { grid-template-columns: repeat(3, 1fr); }
  .services__row--2 { grid-template-columns: repeat(2, 1fr); max-width: 66.666%; margin: 0 auto; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .services__row--3 { grid-template-columns: repeat(3, 1fr); }
  .services__row--2 { max-width: 66.666%; }
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-mid-gray);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-hover) cubic-bezier(0.4, 0, 0.2, 1), box-shadow var(--duration-hover) cubic-bezier(0.4, 0, 0.2, 1), border-color var(--duration-hover);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 150, 44, 0.3);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(197, 150, 44, 0.1) 0%, rgba(197, 150, 44, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-gold);
  transition: background var(--duration-hover);
}
.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, rgba(197, 150, 44, 0.15) 0%, rgba(197, 150, 44, 0.08) 100%);
}
.service-card__icon svg { width: 24px; height: 24px; }

.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
@media (min-width: 1024px) { .service-card__title { font-size: 1.375rem; } }

.service-card__desc {
  color: rgba(43, 43, 43, 0.75);
  line-height: 1.65;
  font-size: 0.9375rem;
}
.services__cta {
  text-align: center;
  margin-top: 3.5rem;
}

/* --- Why Section (Premium Grid) --- */
.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .why__grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; } }
@media (min-width: 1024px) { .why__grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.why-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: transform var(--duration-hover) cubic-bezier(0.4, 0, 0.2, 1), box-shadow var(--duration-hover), border-color var(--duration-hover);
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(197, 150, 44, 0.2);
}

.why-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(197, 150, 44, 0.12) 0%, rgba(197, 150, 44, 0.04) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-gold);
}
.why-card__icon svg { width: 22px; height: 22px; }

.why-card__heading {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-charcoal);
}
@media (min-width: 1024px) { .why-card__heading { font-size: 1.375rem; } }

.why-card__desc {
  color: rgba(43, 43, 43, 0.7);
  line-height: 1.65;
  font-size: 0.9375rem;
}

/* --- Process (Premium Timeline) --- */
.process {
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (min-width: 768px) {
  .process { flex-direction: row; align-items: flex-start; }
}
.process__step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 0;
}
@media (min-width: 768px) {
  .process__step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 0;
  }
}
.process__number {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(197, 150, 44, 0.3);
}
@media (min-width: 768px) {
  .process__number { width: 52px; height: 52px; min-width: 52px; font-size: 1.125rem; margin-bottom: 1.25rem; }
}
.process__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  color: var(--color-charcoal);
}
@media (min-width: 1024px) { .process__title { font-size: 1.375rem; } }
.process__desc {
  color: rgba(43, 43, 43, 0.7);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.process__connector {
  width: 2px;
  min-height: 1.5rem;
  background: linear-gradient(180deg, var(--color-gold) 0%, rgba(197, 150, 44, 0.2) 100%);
  margin-left: 21px;
}
@media (min-width: 768px) {
  .process__connector {
    width: auto;
    min-height: 0;
    height: 2px;
    flex: 0 0 auto;
    margin-left: 0;
    margin-top: 25px;
    min-width: 1rem;
    flex-grow: 1;
    background: linear-gradient(90deg, var(--color-gold), rgba(197, 150, 44, 0.2));
  }
}

/* --- FAQ (Premium Accordion) --- */
.faq {
  max-width: 768px;
  margin: 0 auto;
}
.faq__item {
  border-bottom: 1px solid var(--color-mid-gray);
}
.faq__item:first-child { border-top: 1px solid var(--color-mid-gray); }

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-charcoal);
  transition: color var(--duration-hover);
  line-height: 1.35;
}
@media (min-width: 1024px) { .faq__question { font-size: 1.375rem; } }
.faq__question:hover { color: var(--color-gold-dark); }

.faq__chevron {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-left: 1.5rem;
  color: var(--color-gold);
  transition: transform var(--duration-accordion) cubic-bezier(0.4, 0, 0.2, 1);
}
.faq__question[aria-expanded="true"] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--duration-accordion) cubic-bezier(0.4, 0, 0.2, 1), opacity var(--duration-accordion) ease-out, padding var(--duration-accordion);
  padding: 0;
}
.faq__answer[hidden] {
  display: block;
  max-height: 0;
  opacity: 0;
  padding: 0;
}
.faq__answer.is-open {
  max-height: 500px;
  opacity: 1;
  padding: 0 0 1.5rem;
}
.faq__answer p {
  color: rgba(43, 43, 43, 0.8);
  line-height: 1.75;
  font-size: 0.9375rem;
}

/* --- Contact (Premium Dark Section, continuous to page end) --- */
.section--dark {
  background: linear-gradient(180deg, var(--color-black) 0%, #0a0a0a 100%);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.contact__text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.0625rem;
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
@media (min-width: 1024px) { .contact__text { font-size: 1.125rem; } }

.contact__details { display: flex; flex-direction: column; gap: 1.25rem; }
.contact__detail {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 44px;
  color: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 4px 0;
  transition: color var(--duration-hover);
}
.contact__detail:hover { color: var(--color-gold); }
.contact__detail svg { width: 20px; height: 20px; min-width: 20px; color: var(--color-gold); }
.contact__detail--static { color: rgba(255, 255, 255, 0.7); cursor: default; }
.contact__detail--static:hover { color: rgba(255, 255, 255, 0.7); }

.contact__form-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
@media (min-width: 1024px) { .contact__form-wrapper { justify-content: flex-end; } }

/* --- Lead Form (Premium Card) --- */
.lead-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl), 0 0 80px rgba(197, 150, 44, 0.06);
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 640px) { .lead-form { padding: 2.5rem; } }

.lead-form__field { display: flex; flex-direction: column; gap: 6px; }
.lead-form__label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-charcoal);
}
.lead-form__input {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-mid-gray);
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background: var(--color-white);
  transition: border-color var(--duration-hover), box-shadow var(--duration-hover);
}
.lead-form__input::placeholder { color: #9ca3af; }
.lead-form__input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(197, 150, 44, 0.12);
}
.lead-form__input.has-error { border-color: #dc2626; }

.lead-form__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 44px;
  cursor: pointer;
}
.lead-form__select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C5962C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.lead-form__error { font-size: 0.875rem; color: #dc2626; }
.lead-form__success { font-size: 0.9375rem; color: #15803d; font-weight: 500; }
.lead-form__submit { width: 100%; margin-top: 0.5rem; }

/* --- Contact section ends the page, no separate footer --- */
.section--dark-end {
  padding-bottom: 0;
}

.contact__copyright {
  margin-top: 3rem;
  padding: 1.25rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.contact__copyright p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.03em;
}

@media (min-width: 1024px) {
  .contact__copyright { margin-top: 3.5rem; }
}

/* --- Section Divider Transitions --- */
.section + .section--gray,
.section--gray + .section {
  border-top: none;
}

/* --- EFA Certification Block --- */
.about__efa {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(197, 150, 44, 0.04) 0%, rgba(197, 150, 44, 0.02) 100%);
  border: 1px solid rgba(197, 150, 44, 0.15);
  border-radius: var(--radius-md);
}
.about__efa-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}
.about__efa-title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 0.25rem;
}
.about__efa-text p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(43, 43, 43, 0.75);
}

/* --- Stats Section --- */
.section--stats {
  padding: 3.5rem 0;
  background: var(--color-black);
}
@media (min-width: 768px) { .section--stats { padding: 4.5rem 0; } }

.stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .stats { flex-direction: row; justify-content: center; gap: 0; }
}
.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 2.5rem;
}
.stats__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
@media (min-width: 1024px) { .stats__number { font-size: 3rem; } }
.stats__label {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
.stats__divider {
  display: none;
}
@media (min-width: 768px) {
  .stats__divider {
    display: block;
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
  }
}

/* --- Mortgage Calculator --- */
.calculator {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-mid-gray);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
@media (min-width: 640px) { .calculator { padding: 2.5rem; } }

.calculator__inputs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .calculator__inputs { grid-template-columns: 1fr 1fr 1fr; gap: 1rem; } }

.calculator__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calculator__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-charcoal);
}
.calculator__input {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-mid-gray);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-charcoal);
  transition: border-color var(--duration-hover), box-shadow var(--duration-hover);
}
.calculator__input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(197, 150, 44, 0.12);
}

.calculator__result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--color-light-gray);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}
.calculator__result-label {
  font-size: 0.875rem;
  color: rgba(43, 43, 43, 0.7);
  font-weight: 500;
}
.calculator__result-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-charcoal);
  letter-spacing: -0.02em;
}
@media (min-width: 640px) { .calculator__result-value { font-size: 2.25rem; } }

.calculator__disclaimer {
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(43, 43, 43, 0.6);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.calculator__cta {
  text-align: center;
}

/* Services grid uses row-based layout: see .services__row */


/* ============================================
   FEATURE BAND: Portrait 2 (assets/image2.jpg)
   Sits after the "Proč právě já" card grid.
   ============================================ */
.feature-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 4.5rem;
}
@media (min-width: 768px) {
  .feature-band { grid-template-columns: minmax(260px, 380px) 1fr; gap: 4rem; }
}

.feature-band__image-col { display: flex; justify-content: center; }
@media (min-width: 768px) { .feature-band__image-col { justify-content: flex-start; } }

.feature-band__frame {
  position: relative;
  width: 260px;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 3px solid rgba(197, 150, 44, 0.2);
}
@media (min-width: 640px) { .feature-band__frame { width: 320px; height: 420px; } }
@media (min-width: 1024px) { .feature-band__frame { width: 360px; height: 460px; } }

.feature-band__frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(145deg, var(--color-gold-light), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.feature-band__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.feature-band__quote {
  margin: 0 0 1.5rem;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--color-black);
  border-left: 3px solid var(--color-gold);
  padding-left: 1.25rem;
}
@media (min-width: 1024px) { .feature-band__quote { font-size: 1.875rem; } }

.feature-band__desc {
  margin: 0 0 1.25rem;
  line-height: 1.8;
  color: var(--color-charcoal);
}

.feature-band__sign {
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* ============================================
   CONTACT PORTRAIT: Portrait 3 (assets/image3.jpg)
   ============================================ */
.contact__portrait {
  position: relative;
  margin-top: 2.5rem;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 3px solid rgba(197, 150, 44, 0.25);
}

.contact__portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
