/* Reference-led homepage composition. Shared foundations remain in styles.css. */
main {
  --panel-gap: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 520px;
  padding: 2rem 0;
  background: var(--pine);
  color: var(--bone);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-photo img {
  height: 100%;
  object-fit: cover;
  object-position: 65% 55%;
}

.hero-video {
  display: none;
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 55%;
  opacity: 0;
  pointer-events: none;
}

.hero-motion-toggle {
  position: absolute;
  right: var(--site-inset);
  bottom: .75rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--sand);
  border-radius: 50%;
  background: #102118e6;
  color: var(--bone);
  font: inherit;
  font-size: .75rem;
  cursor: pointer;
}

.hero-motion-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.hero-motion-toggle .hero-play-icon { display: none; }
.hero-motion-toggle.is-paused .hero-pause-icon { display: none; }
.hero-motion-toggle.is-paused .hero-play-icon { display: block; }
.hero-motion-toggle:hover { background: var(--forest); color: var(--sand); }
.hero-motion-toggle:focus-visible { outline-color: var(--bone); }

@media (min-width: 1050px) and (prefers-reduced-motion: no-preference) {
  .hero-video { display: block; }
  .hero-video.is-playing { opacity: 1; }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #081711d9, #08171199 36%, #08171133 65%, #0817110a);
}

.hero-inner {
  width: calc(100% - var(--site-inset) * 2);
  max-width: var(--site-max-width);
  margin-inline: auto;
}

.hero-content {
  width: 430px;
  max-width: 100%;
  text-align: left;
}

.hero h1 {
  margin-bottom: .75rem;
  line-height: 1;
}

.hero-wordmark {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3.9 / 1;
  object-fit: cover;
}

.service-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  margin-bottom: .7rem;
  font-size: clamp(.6rem, 1.1vw, .78rem);
  letter-spacing: .22em;
  white-space: nowrap;
  color: var(--bone);
}

.service-line span {
  margin-inline: 0;
  color: var(--sand);
}

.hero-slogan {
  margin-bottom: 1.35rem;
  font-size: clamp(.68rem, 1.3vw, .95rem);
  font-weight: 700;
  letter-spacing: .18em;
  text-align: center;
}

.hero-description {
  margin-bottom: 1.05rem;
  font-size: .96rem;
  line-height: 1.5;
}

.hero .button {
  min-height: 40px;
  padding: .55rem 1rem;
  border-radius: 2px;
  border-color: #e2c99e;
  background: linear-gradient(110deg, #d2b989, #c7ab7c);
  box-shadow: inset 0 0 0 2px #9c835730;
  font-family: var(--font-label);
  font-size: .8rem;
  letter-spacing: .03em;
}

.hero .button:hover { background: var(--bone); }

@media (max-width: 649px) {
  .hero::after {
    background: linear-gradient(90deg, #081711e8, #081711a6 80%, #08171166);
  }
}

/* Contained service collection: four, two, or one tile per row. */
.services {
  padding: clamp(2.25rem, 4vw, 3.75rem) 0 2rem;
  background: var(--bone);
}

.services .container {
  width: calc(100% - var(--site-inset) * 2);
  max-width: var(--site-max-width);
}

.services .section-heading {
  display: grid;
  align-items: center;
  gap: 1.2rem;
  margin: 0 0 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #626b4840;
}

.services-heading-copy .eyebrow {
  margin-bottom: .65rem;
  color: #535d3e;
  font-size: .65rem;
  letter-spacing: .16em;
}

.services .section-heading h2 {
  margin: 0;
  font-family: Rockwell, Georgia, serif;
  font-size: clamp(1.9rem, 3.1vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.services .section-heading > p {
  margin: 0;
  max-width: 26rem;
  color: var(--muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.65;
}

.services .section-heading .button {
  justify-self: start;
  font-family: var(--font-label);
  font-size: .75rem;
}

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 1rem;
}

.service-card { min-width: 0; }

.service-card > a {
  display: block;
  height: 100%;
  text-decoration: none;
}

.service-image {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 1px solid #fff9;
  background: #d8d3c6;
}

.service-image img {
  height: 100%;
  object-fit: cover;
  transition: transform .25s;
}

.service-card a:hover img { transform: scale(1.025); }
.service-card a:hover h3 { color: #4a5633; }

.service-card h3 {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 1rem;
  align-items: center;
  gap: .85rem;
  min-height: 76px;
  margin: 0;
  padding: .8rem .25rem;
  font-family: var(--font-label);
  font-size: .87rem;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.3;
  text-transform: uppercase;
}

.service-arrow {
  justify-self: end;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
}

.service-icon {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 600px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services .section-heading { grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
}

@media (min-width: 1000px) {
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .services .section-heading { grid-template-columns: 1fr 1.1fr auto; gap: 2rem; margin-bottom: 2rem; padding-bottom: 2rem; }
  .services .section-heading .button { justify-self: end; }
  .service-card h3 { gap: .65rem; font-size: clamp(.75rem, 1vw, .9rem); }
}

/* Full-width waterfront feature. */
.waterfront {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 440px;
  padding: 3rem 0;
  background: var(--forest);
  color: var(--bone);
}

.waterfront-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.waterfront-photo img {
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

.waterfront::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #0b1c15e8, #0b1c15a6 36%, #0b1c1533 70%, #0b1c1514);
}

.waterfront-inner {
  width: calc(100% - var(--site-inset) * 2);
  max-width: var(--site-max-width);
  margin-inline: auto;
}

.waterfront-content {
  width: 430px;
  max-width: 100%;
  text-align: left;
}

.waterfront h2 {
  margin-bottom: .8rem;
  color: #e4cda5;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: .025em;
}

.waterfront-content > p {
  margin-bottom: 1rem;
  font-size: .96rem;
  line-height: 1.5;
}

.waterfront .button {
  max-width: 100%;
  gap: .7rem;
  font-size: .75rem;
}

.waterfront-content .scope-note {
  max-width: 23rem;
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: .72rem;
}

/* Equal-width heritage panels inside the shared centered container. */
.lower-panels {
  display: grid;
  width: calc(100% - var(--site-inset) * 2);
  max-width: var(--site-max-width);
  margin: var(--panel-gap) auto 0;
  gap: var(--panel-gap);
  background: var(--bone);
}

.values, .brand-story {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 470px;
  padding: 2.5rem clamp(1rem, 2.5vw, 2.5rem);
  border: 1px solid #c7ab7c70;
  color: var(--bone);
  text-align: center;
}

.values {
  justify-content: flex-start;
  padding-top: 3rem;
  background-color: #101c13;
  background-image: linear-gradient(#101c1333, #101c1366), url('../images/panel-contours.svg'), url('../images/header-grain.svg');
  background-size: cover, cover, 160px;
}

.values h2 {
  width: 100%;
  max-width: 380px;
  margin: 0 0 1.75rem;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: .025em;
}

.values-name {
  position: relative;
  display: block;
  width: min(330px, 100%);
  aspect-ratio: 5.8 / 1;
  margin: .45rem auto 0;
  overflow: hidden;
}

.values-name img {
  position: absolute;
  top: -32%;
  left: 0;
  width: 100%;
  height: auto;
}

.values h2::after {
  content: '';
  display: block;
  width: 2.75rem;
  margin: 1.2rem auto 0;
  border-top: 1px solid var(--sand);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 580px;
  gap: 1.5rem .75rem;
}

.value-symbol, .brand-story-pillars svg {
  display: block;
  color: #d7c49a;
}

.value-symbol { margin: 0 auto .8rem; }

.value-symbol svg, .brand-story-pillars svg {
  width: 2.7rem;
  height: 2.7rem;
  margin-inline: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.values-grid h3, .brand-story-pillars span {
  display: block;
  margin: 0 0 .65rem;
  font-family: var(--font-label);
  font-size: .77rem;
  font-weight: 600;
  letter-spacing: .035em;
  line-height: 1.4;
  text-transform: uppercase;
}

.values-grid p {
  margin: 0;
  color: #dddccd;
  font-size: .75rem;
  line-height: 1.5;
}

.brand-story {
  justify-content: center;
  background-color: #1a2e23;
  background-image: linear-gradient(#1e35282e, #0c1c14a6), url('../images/panel-forest.svg'), url('../images/header-grain.svg');
  background-size: cover, cover, 160px;
}

.brand-story-logo {
  width: min(310px, 100%);
  margin: 0 auto 1.5rem;
}

.brand-story-emblem {
  position: relative;
  display: block;
  width: 78%;
  aspect-ratio: 1.88 / 1;
  margin: 0 auto .2rem;
  overflow: hidden;
}

.brand-story-emblem img {
  position: absolute;
  width: 268%;
  max-width: none;
  height: auto;
  top: -36.5%;
  left: 0;
}

.brand-story-wordmark {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3.9 / 1;
  object-fit: cover;
}

.brand-story-promise {
  margin: 0 0 1.75rem;
  font-size: .7rem;
  letter-spacing: .2em;
  line-height: 1.9;
}

.brand-story-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 540px;
  gap: 1rem;
}

.brand-story-pillars svg { margin-bottom: .7rem; }
.brand-story-pillars span { margin-bottom: 0; }

.heritage {
  width: calc(100% - var(--site-inset) * 2);
  max-width: var(--site-max-width);
  margin: var(--panel-gap) auto;
  padding: 2rem clamp(1rem, 3vw, 3rem) 1.5rem;
  border: 1px solid #c7ab7c70;
  background-color: #192317;
  background-image: radial-gradient(ellipse at top, #4c503035, transparent 80%), url('../images/header-grain.svg');
  background-size: cover, 160px;
  color: #e7dab6;
}

.heritage-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.heritage-flag {
  display: block;
  width: min(210px, 100%);
  height: auto;
  margin: 0 auto;
  opacity: .93;
}

.heritage h2, .heritage-next, .heritage-generations {
  margin: 0;
  font-family: Bahnschrift, 'Arial Narrow', Arial, sans-serif;
  font-stretch: condensed;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-transform: uppercase;
  text-align: center;
}

.heritage h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); }

.heritage-next {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.heritage-generations {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e7dab650;
  font-size: 1.2rem;
  letter-spacing: .1em;
}

.footer-contact-note p {
  margin: 0 0 1.25rem;
  color: #c4cbbf;
  font-size: .75rem;
}

@media (min-width: 950px) {
  .lower-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values, .brand-story { min-height: 520px; }
  .values-grid, .brand-story-pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
}

@media (min-width: 600px) {
  .heritage-content { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 650px) {
  .hero { min-height: clamp(480px, 42vw, 640px); }
  .waterfront { min-height: clamp(440px, 36vw, 580px); }
}

@media (min-width: 1050px) {
  .services { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .service-image img { transition: none; }
}
