:root {
  --md-primary-fg-color: #003f3a;
  --md-accent-fg-color: #74c043;
  --uti-green-dark: #003f3a;
  --uti-green: #006b5f;
  --uti-green-bright: #74c043;
  --uti-mint: #eef8f1;
  --uti-ink: #10231f;
  --uti-muted: #5f706c;
  --uti-card-border: rgba(0, 63, 58, 0.12);
}

/* -------------------------------------------------------
   Wider layout
   ------------------------------------------------------- */

.md-grid {
  max-width: 1480px;
}

.md-main__inner {
  max-width: 1480px;
  margin-top: 0;
}

.md-content {
  max-width: none;
}

.md-typeset {
  max-width: none;
}

.md-content__inner {
  max-width: none;
  margin: 0;
  padding-top: 0;
}

/* -------------------------------------------------------
   Typography
   ------------------------------------------------------- */

.md-typeset h1 {
  font-weight: 850;
  letter-spacing: -0.045em;
}

.md-typeset h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 2.8rem;
}

.md-typeset h3 {
  font-weight: 750;
}

.md-typeset p {
  line-height: 1.7;
}

/* -------------------------------------------------------
   Homepage sections
   ------------------------------------------------------- */

.home-section {
  margin: 4rem 0;
}

.home-kicker {
  color: var(--uti-green-bright);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.65rem;
}

.home-title {
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin: 0 0 1.2rem 0;
  font-weight: 900;
  max-width: 1000px;
}

.home-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.42rem);
  line-height: 1.55;
  max-width: 960px;
  color: rgba(255, 255, 255, 0.88);
}

/* -------------------------------------------------------
   Big cinematic homepage hero
   ------------------------------------------------------- */

.hero-modern {
  position: relative;
  min-height: 640px;
  border-radius: 2rem;
  padding: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
  color: white;
  background:
    linear-gradient(
      90deg,
      rgba(0, 30, 28, 0.94) 0%,
      rgba(0, 63, 58, 0.78) 52%,
      rgba(0, 63, 58, 0.25) 100%
    ),
    url("../images/home/hero-bratislava-trees.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  box-shadow: 0 24px 70px rgba(0, 40, 35, 0.22);
}

.hero-modern-content {
  width: min(1050px, 100%);
  z-index: 2;
}

.hero-modern h1 {
  color: white;
}

.hero-modern p {
  color: rgba(255, 255, 255, 0.9);
}

/* Hero buttons */

.hero-buttons {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.hero-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: white;
  color: var(--uti-green-dark);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.hero-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.hero-buttons a.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* -------------------------------------------------------
   Cards
   ------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.card {
  padding: 1.35rem;
  border-radius: 1.3rem;
  border: 1px solid var(--uti-card-border);
  background: #ffffff;
  box-shadow: 0 10px 34px rgba(0, 42, 38, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 42, 38, 0.12);
}

.card h3 {
  margin-top: 0;
  color: var(--uti-green-dark);
}

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

/* -------------------------------------------------------
   Image cards
   ------------------------------------------------------- */

.image-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}

.image-card {
  overflow: hidden;
  border-radius: 1.5rem;
  background: white;
  border: 1px solid var(--uti-card-border);
  box-shadow: 0 12px 34px rgba(0, 42, 38, 0.08);
}

.image-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.image-card-content {
  padding: 1.2rem;
}

.image-card-content h3 {
  margin-top: 0;
}

/* -------------------------------------------------------
   Split image/text sections
   ------------------------------------------------------- */

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2rem;
  align-items: center;
  margin: 4rem 0;
}

.split-section.reverse {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.split-image {
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 0 20px 58px rgba(0, 42, 38, 0.16);
}

.split-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.text-panel {
  padding: 0.5rem;
}

.text-panel h2 {
  margin-top: 0;
}

/* -------------------------------------------------------
   Strong manager callout
   ------------------------------------------------------- */

.callout-manager {
  position: relative;
  padding: 2.6rem;
  border-radius: 1.7rem;
  background:
    linear-gradient(135deg, rgba(0, 63, 58, 0.96), rgba(0, 107, 95, 0.92)),
    url("../images/home/tree-pointcloud.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  margin: 3rem 0;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 42, 38, 0.22);
}

.callout-manager h1,
.callout-manager h2,
.callout-manager h3 {
  color: white;
  margin-top: 0;
}

.callout-manager p {
  color: rgba(255, 255, 255, 0.9);
}

.callout-manager strong {
  color: white;
}

.callout-manager a {
  color: white;
  font-weight: 800;
}

/* -------------------------------------------------------
   Outputs strip
   ------------------------------------------------------- */

.output-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.output-item {
  padding: 1rem;
  border-radius: 1rem;
  background: var(--uti-mint);
  border: 1px solid rgba(116, 192, 67, 0.25);
}

.output-item strong {
  display: block;
  color: var(--uti-green-dark);
}

/* -------------------------------------------------------
   Better tables
   ------------------------------------------------------- */

.md-typeset table:not([class]) {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0, 42, 38, 0.06);
}

.md-typeset table:not([class]) th {
  background-color: var(--uti-green-dark);
  color: white;
}

/* -------------------------------------------------------
   Navigation polish
   ------------------------------------------------------- */

.md-header {
  box-shadow: 0 8px 30px rgba(0, 42, 38, 0.12);
}

.md-tabs {
  box-shadow: 0 8px 20px rgba(0, 42, 38, 0.06);
}

/* -------------------------------------------------------
   Subpage hero sections
   ------------------------------------------------------- */

.page-hero {
  position: relative;
  border-radius: 2rem;
  padding: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
  color: white;
  margin-bottom: 3rem;
  box-shadow: 0 24px 70px rgba(0, 40, 35, 0.22);
}

.manager-hero {
  background:
    linear-gradient(
      90deg,
      rgba(0, 30, 28, 0.94) 0%,
      rgba(0, 63, 58, 0.78) 58%,
      rgba(0, 63, 58, 0.28) 100%
    ),
    url("../images/home/urban-tree-manager.jpg");
  background-size: cover;
  background-position: center;
}

.page-hero-content {
  width: min(1050px, 100%);
  z-index: 2;
}

.page-hero h1,
.page-hero h2,
.page-hero h3 {
  color: white;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
}

/* -------------------------------------------------------
   Large sketch feature image
   ------------------------------------------------------- */

.sketch-feature {
  padding: 2rem;
  border-radius: 2rem;
  background: #fffdf7;
  border: 1px solid rgba(0, 63, 58, 0.12);
  box-shadow: 0 18px 54px rgba(0, 42, 38, 0.08);
  margin: 4rem 0;
}

.sketch-feature h2 {
  margin-top: 0.5rem;
}

.sketch-feature img {
  width: 100%;
  display: block;
  margin-top: 1.5rem;
  border-radius: 1.2rem;
  box-shadow: 0 12px 34px rgba(0, 42, 38, 0.12);
}

/* -------------------------------------------------------
   Collaborator logos
   ------------------------------------------------------- */

.collaborators-section {
  padding: 2.5rem;
  border-radius: 2rem;
  background:
    radial-gradient(circle at top left, rgba(116, 192, 67, 0.10), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f4faf6 100%);
  border: 1px solid rgba(0, 63, 58, 0.12);
  box-shadow: 0 18px 54px rgba(0, 42, 38, 0.06);
}

.collaborator-group {
  margin-top: 2.4rem;
}

.collaborator-group h3 {
  margin: 0 0 1rem 0;
  color: var(--uti-green-dark);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 190px));
  gap: 1rem;
  justify-content: start;
  align-items: stretch;
  margin: 0;
}

.logo-card {
  width: 190px;
  height: 140px;
  padding: 1rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 63, 58, 0.10);
  box-shadow: 0 8px 22px rgba(0, 42, 38, 0.055);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 0.55rem;
  text-align: center;
  text-decoration: none;

  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.logo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 42, 38, 0.12);
  border-color: rgba(116, 192, 67, 0.45);
}

.logo-card img {
  width: 155px;
  height: 82px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: saturate(0.98);
}

.logo-country {
  display: block;
  width: 100%;
  color: var(--uti-muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.logo-name {
  display: none;
}

.logo-card.logo-wide img {
  width: 160px;
  height: 76px;
}

.logo-card.logo-tall img {
  width: 130px;
  height: 86px;
}

.collaborators-note {
  color: var(--uti-muted);
  font-size: 0.95rem;
  margin-top: 2rem;
}

/* -------------------------------------------------------
   Team page
   ------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 155px);
  gap: 1.1rem;
  justify-content: center;
  margin: 2rem auto 4rem auto;
  max-width: 1320px;
}

.team-card {
  display: block;
  width: 155px;
  min-height: 250px;
  text-align: center;
  text-decoration: none;
  color: var(--uti-green-dark);
  background: #ffffff;
  border: 1px solid rgba(0, 63, 58, 0.12);
  border-radius: 1.2rem;
  padding: 0.85rem;
  box-shadow: 0 10px 28px rgba(0, 42, 38, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 42, 38, 0.13);
  border-color: rgba(116, 192, 67, 0.55);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.95rem;
  display: block;
  margin-bottom: 0.75rem;
  background: #eef8f1;
}

.team-card h3 {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.18;
  color: var(--uti-green-dark);
}

.team-country {
  display: block;
  margin-top: 0.35rem;
  color: var(--uti-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

/* -------------------------------------------------------
   Mobile responsiveness
   ------------------------------------------------------- */

@media screen and (max-width: 900px) {
  .md-grid {
    max-width: 100%;
  }

  .hero-modern {
    min-height: auto;
    padding: 2rem;
    border-radius: 1.4rem;
  }

  .home-title {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  .home-subtitle {
    max-width: 100%;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-buttons a {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .split-section,
  .split-section.reverse {
    grid-template-columns: 1fr;
  }

  .split-section.reverse .split-image {
    order: 2;
  }

  .split-image img {
    height: 280px;
  }

  .image-card img {
    height: 210px;
  }

  .callout-manager {
    padding: 1.6rem;
    border-radius: 1.3rem;
  }

  .page-hero {
    padding: 2rem;
    border-radius: 1.4rem;
  }

  .sketch-feature {
    padding: 1.2rem;
    border-radius: 1.3rem;
  }
}

@media screen and (max-width: 700px) {
  .logo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    justify-content: stretch;
  }

  .logo-card {
    width: auto;
    height: 130px;
  }

  .logo-card img {
    width: 130px;
    height: 68px;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.9rem;
  }

  .team-card {
    width: auto;
    min-height: 225px;
    padding: 0.7rem;
    border-radius: 1rem;
  }

  .team-card img {
    border-radius: 0.85rem;
  }
}

/* -------------------------------------------------------
   Embedded maps
   ------------------------------------------------------- */

.map-embed {
  position: relative;
  width: 100%;
  height: 620px;
  margin: 2rem 0 3rem 0;
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: 0 18px 54px rgba(0, 42, 38, 0.12);
  border: 1px solid rgba(0, 63, 58, 0.12);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media screen and (max-width: 700px) {
  .map-embed {
    height: 420px;
    border-radius: 1.1rem;
  }
}

/* -------------------------------------------------------
   Newsletter CTA
   ------------------------------------------------------- */

.newsletter-section {
  padding: 2.5rem;
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgba(0, 63, 58, 0.96), rgba(0, 107, 95, 0.90)),
    url("../images/home/tree-pointcloud.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  box-shadow: 0 22px 60px rgba(0, 42, 38, 0.20);
}

.newsletter-section h2 {
  color: white;
  margin-top: 0.5rem;
}

.newsletter-section p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 900px;
}

.newsletter-section .home-kicker {
  color: #b8f27c;
}

/* -------------------------------------------------------
   Hero stacked CTA buttons
   ------------------------------------------------------- */

.hero-buttons-stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.hero-buttons-stacked .primary-cta {
  background: white;
  color: var(--uti-green-dark);
}

.hero-secondary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-secondary-row a {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

@media screen and (max-width: 900px) {
  .hero-buttons-stacked {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-secondary-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-secondary-row a,
  .hero-buttons-stacked .primary-cta {
    width: 100%;
  }
}

.survey-cta {
  margin: 2.5rem 0;
  padding: 2rem;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, rgba(30, 120, 80, 0.10), rgba(60, 160, 120, 0.06));
  border: 1px solid rgba(30, 120, 80, 0.18);
}

.survey-cta h2 {
  margin-top: 0;
}