:root {
  --grain-opacity: 0.045;
  --why-card-ivory: #f3ecdf;
  --page-bg: #f7f6f2;
  --surface-ivory: #f6f3ec;
  --surface-ivory-strong: #efe7d8;
  --surface-white: #ffffff;
  --section-py: 64px;
  --section-py-lg: 104px;
  --eyebrow-mb: 10px;
  --h2-mb: 14px;
  --body-mb: 26px;
}

body {
  background-color: var(--page-bg);
  transition: background-color 240ms ease, background-image 240ms ease;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Subtle paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--grain-opacity);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Layering: keep content above grain */
body > *, main {
  position: relative;
  z-index: 1;
}

a, button { outline: none; }

/* Mint surfaces for cards */
.mint-card {
  background-color: var(--surface-ivory);
  border-color: rgba(17, 17, 17, 0.06);
}

.why-progress-fill {
  background-color: #0f0f0f;
}

.surface-ivory {
  background-color: var(--surface-ivory);
}

.surface-ivory-strong {
  background-color: var(--surface-ivory-strong);
}

.surface-white {
  background-color: var(--surface-white);
}

.section-shell {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

@media (min-width: 768px) {
  .section-shell {
    padding-top: var(--section-py-lg);
    padding-bottom: var(--section-py-lg);
  }
}

.heading-eyebrow {
  margin-bottom: var(--eyebrow-mb);
}

.heading-title {
  margin-bottom: var(--h2-mb);
}

.heading-body {
  margin-bottom: var(--body-mb);
}

.bg-sand-smooth {
  background-image: url("./images/backgrounds/sand-zen-smooth@4667h.png");
  background-size: auto 100%;
  background-position: center top;
  background-repeat: repeat-x;
  background-color: #f2ecdf;
}

.hero-sand {
  position: relative;
}

.hero-sand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.22);
  pointer-events: none;
  z-index: 0;
}

.why-shoreline-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --why-pattern-width: 24%;
  /* Test option: --why-pattern-width: 28%; */
}

.why-shoreline-bg::before,
.why-shoreline-bg::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  background-size: auto 100%;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
  z-index: 0;
}

.why-shoreline-bg::before {
  width: calc(var(--why-pattern-width) + 1px);
  left: 0;
  background-image: url("./images/backgrounds/sand-zen-pattern-left@4667h.jpg");
  transform: scaleX(-1);
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: -150px center;
}

.why-shoreline-bg::after {
  left: var(--why-pattern-width);
  right: 0;
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.06) 50%,
      rgba(0, 0, 0, 0) 100%
    ),
    url("./images/backgrounds/sand-zen-smooth@4667h.png");
  background-size: 0px 100%, auto 100%;
  background-repeat: no-repeat, repeat-x;
  background-position: left center, left center;
}

.producedfor-sand-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --pf-pattern-width: 24%;
}

.producedfor-sand-bg::before,
.producedfor-sand-bg::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  background-size: auto 100%;
  z-index: 0;
}

.producedfor-sand-bg::before {
  width: calc(var(--pf-pattern-width) + 1px);
  right: 0;
  background-image: url("./images/backgrounds/sand-zen-pattern-left@4667h.jpg");
  background-repeat: no-repeat;
  background-position: -85px center;
}

.producedfor-sand-bg::after {
  left: 0;
  right: var(--pf-pattern-width);
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.06) 50%,
      rgba(0, 0, 0, 0) 100%
    ),
    url("./images/backgrounds/sand-zen-smooth@4667h.png");
  background-size: 0px 100%, auto 100%;
  background-repeat: no-repeat, repeat-x;
  background-position: left center, left center;
}

/* --- Landing helpers --- */
.hero {
  padding: 18px 0;
}

.hero-copy {
  flex: 1;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.brand-logo {
  height: 35px;
  width: auto;
  display: block;
}

.hero-panel {
  background: var(--why-card-ivory);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 18px;
  padding: 18px 18px;
}

/* Hero headline: slightly tighter for a luxury editorial feel */
.hero-panel h1 {
  line-height: 1.08;
}

/* Normalize default text margins inside hero card so top/bottom padding feels equal */
.hero-panel > :first-child { margin-top: 0; }
.hero-panel > :last-child { margin-bottom: 0; }
.hero-panel h1,
.hero-panel h2,
.hero-panel h3 { margin-top: 0; }

/* Mobile: tighten hero readability without changing layout */
@media (max-width: 768px) {
  .hero-panel {
    padding: 16px;
  }

  .hero-panel h1 {
    line-height: 1.12;
  }

  .hero-panel p {
    margin-bottom: 14px;
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 6px;
}

.hero-media {
  background-color: var(--surface-ivory-strong);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  overflow: hidden;
}

.hero-img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border-radius: 12px;
  transform: scale(1.15) translateY(6px);
  transform-origin: center;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.10));
}

.split {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.split-primary,
.split-secondary {
  flex: 1;
}

@media (min-width: 900px) {
  .split {
    flex-direction: row;
    gap: 48px;
  }

  .split-primary {
    flex: 1.1;
  }

  .split-secondary {
    flex: 0.9;
  }
}

.page-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.page-left,
.page-right {
  width: 100%;
}

.page-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 1000px) {
  .page-shell {
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
  }

  .page-left {
    flex: 1.35;
  }

  .page-right {
    flex: 0.65;
    position: sticky;
    top: 32px;
    max-height: calc(100vh - 64px);
    overflow: hidden;
    gap: 20px;
  }
}

.contact-card {
  position: relative;
  background-color: transparent;
  background-image: url("./images/backgrounds/sand-zen-smooth@4667h.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 16px;
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.contact-card::after {
  content: none;
}

.contact-card > * {
  position: relative;
  z-index: 1;
}

/* Normalize default text margins inside contact card so content sits centered */
.contact-card > :first-child { margin-top: 0; }
.contact-card > :last-child { margin-bottom: 0; }
.contact-card h1,
.contact-card h2,
.contact-card h3 { margin-top: 0; }

.contact-card h2 {
  margin-bottom: 6px;
}

.contact-card p {
  margin: 0;
}

.container{
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.card{
  background-color: var(--why-card-ivory);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 24px;
}

.btn{
  display: inline-block;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #0f0f0f;
  background: #0f0f0f;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.btn{
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.btn:hover{
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* Contact card: keep email button sized to content and centered */
.contact-card .btn{
  align-self: center;
  width: fit-content;
  padding-left: 22px;
  padding-right: 22px;
}
