/* ============================================================
   TOTELY — shared design system
   Used by: index.html, order.html, regulamin.html,
            polityka-prywatnosci.html, polityka-zwrotow.html
   Header, footer, top-bar, typography — all live here.
   ============================================================ */

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

:root {
  --rose: #D4838F;
  --rose-soft: #D4919B;
  --burgundy: #5C1A2A;
  --burgundy-dark: #4A1522;
  --sage: #8FA28E;
  --sage-deep: #7A8E79;
  --coral: #FF5C34;
  --cream: #F5F0EA;
  --cream-dark: #EDE7DE;
  --warm: #E8E2D8;
  --off-white: #FAF8F4;
  --white: #FDFCFA;
  --pure: #FFFFFF;
  --black: #1A1A1A;
  --charcoal: #2D2D2D;
  --dark: #3A3A3A;
  --mid: #8A8A8A;
  --light: #B5B5B5;
  --border: rgba(92, 26, 42, 0.10);

  /* Brand travel colours (product) */
  --c-amalfi: #A60121;
  --c-prague: #2A2A2A;
  --c-santorini: #7891B0;
  --c-provence: #58567B;
  --c-tiffany: #8BA999;
  --c-tuscan: #8E2F51;
  --c-desert: #938387;
  --c-medit: #9A9C88;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; }

/* ===== LOGO ===== */
.logo-mark {
  display: inline-flex;
  align-items: baseline;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}
.logo-mark .tote { font-style: normal; letter-spacing: -0.01em; }
.logo-mark .ly {
  font-style: italic;
  margin-left: 0.06em;
  letter-spacing: 0.01em;
}

/* ===== INLINE LOGO =====
   Use wherever the word "totely" appears in running text, so the brand
   always reads with Playfair + italic "ly" — same visual language as
   the header/footer mark, scaled to the surrounding text.
   Usage: <span class="inline-logo">tote<i>ly</i></span> */
.inline-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.005em;
  /* color inherited — so the logo can sit inside headings, paragraphs,
     buttons, etc. without looking out of place. */
}
.inline-logo i,
.inline-logo em {
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-left: 0.04em;
}

/* ===== TOP BAR (uniform across all pages) ===== */
.top-bar {
  background: var(--burgundy);
  color: var(--rose-soft);
  text-align: center;
  padding: 10px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 0;
}
/* Each item wraps with its own preceding dot so that dot+text
   stay together when the line wraps on mobile. */
.top-bar .tb-item { white-space: nowrap; }
.top-bar .tb-item:not(:first-child)::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--coral);
  border-radius: 50%;
  margin: 0 12px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Standalone accent dot (e.g. footer copy line) */
.dot-accent {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--coral);
  border-radius: 50%;
  margin: 0 2px;
  vertical-align: middle;
  opacity: 0.7;
}

/* ===== HEADER (sticky, uniform) ===== */
header {
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  background: rgba(245, 240, 234, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  min-height: 108px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-left a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mid);
  font-weight: 400;
  transition: color 0.3s;
}
.nav-left a:hover { color: var(--burgundy); }

.header-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.header-logo,
.header-logo * {
  /* Explicitly strip underline from the anchor AND every child span,
     so .logo-sub ("your smart bag holder") never appears underlined
     on any page, including legal pages. */
  text-decoration: none !important;
}
.header-logo .logo-mark {
  font-size: 48px;
  color: var(--burgundy);
}
.header-logo .logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 6px;
  font-weight: 300;
}

.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-social { display: flex; gap: 14px; align-items: center; }
.nav-social a {
  color: var(--light); display: flex;
  transition: color 0.3s;
}
.nav-social a:hover { color: var(--burgundy); }
.nav-social svg { width: 17px; height: 17px; }

.nav-cta {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pure);
  font-weight: 500;
  background: var(--burgundy);
  padding: 13px 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-cta:hover {
  background: var(--rose);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(92, 26, 42, 0.2);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--burgundy);
  color: var(--pure);
  border: none;
  padding: 18px 56px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  margin-top: 8px;
}
.btn-primary:hover {
  background: var(--burgundy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(92, 26, 42, 0.2);
}
.btn-primary:active { transform: translateY(0); }

.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--burgundy);
  border: none;
  padding: 18px 56px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  align-self: flex-start;
}
.btn-light:hover {
  background: var(--rose);
  color: var(--pure);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(92, 26, 42, 0.15);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--burgundy);
  border: 1px solid var(--burgundy);
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.btn-outline:hover {
  background: var(--burgundy);
  color: var(--pure);
}

/* ===== FOOTER (uniform) ===== */
footer {
  padding: 64px 48px 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 40px;
  border-top: 1px solid rgba(0,0,0,0.05);
  background: var(--cream);
}
.ft-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ft-col:first-child { align-items: flex-start; }
.ft-col:last-child { align-items: flex-end; }

/* Footer heading: uniform 500 weight + disabled ligatures.
   Previously the combination of small Inter 400 + large letter-spacing
   created a subpixel rendering illusion that made "IN", "DO", "SP"
   appear bolder than the rest of the word. Going to a true medium
   weight across the whole word makes the intent explicit and visually
   uniform. Ligature features disabled as a belt-and-braces fix. */
.ft-heading {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  font-weight: 500;
  font-feature-settings: "liga" 0, "clig" 0, "calt" 0;
  -webkit-font-feature-settings: "liga" 0, "clig" 0, "calt" 0;
  margin-bottom: 4px;
}
.ft-col a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--mid);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s;
}
.ft-col a:hover { color: var(--burgundy); }

.ft-center { text-align: center; align-items: center; }
.ft-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  margin-bottom: 8px;
}
.ft-logo .logo-mark {
  font-size: 30px;        /* was 36 — reduced ~15% */
  color: var(--burgundy);
}
.ft-logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 6px;          /* was 7 — reduced ~15% */
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 4px;
  font-weight: 300;
}
.ft-social { display: flex; gap: 18px; justify-content: center; margin-bottom: 12px; }
.ft-social a { color: var(--light); display: flex; transition: color 0.3s; }
.ft-social a:hover { color: var(--burgundy); }
.ft-social svg { width: 16px; height: 16px; }
.ft-copy {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--light);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  text-transform: uppercase;
}

/* ===== STICKY MOBILE CTA (hidden by default) ===== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--burgundy);
  padding: 12px 20px;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta-info { display: flex; flex-direction: column; gap: 2px; }
.sticky-cta-price {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--pure);
}
.sticky-cta-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.sticky-cta-btn {
  background: var(--pure);
  color: var(--burgundy);
  padding: 12px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s;
  text-decoration: none;
}
.sticky-cta-btn:active { transform: scale(0.96); }

/* ===== LEGAL / CONTENT PAGES ===== */
.content-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 72px 32px 96px;
}
.content-page .page-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}
.content-page .page-tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--coral) 0%, var(--rose) 100%);
}
.content-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 8px;
}
.content-page .page-sub {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-style: italic;
  color: var(--rose);
  margin-bottom: 48px;
}
.content-page h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--black);
  margin: 40px 0 14px;
  line-height: 1.3;
}
.content-page h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--charcoal);
  margin: 28px 0 10px;
}
.content-page p, .content-page li {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--dark);
  font-weight: 300;
  margin-bottom: 12px;
}
.content-page ul, .content-page ol {
  padding-left: 22px;
  margin-bottom: 14px;
}
.content-page li { margin-bottom: 6px; }
.content-page a {
  color: var(--burgundy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.content-page a:hover { color: var(--rose); }
.content-page strong { font-weight: 500; color: var(--black); }
.content-page .updated {
  display: block;
  font-size: 12px;
  color: var(--light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* Info card for contact/address blocks on legal pages */
.content-page .info-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 24px 0;
}
.content-page .info-card p { margin-bottom: 4px; }
.content-page .info-card p:last-child { margin-bottom: 0; }

/* Placeholder tag for unfilled data */
.placeholder-tag {
  display: inline-block;
  background: rgba(255, 92, 52, 0.08);
  color: var(--coral);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  border: 1px dashed var(--coral);
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .top-bar {
    padding: 10px 16px;
    font-size: 8px;
    letter-spacing: 0.12em;
  }
  .top-bar .tb-item:not(:first-child)::before {
    margin: 0 8px;
  }

  header {
    padding: 20px 20px;
    min-height: 64px;
    /* Keep flex — nav-left is hidden, nav-right is pushed right,
       and .header-logo stays absolutely centered (see below). */
    justify-content: flex-end;
  }
  .nav-left, .nav-right .nav-social { display: none; }
  /* Logo must remain centered on mobile. Do NOT switch to position:static,
     which would drop it into the flex flow on the left. */
  .header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .header-logo .logo-mark { font-size: 36px; }  /* was 30 — bumped up to the size the footer used to have */
  .header-logo .logo-sub  { font-size: 8px; letter-spacing: 0.26em; margin-top: 3px; } /* was 7 */

  /* Mobile footer logo must stay smaller than mobile header now.
     Previously it inherited desktop 36/7, which made it look bigger
     than a 30px mobile header (see screenshot). */
  .ft-logo .logo-mark { font-size: 26px; }  /* scaled down further for mobile */
  .ft-logo-sub        { font-size: 5px; letter-spacing: 0.26em; }

  .nav-cta {
    padding: 10px 18px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 20px 88px; /* extra bottom padding for sticky cta */
    gap: 32px;
  }
  .ft-col:first-child, .ft-col:last-child { align-items: center; }

  .content-page {
    padding: 48px 20px 96px;
  }
  .content-page h1 { font-size: 30px; }
  .content-page h2 { font-size: 19px; }
  .content-page h3 { font-size: 16px; }
  .content-page p, .content-page li { font-size: 14px; }

  .sticky-cta { display: flex; }
}
