/* ═══════════════════════════════════════════════════
   ZV Holdings — Homepage Styles
   ═══════════════════════════════════════════════════ */

/* ═══ Hero ═══ */

#hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-home.jpg') center 30% / cover no-repeat;
  animation: heroZoom 14s ease-out forwards;
}

@keyframes heroZoom {
  from { scale: 1.06; }
  to { scale: 1; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(12, 12, 10, 0.95) 0%, rgba(12, 12, 10, 0.45) 50%, rgba(12, 12, 10, 0.08) 100%),
    linear-gradient(to right, rgba(12, 12, 10, 0.35) 0%, transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad) clamp(3.5rem, 8vw, 6rem);
  max-width: 820px;
}

.hero-eyebrow {
  margin-bottom: 1.2rem;
  animation: heroRise 0.9s ease 0.4s both;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--warm);
  margin-bottom: 1.5rem;
  animation: heroRise 0.9s ease 0.55s both;

  & em {
    font-style: italic;
    color: var(--gold-lt);
  }
}

.hero-sub {
  font-size: 0.875rem;
  line-height: 1.9;
  font-weight: 300;
  color: rgba(240, 235, 224, 0.68);
  max-width: 460px;
  margin-bottom: 2.5rem;
  animation: heroRise 0.9s ease 0.7s both;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  animation: heroRise 0.9s ease 0.85s both;
}

@keyframes heroRise {
  from { opacity: 0; translate: 0 28px; }
  to { opacity: 1; translate: 0; }
}

/* ═══ Metrics ═══ */

#metrics {
  background: var(--charcoal);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border);

  &:last-child {
    border-right: none;
  }
}

.metric-num {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.metric-label {
  font-size: 0.575rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ═══ About ═══ */

#about {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-img-accent {
  position: absolute;
  bottom: -1.75rem;
  right: -1.75rem;
  width: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  outline: 4px solid var(--ink);
  transition: translate var(--dur-slow) var(--ease);

  .about-visual:hover & {
    translate: -4px -4px;
  }
}

/* ═══ Team ═══ */

#team {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--charcoal);
}

.team-intro {
  max-width: 580px;
  margin-bottom: 4rem;
}

.owners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.owner-card {
  background: var(--mid);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, translate var(--dur-med);

  &:hover {
    border-color: var(--gold);
    translate: 0 -4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

.owner-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dk), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.owner-title {
  font-size: 0.575rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.owner-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.owner-bio {
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
  flex-grow: 1;
}

/* ═══ Projects ═══ */

#projects {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--ink);
}

.projects-intro {
  max-width: 580px;
  margin-bottom: 4rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--charcoal);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, translate var(--dur-med);

  &:hover {
    border-color: var(--gold);
    translate: 0 -4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

.project-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter var(--dur-med);
  }

  .project-card:hover & img {
    transform: scale(1.04);
    filter: brightness(1.05);
  }
}

.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
}

.project-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-name {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--cream);
}

.project-location {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-desc {
  font-size: 0.82rem;
  line-height: 1.75;
  color: rgba(240, 235, 224, 0.6);
  font-weight: 300;
  flex-grow: 1;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-lt);
  margin-top: auto;
}

.project-stat-val {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
  line-height: 1;
}

.project-stat-key {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

.project-link {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--dur-fast);

  &::after {
    content: '\2192';
  }

  &:hover {
    gap: 0.7rem;
  }
}

.project-coming {
  background: var(--charcoal);
  border: 1px dashed rgba(200, 169, 106, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  flex-direction: column;
  gap: 0.75rem;
}

.project-coming-label {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--muted);
}

.project-coming-sub {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(122, 117, 112, 0.5);
}

/* ═══ Contact ═══ */

#contact {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--charcoal);
}

.contact-wrap {
  max-width: 740px;
  margin: 0 auto;
}

.contact-sub {
  font-size: 0.875rem;
  line-height: 1.9;
  font-weight: 300;
  color: rgba(240, 235, 224, 0.6);
  margin-top: 0.75rem;
  margin-bottom: 3rem;
}

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

.fc {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;

  &.full {
    grid-column: span 2;
  }

  & label {
    font-size: 0.575rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
  }

  & input,
  & textarea,
  & select {
    background: var(--charcoal);
    border: 1px solid var(--border);
    color: var(--cream);
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 300;
    padding: 0.85rem 1rem;
    outline: none;
    width: 100%;
    transition: border-color 0.25s, box-shadow 0.25s;
    appearance: none;

    &::placeholder {
      color: var(--muted);
    }

    &:focus {
      border-color: var(--gold);
      box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.08);
    }
  }

  & textarea {
    resize: vertical;
    min-height: 110px;
  }

  & select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C8A96A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;

    & option {
      background: var(--charcoal);
    }
  }
}

.form-btn {
  width: 100%;
  background: var(--gold);
  color: var(--ink);
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 1rem 2rem;
  transition: background 0.25s, transform var(--dur-fast);

  &:hover {
    background: var(--gold-lt);
  }

  &:active {
    transform: scale(0.98);
  }
}

.form-success {
  display: none;
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--charcoal);
  border: 1px solid var(--border);
  margin-top: 1rem;

  & .icon {
    font-size: 2rem;
    color: var(--gold);
    display: block;
    margin-bottom: 1rem;
  }

  & h3 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--gold);
    margin-bottom: 0.5rem;
  }

  & p {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.7;
  }
}

/* ═══ Responsive — Homepage ═══ */

@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-img-accent {
    display: none;
  }

  .about-img-main {
    aspect-ratio: 16 / 9;
  }

  .owners-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2) {
    border-right: none;
  }

  .metric:nth-child(3) {
    border-right: 1px solid var(--border);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .fc.full {
    grid-column: 1;
  }
}
