/* ============================================
   Egg Bros Eggery — Stylesheet
   Palette pulled from the logo: sage, butter yellow, brick red.
   ============================================ */

:root {
  /* Palette */
  --sage-50: #f3f7ea;
  --sage-100: #e6eed4;
  --sage-200: #dde9c8;
  --sage-300: #c7d9a5;
  --sage-700: #4f6a3b;
  --sage-900: #2a3a22;

  --cream: #fdf8ed;
  --cream-2: #f6efde;

  --yolk: #f4c542;
  --yolk-deep: #e0a82e;

  --brick: #b9352c;
  --brick-deep: #8e2520;

  --ink: #2a2018;
  --ink-soft: #5a4a3c;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI",
    sans-serif;

  /* Spacing & radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(60, 50, 30, 0.06);
  --shadow-md: 0 12px 30px rgba(60, 50, 30, 0.1);
  --shadow-lg: 0 24px 60px rgba(60, 50, 30, 0.15);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brick);
  line-height: 1.05;
  margin: 0;
}
h2 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  letter-spacing: -0.015em;
}
h3 {
  font-size: 1.35rem;
  color: var(--brick-deep);
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--brick);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--brick-deep);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(72px, 9vw, 128px);
}
.section--cream {
  background: var(--cream-2);
}
.section--green {
  background: var(--sage-200);
}

/* PLACE — small Made-in-Nakusp band */
.section--place {
  padding-block: clamp(36px, 5vw, 56px);
  background: var(--cream);
  border-top: 1px solid rgba(42, 32, 24, 0.08);
  border-bottom: 1px solid rgba(42, 32, 24, 0.08);
}
.place {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: left;
}
.place__icon {
  color: var(--brick);
  flex-shrink: 0;
}
.place__line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  line-height: 1.25;
}
.place__eyebrow {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
}
.place__town {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--ink);
}
@media (max-width: 480px) {
  .place {
    gap: 12px;
  }
  .place__icon {
    width: 22px;
    height: 22px;
  }
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section__lede {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-top: 14px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-700);
  background: rgba(255, 255, 255, 0.55);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.eyebrow--red {
  color: var(--brick);
  background: rgba(185, 53, 44, 0.08);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 237, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(60, 50, 30, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brick);
}
.brand__mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sage-200);
  box-shadow: 0 0 0 2px var(--cream), 0 0 0 3px var(--sage-300);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.brand__sub {
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 4px;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 4px;
}
.nav a:hover {
  color: var(--brick);
}
.nav__cta {
  background: var(--brick);
  color: var(--cream) !important;
  padding: 10px 18px !important;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.nav__cta:hover {
  background: var(--brick-deep);
}

@media (max-width: 640px) {
  .nav a:not(.nav__cta) {
    display: none;
  }
  .brand__sub {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
}
.btn--primary {
  background: var(--brick);
  color: var(--cream);
}
.btn--primary:hover {
  background: var(--brick-deep);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--brick);
  border-color: rgba(185, 53, 44, 0.3);
}
.btn--ghost:hover {
  border-color: var(--brick);
  background: rgba(185, 53, 44, 0.06);
}
.btn--full {
  width: 100%;
}
.btn--lg {
  padding: 18px 32px;
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* Solid sage matching the logo background, fading to a touch deeper at the bottom
     so the wavy divider has something to read against. */
  background: linear-gradient(180deg, #e1edd0 0%, #e1edd0 55%, var(--sage-200) 100%);
  color: var(--ink);
  padding-block: clamp(40px, 6vw, 72px) clamp(96px, 12vw, 160px);
  overflow: hidden;
  text-align: center;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero__logo {
  margin: 0 0 4px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero__logo img {
  width: clamp(300px, 52vw, 620px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  /* Fade the logo's rectangular edges into the sage hero background
     so the JPG doesn't show a visible square boundary. */
  -webkit-mask-image: radial-gradient(ellipse at center, black 62%, transparent 88%);
  mask-image: radial-gradient(ellipse at center, black 62%, transparent 88%);
}
.hero__tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-700);
  background: rgba(255, 255, 255, 0.55);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin: 0 0 22px;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto 28px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
}
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.hero__pills li {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sage-900);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(79, 106, 59, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.hero__divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  color: var(--cream);
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Cards (pricing) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
  max-width: 880px;
  margin: 0 auto;
}
.card {
  position: relative;
  background: var(--cream);
  border: 1px solid rgba(60, 50, 30, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card--featured {
  background: linear-gradient(180deg, #fffaec 0%, #fdf3d4 100%);
  border-color: rgba(228, 168, 46, 0.4);
}
.card__badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-900);
  background: var(--sage-200);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.card__badge--gold {
  color: #6b4a10;
  background: var(--yolk);
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--brick);
  margin: 0;
  line-height: 1.1;
}
.card__sub {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}
.card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 4px;
}
.card__amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.4rem;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.card__unit {
  color: var(--ink-soft);
  font-size: 1rem;
}
.card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.card__list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yolk);
  box-shadow: 0 0 0 3px rgba(244, 197, 66, 0.25);
}
.card .btn {
  margin-top: auto;
}

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

/* ---------- Two-col content ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.two-col--reverse .two-col__art {
  order: 2;
}
.two-col__art img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sage-200);
}
.two-col__copy h2 {
  margin-bottom: 16px;
}
.two-col__copy p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 56ch;
}

@media (max-width: 880px) {
  .two-col,
  .two-col--reverse {
    grid-template-columns: 1fr;
  }
  .two-col--reverse .two-col__art {
    order: 0;
  }
}

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(60, 50, 30, 0.12);
}
.stats div {
  display: flex;
  flex-direction: column;
}
.stats dt {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.stats dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--brick);
  margin: 0;
  line-height: 1.1;
}

/* Bros portraits — diptych under Meet the Bros */
.bros-portraits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid rgba(60, 50, 30, 0.1);
}
.portrait {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.portrait picture {
  display: block;
  width: 100%;
  max-width: 480px;
}
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--cream-2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Subtle scrapbook tilt — opposite directions on desktop */
.portrait:nth-child(odd) img {
  transform: rotate(-1deg);
}
.portrait:nth-child(even) img {
  transform: rotate(1deg);
}
.portrait:hover img {
  transform: rotate(0) translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.portrait figcaption {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.portrait__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--brick);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.portrait__role {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
}
@media (max-width: 720px) {
  .bros-portraits {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .portrait:nth-child(odd) img,
  .portrait:nth-child(even) img {
    transform: none;
  }
}

/* Checklist */
.checklist {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.checklist li {
  position: relative;
  padding-left: 32px;
  color: var(--ink);
  font-size: 1rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--sage-700);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.55em;
  width: 9px;
  height: 5px;
  border-left: 2.5px solid var(--sage-700);
  border-bottom: 2.5px solid var(--sage-700);
  transform: rotate(-45deg);
}

/* ---------- Order steps ---------- */
.order__copy {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.order__copy p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  counter-reset: step;
  margin-bottom: 56px;
}
.steps li {
  background: var(--cream);
  border: 1px solid rgba(60, 50, 30, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}
.steps__num {
  position: absolute;
  top: -18px;
  left: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brick);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.steps h3 {
  margin: 14px 0 10px;
  font-size: 1.25rem;
}
.steps p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}

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

/* CTA box */
.cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--brick);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}
.cta-box h3 {
  color: var(--cream);
  font-size: 1.7rem;
  margin: 0 0 6px;
}
.cta-box p {
  color: rgba(253, 248, 237, 0.85);
  margin: 0;
}
.cta-box .btn--primary {
  background: var(--yolk);
  color: var(--ink);
  border-color: transparent;
}
.cta-box .btn--primary:hover {
  background: #fbd565;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sage-900);
  color: var(--sage-100);
  padding-block: 48px;
  margin-top: 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__brand img {
  border-radius: 50%;
  background: var(--sage-200);
}
.footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0;
  color: var(--cream);
}
.footer__tag {
  margin: 2px 0 0;
  font-size: 0.92rem;
  color: var(--sage-100);
  opacity: 0.8;
}
.footer__note {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.75;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__art img {
    transform: none;
  }
}
