/* Variable Definitions */
:root {
  --color-primary: #153356;
  --color-secondary: #C18F7D;
  --color-bg: #FFFFFF;
  --color-text: #333333;
  --color-light-bg: #F8F9FA;

  /* Font Paths - relative to this CSS file's location (root) */
  --font-main: 'Bounded', 'Outfit', sans-serif;
  --font-serif: 'Merriweather', serif;

  --container-width: 1440px;
  --border-radius: 0;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Font Face - Bounded */
@font-face {
  font-family: 'Bounded';
  src: url('_WEB_Korandova/_Font/Bounded-Variable.ttf') format('truetype');
  font-weight: 100 600;
  font-display: swap;
}

@font-face {
  font-family: 'Bounded-Regular';
  src: url('_WEB_Korandova/_Font/Bounded-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.1;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Typography Utilities */
.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
}

.text-accent {
  color: var(--color-secondary);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem;
  z-index: 100;
}

.site-header .container {
  max-width: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: block;
  width: 48px;
  /* Adjust based on SVG natural size */
}

.logo img {
  width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 0;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.btn-outline {
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.btn-outline:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 0%;
  /* Space for header */
}

.heroable-image {
  width: 100%;
  height: 80vh;
  overflow: hidden;
  border-radius: 0;
  /* Asymmetric look */
  position: relative;
}

.heroable-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  padding-top: 0;
  padding-bottom: 3rem;
  position: relative;
  /* Overlap calculation: Font size is approx 10vw. Height approx 11vw. Half is 5.5vw. */
  margin-top: -5.5vw;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  /* 80% width relative to viewport as requested */
  width: 80vw;
  max-width: 1400px;
  font-size: clamp(4rem, 10vw, 12rem);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: -2px;
  text-align: center;
  background: transparent;
  line-height: 1;
}

.hero-location {
  font-family: var(--font-serif);
  color: var(--color-primary);
  font-size: 3rem;
  margin-bottom: 0;
  font-style: italic;
  font-weight: 300;
}

.hero .subtitle {
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--color-secondary);
  line-height: 1.2;
  margin-bottom: 3rem;
}

.hero-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
}

.hero-info p {
  font-size: 1.25rem;
  font-weight: 300;
}

.cta-box {
  background: var(--color-light-bg);
  padding: 1.5rem;
  border-left: 4px solid var(--color-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cta-box strong {
  color: var(--color-secondary);
  font-size: 1.2rem;
}

/* Diagonal Decorations */
.diagonal-bar {
  position: absolute;
  top: 150%;
  right: -50px;
  width: 280px;
  height: 80px;
  background: var(--color-primary);
  transform: rotate(-45deg);
  z-index: 50;
}

/* Feature Section */
.feature-section {
  padding: 48px 0 6rem 0;
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-image {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.feature-content h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-primary);
  line-height: 1.2;
}

.feature-content h2 .serif-italic {
  color: var(--color-secondary);

  /* Adjust this value to your preference */
}

/* Feature Section 2 */
.feature-section-2 {
  padding: 6rem 0;
  background: #fff;
}

.feature-grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-image-2 {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
}

.feature-image-2 img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.feature-content-2 h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-primary);
  line-height: 1.2;
}

.feature-content-2 h2 .serif-italic {
  color: var(--color-secondary);
}

/* Timeline Section (Dark Blue) */
.timeline-section {
  background-color: var(--color-primary);
  color: #fff;
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.timeline-section h2 {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 4rem;
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 6rem;
  position: relative;
  z-index: 2;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item .time {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.timeline-item .arrow {
  font-size: 2.4rem;
  color: var(--color-secondary);
  line-height: 1;
}

.timeline-item .desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  opacity: 0.9;
  font-size: 1.5rem;
}

/* Contact Section */
.contact-section {
  padding: 140px 0;
  background: linear-gradient(to bottom, #fff 0%, #f9f9f9 100%);
}

.contact-intro {
  margin-bottom: 4rem;
  text-align: center;
}

.small-label {
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  display: block;
}

.contact-section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  margin-bottom: 0rem;
}

.contact-sub {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.brokers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.broker-card {
  display: flex;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Zvýšení specificity, aby .fade-in nepřepsal transition pro stín */
.broker-card.fade-in {
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.8s ease-out;
}

.broker-card.visible:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.broker-img {
  width: 30%;
}

.broker-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.broker-info {
  width: 70%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.broker-info h3 {
  color: var(--color-secondary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.broker-info a {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-primary);
}

.broker-info a:hover {
  color: var(--color-secondary);
}

/* Footer structure */
.site-footer {
  padding: 8rem 0 4rem 0;
  border-top: none;
  background: #112C44;
  color: #fff;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4rem;
  align-items: flex-start;
}

.realization-block h4 {
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.partner-group {
  margin-bottom: 1.5rem;
}

.partner-group strong {
  color: var(--color-secondary);
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.partner-group p {
  color: #fff;
  font-size: 0.95rem;
}

.footer-right-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: stretch;
}

.footer-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.footer-logos {
  display: flex;
  flex-direction: row;
  gap: 6rem;
  align-items: flex-start;
  margin-top: auto;
}

.footer-logo-img {
  height: 60px;
  width: auto;
}

.copyright {
  text-align: center;
  margin-top: 4rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

.copyright a {
  color: #fff;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(5px);
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close::before,
.lightbox-close::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background: #fff;
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .heroable-image {
    height: 40vh;
    border-radius: 0;
  }

  .hero {
    min-height: auto;
  }

  .site-header {
    padding: 1rem;
  }

  .logo {
    width: 32px;
    /* Reduced by 1/3 from 48px */
  }

  .btn {
    padding: 0.5rem 1.3rem;
    /* Reduced by roughly 1/3 */
    font-size: 0.7rem;
    /* Reduced by roughly 1/3 */
  }

  .hero h1 {
    font-size: clamp(2.8rem, 8vw, 2.5rem);
    /* Ensure visibility on smaller screens */
    width: 90vw;
    /* Increase width for better fit */
  }

  .hero-location {
    font-size: 1.5rem;
    margin-bottom: 0rem;
    text-align: center;
  }

  .location-break {
    display: block;
  }

  .feature-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
    /* Reduce bottom padding */
  }

  .feature-section-2 {
    padding-top: 1rem;
    /* Combined with above makes 2rem gap */
    padding-bottom: 4rem;
  }

  .timeline-section,
  .contact-section {
    padding: 4rem 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-content h2::before {
    content: "↘";
    display: block;
    font-size: 6rem;
    font-weight: 100;
    color: var(--color-secondary);
    line-height: 0.7;
    margin-bottom: 0.5rem;
  }

  .feature-grid-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-image-2 {
    order: 2;
  }

  .feature-content-2 {
    order: 1;
  }

  .timeline-list {
    grid-template-columns: 1fr;
    gap: 3rem;
    /* Small increase for better mobile separation */
  }

  .broker-card {
    flex-direction: column;
    width: 100%;
  }

  .broker-img {
    width: 100%;
    height: 250px;
  }

  .broker-info {
    width: 100%;
    padding: 1.5rem;
  }

  .footer-grid {
    justify-content: flex-start;
    text-align: left;
    gap: 3rem;
  }

  .footer-logos {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .footer-right-column {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .footer-headline {
    margin-bottom: 0;
    margin-top: 3rem;
  }

  .site-footer {
    padding: 4rem 0;
  }
}