/* Verdine — minimal, spacious, image-led */

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #8a8a8a;
  --placeholder: #f3f3f1;
  --placeholder-alt: #e9ece6;

  --gutter: clamp(1.5rem, 4vw, 3.5rem);
  --inset: 20px; /* extra space on the left edge of all content */
  --left: calc(var(--gutter) + var(--inset));
  --sidebar: 16rem;

  --font: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

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

a {
  color: #035E00;
}

/* ---------- Header: logotype with nav beneath ---------- */

.site-header {
  padding: var(--gutter) var(--gutter) 0 var(--left);
}

.logo img {
  width: 500px;
  height: auto;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-top: 1rem;
  margin-top: 33px;
}

.site-nav a,
.submenu a {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  transition: color 0.3s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.submenu a:hover,
.submenu a.is-active {
  color: var(--text);
}

/* ---------- Single-viewport pages ---------- */

.viewport {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.viewport main {
  min-height: 0;
  padding: var(--gutter) var(--gutter) var(--gutter) var(--left);
}

/* ---------- Images ---------- */

/* Placeholder blocks. Replace each .image div with an <img class="image"> when ready. */
.image {
  width: 100%;
  height: 100%;
  background: var(--placeholder);
  object-fit: cover;
}

/* ---------- Products: sub menu + snapping hero sections ---------- */

.stage {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  gap: var(--gutter);
  padding: var(--gutter) 0 0 var(--left);
}

.submenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Each product sits on a translucent card; the active one expands to hold its description.
   The negative left margin keeps the text itself aligned with the logo and nav. */
.submenu li {
  margin-left: -1rem;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(5px);
  transition: background 0.4s ease;
}

.submenu li + li {
  margin-top: 0.5rem;
}

.submenu li.is-active {
  background: rgba(255, 255, 255, 0.30);
}

.submenu li > a {
  display: block;
}

/* Heroes are full-bleed: they fill the whole viewport behind the header, menu and footer */
.slides {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.slides::-webkit-scrollbar {
  display: none;
}

.slide {
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
}

/* Soft white tint down the left edge so the menu and footer stay legible */
.products::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: min(50vw, 700px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

/* Content sits above the heroes; empty areas let scrolling reach the image beneath */
.products .site-header,
.products .submenu,
.products .site-footer {
  position: relative;
  z-index: 2;
}

.products .site-header,
.products main,
.products .submenu,
.products .site-footer {
  pointer-events: none;
}

.products .logo,
.products .site-nav a,
.products .submenu a,
.products .product-details {
  pointer-events: auto;
}

/* Description under the active product's name; only the one in view is shown */
.product-details {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.5s ease, opacity 0.5s ease;
}

.product-details > div {
  min-height: 0;
  overflow: hidden;
}

.submenu li.is-active .product-details {
  grid-template-rows: 1fr;
  opacity: 1;
}

.product-details p {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  line-height: 1.7;
}

.product-details p:first-child {
  margin-top: 1.25rem;
}

.product-details p:last-child {
  margin-bottom: 0.4rem;
}

.product-tagline {
  color: var(--text);
}

.product-details a,
.submenu .product-details a:hover {
  color: #035E00;
}

#viewsitu .image {
  background: var(--placeholder-alt);
}

/* ---------- About ---------- */

.page {
  padding: 0 var(--gutter) var(--gutter) var(--left);
}

.statement {
  max-width: 34rem;
  margin: clamp(4rem, 12vw, 9rem) 0 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.5;
  font-weight: 300;
}

/* ---------- Homepage: full-bleed background video ---------- */

.hero-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--placeholder); /* shows until the video loads */
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Soft white tint down the left edge so the black nav and footer stay legible */
.hero-video::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(50vw, 700px);
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.home .site-header,
.home main,
.home .site-footer {
  position: relative;
  z-index: 1;
}

.home .site-nav a,
.home .site-footer {
  color: var(--text);
}

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

.site-footer {
  padding: 0 var(--gutter) 1.5rem var(--left);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------- Small screens ---------- */

@media (max-width: 700px) {
  .stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slides {
    scroll-behavior: auto;
  }
}
