/* sections.css: Page sections: hero, process, values, founders */

/* ==== Hero ==== */
.hero {
  padding: clamp(1.25rem,3vw,2rem) 0 clamp(3rem,7vw,5rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}

/* Hero buttons: all three on one line on desktop */
.hero__copy .btn-row {
  flex-wrap: nowrap;
  gap: .6rem;
}

.hero__copy .btn-row .btn {
  padding: .75rem 1.15rem;
  font-size: .95rem;
  white-space: nowrap;
}

@media (max-width:1100px) {
  .hero__copy .btn-row {
    flex-wrap: wrap;
  }

}

.hero__brand {
  margin-bottom: 1rem;
  color: var(--wine);
  font: 600 clamp(1.3rem,3vw,1.7rem) var(--font-serif);
  letter-spacing: .01em;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .95rem;
}

.hero__tags li+li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 1.2rem;
  vertical-align: middle;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero__visual {
  position: relative;
  max-width: 440px;
  width: 100%;
  justify-self: end;
  padding: 0 0 28px 28px;
}

.hero__visual .arch--back {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 78%;
  border: 0;
  background: var(--wine);
}

.hero__visual .arch--back::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold);
  border-radius: inherit;
  opacity: .8;
}

.hero__visual .arch--front {
  background: var(--ivory);
}

/* Cover banner: whole image, edge to edge, above the hero text */
.cover img {
  display: block;
  width: 100%;
  height: auto;
}

.hero--cover .hero__grid {
  grid-template-columns: 1fr;
}

/* Hero photo: circle with a thin gold ring, no arch frame */
.hero__visual--photo {
  align-self: start;
  padding: 0;
}

.hero__visual--photo .arch--back {
  display: none;
}

.hero__visual--photo .arch--front {
  aspect-ratio: 1/1;
  padding: 10px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: none;
}

.hero__visual--photo .arch__inner {
  border-radius: 50%;
  background: none;
  box-shadow: var(--shadow);
}

.hero__visual--photo .arch__inner img {
  display: block;
  /* Tall photos: keep the top title inside the circle */
  object-position: 50% 31%;
}

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

  .hero__visual {
    order: -1;
    justify-self: center;
    max-width: 340px;
  }

}

/* ==== Intro pillars ==== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pillar {
  padding: 1.4rem 1.4rem 1.2rem;
  border-top: 2px solid var(--gold);
  background: var(--ivory);
}

.pillar h3 {
  margin-bottom: .3rem;
  font-size: 1.45rem;
}

.pillar p {
  font-size: .97rem;
  line-height: 1.6;
}

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

}

/* ==== Process ==== */
.process {
  background: var(--teal);
  color: var(--ivory);
}

.process h2 {
  color: var(--ivory);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 1.4rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding-top: 1rem;
  border-top: 1px solid var(--gold);
  counter-increment: step;
}

.steps li::before {
  content: counter(step,decimal-leading-zero);
  display: block;
  color: #D9BF8A;
  font: 600 2rem var(--font-serif);
}

.steps strong {
  display: block;
  margin-bottom: .3rem;
  font: 600 1.3rem var(--font-serif);
}

.steps p {
  font-size: .97rem;
  line-height: 1.6;
}

.steps--light li::before {
  color: var(--wine);
}

.steps--three {
  grid-template-columns: repeat(3,1fr);
}

@media (max-width:900px) {
  .steps,
  .steps--three {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width:560px) {
  .steps,
  .steps--three {
    grid-template-columns: 1fr;
  }

}

/* ==== Values ==== */
.values {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.value {
  padding: 1.5rem 1.3rem;
  border: 1px solid rgba(167,135,80,.5);
  border-radius: var(--radius);
  background: var(--ivory);
}

.value h3 {
  color: var(--wine);
  font-size: 1.5rem;
}

.value p {
  font-size: .97rem;
  line-height: 1.6;
}

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

}

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

}

/* ==== Related and closing ==== */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.related a {
  display: block;
  padding: 1.2rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--ink);
  font: 600 1.4rem var(--font-serif);
  text-decoration: none;
  transition: background .2s;
}

.related a:hover {
  background: var(--parchment);
}

.closing {
  background: var(--teal);
  color: var(--ivory);
  text-align: center;
}

.closing h2 {
  color: var(--ivory);
}

.closing p {
  margin: 0 auto 1.4rem;
}

/* ==== Founders ==== */
/* Founders page: short banner so both photos are fully visible when the page opens */
.page-hero--compact {
  padding: 1rem 0 .9rem;
}

.page-hero--compact h1 {
  margin-bottom: .1em;
  font-size: clamp(1.9rem,3.4vw,2.4rem);
}

.page-hero--compact .lead {
  margin: 0;
  max-width: none;
  font-size: 1rem;
}

.founders-section,
.section--tight-top {
  padding-top: 1.1rem;
}

/* Keep the scalloped top border in step with the smaller top padding */
.section--tight-top.section--alt::before {
  margin-top: -1.1rem;
  margin-bottom: 1.1rem;
}


.founder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 2.5rem;
}

.founder__photo {
  /* Square photo: never taller than the space left under the header and banner */
  width: min(100%,520px,calc(100svh - 228px));
  min-width: 240px;
  aspect-ratio: 1/1;
  margin-bottom: 1.2rem;
  padding: 8px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
}

.founder__photo div {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2px;
  background: var(--teal);
}

.founder__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder__role {
  color: var(--wine);
  font-weight: 600;
}

.founder--empty h3,
.founder--empty .founder__role {
  color: var(--muted);
}
