/* Viridis Art Studio — static rebuild */

:root {
  --font-primary: 'Prata', Georgia, serif;
  --font-secondary: 'Montserrat', 'Helvetica Neue', sans-serif;
  --color-ink: #0d141a;
  --color-ink-soft: #1d1c1d;
  --color-muted: #888888;
  --color-cream: #f7f5ef;
  --color-cream-deep: #e3dbc6;
  --color-green: #6b7b5c;
  --color-green-dark: #556648;
  --color-footer: #38453a;
  --color-gallery-bg: rgba(135, 135, 135, 0.22);
  --max: 1224px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 400;
  margin: 0;
  line-height: 1.3;
}

p {
  margin: 0;
}

/* ——— Header ——— */
.site-header {
  background: var(--color-cream);
  position: relative;
  z-index: 50;
}

.site-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.site-logo img {
  height: 37px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 21px;
}

.site-nav a {
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  color: var(--color-ink);
  transition: opacity 0.2s ease;
}

.site-nav a:hover {
  opacity: 0.65;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--color-ink);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 608px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 100%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.59);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 16px 72px;
}

.hero h1 {
  font-size: clamp(35px, 5vw, 64px);
  color: #fff;
  margin-bottom: 12px;
}

.hero__tagline {
  font-size: 16px;
  color: #fff;
  max-width: 28rem;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: var(--color-green);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-green-dark);
}

/* ——— Sections shared ——— */
.section {
  padding: 80px 16px;
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__title {
  font-size: clamp(32px, 4vw, 48px);
  text-align: center;
  color: var(--color-ink-soft);
  margin-bottom: 16px;
}

.section__lead {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 56px;
  color: var(--color-ink-soft);
}

.section__lead em {
  font-style: italic;
}

.section--cream {
  background: var(--color-cream);
}

.section--white {
  background: #fff;
}

.section--gallery {
  background: var(--color-gallery-bg);
}

/* ——— Scope / oferta ——— */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

.scope-card__image {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 400 / 266;
  margin-bottom: 20px;
}

.scope-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 90%;
}

.scope-card h3 {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 12px;
  color: #000;
}

.scope-card h3 strong {
  font-weight: 700;
  font-family: var(--font-secondary);
  font-size: 18px;
}

.scope-card p {
  color: var(--color-ink-soft);
  font-size: 16px;
}

/* ——— Process ——— */
.process-intro {
  margin-bottom: 48px;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
}

.process-step--1 { grid-column: 1; grid-row: 1; }
.process-step--2 { grid-column: 1; grid-row: 2; }
.process-step--3 { grid-column: 1; grid-row: 3; }
.process-step--4 { grid-column: 2; grid-row: 1; }
.process-step--5 { grid-column: 2; grid-row: 2; }
.process-step--6 { grid-column: 2; grid-row: 3; }

.process-step h3 {
  font-family: var(--font-secondary);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-ink);
}

.process-step p {
  color: var(--color-ink);
}

/* ——— Portfolio ——— */
.portfolio-block {
  margin-bottom: 64px;
}

.portfolio-block:last-child {
  margin-bottom: 0;
}

.portfolio-block__text {
  margin-bottom: 28px;
  max-width: 52rem;
}

.portfolio-block__text .project-name {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--color-ink);
}

.portfolio-block__text .project-name em {
  font-style: italic;
}

.portfolio-block__text .project-desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-ink);
}

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

.portfolio-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 0.92;
  object-fit: cover;
  object-position: center bottom;
}

/*
 * Isometric diagram: must beat `.portfolio-grid img` specificity (0,1,1),
 * otherwise object-fit:cover + object-position:bottom keeps cropping the top.
 */
.portfolio-grid img.portfolio-grid__img--diagram {
  object-fit: contain;
  object-position: center center;
  background: transparent;
  /* Don’t force the short photo crop box — use the PNG’s own proportions */
  aspect-ratio: auto;
  height: auto;
  width: 100%;
  align-self: center;
}

.gallery-strip-wrap {
  background: #fff;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  /* Side margins only — images flush to top/bottom of the white band */
  padding: 0 16px;
  max-width: var(--max);
  margin: 0 auto;
}

.gallery-strip img {
  width: 100%;
  display: block;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

/* ——— Contact ——— */
.contact {
  background: var(--color-cream);
  padding: 96px 16px 112px;
}

.contact__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.contact .section__title {
  margin-bottom: 48px;
}

.contact-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-cols p {
  color: var(--color-muted);
  line-height: 1.6;
}

.contact-email {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.contact-email__link {
  font-family: var(--font-primary);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-green);
  text-decoration: none;
  border-bottom: 1px solid rgba(107, 123, 92, 0.3);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
  word-break: break-all;
}

.contact-email__link:hover,
.contact-email__link:focus-visible {
  color: var(--color-green-dark);
  border-bottom-color: var(--color-green);
  outline: none;
}

.contact-email__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #56585e;
  background: transparent;
  border: 1px solid rgba(13, 20, 26, 0.14);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.contact-email__copy:hover,
.contact-email__copy:focus-visible {
  color: #0d141a;
  border-color: rgba(13, 20, 26, 0.4);
  background-color: rgba(255, 255, 255, 0.5);
  outline: none;
}

.contact-email__copy svg {
  flex-shrink: 0;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--color-footer);
  padding: 20px 16px;
  text-align: center;
}

.site-footer p {
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
}

/* ——— Reveal motion ——— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ——— Responsive ——— */
@media (max-width: 920px) {
  .site-header__inner {
    padding: 24px 16px;
  }

  .site-logo img {
    height: 35px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-cream);
    padding: 8px 16px 24px;
    border-top: 1px solid rgba(13, 20, 26, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(13, 20, 26, 0.06);
  }

  .hero {
    min-height: 520px;
    text-align: center;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 16px 56px;
  }

  .hero__tagline {
    max-width: none;
  }

  .btn {
    padding: 14px 36px;
    font-size: 12px;
  }

  .section {
    padding: 56px 16px;
  }

  .scope-grid,
  .process-grid,
  .portfolio-grid,
  .gallery-strip,
  .contact-cols {
    grid-template-columns: 1fr;
  }

  .process-step--1,
  .process-step--2,
  .process-step--3,
  .process-step--4,
  .process-step--5,
  .process-step--6 {
    grid-column: auto;
    grid-row: auto;
  }

  .scope-card__image {
    aspect-ratio: 16 / 10;
  }

  .portfolio-grid {
    gap: 12px;
  }

  .gallery-strip {
    gap: 12px;
    padding-bottom: 32px;
  }

  .contact {
    padding: 64px 16px 80px;
  }

  .contact-email {
    gap: 10px;
  }
}

@media (min-width: 921px) and (max-width: 1100px) {
  .scope-grid {
    gap: 24px 16px;
  }
}
