/* ═══════════════════════════════════════
   QUANVITA – main.css
   Shared design system · Mobile-First
   No external frameworks
   ═══════════════════════════════════════ */


/* ══════════════════════════════════════
   01 TOKENS (CSS Variables)
   ══════════════════════════════════════ */

:root {
  /* Backgrounds */
  --bg:      #060d18;
  --card:    #0f1b2d;

  /* Text */
  --text:    #e8edf5;
  --muted:   #a8b3c7;

  /* Accent */
  --accent:  #9fb4ff;

  /* Borders & Lines */
  --line:    rgba(255,255,255,.07);
  --border:  rgba(255,255,255,.10);

  /* Effects */
  --shadow:  0 4px 20px rgba(0,0,0,.4);

  /* Fonts */
  --serif:   Georgia, "Times New Roman", serif;
}


/* ══════════════════════════════════════
   02 BASE (html, body, typography, links)
   ══════════════════════════════════════ */

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Headings */
h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

/* Body text */
p {
  margin-bottom: 14px;
}
p:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s;
}
a:hover,
a:focus {
  color: #fff;
}


/* ══════════════════════════════════════
   03 LAYOUT (container, sections, dividers)
   ══════════════════════════════════════ */

/* Container – mobile default: 720px, 20px padding */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* Section labels – shared across pages */
.section-label,
.section-title {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 20px;
}

/* Horizontal divider */
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 56px 0;
}


/* ══════════════════════════════════════
   04 COMPONENTS
   ══════════════════════════════════════ */

/* ── 04a Buttons ── */

/* Primary outline button – min 44px touch target */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 26px;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover,
.btn:focus {
  background: var(--accent);
  color: #fff;
  outline: none;
}

/* Back link – subtle nav button, min 44px touch target */
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: border-color .2s, color .2s, background .2s;
  margin-bottom: 40px;
}
.back-link:hover,
.back-link:focus {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(159,180,255,.05);
  outline: none;
}
.back-link span {
  margin-right: 8px;
}

/* ── 04b Hero ── */

/* Hero wrapper */
.hero {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
}

/* Hero inner – overlay variant (e.g. Impressum office image) */
.hero-inner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}
.hero-inner picture {
  display: block;
  line-height: 0;
}
.hero-inner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
}
/* Dark gradient overlay */
.hero-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(6,13,24,.18) 0%,
    rgba(6,13,24,.55) 70%,
    rgba(6,13,24,.88) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Hero text block */
.hero-text {
  margin-bottom: 24px;
}
.hero-text h1 {
  margin-bottom: 16px;
}
.hero-text p {
  color: var(--muted);
  font-size: 1.125rem;
}

/* Hero image – portrait / product style
   Mobile:  object-fit: contain, padding, card background (full image visible)
   Desktop: switches to cover + crop via breakpoint below */
.hero-image {
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 420px;
  padding: 20px;
}
.hero-image picture {
  display: block;
  line-height: 0;
  width: 100%;
}
.hero-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

/* ── 04c Quality List ── */

.quality-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.quality-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  opacity: .88;
}
.quality-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .6;
}

/* ── 04d Back to Top ── */

.btt {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, border-color .2s, background .2s;
  z-index: 100;
  -webkit-tap-highlight-color: transparent;
}
.btt.visible {
  opacity: 1;
  visibility: visible;
}
.btt:hover,
.btt:focus {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
  outline: none;
}

/* ── 04e Footer ── */

footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .08em;
}


/* ══════════════════════════════════════
   05 UTILITIES
   ══════════════════════════════════════ */

/* Screen-reader only (accessible hide) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ══════════════════════════════════════
   06 BREAKPOINTS – Desktop extensions only
   ══════════════════════════════════════ */

/* ── ≥ 768px (Tablet / Desktop) ── */
@media (min-width: 768px) {

  /* Layout: wider container */
  .container {
    max-width: 900px;
    padding: 60px 40px;
  }

  /* Spacing: wider dividers */
  .divider {
    margin: 72px 0;
  }

  /* Hero image: switch from contain → cover + crop */
  .hero-image {
    max-height: 520px;
    padding: 0;
    background: transparent;
  }
  .hero-image img {
    object-fit: cover;
    object-position: center 12%;
    max-height: 520px;
    border-radius: 16px;
  }
}
