/* ==========================================================================
   components.css — nav, kartice, tabovi, forme, footer
   Kafić — Specialty kava (Kairos Digital demo)
   ========================================================================== */

/* --- Navigacija ------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem var(--gutter);
  color: #fff;
  transition: background var(--t-med), padding var(--t-med), box-shadow var(--t-med), color var(--t-med);
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-block: 0.9rem;
  box-shadow: 0 6px 24px rgba(26, 23, 20, 0.10);
  color: var(--dark);
}

/* Solid nav za podstranice s niskim/svijetlim herojem */
.nav--solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--dark);
  box-shadow: 0 6px 24px rgba(26, 23, 20, 0.06);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: inherit;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  margin-left: auto;
}

.nav__links a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  position: relative;
  padding-block: 4px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--peach);
  transition: width var(--t-med);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  width: 100%;
}

/* Lang switcher */
.lang {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.lang button {
  color: inherit;
  opacity: 0.55;
  transition: opacity var(--t-fast), color var(--t-fast);
  text-transform: uppercase;
  font-weight: 600;
}

.lang button:hover { opacity: 1; }

.lang button.is-active {
  opacity: 1;
  color: var(--gold);
  font-weight: 700;
}

.lang__sep { opacity: 0.35; }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 22px;
  justify-content: center;
  z-index: 120;
}

.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-med);
}

.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile slide-in overlay (s desna) */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(80vw, 360px);
  background: var(--white);
  color: var(--dark);
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.4rem;
  padding: 2rem clamp(1.5rem, 6vw, 3rem);
  transform: translateX(100%);
  transition: transform var(--t-med);
  box-shadow: -12px 0 40px rgba(26, 23, 20, 0.18);
}

.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-menu .lang {
  margin: 1rem 0 0;
  font-size: 1rem;
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 23, 20, 0.45);
  z-index: 105;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med), visibility var(--t-med);
}

.mobile-backdrop.is-open { opacity: 1; visibility: visible; }

/* --- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: background var(--t-med), color var(--t-med), border-color var(--t-med), transform var(--t-fast), box-shadow var(--t-med);
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn--brown {
  background: var(--brown);
  border-color: var(--brown);
  color: #fff;
}

.btn--brown:hover { background: var(--espresso); border-color: var(--espresso); }

.btn--outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

.btn--outline-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--espresso);
}

.btn--peach {
  background: var(--peach);
  border-color: var(--peach);
  color: var(--espresso);
}

.btn--peach:hover { background: var(--gold); border-color: var(--gold); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero--mid { min-height: 50vh; }
.hero--small { min-height: 45vh; }
.hero--xs { min-height: 35vh; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  padding: var(--nav-h) var(--gutter) 0;
}

.hero__sub {
  max-width: 46ch;
  margin: 1.4rem auto 2.2rem;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
}

.hero .btn-row { justify-content: center; }

/* --- Section headings ------------------------------------------------- */
.section__head {
  max-width: 60ch;
  margin: 0 auto clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
}

.section__head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-top: 0.6rem;
}

/* --- What we do (USP) ------------------------------------------------- */
.usps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.usp__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.2rem;
  color: var(--mint);
}

.usp h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.usp p {
  font-weight: 300;
  color: var(--gray);
  max-width: 30ch;
  margin: 0 auto;
}

/* --- Featured items --------------------------------------------------- */
.featured {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card__img {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

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

.card:hover .card__img img { transform: scale(1.06); }

.card__body {
  padding: 1.3rem 1.4rem 1.6rem;
}

.card__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}

.card__desc {
  font-weight: 300;
  font-size: 0.92rem;
  color: var(--gray);
  min-height: 2.8em;
}

.card__price {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold);
}

/* --- Vibe band -------------------------------------------------------- */
.vibe {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.vibe__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 23, 20, 0.45);
}

.vibe__text {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 2rem var(--gutter);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

/* --- Instagram feed --------------------------------------------------- */
.insta__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.insta__item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

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

.insta__item:hover img { transform: scale(1.08); }

.insta__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mint);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity var(--t-fast);
}

.insta__item:hover .insta__overlay { opacity: 0.4; }

.insta__handle {
  position: relative;
  z-index: 2;
}

/* --- Location --------------------------------------------------------- */
.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.location h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1.4rem; }

.info-row {
  display: flex;
  gap: 0.6rem;
  padding: 0.55rem 0;
  font-size: 0.98rem;
}

.info-row strong {
  font-weight: 700;
  color: var(--brown);
  min-width: 7.5rem;
  display: inline-block;
}

.map-embed {
  border: 0;
  width: 100%;
  height: 360px;
  border-radius: var(--radius);
  filter: saturate(0.92);
}

/* --- Menu tabs (meni.html) -------------------------------------------- */
.tabs {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(26, 23, 20, 0.06);
}

.tabs__inner {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter);
}

.tabs__inner::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  padding: 1.1rem 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--gray);
  border-bottom: 3px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.tab + .tab { margin-left: 1.6rem; }

.tab:hover { color: var(--brown); }

.tab.is-active {
  color: var(--brown);
  border-bottom-color: var(--brown);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeIn 0.35s ease both; }

.menu-list {
  display: flex;
  flex-direction: column;
}

.menu-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  column-gap: 1.2rem;
  row-gap: 0.2rem;
  padding: 1rem 1rem;
  border-radius: 12px;
  transition: background var(--t-fast);
}

.menu-item:hover { background: var(--light); }

.menu-item__thumb {
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.menu-item__name {
  grid-column: 2;
  align-self: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.menu-item__price {
  grid-column: 3;
  align-self: center;
  justify-self: end;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold);
  white-space: nowrap;
}

.menu-item__desc {
  grid-column: 2 / -1;
  font-weight: 300;
  font-size: 0.92rem;
  color: var(--gray);
}

.menu-item__allergens {
  grid-column: 2 / -1;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint);
  margin-top: 0.15rem;
}

/* --- About: two column ------------------------------------------------ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.two-col img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.two-col h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 1.2rem;
}

.pull-quote {
  margin-top: 1.6rem;
  padding-left: 1.4rem;
  border-left: 3px solid var(--peach);
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
}

/* --- Origin cards ----------------------------------------------------- */
.origins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.origin {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.origin__flag { font-size: 2.4rem; }

.origin__region {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  margin: 0.6rem 0 0.8rem;
}

.origin__profile { font-weight: 300; color: var(--gray); }

.origin__roast {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  background: var(--light);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brown);
}

/* --- Team ------------------------------------------------------------- */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
}

.member {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member__info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.4rem 1.2rem 1.1rem;
  background: linear-gradient(to top, rgba(26, 23, 20, 0.85), transparent);
  color: #fff;
  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--t-med), opacity var(--t-med);
}

.member:hover .member__info { transform: translateY(0); opacity: 1; }

.member__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.member__role {
  font-size: 0.82rem;
  color: var(--peach);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Contact form ----------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brown);
  font-weight: 700;
}

.field input,
.field textarea {
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(155, 150, 144, 0.4);
  background: var(--off-white);
  color: var(--dark);
  border-radius: 12px;
  transition: border-color var(--t-fast);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--mint);
}

.field textarea { resize: vertical; min-height: 130px; }

.form-note {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--gray);
}

.info-panel {
  background: var(--off-white);
  padding: 2rem;
  border-radius: var(--radius);
}

.info-panel h3 { font-size: 1.5rem; margin-bottom: 1.2rem; }

/* --- Footer ----------------------------------------------------------- */
.footer {
  background: var(--white);
  color: var(--dark);
  border-top: 1px solid var(--light);
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer__tag {
  font-weight: 300;
  color: var(--brown);
  margin-bottom: 1.4rem;
}

.footer__contact p { font-size: 0.92rem; color: var(--gray); }

.footer__col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gray);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer__nav { display: flex; flex-direction: column; gap: 0.7rem; }

.footer__nav a {
  font-size: 0.9rem;
  transition: color var(--t-fast);
}

.footer__nav a:hover { color: var(--gold); }

.footer__social {
  display: flex;
  gap: 0.8rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--light);
  color: var(--brown);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.footer__social a:hover { background: var(--mint); color: #fff; transform: translateY(-2px); }

.footer__social svg { width: 18px; height: 18px; }

.footer__strip {
  border-top: 1px solid var(--light);
  padding: 1.4rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .featured { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav .lang { display: none; }
  .nav__burger { display: flex; }

  .usps,
  .origins,
  .location,
  .two-col,
  .contact { grid-template-columns: 1fr; }

  /* Featured: horizontalni scroll na mobile */
  .featured {
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .featured::-webkit-scrollbar { display: none; }
  .featured .card { scroll-snap-align: start; }

  .insta__grid { gap: 0.4rem; }

  .footer__top { grid-template-columns: 1fr; }
}
