/* ============================================================
   Hyppame.ee — shared stylesheet
   Pure CSS, no framework. Mobile-first.
   Style follows the original site: script wordmark + white nav
   overlaid on a hero photo, clean white content, playful accents.
   ============================================================ */

:root {
  --blue:      #1f9fd6;
  --blue-dark: #147bb0;
  --yellow:    #ffcb2e;
  --pink:      #ff5d8f;
  --green:     #4bbd76;
  --ink:       #2b3138;
  --muted:     #5c6b76;
  --bg:        #ffffff;
  --bg-soft:   #f4f9fc;
  --line:      #e3ecf2;
  --radius:    16px;
  --shadow:    0 6px 24px rgba(31, 159, 214, 0.12);
  --shadow-lg: 0 14px 40px rgba(31, 159, 214, 0.18);
  --wrap:      1120px;
  --font:      "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--bg); line-height: 1.65; font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: 1.3rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Hero banner header (nav overlaid on photo) ---------- */
.banner {
  position: relative;
  background: #1a1e24 center/cover no-repeat;
  background-image: url("../img/hero.jpg");
}
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,20,26,.62), rgba(18,20,26,.30) 42%, rgba(18,20,26,.55));
}
.banner__inner {
  position: relative; z-index: 2; text-align: center;
  padding: 22px 20px 28px; max-width: var(--wrap); margin: 0 auto;
}
.banner__logo { display: inline-block; }
.banner__logo img {
  height: clamp(84px, 12vw, 120px); width: auto; margin: 0 auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.45));
}
.banner--home { min-height: 62vh; display: flex; align-items: flex-start; }
.banner--home .banner__inner { width: 100%; }

/* Navigation */
.nav__toggle {
  display: none; margin: 14px auto 0; flex-direction: column; gap: 5px;
  background: rgba(255,255,255,.14); border: 0; cursor: pointer; padding: 10px 12px; border-radius: 10px;
}
.nav__toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mainnav {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px;
}
.mainnav a {
  color: #fff; text-transform: uppercase; letter-spacing: .03em;
  font-weight: 600; font-size: .92rem; text-decoration: none;
  padding: 9px 13px; border-radius: 9px; display: block;
  text-shadow: 0 1px 6px rgba(0,0,0,.4); transition: background .15s;
}
.mainnav a:hover { background: rgba(255,255,255,.20); }
.mainnav a[aria-current="page"] { background: rgba(255,255,255,.24); }
.mainnav .fb a { opacity: .95; }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .mainnav {
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    max-width: 340px; margin: 14px auto 0;
    background: rgba(20,22,28,.55); border-radius: 12px; padding: 8px;
  }
  .mainnav.is-open { display: flex; }
  .mainnav a { text-align: center; padding: 12px; }
}

/* Slim inner-page banner (less tall than home) */
.banner--inner .banner__inner { padding-bottom: 24px; }

/* ---------- Page intro / titles ---------- */
.section { padding: 52px 0; }
.section--soft { background: var(--bg-soft); }
.page-title { padding: 44px 0 8px; }
.page-title h1 { margin: 0; }
.page-title .subtitle { color: var(--muted); margin: 10px 0 0; font-size: 1.05rem; }

.prose { max-width: 900px; }
.prose p { margin: 0 0 16px; }
.prose h2 { margin: 32px 0 12px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { font-weight: 600; }
.lead { font-size: 1.12rem; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--pink); color: #fff; font-weight: 700;
  text-decoration: none; padding: 13px 26px; border-radius: 999px; border: none;
  cursor: pointer; font-size: 1rem; transition: transform .15s, box-shadow .15s, background .15s;
  box-shadow: 0 6px 16px rgba(255,93,143,.35);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255,93,143,.45); }
.btn--blue { background: var(--blue); box-shadow: 0 6px 16px rgba(31,159,214,.35); }
.btn--blue:hover { box-shadow: 0 10px 22px rgba(31,159,214,.45); }

/* ---------- Product cards ---------- */
.grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(min(290px,100%), 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); cursor: pointer; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card__media:hover img { transform: scale(1.05); }
.card__price {
  position: absolute; top: 12px; right: 12px; background: var(--yellow); color: var(--ink);
  font-weight: 800; padding: 6px 12px; border-radius: 999px; font-size: .95rem; box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.card__media--ph {
  cursor: default; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
  background: linear-gradient(135deg, var(--blue), var(--green)); color: #fff; text-align: center; padding: 20px;
}
.card__media--ph .emoji { font-size: 2.6rem; }
.card__media--ph span { font-weight: 700; font-size: .95rem; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { margin: 0; }
.card__body p { margin: 0; color: var(--muted); font-size: .98rem; }
.card__note { font-size: .85rem; font-weight: 700; color: var(--blue-dark); }
.card__specs { list-style: none; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.card__specs li { background: var(--bg-soft); color: var(--ink); font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.card__cta { margin-top: auto; padding-top: 8px; }
.card__cta a { color: var(--pink); font-weight: 700; text-decoration: none; font-size: .95rem; }
.card__cta a:hover { text-decoration: underline; }

/* ---------- Product gallery ---------- */
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery__main { width: 100%; }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery__thumb {
  padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  cursor: pointer; background: var(--bg-soft); width: 74px; height: 74px; flex: 0 0 auto;
  transition: border-color .15s, transform .15s;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumb:hover { transform: translateY(-2px); }
.gallery__thumb.is-active { border-color: var(--blue); }

/* ---------- Media + text split (single product pages) ---------- */
.split { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(300px,100%), 1fr)); align-items: start; }
.split__img { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-soft); cursor: zoom-in; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.split__img--contain img { object-fit: contain; }
.pricebox { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 800; padding: 8px 16px; border-radius: 999px; }

.crumbs { font-size: .9rem; color: var(--muted); margin: 0 0 4px; }
.crumbs a { color: var(--blue-dark); text-decoration: none; font-weight: 600; }
.split__img.card__media--ph { min-height: 240px; aspect-ratio: 4/3; }

/* price list (mängud) */
.pricelist { list-style: none; margin: 0; padding: 0; max-width: 640px; }
.pricelist li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pricelist li span:last-child { font-weight: 800; white-space: nowrap; color: var(--blue-dark); }

/* info notes */
.notes { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--yellow); border-radius: 12px; padding: 20px 22px; }
.notes--tips { border-left-color: var(--blue); }
.notes ul { margin: 0; padding-left: 20px; }
.notes li { margin: 6px 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 32px; grid-template-columns: 1.2fr 1fr; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.form .field { margin-bottom: 16px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: var(--bg-soft);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue); background: #fff; }
.form textarea { min-height: 120px; resize: vertical; }
.form .checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px,100%), 1fr)); gap: 6px 16px; }
.form .checks label { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; }
.form .checks input { width: auto; }
.form__picked { margin: 0 0 18px; padding: 10px 14px; background: var(--bg-soft); border-left: 4px solid var(--green); border-radius: 8px; font-weight: 700; color: var(--ink); }
.form__status { margin-top: 12px; font-weight: 600; }
.form__status.ok { color: var(--green); }
.form__status.err { color: var(--pink); }
.contact-card { background: var(--bg-soft); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.contact-card h3 { margin-top: 0; }
.contact-card p { margin: 8px 0; }
.contact-card a { color: var(--blue-dark); font-weight: 600; text-decoration: none; }
.contact-card .big { font-size: 1.3rem; font-weight: 800; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cdd8e0; padding: 44px 0 28px; margin-top: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(200px,100%), 1fr)); }
.footer-grid h4 { color: #fff; margin: 0 0 12px; font-size: 1.05rem; }
.footer-logo img { height: 70px; width: auto; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 6px 0; }
.footer-bottom { text-align: center; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; color: #9fb0bd; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(10,25,35,.9); padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; }

/* ---------- Utilities ---------- */
.stack > * + * { margin-top: 16px; }
.sr-only { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.mt-0 { margin-top: 0; }
