:root {
  --forest: #0c2c22;
  --forest-deep: #082019;
  --forest-mid: #143528;
  --gold: #c5a46a;
  --gold-bright: #d4b87a;
  --gold-soft: #e8d9b5;
  --cream: #f3efe5;
  --cream-card: #f8f5ee;
  --ink: #1a1f1c;
  --muted: #4a524c;
  --line: rgba(12, 44, 34, 0.12);
  --danger: #8b2e2e;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(8, 32, 25, 0.08);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", "Avenir Next", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Site chrome ---------- */

.site-header {
  position: relative;
  background-color: var(--forest);
  background-image:
    linear-gradient(100deg, #082019 0%, #0c2c22 48%, rgba(12, 44, 34, 0.88) 60%, rgba(12, 44, 34, 0.4) 78%, rgba(12, 44, 34, 0.18) 100%),
    url("../images/hero-right.png");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: auto 100%;
  color: #fff;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 42% 55% at 92% 18%, rgba(197, 164, 106, 0.14), transparent 60%),
    linear-gradient(to right, rgba(8, 32, 25, 0.78) 0%, rgba(8, 32, 25, 0.5) 44%, transparent 70%);
  pointer-events: none;
}

/* Left column (copy + info) | PPP tagline — ornament stays as right-side art */
.header-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.2rem 0 1.8rem;
  display: grid;
  grid-template-columns: minmax(0, min(36rem, 58%)) auto;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: stretch;
  justify-content: start;
  /* Keep content clear of the ornament */
  padding-right: clamp(7rem, 22vw, 15rem);
}

.header-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  min-width: 0;
  max-width: 100%;
}

.header-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 1.6rem;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand-wordmark {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 600;
  line-height: 1.15;
}

.brand-wordmark span {
  display: block;
  letter-spacing: 0.3em;
  font-weight: 500;
  color: var(--gold-soft);
  opacity: 0.95;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
}

.hero-copy h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.35rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  max-width: 14ch;
  color: #fff;
  animation: rise-in 0.9s ease both;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-copy p {
  margin: 0;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  animation: rise-in 0.9s ease 0.12s both;
}

/* PPP sits to the RIGHT of copy+info and stretches the header height */
.hero-tagline {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 0.85rem;
  z-index: 2;
  pointer-events: none;
  animation: fade-in 1.1s ease 0.2s both;
  padding: 0.5rem 0 0.25rem;
}

.hero-tagline-rule {
  width: 1px;
  align-self: stretch;
  min-height: 10rem;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(197, 164, 106, 0.75) 10%,
    rgba(197, 164, 106, 0.75) 90%,
    transparent
  );
  flex: 0 0 auto;
}

.hero-tagline-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  color: rgba(232, 217, 181, 0.92);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  line-height: 1.45;
  text-transform: uppercase;
  text-align: left;
}

.hero-tagline-copy span {
  display: block;
  white-space: nowrap;
}

.hero-tagline-copy hr {
  width: 7.5rem;
  max-width: 100%;
  margin: 0.5rem 0 0.4rem;
  border: 0;
  border-top: 1px solid rgba(197, 164, 106, 0.7);
}

.info-strip {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.info-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  color: rgba(255, 255, 255, 0.92);
  padding: 0 1.05rem;
  animation: rise-in 0.8s ease both;
}

.info-item:first-child {
  padding-left: 0;
}

.info-item + .info-item {
  border-left: 1px solid rgba(197, 164, 106, 0.55);
}

.info-item:nth-child(2) { animation-delay: 0.08s; }
.info-item:nth-child(3) { animation-delay: 0.16s; }

.info-icon {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(197, 164, 106, 0.7);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  background: rgba(197, 164, 106, 0.12);
  flex: 0 0 auto;
}

.info-item strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.25rem;
  line-height: 1.35;
}

.info-item p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.86);
}

.select-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  background: linear-gradient(90deg, #b8924f, #d4b87a 42%, #c5a46a 78%, #b8924f);
  color: var(--forest-deep);
  text-align: center;
  padding: 0.85rem 1.25rem;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.select-banner-motif {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--forest-deep);
}

.select-banner-icon {
  display: inline-flex;
  color: var(--forest-deep);
  opacity: 0.9;
}

.select-banner-flake {
  opacity: 0.45;
}

.select-banner strong {
  font-weight: 700;
  letter-spacing: 0.1em;
}

.select-banner-sep {
  width: 1px;
  height: 1.1em;
  background: rgba(8, 32, 25, 0.35);
  flex: 0 0 auto;
}

.select-banner-note {
  opacity: 0.85;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
}

.site-footer {
  background: var(--forest);
  color: var(--gold);
  padding: 1.15rem 1.25rem;
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-bright);
}

.footer-brand small {
  display: block;
  letter-spacing: 0.26em;
  font-weight: 500;
  color: var(--gold-soft);
  opacity: 0.95;
}

.footer-rule {
  width: 1px;
  align-self: stretch;
  min-height: 2.4rem;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(197, 164, 106, 0.85) 12%,
    rgba(197, 164, 106, 0.85) 88%,
    transparent
  );
}

.footer-thanks {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
  line-height: 1.45;
}

/* ---------- Product grid ---------- */

.gifts {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3.25rem;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.gift-card {
  background: var(--cream-card);
  border: 1px solid rgba(12, 44, 34, 0.1);
  border-radius: var(--radius);
  padding: 0.95rem 0.95rem 1.05rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  opacity: 1;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: card-rise 0.7s ease both;
}

.gift-card:nth-child(1) { animation-delay: 0.05s; }
.gift-card:nth-child(2) { animation-delay: 0.12s; }
.gift-card:nth-child(3) { animation-delay: 0.19s; }
.gift-card:nth-child(4) { animation-delay: 0.26s; }

.gift-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(8, 32, 25, 0.16);
}

.gift-card.is-locked {
  opacity: 0.55;
  filter: grayscale(0.35);
  pointer-events: none;
}

.gift-card h2 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.3;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 700;
  min-height: 3.9em;
}

.gift-card .subtitle {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.media-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.85rem;
}

.media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s ease;
}

/* Fishing bag: show full photo (no extra crop) so Cabela's tag stays readable */
.media-wrap img[data-position="left"] {
  object-fit: contain;
  object-position: center center;
  background: #ebe6dc;
}

.detail-media img[data-position="left"] {
  object-fit: contain;
  object-position: center center;
  background: #ebe6dc;
}

.gift-card:hover .media-wrap img {
  transform: scale(1.04);
}

.size-badge {
  position: absolute;
  /* Bottom-left avoids covering faces on the vest photo (woman is top-right) */
  top: auto;
  right: auto;
  left: 0.65rem;
  bottom: 0.65rem;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0d9a0, #c5a46a 60%, #a88445);
  color: var(--forest-deep);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  padding: 0.4rem;
  z-index: 2;
}

.gift-card ul {
  margin: 0 0 1rem;
  padding: 0 0 0 1.05rem;
  color: var(--forest-mid);
  font-size: 0.86rem;
  line-height: 1.4;
  flex: 1;
}

.gift-card li + li {
  margin-top: 0.25rem;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 6px;
  padding: 0.78rem 1.25rem;
  background: var(--forest);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  background: var(--forest-mid);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(12, 44, 34, 0.22);
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--forest);
  border: 1px solid rgba(12, 44, 34, 0.25);
}

.btn-ghost:hover {
  background: rgba(12, 44, 34, 0.06);
  box-shadow: none;
}

.btn-gold {
  background: linear-gradient(135deg, #b8924f, #d4b87a);
  color: var(--forest-deep);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #c5a46a, #e0c792);
}

.locked-banner {
  display: none;
  width: min(1180px, calc(100% - 2rem));
  margin: 1.5rem auto 0;
  padding: 1rem 1.2rem;
  background: #fff8e8;
  border: 1px solid rgba(197, 164, 106, 0.55);
  border-radius: 12px;
  color: var(--forest);
}

.locked-banner.is-visible {
  display: block;
  animation: rise-in 0.5s ease both;
}

.locked-banner strong {
  display: block;
  margin-bottom: 0.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* ---------- Detail page ---------- */

.detail-header {
  min-height: auto;
}

.detail-header .header-inner {
  grid-template-columns: 1fr;
  padding: 1.5rem 0 1.6rem;
  align-items: start;
}

.detail-header .hero-copy h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  max-width: none;
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold-soft);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.crumb:hover {
  color: #fff;
}

.detail {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.detail-card {
  background: var(--cream-card);
  border-radius: 18px;
  border: 1px solid rgba(12, 44, 34, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  animation: rise-in 0.6s ease both;
}

.detail-media {
  position: relative;
  background: #e7e2d7;
  min-height: 360px;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  inset: 0;
}

.detail-media .size-badge {
  top: auto;
  right: auto;
  left: 0.85rem;
  bottom: 0.85rem;
}

.detail-body {
  padding: 1.6rem 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-body h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  color: var(--forest);
}

.detail-body .subtitle {
  margin: -0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-body ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--forest-mid);
}

.detail-body li + li {
  margin-top: 0.2rem;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(12, 44, 34, 0.18);
  background: #fff;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 164, 106, 0.25);
}

.field input.is-invalid {
  border-color: rgba(139, 46, 46, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 46, 46, 0.12);
}

.field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--danger);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.option-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.choice {
  appearance: none;
  border: 1px solid rgba(12, 44, 34, 0.18);
  background: #fff;
  border-radius: 10px;
  padding: 0.85rem 0.75rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--forest);
  transition: all 0.2s ease;
}

.choice:hover {
  border-color: var(--gold);
}

.choice.is-selected {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.size-panel {
  display: none;
  animation: rise-in 0.35s ease both;
}

.size-panel.is-open {
  display: block;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.size-btn {
  appearance: none;
  border: 1px solid rgba(12, 44, 34, 0.18);
  background: #fff;
  border-radius: 8px;
  padding: 0.65rem 0.35rem;
  cursor: pointer;
  font-weight: 650;
  color: var(--forest);
  transition: all 0.2s ease;
}

.size-btn:hover {
  border-color: var(--gold);
}

.size-btn.is-selected {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.form-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.form-error {
  display: none;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #f8e8e8;
  color: var(--danger);
  font-size: 0.9rem;
}

.form-error.is-visible {
  display: block;
}

.thank-panel {
  width: min(720px, calc(100% - 2rem));
  margin: 2.5rem auto 3.5rem;
  background: var(--cream-card);
  border-radius: 18px;
  border: 1px solid rgba(12, 44, 34, 0.08);
  box-shadow: var(--shadow);
  padding: 2.4rem 1.8rem;
  text-align: center;
  animation: rise-in 0.6s ease both;
}

.thank-panel h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--forest);
}

.thank-panel p {
  margin: 0 auto 1.4rem;
  max-width: 42ch;
  color: var(--muted);
}

@keyframes rise-in {
  from {
    opacity: 0.2;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-rise {
  from { transform: translateY(14px); }
  to { transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .gift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-shell {
    padding-right: clamp(0rem, 12vw, 7rem);
    gap: 1.25rem;
  }

  .info-strip {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .info-item {
    padding: 0;
  }

  .info-item + .info-item {
    border-left: 0;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(197, 164, 106, 0.4);
  }

  .detail-card {
    grid-template-columns: 1fr;
  }

  .detail-media {
    min-height: 280px;
  }

  .gift-card h2 {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .header-shell {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .header-main {
    max-width: 100%;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-tagline {
    display: none;
  }

  .select-banner {
    flex-direction: column;
    gap: 0.4rem;
  }

  .select-banner-sep {
    display: none;
  }

  .select-banner-note {
    max-width: 36ch;
  }
}

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

  .size-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .header-inner,
  .info-strip,
  .gifts,
  .detail,
  .locked-banner {
    width: min(100% - 1.25rem, 1180px);
  }

  .footer-inner {
    justify-content: center;
  }

  .footer-lockup {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .footer-thanks {
    text-align: center;
  }
}
