/* Eight Bells Home Page V2 */

.ebh2-page {
  --eb-bg: #f8f6f3;
  --eb-text: #2f2d2b;
  --eb-muted: #5f5a55;
  --eb-accent: #b79b7d;
  --eb-line: #d8d0c6;
  --eb-image-bg: #ddd7cf;

  background: var(--eb-bg);
  color: var(--eb-text);
  font-family: 'Raleway', Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

.ebh2-page a {
  text-decoration: none;
}

.ebh2-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ebh2-section {
  padding: 7rem 1.5rem;
}

.ebh2-container {
  max-width: 1180px;
  margin: 0 auto;
}

.ebh2-container-small {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.ebh2-eyebrow {
  margin: 0 0 1.5rem;
  color: var(--eb-accent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ebh2-page h1,
.ebh2-page h2 {
  margin: 0;
  font-family: 'Playfair Display', 'Playfair', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: var(--eb-text);
}

.ebh2-page h1 {
  max-width: 620px;
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.ebh2-page h2 {
  max-width: 720px;
  font-size: clamp(2.3rem, 3.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.ebh2-lead,
.ebh2-body,
.ebh2-body-text,
.ebh2-cta p {
  color: var(--eb-muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.ebh2-lead {
  max-width: 470px;
  margin: 2rem 0 0;
}

.ebh2-body {
  max-width: 620px;
  margin-top: 2rem;
}

.ebh2-body p {
  margin: 0;
}

.ebh2-body p + p {
  margin-top: 1.4rem;
}

.ebh2-body-text {
  max-width: 520px;
  margin: 1.8rem 0 0;
}

.ebh2-button {
  display: inline-block;
  margin-top: 2.4rem;
  border: 1px solid var(--eb-text);
  padding: 1rem 1.75rem;
  color: var(--eb-text);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  transition: opacity 250ms ease, transform 250ms ease;
}

.ebh2-button-dark {
  background: var(--eb-text);
  color: #fff;
}

.ebh2-button:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

/* Hero */

.ebh2-hero {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.ebh2-hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6rem;
  align-items: center;
}

.ebh2-hero-image {
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  background: var(--eb-image-bg);
}

.ebh2-hero-image:empty {
  min-height: 480px;
}

/* Gallery */

.ebh2-gallery-section {
  background: var(--eb-bg);
  padding: 6rem 0 6rem;
}

.ebh2-gallery-section .ebh2-container {
  max-width: none;
  width: 100%;
}

.ebh2-section-heading {
  max-width: 760px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  text-align: center;
}

.ebh2-section-heading h2 {
  margin: 0 auto;
}

/* Mobile: horizontal scrolling row */

.ebh2-gallery-grid {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  width: 100%;
  padding: 0 0 0.75rem 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ebh2-gallery-grid::-webkit-scrollbar {
  display: none;
}

.ebh2-gallery-item {
  flex: 0 0 auto;
  width: auto;
  height: 300px;
  margin: 0;
  overflow: hidden;
  background: var(--eb-image-bg);
}

.ebh2-gallery-item:first-child {
  margin-left: 20px;
}

.ebh2-gallery-item:last-child {
  margin-right: 20px;
}

.ebh2-gallery-item img {
  display: block;
  width: auto;
  height: 300px;
  object-fit: cover;
}

.ebh2-center-button {
  margin-top: 2.5rem;
  text-align: center;
}

/* Desktop: old-style 3 column masonry */

@media (min-width: 768px) {
  .ebh2-gallery-section {
    padding: 6rem 1.5rem 7rem;
  }

  .ebh2-gallery-section .ebh2-container {
    max-width: 730px;
    margin: 0 auto;
  }

  .ebh2-gallery-grid {
    display: block;
    column-count: 3;
    column-gap: 10px;
    overflow: visible;
    padding: 0;
  }

  .ebh2-gallery-item {
    display: inline-block;
    width: 100%;
    height: auto;
    margin: 0 0 4px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .ebh2-gallery-item:first-child,
  .ebh2-gallery-item:last-child {
    margin-left: 0;
    margin-right: 0;
  }

  .ebh2-gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .ebh2-center-button {
    margin-top: 3rem;
  }
}

@media (min-width: 1024px) {
  .ebh2-gallery-section .ebh2-container {
    max-width: 950px;
  }
}

@media (min-width: 1440px) {
  .ebh2-gallery-section .ebh2-container {
    max-width: 1100px;
  }

  .ebh2-gallery-section {
    padding-bottom: 8rem;
  }
}

/* About */

.ebh2-about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6rem;
  align-items: center;
  border-top: 1px solid var(--eb-line);
  padding-top: 6rem;
}

.ebh2-about-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--eb-image-bg);
}

.ebh2-about-copy {
  max-width: 620px;
}

/* Guide */

.ebh2-guide-section {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.ebh2-guide-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 6rem;
  align-items: center;
}

.ebh2-guide-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--eb-image-bg);
}

/* Investment */

.ebh2-investment-section {
  border-top: 1px solid var(--eb-line);
  border-bottom: 1px solid var(--eb-line);
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.ebh2-investment-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 5rem;
  align-items: start;
}

.ebh2-investment-copy {
  max-width: 560px;
}

/* CTA */

.ebh2-cta {
  padding-top: 7rem;
  padding-bottom: 8rem;
}

.ebh2-cta h2 {
  margin: 0 auto;
}

.ebh2-cta p {
  max-width: 480px;
  margin: 1.6rem auto 0;
}

/* Responsive */

@media (max-width: 1000px) {
  .ebh2-section {
    padding: 5.5rem 1.5rem;
  }

  .ebh2-hero {
    padding-top: 5rem;
  }

  .ebh2-hero-grid,
  .ebh2-about-grid,
  .ebh2-guide-grid,
  .ebh2-investment-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .ebh2-hero-copy {
    order: 1;
  }

  .ebh2-hero-image {
    order: 2;
  }

  .ebh2-page h1,
  .ebh2-page h2,
  .ebh2-lead,
  .ebh2-body,
  .ebh2-body-text,
  .ebh2-about-copy,
  .ebh2-investment-copy {
    max-width: 100%;
  }

  .ebh2-gallery-grid {
    column-count: 2;
  }

  .ebh2-about-grid {
    padding-top: 5rem;
  }
}

@media (max-width: 620px) {
  .ebh2-section {
    padding: 4.5rem 1.25rem;
  }

  .ebh2-hero {
    padding-top: 4rem;
  }

  .ebh2-page h1 {
    font-size: clamp(2.65rem, 12vw, 3.65rem);
  }

  .ebh2-page h2 {
    font-size: clamp(2.25rem, 9vw, 3rem);
  }

  .ebh2-lead,
  .ebh2-body,
  .ebh2-body-text,
  .ebh2-cta p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .ebh2-hero-grid,
  .ebh2-about-grid,
  .ebh2-guide-grid,
  .ebh2-investment-grid {
    gap: 3rem;
  }

  .ebh2-hero-image,
  .ebh2-about-image,
  .ebh2-guide-image {
    aspect-ratio: 4 / 3;
  }

  .ebh2-gallery-grid {
    column-count: 1;
  }

  .ebh2-gallery-item {
    margin-bottom: 0.75rem;
  }

  .ebh2-button {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 1600px) {
  .ebh2-container {
    max-width: 1100px;
  }

  .ebh2-hero-grid,
  .ebh2-about-grid,
  .ebh2-guide-grid {
    gap: 5rem;
  }

  .ebh2-page h1 {
    font-size: 4.5rem;
  }

  .ebh2-page h2 {
    font-size: 3.3rem;
  }
}
