/* ==========================================================================
   Ing. Lenka Špidlová — finanční poradkyně
   Design system: navy + gold, serif headings / sans body
   ========================================================================== */

:root {
  --navy: #10233f;
  --navy-2: #16305a;
  --navy-soft: #eef1f6;
  --gold: #c8a768;
  --gold-dark: #a8873f;
  --cream: #faf8f4;
  --white: #ffffff;
  --text: #2a2c31;
  --muted: #6b7280;
  --border: #e5e1d8;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  --container: 1140px;
  --radius: 14px;
  --shadow: 0 20px 40px -20px rgba(16, 35, 63, 0.25);
  --shadow-sm: 0 8px 20px -10px rgba(16, 35, 63, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

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

p { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold-dark);
  margin-bottom: 0.9em;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

/* Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 1.8em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* Top bar --------------------------------------------------------------- */

.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--gold); }

/* Header / nav ------------------------------------------------------------ */

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 20px;
  padding: 16px 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand span {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: nowrap;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  border-color: var(--gold);
}

.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-cta .btn { white-space: nowrap; padding: 0.75em 1.4em; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
  transition: 0.25s;
}

/* Hero -------------------------------------------------------------------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #1a3a6b 100%);
  color: var(--white);
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 88px;
}
.hero-copy .eyebrow { color: var(--gold); }
.hero-copy h1 { color: var(--white); }
.hero-copy .lead { color: rgba(255, 255, 255, 0.78); font-size: 1.2rem; }
.hero-actions { display: flex; gap: 16px; margin-top: 1.6em; flex-wrap: wrap; }

.hero-photo {
  position: relative;
  justify-self: center;
}
.photo-frame {
  position: relative;
  width: 340px;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06) brightness(1.02);
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(16, 35, 63, 0.35), rgba(200, 167, 104, 0.18) 55%, rgba(16, 35, 63, 0.05));
  mix-blend-mode: multiply;
}
.photo-frame-border {
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}

.hero-quote {
  margin-top: 2em;
  padding-left: 1.2em;
  border-left: 3px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Sections ----------------------------------------------------------------- */

section { padding: 88px 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.left { margin: 0 0 48px; text-align: left; }

/* Pillars / cards ------------------------------------------------------------ */

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--navy-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold-dark);
}
.pillar-icon svg { width: 26px; height: 26px; }

/* Testimonials --------------------------------------------------------------- */

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.testimonial-quote {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text);
  flex: 1;
}
.testimonial-quote::before { content: "\201E"; color: var(--gold); font-size: 1.4em; }
.testimonial-quote::after { content: "\201C"; color: var(--gold); font-size: 1.4em; }
.testimonial-name { font-weight: 700; color: var(--navy); margin-top: 12px; }
.testimonial-role { font-size: 0.85rem; color: var(--muted); }

/* About / story split -------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1.15fr 0.85fr; }
.split.reverse .split-photo { order: 2; }

.split-photo .photo-frame {
  width: 100%;
  max-width: 420px;
}

.signature {
  width: 160px;
  margin-top: 24px;
  opacity: 0.9;
  filter: brightness(0) saturate(100%) invert(12%) sepia(37%) saturate(1200%) hue-rotate(190deg);
}

/* CTA band ------------------------------------------------------------------ */

.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.2em; }
.cta-band p { color: rgba(255, 255, 255, 0.78); margin: 0; }

/* Footer --------------------------------------------------------------------- */

footer.site {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
footer.site h4 { color: var(--white); font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1em; }
footer.site a:hover { color: var(--gold); }
footer.site ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

 .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.footer-partner {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}
.footer-partner img {
  width: 34px;
  height: auto;
  display: block;
  opacity: 0.9;
}

/* Fade-in on scroll ----------------------------------------------------------- */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* Page hero (subpages) -------------------------------------------------------- */

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero .eyebrow { color: var(--gold); }

/* Responsive ------------------------------------------------------------------ */

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .hero-photo { order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-photo { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    z-index: 40;
  }
}

@media (max-width: 680px) {
  .topbar .container { justify-content: center; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}

@media (max-width: 600px) {
  .footer-bottom { align-items: flex-start; }
  .footer-partner img { width: 30px; }
}
