/* ===================================
   CUSTOM FONTS
   =================================== */
@font-face {
  font-family: 'Adumu';
  src: url('./Adumu.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   =================================== */
:root {
  /* Colors */
  --color-primary: #2d3748;
  --color-primary-dark: #5a6fd8;
  --color-secondary: #764ba2;
  --color-success: #457454;
  --color-success-dark: #549067;
  --color-text: #2d3748;
  --color-text-light: #4a5568;
  --color-white: #ffffffeb;
  --color-black: #000000;
  --color-red: #cf4040;
  --color-green: #457454;

  /* Spacing Scale */
  --space-xs: 0.25rem;
    /* 4px */
    --space-sm: 0.5rem;
    /* 8px */
    --space-md: 1rem;
    /* 16px */
    --space-lg: 1.5rem;
    /* 24px */
    --space-xl: 2rem;
    /* 32px */
    --space-2xl: 3rem;
    /* 48px */
    --space-3xl: 4rem;
    /* 64px */
    --space-4xl: 5rem;
    /* 80px */
  /* Typography Scale */
  --font-size-xs: 1rem;
    /* 16px */
    --font-size-sm: 1.125rem;
    /* 18px */
    --font-size-base: 1.25rem;
    /* 20px */
    --font-size-lg: 1.375rem;
    /* 22px */
    --font-size-xl: 1.5rem;
    /* 24px */
    --font-size-2xl: 1.75rem;
    /* 28px */
    --font-size-3xl: 2.125rem;
    /* 34px */
    --font-size-4xl: 2.5rem;
    /* 40px */
    --font-size-5xl: 3.25rem;
    /* 52px */
  /* Responsive Typography */
  --font-size-hero: clamp(2rem, 5vw, 3rem);
  --font-size-title: clamp(1.5rem, 4vw, 2.25rem);
  --font-size-subtitle: clamp(1.125rem, 2.5vw, 1.5rem);

  /* Layout */
  --container-max-width: 1200px;
  --container-padding: clamp(1rem, 5vw, 2rem);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Border Radius */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-base: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;

  /* Breakpoints (for reference) */
  /* xs: 320px, sm: 480px, md: 768px, lg: 1024px, xl: 1200px, xxl: 1440px */
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  line-height: 1.6;
  color: var(--color-text);
  overflow-x: hidden;
}

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

/* ===================================
   ANIMATIONS & KEYFRAMES
   =================================== */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%) rotate(-40deg);
    opacity: 0;
  }

  to {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%) rotate(40deg);
    opacity: 0;
  }

  to {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
}

@keyframes fadeInScale {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes logoEntrance {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* ===================================
   HERO SECTION
   =================================== */
.container {
  position: relative;
  width: 100vw;
  min-height: 40vh;
  background: url('images/webp/pozadi.webp') no-repeat center center;
  background-size: cover;
  background-position-y: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.center-images {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  gap: 0;
  overflow: visible;
  margin-bottom: 50px;
}

.hamburger-second-image,
.kebab-image,
.hamburger-small-image,
.hamburger-image,
.hamburger-first-image,
.drink-image,
.tea-image {
  position: relative;
  opacity: 0;
width: 35%;
  height: auto;
  object-fit: contain;
  will-change: transform, opacity;
  flex-shrink: 0;
  margin-left: -6%;
}

.hamburger-second-image {
  animation: slideInLeft 0.3s ease-out 0.1s forwards;
  z-index: 1;
}

.hamburger-small-image {
  animation: slideInLeft 0.3s ease-out 0.2s forwards;
  z-index: 5;
  margin-left: -3%;
}

.kebab-image {
  animation: slideInRight 0.3s ease-out 0.3s forwards;
  z-index: 4;
  margin-left: -3%;
}


.drink-image {
  animation: slideInRight 0.3s ease-out 0.3s forwards;
  z-index: 4;
  margin-left: -3%;
}

.hamburger-image {
  animation: slideInRight 0.3s ease-out 0.4s forwards;
  z-index: 2;
  margin-left: -20%;
}

.hamburger-first-image {
  animation: slideInRight 0.3s ease-out 0.5s forwards;
  z-index: 0;
  margin-left: -3%;
}

.tea-image {
  animation: slideInLeft 0.3s ease-out 0.6s forwards;
  z-index: 2;
  margin-left: -3%;
}

  .tea-image, .kebab-image, .drink-image {
    display: none;
  }


.logo {
  position: absolute;
  top: 30%;
  left: 50%;
  width: clamp(45%, 60vw, 60%);
  max-width: 500px;
  transform: translate(-50%, -50%);
  z-index: 10;
  opacity: 0;
  animation: logoEntrance 0.6s ease-out 1.2s forwards;
  will-change: transform, opacity;
}

/* ===================================
   BRANCHES SECTION
   =================================== */
.branches {
  width: 100%;
  background: var(--color-white);
  padding: var(--space-4xl) 0 0 0;
}

.branches-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.branches-title, .branches-subtitle {
  text-align: center;
  font-size: var(--font-size-hero);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  font-family: 'Adumu', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.branches-subtitle {
  margin: 0 0 var(--space-xl) 0;
  font-size: 53px;
  color: var(--color-text-light);
}

.arrow-down {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: sub;
  position: relative;
  margin: 0 10px;
}
.arrow-down::after {
  content: '';
  display: block;
  width: 0.6em;
  height: 0.6em;
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translate(-50%, 0) rotate(-45deg);
  box-sizing: border-box;
}

.text-green .arrow-down::after {
  border-left: 0.18em solid var(--color-green, #457454);
  border-bottom: 0.18em solid var(--color-green, #457454);
}

.text-red .arrow-down::after {
  border-left: 0.18em solid var(--color-red, #cf4040);
  border-bottom: 0.18em solid var(--color-red, #cf4040);
}

.branches-subtitle .text-green, .branches-subtitle .text-red {
  cursor: pointer;
  text-decoration: underline;
}


.branch-address {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--color-text-light);
  margin: 0 0 var(--space-lg) 0;
  text-align: center;
}

.branch-address:hover {
  color: var(--color-primary-dark);
}

.branches-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.branch-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.branch-card:hover {
  box-shadow: var(--shadow-xl);
}

.branch-image {
  position: relative;
  height: auto;
  max-height: 300px;
  overflow: hidden;
}

.branch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.branch-card:hover .branch-image img {
  transform: scale(1.05);
}

.branch-content {
  padding: var(--space-xl);
  text-align: center;
  font-family: 'Adumu', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.branch-content > *:not(.order-button) {
  flex-shrink: 0;
}

.branch-content .order-button {
  margin-top: auto;
}

.branch-name {
  font-size: var(--font-size-3xl);
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  margin: 0;
  letter-spacing: -0.01em;
}

.branch-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
  margin-top: 10px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  width: 100%;
  max-width: 350px;
}

/* Desktop: Side by side layout */
@media (min-width: 1200px) {
  .branch-info {
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-xl);
    max-width: 100%;
    align-items: baseline;
  }

  .info-item {
    flex: 1;
    max-width: none;
  }
}

.icon {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px;
  height: 20px;
}

.info-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
  text-align: center;
}

.info-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.5;
}

.phone-link {
  color: var(--color-text-light);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.phone-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Order Button */
.order-button {
  width: 100%;
  background: var(--color-success);
  color: var(--color-white);
  border: none;
  border-radius: 0;
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--font-size-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: inherit;
  box-shadow: var(--shadow-md);
}

.order-button:hover {
  background: var(--color-success-dark);
  box-shadow: var(--shadow-lg);
}


/* ===================================
   MAP SECTION
   =================================== */
.map-section {
  margin-top: var(--space-4xl);
  width: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.map-section .branches-container {
  padding: 0;
}

.map-title {
  text-align: center;
  font-size: var(--font-size-title);
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 var(--space-xl) 0;
  letter-spacing: -0.01em;
  max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--container-padding);
}

.map-container {
  position: relative;
  background: var(--color-white);
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  display: flex;
  flex-direction: row;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

.map-info {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.map-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.95);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-md);
  font-weight: 500;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: all var(--transition-base);
}

.map-info-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.map-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.downtown-marker {
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.westside-marker {
  background: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.3);
}

.map-marker::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--color-white);
  border-radius: 50%;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Small Mobile (320px+) */
@media (min-width: 320px) {
  .container {
    min-height: 45vh;
    align-items: flex-end;
  }

  .center-images {
    margin-bottom: 30px;
  }

  .logo {
    width: clamp(60%, 65vw, 70%);
    max-width: 700px;
  }

  .hamburger-second-image,
  .hamburger-small-image,
  .hamburger-image,
  .hamburger-first-image {
    width: 35%;
  }

  .hamburger-second-image,
  .hamburger-small-image,
  .hamburger-image,
  .hamburger-first-image{
      margin: 0 -4%;
  }

  .map-container iframe {
    height: 350px;
  }

  .branches-container {
    padding: 0 var(--container-padding);
  }
}

/* Mobile (480px+) */
@media (min-width: 480px) {
  .container {
    min-height: 45vh;
    align-items: flex-end;
  }

  .hamburger-small-images {
    margin-bottom: 50px;
  }

  .logo {
    width: clamp(55%, 60vw, 65%);
    max-width: 750px;
  }

  .hamburger-second-image,
  .hamburger-small-image,
  .hamburger-image,
  .hamburger-first-image {
    width: 35%;
  }

  .hamburger-second-image,
  .hamburger-small-image,
  .hamburger-image,
  .hamburger-first-image{
   margin: 0 -4%;
  }

  .branch-image {
    height: auto;
    max-height: 300px;
  }

  .map-container iframe {
    height: 400px;
  }

  .map-info {
    gap: var(--space-lg);
  }
}


@media (min-width: 650px) {
    .hamburger-second-image,
  .kebab-image,
  .hamburger-small-image,
  .hamburger-image,
  .hamburger-first-image,
.drink-image,
  .tea-image {
    width: 24%;
  }

  .hamburger-second-image,
  .hamburger-small-image,
  .kebab-image,
.drink-image,
  .hamburger-image,
  .hamburger-first-image,
  .tea-image {
    margin-left: -6%;
  }

  .container {
    min-height: 45vh;
  }

  .hamburger-small-images {
    margin-bottom: 40px;
  }

    .branch-image {
      height: auto;
      max-height: 300px;
  }

  .map-container iframe {
    height: 400px;
  }

    .tea-image, .kebab-image {
    display: block;
  }

  .tea-image, .drink-image {
    display: none;
  }

  .map-info {
    gap: var(--space-lg);
  }
}
/* Tablet (768px+) */
@media (min-width: 768px) {
  .container {
    min-height: 60vh;
  }

    .tea-image, .drink-image {
    display: block;
  }

  .hamburger-second-image,
  .kebab-image,
  .hamburger-small-image,
.drink-image,
  .hamburger-image,
  .hamburger-first-image,
  .tea-image {
    width: 21%;
  }

.tea-image {
  margin-left: -8%;
}

  .kebab-image {
    width: 25%;
    margin-left: -8% !important;
  }

  .hamburger-second-image,
  .hamburger-small-image,
  .kebab-image,
.drink-image,
  .hamburger-image,
  .hamburger-first-image,
  .tea-image {
    margin-left: -6%;
  }

  .tea-image {
    margin-left: -8%;
  }

  .branches {
    padding: var(--space-4xl) 0 var(--space-3xl) 0;
  }

  .branches-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }

  .branch-image {
    height: auto;
    max-height: 300px;
  }

  .branch-content {
    padding: var(--space-2xl);
    padding-top: var(--space-md);
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .map-container iframe {
    height: 400px;
  }

  .map-info-item {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
  }
}

/* Small Desktop (1024px+) */
@media (min-width: 1024px) {
  .container {
    min-height: 70vh;
  }

  .branches {
    padding: var(--space-4xl) 0;
  }

  .hamburger-second-image,
  .kebab-image,
  .hamburger-small-image,
  .hamburger-image,
.drink-image,
  .hamburger-first-image,
  .tea-image {
    width: 19%;
  }

  .hamburger-small-image,
  .kebab-image,
  .hamburger-image,
  .hamburger-first-image,
.drink-image,
  .hamburger-second-image,
  .tea-image {
    margin-left: -5%;
  }

  .kebab-image {
    width: 24%;
    margin-left: -8%;
  }

  .tea-image {
    margin-left: -8%;
  }

  .hamburger-small-image {
    width: 24%;
  }

  .map-container iframe {
    height: 450px;
  }

    .hamburger-small-images {
    margin-bottom: 50px;
  }
}

/* Desktop (1200px+) */
@media (min-width: 1200px) {
  .hamburger-second-image,
  .kebab-image,
  .hamburger-small-image,
  .hamburger-image,
.drink-image,
  .hamburger-first-image,
  .tea-image {
    width: 18%;
  }

  .kebab-image {
    width: 28%;
    margin-left: -12% !important;
  }

  .tea-image {
    z-index: 15;
  }

  .hamburger-small-image {
    width: 28%;
  }

  .hamburger-small-image,
  .kebab-image,
  .hamburger-image,
  .hamburger-first-image,
  .hamburger-second-image,
.drink-image,
  .tea-image {
    margin-left: -6%;
  }

    .hamburger-small-images {
    margin-bottom: 60px;
  }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  .container {
    min-height: 65vh;
  }

  .branches {
    padding: 6rem 0;
  }

  .map-container iframe {
    height: 500px;
  }

  .hamburger-second-image,
  .hamburger-image,
.drink-image,
  .hamburger-first-image,
  .tea-image {
    width: 20%;
  }
  .hamburger-small-image {
    width: 23%;
  }
  .kebab-image {
    width: 30%
  }

  .hamburger-small-image,
  .hamburger-image,
  .hamburger-first-image,
.drink-image,
  .tea-image,
  .hamburger-second-image {
    margin-left: -7%;
  }

  .kebab-image {
    margin-left: -7%;
  }
}
.tea-image {
  z-index: 20;
}

.kebab-image {
  z-index: 25;
}

.hamburger-small-image {
  z-index: 30;
}

.logo {
  z-index: 100;
}
/* ===================================
   PRINT STYLES
   =================================== */
@media print {
  .container {
    min-height: auto;
    background: none !important;
  }

  .hamburger-second-image,
  .kebab-image,
  .hamburger-small-image,
  .hamburger-image,
  .hamburger-first-image,
.drink-image,
  .tea-image {
    position: static;
    opacity: 1;
    animation: none;
    width: 16.67%;
  }

  .hamburger-small-image,
  .kebab-image,
  .hamburger-image,
  .hamburger-first-image,
.drink-image,
  .tea-image {
    margin-left: -3%;
  }

  .logo {
    position: static;
    transform: none;
    opacity: 1;
    animation: none;
  }

  .map-container iframe {
    display: none;
  }
}

/* ===================================
   ACCESSIBILITY & MOTION PREFERENCES
   =================================== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {

  .branch-card,
  .map-container {
    border: 2px solid var(--color-text);
  }

  .phone-link {
    text-decoration: underline;
  }
}

.text-red {
  color: var(--color-red);
}

.text-green {
  color: var(--color-green);
}

main {
  background-image: url('images/webp/bckg.webp');
  background-size: cover;
  background-repeat: no-repeat;
}

.normal-text {
  font-size: var(--font-size-lg);
}