/* ─────────────────────────────────────────────────────────────
   Base
   ───────────────────────────────────────────────────────────── */

:root { --vh: 1dvh; /* dynamic viewport height */ }
.section { min-height: calc(100 * var(--vh)); }
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@font-face {
  font-family: 'GeneralSans';
  src:
    url('../fonts/Satoshi.woff2') format('woff2'),
    url('../fonts/Satoshi.ttf') format('truetype');
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
}
html, body {
  height: 100%;
  font-family: 'Satoshi', sans-serif;
  color: white;
  background: #fff;
  font-weight: 100;
}
h1 {
  font-size: 4rem;
  font-weight: 200;
  line-height: 1;
  margin-bottom: 1rem;
}
a {
  color: #141414;
  text-decoration: none;
  transition-duration: 0.3s;
}
  a:hover {
    color: #30e586;
    transition-duration: 0.3s;
}

/* ─────────────────────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────────────────────── */

.hero-section {
  position: relative;
  width: 100%;
  height: 80dvh;
  overflow: hidden;
}
/* Full-screen hero image */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
}
  img.hero-image {
    padding: 1rem;
    border-radius: 2rem;
}

/* Overlayed text */
.hero-overlay {
  position: relative;
  z-index: 2;
  height: 80%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2rem;
}

/* Topbar (logo + contact) */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;

}
  .hero-logo { height: 45px; }
  .contact-info {
    margin-top: 0;
    text-align: right;
    color: #141414;
}

/* Main text */
.hero-text {
  margin-top: auto;
  padding: 0 0 1rem 0;
}
.break {
  height: 1px;
  margin-bottom: 20px;
  background-color: #fff;
}
.content-section {
  display: flex;
  justify-content: space-between;
}
  .heading {
    width: 70vw;
    padding: 0 0.5rem;
  }
  .sub-heading {
    width: 40%;
    padding: 0 0.5rem;
  }
  .description {
    width: 37em;
    padding: 0 0.5rem;
  }
  p.sub-heading {
    font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────
   Lower sections
   ───────────────────────────────────────────────────────────── */

.lower-section1 {
  height: 20%;
  padding-inline: 1.5rem; /* exterior page padding for alignment */
  padding-bottom: 1rem;
  display: flex;
  align-content: center;
}
.lower-section2 {
  height: 20%;
  padding-bottom: 1rem;
  display: grid;
  align-content: center;
}
.text-section {
  display: flex;
  justify-content: space-between;
  color: #141414;
  padding: 0 1rem;
  gap: 30px;
}
  .blurb {
    max-width: 30ch;
    font-size: 1.2rem;
    width: 50%;
  }
    .blurb p { font-weight: 100; }

.sub-title {
  font-size: 1.2rem;
  width: 50%;
  max-width: 39ch;
  padding-right: 1em;
}
  h2 {
    text-align: right;
    font-style: italic;
    font-weight: 300;
}

/* ─────────────────────────────────────────────────────────────
   Logos Strip (CSS Grid)
   ───────────────────────────────────────────────────────────── */

.logos {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));  /* 7 logos across on desktop */
  gap: 0.75em;
  align-items: center;
  margin: 0.8rem -1.5rem;
}

img#ventol-logo { width: 58%; }

.tile {
  border-radius: 0;
  display: grid;
  place-items: center;
  min-height: 3dvh;
  transition: transform 100ms ease-in-out;
}
  a.tile { width: 100%; }
  .tile img {
    width: 70%;
    height: auto;
    object-fit: contain;
  }
  .tile:hover {
    transform: scale(.95);
    transition: transform 100ms ease-in;
}

/* ─────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────── */

@media (max-width: 1059px) {
  .lower-section1 { height: 20%; }
  .lower-section2 { height: 20%; }
}

@media (max-width: 768px) {
  h1 { font-size: 10vw; }
  .content-section { flex-direction: column; }
  .heading, .sub-heading, .description { width: 100%; padding: 0; }
  .sub-heading { margin-bottom: 1rem; }
  .hero-text { padding: 1rem 0; text-align: left; }
  .contact-info { font-size: 11px; margin-top: -5px; }
  /* 4 per row; second row will naturally end up with 3 */
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-logo { width: 30vw; height: auto;}
  .blurb { font-size: 1rem; }
  .sub-title { font-size: 1rem; width: 50%; }
  .tile img { width: 80%;}

/* Mobile: 4 across on the first row, 3 centered on the second */
@media (max-width: 768px) {
  .logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 0; padding: 0; margin: 0; padding-top: 0; }
  .tile { flex: 0 0 25%; display: flex; align-items: center; justify-content: center; min-height: 3dvh; }
    .tile img { width: 80%; height: auto; object-fit: contain; }
}

/* Narrow-but-wide phones in landscape */
@media (orientation: landscape) and (max-height: 480px) and (hover: none) and (pointer: coarse) {
  .heading { width: 100%; }
  h1 { font-size: 2rem; margin-bottom: 1rem; }
  p.description { font-size: 0.8em; }
  span.contact-info { font-size: 0.9em; }
  
  /* tighten column width so all 7 can still fit when possible */
  .logos { margin: 0; margin-top: -1rem; }
  .sub-title { width: 45%; }
  .hero-text { padding: 1rem 0; }
  .hero-overlay { padding: 2rem; }
  .hero-logo { width: 22vw; height: auto; }
}

/* Samsung Galaxy S8+ and Similar Sizes */
@media screen and (orientation: landscape) and (max-height: 420px) {
    .heading { width: 100%; }
    h1 { font-size: 2rem; margin-bottom: 1rem; }
    p.description { font-size: 0.8em; }
    span.contact-info { font-size: 0.9em; }

  /* IMPORTANT: switch back to grid so the columns rule applies */
  .logos { display: grid !important; grid-template-columns: repeat(7, minmax(0px, 1fr)) !important; gap: 0 !important; margin: 0 !important; justify-items: center;}
  .sub-title { width: 45%; }
  .hero-text { padding: 1rem 0; }
  .hero-overlay { padding: 2rem; }
}
/* ─────────────────────────────────────────────────────────────
   END
   ───────────────────────────────────────────────────────────── */