/* Huckleberry POS — site styles
   Colors live here in :root; change them once and every page follows. */
:root {
  --purple: #5b3aa6;        /* buttons and highlights */
  --purple-dark: #3f2465;   /* headings and hover */
  --purple-blue: #403597;
  --purple-soft: #efeaf8;   /* icon backgrounds */
  --ink: #1f1f24;
  --text: #3d3d3d;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --bg-soft: #f6f5f3;
  --line: #e6e3df;
  --night: #1d1530;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 15, 30, .08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  color: #fff;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: 84px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.3rem; letter-spacing: .2px;
  margin-right: auto;
}
.brand img {
  width: 46px; height: auto;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, .55));
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #fff; text-decoration: none;
  padding: 8px 14px; border-radius: 999px;
  font-weight: 500; font-size: .98rem;
}
.nav a:hover { background: rgba(255, 255, 255, .14); }
.nav a[aria-current="page"] { background: var(--purple); }
.lang {
  color: #fff; text-decoration: none; font-size: .9rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
  padding: 6px 14px;
}
.lang:hover { background: rgba(255, 255, 255, .14); }
.menu-btn {
  display: none;
  background: none; border: 1px solid rgba(255, 255, 255, .5); border-radius: 10px;
  color: #fff; padding: 8px 10px; cursor: pointer;
}
.menu-btn svg { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--night);
  color: #fff;
  padding: 150px 0 90px;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}
/* the photo */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--hero-img) center / cover no-repeat;
  transform-origin: 50% 50%;
}
/* a light tint so the white text stays readable */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40, 23, 63, .25) 0%, rgba(40, 23, 63, .45) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
/* Home page: slow zoom on the photo, like the old site (15 seconds, then it stays) */
.hero-home::before { animation: hero-zoom 15s linear forwards; }
.hero-home::after { background: linear-gradient(180deg, rgba(40, 23, 63, .05) 0%, rgba(40, 23, 63, .25) 100%); }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .hero-home::before { animation: none; } }
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  max-width: 820px; margin: 0 auto .4em;
}
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto; opacity: .92; }
.hero .btn { margin-top: 28px; }
.hero-home     { --hero-img: url("../images/hero-restaurant.jpg"); padding: 170px 0 120px; }
.hero-supplies { --hero-img: url("../images/hero-consumables.jpg"); }
.hero-support  { --hero-img: url("../images/hero-support.jpg"); }
.hero-contact  { --hero-img: url("../images/hero-restaurant.jpg"); }

.btn {
  display: inline-block;
  background: var(--purple); color: #fff; text-shadow: none;
  box-shadow: 0 6px 18px rgba(30, 15, 60, .35);
  text-decoration: none; font-weight: 600;
  padding: 13px 26px; border-radius: 999px;
  transition: background .15s;
}
.btn:hover { background: var(--purple-dark); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.soft { background: var(--bg-soft); }
.section-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 44px; }

/* Product rows on the home page */
.product {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.product + .product { margin-top: 90px; }
.product:nth-child(even) .product-img { order: 2; }
.product-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.product-logo { height: 44px; width: auto; margin-bottom: 18px; }
.product-logo.tall { height: 72px; }
.product h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--purple-dark); }
.product p { margin: 0 0 1em; }

/* Cards (consumables, support) */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--purple-soft); color: var(--purple);
  margin-bottom: 18px;
}
.card h2 { font-size: 1.3rem; margin-bottom: .2em; }
.card .sub { color: var(--muted); font-weight: 600; font-size: .95rem; margin: 0 0 14px; }
.card ul { margin: 0; padding-left: 1.1em; }
.card li { margin: 6px 0; }
.card li::marker { color: var(--purple); }
.tag {
  display: inline-block; margin-top: 16px;
  background: var(--bg-soft); border-radius: 999px;
  padding: 4px 12px; font-size: .88rem; font-weight: 600; color: var(--ink);
}

/* Orange call-to-action band */
.band {
  background: linear-gradient(90deg, var(--purple-dark) 10%, var(--purple-blue) 60%); color: #fff; text-align: center;
  padding: 56px 0;
}
.band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.band p { margin: 0 auto; max-width: 680px; font-size: 1.08rem; }
.band .btn { background: #fff; color: var(--purple-dark); margin-top: 22px; }
.band .btn:hover { background: var(--bg-soft); }

/* Contact page */
.contact-cards { max-width: 900px; margin: 0 auto; }
.contact-cards .card { text-align: center; }
.contact-cards .icon { margin: 0 auto 16px; }
.contact-cards a { font-weight: 600; font-size: 1.1rem; text-decoration: none; word-break: break-word; }
.contact-cards p { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #cfcbd6; padding: 48px 0 32px; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #b9a4f0; }
.foot-contact { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.copy { width: 100%; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; margin-top: 8px; color: #8f8a99; }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute; top: 76px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(22, 19, 28, .97); border-radius: var(--radius);
    padding: 10px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; border-radius: 10px; }
  .site-header .wrap { gap: 10px; }
  .brand { font-size: 1.1rem; }
  .brand img { width: 38px; }

  section { padding: 56px 0; }
  .hero { padding: 130px 0 70px; }
  .hero-home { padding: 140px 0 90px; }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .product:nth-child(even) .product-img { order: 0; }
  .product + .product { margin-top: 64px; }
  .wrap { padding: 0 16px; }
}
