/* Provo Fruits (Frutas y Verduras LLC)
   Sunpeak Digital V3 static build.
   PALETTE IS PROVISIONAL. Swap the three brand tokens below once the logo
   is in hand; nothing else in this file needs to change. */

@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* ---- brand tokens, sampled from the Provo Fruits logo ----
     Green leads on purpose. The logo's blue is beautiful but Vali Warehouse
     is already a blue site and these two share an owner, so the avocado green
     carries the brand here and the blue stays inside the logo mark itself. */
  --brand:        #43912E;   /* avocado leaf green */
  --brand-dark:   #2C6620;
  --accent:       #6CC0A8;   /* the teal in "Fruits" */
  --flesh:        #D6DE7C;   /* avocado flesh */
  --blue:         #0F6FB8;   /* the blue in "Provo", used sparingly */
  --pit:          #781818;   /* avocado pit */

  /* ---- derived / neutral ---- */
  --ink:          #16281c;
  --ink-soft:     #4b5c50;
  --line:         #dee7de;
  --bg:           #ffffff;
  --bg-soft:      #f4f9f4;
  --bg-deep:      #0d2816;
  --radius:       14px;
  --radius-sm:    9px;
  --shadow:       0 1px 2px rgba(16,32,20,.06), 0 8px 24px rgba(16,32,20,.07);
  --shadow-lg:    0 24px 60px rgba(16,32,20,.16);
  --maxw:         1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Kaushan Script", "Brush Script MT", cursive;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-dark); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }

/* The logo wordmark is a brush script, so the display type follows it.
   Body, UI and product names stay in Inter: a catalog has to stay readable. */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
}
h1 { font-size: clamp(2.3rem, 5.6vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--soft { background: var(--bg-soft); }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 650; font-size: 1rem;
  text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ---------- header ---------- */
/* ---- call bar: phone is how most of these customers will actually order ---- */
.callbar {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 600; font-size: .96rem; padding: .6rem 1rem; text-align: center;
  transition: background .15s ease;
}
.callbar:hover { background: var(--brand-dark); color: #fff; }
.callbar strong { font-weight: 800; letter-spacing: .01em; }
.callbar__tag { opacity: .85; font-weight: 500; }
.callbar__tag::before { content: "\00b7"; margin-right: .55rem; }
@media (max-width: 560px) { .callbar__tag { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand img { height: 50px; width: auto; }
.brand__text {
  font-family: var(--font-display);
  font-weight: 400; font-size: 1.5rem; letter-spacing: 0;
  color: var(--brand);
}
.brand__text span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 560; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand-dark); }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.cart-btn {
  position: relative; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: .55rem 1.1rem; font-weight: 640; font-size: .95rem;
  cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; gap: .45rem;
}
.cart-btn:hover { border-color: var(--brand); }
.cart-btn__count {
  background: var(--brand); color: #fff; border-radius: 999px;
  min-width: 22px; height: 22px; display: inline-grid; place-items: center;
  font-size: .78rem; font-weight: 700; padding-inline: 5px;
}
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; isolation: isolate;
  background: var(--bg-deep) center/cover no-repeat;
  padding-block: clamp(80px, 13vw, 150px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(13,40,22,.92) 0%, rgba(24,74,36,.74) 45%, rgba(67,145,46,.34) 100%);
}
.hero h1 { color: #fff; max-width: 17ch; }
.hero p { color: rgba(255,255,255,.90); font-size: 1.16rem; max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.9rem; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em;
  font-size: .76rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem;
}

/* ---------- trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.trust__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem; padding-block: 2.2rem;
}
.trust__item strong { display: block; font-size: 1.45rem; color: var(--brand-dark); letter-spacing: -0.02em; }
.trust__item span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- cards / categories ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.cat-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-card__media { aspect-ratio: 4/3; background: var(--bg-soft) center/cover no-repeat; }
.cat-card__body { padding: 1.1rem 1.2rem 1.35rem; }
.cat-card__body h3 { margin-bottom: .25rem; }
.cat-card__body p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.step__num {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; margin-bottom: .9rem;
}

/* ---------- product list ---------- */
.cat-block { margin-bottom: 3.2rem; scroll-margin-top: 92px; }
.cat-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 2px solid var(--line); padding-bottom: .6rem; margin-bottom: 1.5rem; }
.cat-block__head h2 { margin: 0; }
.cat-block__head span { color: var(--ink-soft); font-size: .93rem; }

.prod {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; padding: 1rem; display: flex; flex-direction: column; gap: .6rem;
}
.prod__media { aspect-ratio: 1/1; border-radius: 8px; background: var(--bg-soft) center/cover no-repeat; }
.prod__name { font-weight: 660; font-size: 1rem; }
.prod__pack { color: var(--ink-soft); font-size: .88rem; margin-top: -.35rem; }
.prod__add {
  margin-top: auto; border: 1.5px solid var(--brand); background: #fff; color: var(--brand-dark);
  border-radius: 999px; padding: .5rem 1rem; font-weight: 640; font-size: .9rem; cursor: pointer;
}
.prod__add:hover { background: var(--brand); color: #fff; }

.notice {
  border: 1px dashed var(--brand); background: rgba(31,122,61,.055);
  border-radius: var(--radius); padding: 1.2rem 1.35rem; color: var(--ink-soft);
}
.notice strong { color: var(--brand-dark); }

/* ---------- cart drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(12,24,16,.45); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(420px, 92vw);
  background: #fff; z-index: 100; display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .25s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-size: 1.15rem; }
.drawer__close { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.drawer__body { flex: 1; overflow-y: auto; padding: 1.25rem; }
.drawer__foot { border-top: 1px solid var(--line); padding: 1.25rem; }
.drawer__foot .btn { width: 100%; justify-content: center; }
.drawer__note { font-size: .84rem; color: var(--ink-soft); margin: .8rem 0 0; text-align: center; }

.line {
  display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.line__name { font-weight: 620; }
.line__meta { color: var(--ink-soft); font-size: .86rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { background: #fff; border: 0; width: 30px; height: 30px; cursor: pointer; font-size: 1rem; color: var(--ink); }
.qty button:hover { background: var(--bg-soft); }
.qty span { min-width: 30px; text-align: center; font-weight: 640; font-size: .92rem; }
.empty { text-align: center; color: var(--ink-soft); padding: 2.5rem 1rem; }

/* ---------- forms ---------- */
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 620; font-size: .93rem; margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .78rem .9rem; font: inherit; font-size: .98rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field textarea { min-height: 130px; resize: vertical; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }
.info-row { display: flex; gap: .85rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row strong { display: block; font-size: .93rem; }
.info-row span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-deep); color: rgba(255,255,255,.76); padding-block: 3.2rem 2rem; margin-top: 0; }
.site-footer a { color: rgba(255,255,255,.76); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 .8rem; letter-spacing: .02em; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .94rem; }
.footer-bottom {
  margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .87rem;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 20px 1rem;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .site-header__inner { position: relative; }
}
