/* ==========================================================================
   base.css — varijable, reset, tipografija
   Kafić — Specialty kava (Kairos Digital demo)
   ========================================================================== */

:root {
  /* Boje */
  --white: #FFFFFF;
  --off-white: #F9F7F4;
  --light: #F2EFE9;
  --dark: #1A1714;
  --brown: #4A3728;
  --espresso: #2C1810;
  --mint: #7FB5A0;
  --peach: #E8A87C;
  --gold: #C9953A;
  --gray: #9B9690;
  --overlay: rgba(26, 23, 20, 0.50);

  /* Tipografija */
  --font-display: 'Josefin Sans', 'Segoe UI', sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Mjere */
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --nav-h: 80px;
  --radius: 16px;

  /* Sjene */
  --shadow-sm: 0 6px 18px rgba(26, 23, 20, 0.08);
  --shadow-md: 0 16px 40px rgba(26, 23, 20, 0.14);

  /* Tranzicije */
  --t-fast: 0.2s ease;
  --t-med: 0.3s ease;
  --t-slow: 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* --- Tipografija ------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.05em;
}

.h1-hero {
  font-size: 80px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--gold);
}

p {
  font-weight: 400;
}

/* --- Layout helpers ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.section--off { background: var(--off-white); }
.section--light { background: var(--light); }
.section--white { background: var(--white); }

.text-center { text-align: center; }

.lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.85;
  font-weight: 300;
}

.muted { color: var(--gray); }

/* --- Responsive tipografija ------------------------------------------- */
@media (max-width: 1024px) {
  .h1-hero { font-size: 52px; }
}

@media (max-width: 768px) {
  .h1-hero { font-size: 36px; }
  body { line-height: 1.65; }
}

/* --- Accessibility ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
