/* ==========================================================================
   Caffe Bar More – style.css
   Mobile-first, bez vanjskih biblioteka. Sve vlastiti CSS.
   ========================================================================== */

:root {
  /* Paleta – more, pijesak, sunce */
  --sea: #0e7490;          /* glavna accent boja – duboko more */
  --sea-dark: #0a5568;
  --sea-deep: #083344;
  --wave: #35b6d4;
  --coral: #f2704b;        /* topla naglasna boja */
  --sand: #f8f4ec;         /* pozadina – pijesak */
  --sand-deep: #efe7d8;
  --ink: #1c2b33;          /* tekst */
  --ink-soft: #51636d;
  --white: #ffffff;
  --line: rgba(28, 43, 51, 0.12);

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(8, 51, 68, 0.08);
  --shadow-md: 0 12px 32px rgba(8, 51, 68, 0.16);
  --shadow-lg: 0 24px 60px rgba(8, 51, 68, 0.22);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 72px;
  --container: 1140px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  text-align: center;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-lg { padding: 16px 32px; font-size: 1.02rem; }

.btn-accent {
  background: var(--sea);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover { background: var(--sea-dark); box-shadow: var(--shadow-md); }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
  background: transparent;
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: var(--white); color: var(--sea-deep); }

.btn-dark {
  background: var(--sea-deep);
  color: var(--white);
}
.btn-dark:hover { background: var(--sea); box-shadow: var(--shadow-md); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background: rgba(248, 244, 236, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--white);
  transition: color 0.3s ease;
}

.site-header.scrolled .brand { color: var(--sea-deep); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--wave), var(--sea));
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.brand-text { font-size: 1.05rem; font-weight: 500; }
.brand-text strong { font-weight: 800; }

.main-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px 20px;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
}

.main-nav.open { display: flex; }

.main-nav a {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover { background: var(--sand-deep); color: var(--sea); }

.main-nav a.active { color: var(--sea); background: rgba(14, 116, 144, 0.1); }

.btn-phone { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}

.site-header.scrolled .nav-toggle { background: var(--sand-deep); }

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.site-header.scrolled .nav-toggle span { background: var(--ink); }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, var(--sea-deep) 0%, var(--sea) 55%, var(--sea-dark) 100%);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 51, 68, 0.45) 0%, rgba(8, 51, 68, 0.25) 45%, rgba(8, 51, 68, 0.78) 100%),
    linear-gradient(90deg, rgba(8, 51, 68, 0.55) 0%, rgba(8, 51, 68, 0.1) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 64px;
}

.hero-eyebrow {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.hero h1 .accent { color: var(--wave); }

.hero-sub {
  max-width: 560px;
  font-size: clamp(1.02rem, 2.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-hint-line {
  width: 3px;
  height: 9px;
  border-radius: 3px;
  background: var(--white);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Sekcije ---------- */
.section { padding: 72px 0; }

.section-alt { background: var(--sand-deep); }

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 12px;
}

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p:not(.section-tag) { color: var(--ink-soft); margin-top: 12px; font-size: 1.05rem; }

.section-head.light { color: var(--white); }
.section-head.light .section-tag { color: var(--wave); }
.section-head.light p:not(.section-tag) { color: rgba(255, 255, 255, 0.85); }

/* ---------- O nama ---------- */
.about-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--sea-deep), var(--sea));
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.about-media:hover .about-img { transform: scale(1.04); }

.about-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--coral);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.3;
  box-shadow: var(--shadow-md);
}

.about-text h2 { margin-bottom: 18px; }
.about-text p { color: var(--ink-soft); margin-bottom: 14px; }

.about-features {
  margin: 20px 0 28px;
  display: grid;
  gap: 12px;
}

.about-features li {
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

.about-features strong { color: var(--ink); display: block; margin-bottom: 2px; }

/* ---------- Ponuda – kartice ---------- */
.cards-grid {
  display: grid;
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(53, 182, 212, 0.18), rgba(14, 116, 144, 0.18));
  margin-bottom: 18px;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }

/* Mini jelovnik */
.menu-strip {
  margin-top: 40px;
  background: var(--sea-deep);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-md);
  background-image: radial-gradient(circle at 85% 15%, rgba(53, 182, 212, 0.22), transparent 45%);
}

.menu-strip h3 { margin-bottom: 20px; font-size: 1.35rem; }

.menu-items { display: grid; gap: 14px; }

.menu-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.97rem;
}

.menu-item > span:last-child {
  font-weight: 700;
  color: var(--wave);
  white-space: nowrap;
}

.menu-dots {
  flex: 1;
  border-bottom: 2px dotted rgba(255, 255, 255, 0.35);
  transform: translateY(-4px);
}

.menu-note { margin-top: 18px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- Galerija ---------- */
.gallery-grid {
  display: grid;
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(160deg, var(--sea-deep), var(--sea));
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 18px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(8, 51, 68, 0.85));
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.gallery-item:hover figcaption,
.gallery-item:focus-visible figcaption { transform: translateY(0); }

/* ---------- Dojmovi / Zašto mi ---------- */
.section-sea {
  background: linear-gradient(165deg, var(--sea-deep) 0%, var(--sea-dark) 60%, var(--sea) 100%);
  color: var(--white);
}

.testimonials {
  display: grid;
  gap: 18px;
}

.testimonial {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.testimonial:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.13); }

.testimonial p { font-size: 1rem; line-height: 1.6; }
.testimonial footer { margin-top: 16px; font-weight: 700; color: var(--wave); font-size: 0.9rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.stat {
  text-align: center;
  padding: 22px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.stat strong {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 900;
  color: var(--wave);
  line-height: 1.1;
}

.stat span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  gap: 44px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 14px; }
.contact-info > p { color: var(--ink-soft); margin-bottom: 28px; }

.contact-list { display: grid; gap: 18px; }

.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  flex: 0 0 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.contact-list strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 2px; }
.contact-list a, .contact-list span { font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--sea); }

/* Forma */
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-md);
}

.contact-form h3 { margin-bottom: 6px; font-size: 1.4rem; }
.form-intro { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 22px; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--sand);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sea);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(14, 116, 144, 0.15);
}

.form-group input.invalid,
.form-group textarea.invalid { border-color: var(--coral); }

.error {
  display: none;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--coral);
  font-weight: 600;
}

.form-group.invalid .error { display: block; }

.form-success {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: #166534;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sea-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 0;
}

.footer-inner {
  display: grid;
  gap: 36px;
  padding-bottom: 40px;
}

.footer-brand .brand-text { color: var(--white); }

.footer-brand p {
  margin-top: 14px;
  max-width: 320px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links strong, .footer-contact strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wave);
  margin-bottom: 6px;
}

.footer-links a, .footer-contact a, .footer-contact span { font-size: 0.95rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--wave); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Animacije pojavljivanja ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img, .gallery-item img, .about-img { transition: none; }
  .scroll-hint-line { animation: none; }
}

/* ---------- Tablet (≥640px) ---------- */
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-wide { grid-column: span 2; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .testimonials { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- Desktop (≥960px) ---------- */
@media (min-width: 960px) {
  :root { --header-h: 78px; }
  .section { padding: 104px 0; }

  .nav-toggle { display: none; }

  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 4px;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .main-nav a {
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
  }

  .main-nav a:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }

  .site-header.scrolled .main-nav a { color: var(--ink); }
  .site-header.scrolled .main-nav a:hover { background: var(--sand-deep); color: var(--sea); }
  .site-header.scrolled .main-nav a.active { background: rgba(14, 116, 144, 0.12); color: var(--sea); }

  .btn-phone { display: inline-flex; }

  .about-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .cards-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .menu-items { grid-template-columns: repeat(2, 1fr); gap: 16px 44px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-wide { grid-column: span 1; }
  .gallery-grid .gallery-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .contact-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; }
  .contact-form { padding: 40px 36px; }
}
