/* Abominably Delicious — site styles
   Palette pulled from the yeti logo: cream paper, icy blues, gold bag-lettering. */

:root {
  --cream: #f4ebd9;
  --cream-deep: #e6d6c1;
  --paper: #fffaf2;
  --ink: #16333f;
  --ink-soft: #3a5864;
  --ocean: #154a5c;
  --ocean-deep: #0f3644;
  --ocean-mid: #2a7a96;
  --ice: #c5dce6;
  --ice-light: #e4f1f5;
  --yeti: #8ebfd0;
  --gold: #e4b43c;
  --gold-deep: #c4921e;
  --orange: #dc7444;
  --line: rgba(22, 51, 63, 0.12);
  --shadow: 0 12px 32px rgba(15, 54, 68, 0.12);
  --shadow-soft: 0 6px 18px rgba(15, 54, 68, 0.08);
  --radius: 1.25rem;
  --radius-sm: 0.85rem;
  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --header-h: 4.35rem;
  --max: 72rem;
  --gutter: clamp(1.15rem, 4vw, 2.25rem);
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--ocean-mid);
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ocean);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ocean-deep);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 200;
  background: var(--ocean-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 235, 217, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ocean-deep);
  min-width: 0;
}

.brand-mark {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream-deep);
  border: 2px solid var(--ocean-mid);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.nav-drop {
  position: relative;
}

.nav-drop summary {
  list-style: none;
  cursor: pointer;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.7rem;
  border: 1.5px solid var(--line);
  background: var(--paper);
}

.nav-drop summary::-webkit-details-marker {
  display: none;
}

.nav-drop summary::marker {
  content: "";
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.15rem;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--ocean-deep);
  border-radius: 1px;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0.6rem;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 14rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.nav-drop[open] .nav-links {
  display: flex;
}

.nav-links a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.55rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--ice-light);
  color: var(--ocean-deep);
}

.nav-links a[aria-current="page"] {
  background: var(--ice-light);
  color: var(--ocean-deep);
  box-shadow: inset 3px 0 0 var(--gold);
}

.nav-desktop {
  display: none;
}

@media (min-width: 860px) {
  .nav-desktop {
    display: block;
  }

  .nav-desktop .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    gap: 0.15rem;
  }

  .nav-desktop .nav-links a {
    padding: 0.5rem 0.85rem;
  }

  .nav-desktop .nav-links a[aria-current="page"] {
    box-shadow: inset 0 -3px 0 var(--gold);
    background: transparent;
  }

  .nav-drop {
    display: none;
  }
}

/* ---------- Layout ---------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main {
  padding-bottom: 4rem;
}

.section {
  padding: 3.25rem 0;
}

.section-tight {
  padding: 2.25rem 0;
}

.kicker {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ocean);
  margin: 0 0 0.55rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ocean-deep);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.05rem, 5.4vw, 3.35rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.45rem;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 40rem;
  color: var(--ink);
}

.center {
  text-align: center;
}

.center .lead,
.center .kicker {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.02rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--ocean-deep);
  box-shadow: 0 4px 0 #b88714;
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: #edc04a;
  color: var(--ocean-deep);
}

.btn-ocean {
  background: var(--ocean);
  color: #fff;
  box-shadow: 0 4px 0 var(--ocean-deep);
}

.btn-ocean:hover,
.btn-ocean:focus-visible {
  background: var(--ocean-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ocean-deep);
  border-color: var(--ocean-mid);
}

.btn-ghost:hover {
  background: var(--ice-light);
  color: var(--ocean-deep);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 0 2.5rem;
  background:
    radial-gradient(ellipse 80% 50% at 80% 0%, rgba(142, 191, 208, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(228, 180, 60, 0.12), transparent 55%),
    var(--cream);
}

.hero::before {
  /* faint mountain silhouette, echoing the logo */
  content: "";
  position: absolute;
  right: -2rem;
  top: 0;
  width: min(42vw, 28rem);
  height: 70%;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' fill='none'%3E%3Cpath d='M40 260 L160 70 L220 150 L280 90 L400 260 Z' fill='%23c5dce6' fill-opacity='0.45'/%3E%3Cpath d='M150 90 L160 70 L178 100 L166 100 Z' fill='%23f4ebd9' fill-opacity='0.85'/%3E%3Cpath d='M320 260 L360 170 L400 260 Z' fill='%238ebfd0' fill-opacity='0.35'/%3E%3C/svg%3E") no-repeat right top / contain;
  opacity: 0.85;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.hero-logo-wrap {
  margin: 0 auto;
  max-width: 22rem;
  background: var(--cream-deep);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 2 / 3;
}

.hero-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  display: block;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.hero-copy .lead {
  font-size: clamp(1.1rem, 2.2vw, 1.28rem);
}

@media (min-width: 860px) {
  .hero {
    padding: 2.5rem 0 3.25rem;
  }

  .hero-grid {
    grid-template-columns: minmax(16rem, 22rem) 1fr;
    gap: 3.5rem;
  }

  .hero-logo-wrap {
    margin: 0;
    max-width: none;
  }
}

/* ---------- Photos with graceful fallbacks ---------- */

.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: #d7e8ef;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%232a7a96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(32 32)'%3E%3Cpath d='M0-24V24M-24 0H24M-17-17L17 17M17-17L-17 17'/%3E%3Cpath d='M-5-20L0-24L5-20M-5 20L0 24L5 20M-20-5L-24 0L-20 5M20-5L24 0L20 5'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 4.25rem;
  aspect-ratio: 4 / 5;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.photo-wide {
  aspect-ratio: 16 / 10;
}

.photo-square {
  aspect-ratio: 1 / 1;
}

.photo-tall {
  aspect-ratio: 3 / 4;
}

/* ---------- Cards / grids ---------- */

.card-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid.cols-3,
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.6);
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.card .card-body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.card h3 {
  margin: 0;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

.card .card-link {
  margin-top: auto;
  padding-top: 0.7rem;
  font-family: var(--font-display);
  font-weight: 550;
  color: var(--ocean);
  text-decoration: none;
}

a.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: inherit;
}

a.card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card figcaption,
.caption {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ocean-deep);
  margin: 0;
}

/* ---------- Intro / highlights ---------- */

.intro-block {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  font-size: 1.12rem;
}

/* ---------- Pricing strip ---------- */

.pricing {
  background: var(--ocean);
  color: #fff;
  padding: 2.4rem 0;
  position: relative;
  overflow: hidden;
}

.pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 120%, rgba(228, 180, 60, 0.18), transparent 40%),
    radial-gradient(circle at 90% -20%, rgba(142, 191, 208, 0.3), transparent 40%);
  pointer-events: none;
}

.pricing .wrap {
  position: relative;
}

.pricing h2,
.pricing p {
  color: #fff;
}

.pricing p {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 1.15rem;
}

.price-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.price-tile {
  background: var(--paper);
  color: var(--ocean-deep);
  border-radius: 1.1rem;
  min-width: 9.5rem;
  padding: 1.05rem 1.5rem 1.15rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.price-tile .amt {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 2.15rem;
  line-height: 1;
  color: var(--ocean-deep);
}

.price-tile .lbl {
  display: block;
  margin-top: 0.25rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* ---------- How to order ---------- */

.order-block {
  background: var(--ice-light);
  border-radius: calc(var(--radius) + 0.2rem);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  display: grid;
  gap: 1.25rem;
  border: 1px solid rgba(42, 122, 150, 0.15);
}

@media (min-width: 800px) {
  .order-block {
    grid-template-columns: 1.3fr 0.9fr;
    align-items: center;
    gap: 2rem;
  }
}

.order-block h2 {
  margin-bottom: 0.5rem;
}

.order-block p {
  margin: 0 0 0.5rem;
}

.email-plain {
  font-weight: 750;
  color: var(--ocean-deep);
  word-break: break-word;
}

/* ---------- Candy lists ---------- */

.category {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.category:first-of-type {
  border-top: 0;
}

.category-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 800px) {
  .category-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .category-grid.reverse {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .category-grid.reverse .category-copy {
    order: 2;
  }
}

.chip-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink);
}

.note {
  background: var(--paper);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.15rem;
  margin: 1.75rem 0 0;
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .gallery.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery figure {
  margin: 0;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.gallery figcaption {
  padding: 0.7rem 0.95rem 0.9rem;
  font-weight: 700;
  color: var(--ocean-deep);
}

.gallery figure.unlabeled figcaption {
  display: none;
}

/* ---------- Texture band (unlabeled rings photo) ---------- */

.texture-band {
  position: relative;
  min-height: 10rem;
  background: var(--ice) center / cover no-repeat;
  border-radius: var(--radius);
  overflow: hidden;
}

.texture-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(244, 235, 217, 0.15), rgba(21, 74, 92, 0.28));
}

/* ---------- Page hero (interior) ---------- */

.page-hero {
  padding: 2.4rem 0 1.5rem;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(142, 191, 208, 0.28), transparent 55%),
    var(--cream);
}

.page-hero .lead {
  margin-bottom: 0;
}

/* ---------- Contact form ---------- */

.contact-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
    align-items: start;
  }
}

.contact-form {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.85rem);
  box-shadow: var(--shadow-soft);
}

.form-note {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--ocean-deep);
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.7rem 0.85rem;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--ocean-mid);
  background: #fff;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.98rem;
  margin: 1rem 0 1.25rem;
}

.check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--ocean);
  flex-shrink: 0;
}

.contact-aside p {
  margin-top: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ocean-deep);
  color: #e7f2f6;
  padding: 2.4rem 0 1.6rem;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
  text-align: center;
  justify-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--yeti);
  background: var(--cream-deep);
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-nav a {
  text-decoration: none;
  font-weight: 650;
}

.copyright {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: #c5dce6;
}

.place {
  margin: 0;
  color: #c5dce6;
}

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.split-party {
  display: grid;
  gap: 0;
  align-items: stretch;
  background: var(--paper);
  border-radius: calc(var(--radius) + 0.15rem);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.split-party .photo {
  border-radius: 0;
  min-height: 16rem;
}

.split-party .split-copy {
  padding: clamp(1.2rem, 3vw, 2rem);
}

@media (min-width: 800px) {
  .split-party {
    grid-template-columns: 1fr 1fr;
  }
}

/* Product item cards on fruits page */
.item-card .photo {
  aspect-ratio: 4 / 5;
}

/* Accessible reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  a.card:hover,
  .btn:hover {
    transform: none;
  }
}

figure { margin: 0; }

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.photo-pair .photo {
  border-radius: 0;
  aspect-ratio: 4 / 5;
}
@media (min-width: 900px) {
  .card-grid.cols-3 > .span-2 {
    grid-column: span 2;
  }
}

/* Category photos: shorter frames so lists aren't dwarfed */
.category-grid .photo,
.category-grid figure.photo {
  aspect-ratio: 5 / 4;
}
@media (min-width: 800px) {
  .category-grid .photo,
  .category-grid figure.photo {
    aspect-ratio: 1 / 1;
    max-height: 24rem;
  }
}

/* Bags feature: nearly-square crop, not a wide banner */
.feature-photo {
  max-width: 42rem;
  margin: 0 auto;
}
.feature-photo .photo {
  aspect-ratio: 16 / 15;
}

/* Unlabeled gallery tiles keep a little bottom padding */
.gallery figure:not(:has(figcaption)) .photo,
.gallery figure.unlabeled .photo {
  border-radius: var(--radius);
}

/* Slightly tighter product photos on small screens */
@media (max-width: 639px) {
  .item-card .photo,
  .card > .photo,
  .gallery .photo {
    aspect-ratio: 5 / 4;
  }
}

/* Mobile menu panel should sit above page content */
.nav-drop[open] .nav-links {
  z-index: 110;
}

.gallery figure.unlabeled {
  padding-bottom: 2.55rem;
}
.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
}

.burger span {
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-drop[open] .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-drop[open] .burger span:nth-child(2) {
  opacity: 0;
}
.nav-drop[open] .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
