/* ==========================================================================
   base.css — varijable, reset, tipografija
   Restoran — Fine Dining (Kairos Digital demo)
   ========================================================================== */

:root {
  /* Boje */
  --cream: #F7F3EC;
  --dark: #1C1410;
  --warm: #2A1E14;
  --burgundy: #7B2D3E;
  --gold: #C8963C;
  --stone: #8B7355;
  --light: #FBF9F5;
  --overlay: rgba(28, 20, 16, 0.65);

  /* Tipografija */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Mjere */
  --maxw: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --nav-h: 84px;

  /* 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: 300;
  color: var(--dark);
  background: var(--light);
  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.1;
  letter-spacing: -0.01em;
}

.h1-hero {
  font-size: 96px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.02;
}

.italic {
  font-style: italic;
}

.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: 300;
}

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

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

.section--dark {
  background: var(--warm);
  color: var(--cream);
}

.section--cream {
  background: var(--cream);
  color: var(--dark);
}

.section--light {
  background: var(--light);
  color: var(--dark);
}

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

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

.muted {
  opacity: 0.75;
}

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

@media (max-width: 768px) {
  .h1-hero { font-size: 44px; }
  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(--gold);
  outline-offset: 3px;
}

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