/* =============================================================
   smjestaj-critical.css — Villa ART Makarska
   Stilovi za prvi ekran (above the fold)
   Koncept: opći stilovi → mobitel → tablet → desktop → veliki ekrani
   ============================================================= */

/* ── CSS VARIJABLE ── */
:root {
  --sand:        #f5f0e8;
  --stone:       #d4c9b0;
  --terracotta:  #c4704a;
  --terra-light: #e8856a;
  --sea:         #2a6b8a;
  --sea-light:   #4a9bbf;
  --dark:        #1a1814;
  --mid:         #4a4540;
  --text:        #2c2820;
  --white:       #fefcf8;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}


/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background-image: url('../images/background-index-mob.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(212,201,176,0.15);
  transition: background 0.3s;
}
/* ── SCROLL TO TOP ── */
.scroll-to-top {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 500;
  background: var(--terracotta);
  color: var(--white);
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s;
}
.scroll-to-top:hover { background: var(--terra-light); }
/* ── TOP BAR ── */
.top-bar {
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── LOGO ── */
.logo { text-align: left; z-index: 10; }
.logo img {
  height: 40px; width: auto; display: block;
}

/* ── MENU CONTAINER ── */
.menu-container {
  background-color: #FFFFFF;
  margin: 0;
  padding:0.4rem 0 0.4rem 0;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}
.menu-container ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 0; margin: 0; list-style: none;
}
.icon:before {
  background-image: url(../images/simboli/IconAgencija.png);
  background-repeat: no-repeat;
  background-size: cover;
  display: inline-block;
  width: 2em; padding-bottom: 2em;
  vertical-align: -0.6em;
  height: 0; content: '';
}
.icon.home:before { background-position: center 102%; }

/* ── SMARTMENU HAMBURGER ── */
.main-menu-btn {
  position: relative;
  display: block;
  padding: 0.64em 40px;
  height: 40px;
  overflow: hidden;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
  color: #fff;
  background-color: #256DC5;
}
.main-menu-btn-text { position: absolute; top: -99999px; }
.main-menu-btn-icon,
.main-menu-btn-icon:before,
.main-menu-btn-icon:after {
  position: absolute; top: 50%; left: 10px;
  height: 2px; width: 25px;
  background: #fff; border-color: #fff;
  transition: all 0.25s;
}
.main-menu-btn-icon:before { content: ''; top: -7px; left: 0; }
.main-menu-btn-icon:after  { content: ''; top: 7px;  left: 0; }
.main-menu-btn-logo {
  font: italic bold 1.311em/12px Verdana,Arial,Helvetica,sans-serif;
  color: #fff;
}
#main-menu-state { position: absolute; top: -99999px; }
#main-menu-state:not(:checked) ~ #main-menu { display: none; }
#main-menu-state:checked ~ #main-menu { display: block; }


/* ── HERO ── */
.hero {
  height: 60vw;
  min-height: 320px;
  max-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 1;
}
.hero-bg picture,
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,24,20,0.3) 0%, rgba(26,24,20,0.7) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 3;
  text-align: center;
  color: white;
  padding: 0 1rem;
  max-width: 1200px;
  width: 100%;
}
.hero-badge {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid var(--white);
  padding: 0.4rem 1rem;
  margin-bottom: 1rem;
  display: inline-block;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;        /* mobitel baza */
  line-height: 1;
  margin-bottom: 0.5rem;text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.hero h1.cirilica {
  font-family: 'Cormorant Garamond', 'Palatino Linotype', serif;
}
.hero h1 em { font-style: italic; color: var(--terra-light);}
.hero-stars {
  font-size: 1.5rem;
  color: #d4a017;
  margin: 0.5rem 0 1rem;
  letter-spacing: 0.2em;
}
.hero-sub {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: var(--stone);
}
.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.hero-stat { text-align: center; color: var(--white); }
.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-family: 'Playfair Display', serif;
}
.hero-stat span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}
.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
@media only screen and (max-width: 480px) {
  .hero {
    min-height: 560px;}
  .scroll-to-top {
    right: 0.5rem;
    bottom: 0.5rem;
  }
}

/* ── GUMBI ── */
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  border: none;
  cursor: pointer;
  padding: 0.8rem 1.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--terra-light); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.8rem 1.8rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ── SECTION LABELS ── */
.section-label {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
  display: block;
  text-align: center;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--stone);
  margin-bottom: 1rem;
  text-align: center;
}
.section-title em { font-style: italic; color: var(--terra-light); }

/* ── ANIMACIJE ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   TABLET — min-width: 481px
   ============================================================= */
@media only screen and (min-width: 481px) {
  .top-bar { padding: 1rem 1.5rem; }
  .logo img { height: 34px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-stars { font-size: 2rem; }
  .hero-sub { font-size: 1.1rem; }
  .hero-stat strong { font-size: 2.2rem; }
  .section-title { font-size: 2.2rem; }
  .language-switcher-container{right:10px;}
}

/* =============================================================
   DESKTOP — min-width: 768px
   ============================================================= */
@media only screen and (min-width: 768px) {
  .top-bar { padding: 1.2rem 2rem; }
  .site-header {
    background-image: url('../images/background-index.jpg');}
  .logo img { height: 65px; }
  .main-menu-btn { position: absolute; top: -99999px; }
  #main-menu-state:not(:checked) ~ #main-menu { display: block; }
  .menu-container {
    background-color: #FFFFFF;
    padding-top: 0.4rem;
    padding-right: 0;
    padding-bottom: 0.4rem;
}
  .language-switcher-container{width:150px;}
  .language-switcher:hover .language-list { display: block; }
  .hero { height: 100vh; min-height: 600px; max-height: none; }
  .hero h1 { font-size: 3rem; }
  .hero-stars { font-size: 2.5rem; }
  .hero-sub { font-size: 1.3rem; margin-bottom: 2.5rem; }
  .hero-stats { gap: 3rem; margin-bottom: 2.5rem; }
  .hero-stat strong { font-size: 2.5rem; }
  .hero-stat span { font-size: 0.8rem; }
  .btn-primary, .btn-outline { padding: 1rem 2.5rem; font-size: 0.9rem; }
  .section-title { font-size: 2.5rem; }
}

/* =============================================================
   VELIKI DESKTOP — min-width: 1024px
   ============================================================= */
@media only screen and (min-width: 1024px) {
  .top-bar { padding: 1.2rem 2.5rem; }
  .logo img { height: 65px; }
  .hero h1 { font-size: 4rem; }
  .hero-stats { gap: 4rem; }
  .hero-stat strong { font-size: 3rem; }
  .section-title { font-size: 3rem; }
}

/* =============================================================
   EXTRA VELIKI — min-width: 1366px
   ============================================================= */
@media only screen and (min-width: 1366px) {
  .logo img { height: 75px; }
  .hero h1 { font-size: 5.5rem; }
  .hero-badge { font-size: 0.9rem; padding: 0.6rem 1.4rem; }
}
/* LANGUAGE SWITCHER */
.language-switcher{position:relative;}
.current-language {
  display: flex;
  align-items: center;
  width: 100%;
  background: #f5f5f5;
  border: 1px solid #ccc;
  cursor: pointer;
  box-sizing: border-box;
}
.current-language svg {margin-left:0;vertical-align:middle;}

@media only screen and (max-width:480px){
#Jezici{width:110px !important;top:25px;right:10px !important;position:absolute;z-index:9999;}
.current-language{justify-content:center;padding:1px 0 1px 5px;gap:0.6em;}}

@media only screen and (min-width:481px) and (max-width:768px){
#Jezici{width:120px;top:20px;right:10px;position:absolute;z-index:1000;}
.current-language{justify-content:flex-start;padding:1px 0 1px 5px;gap:0.8em;}}

@media only screen and (min-width:769px){
#Jezici{width:150px;top:55px;right:20px;position:absolute;z-index:1000;}
.current-language{justify-content:flex-start;padding:5px 25px 5px 20px;gap:1em;}}

@media only screen and (min-width:1024px){
#Jezici{width:150px;top:50px;right:20px;position:absolute;z-index:2000;gap:1.5em;}}

@media only screen and (min-width:1366px){
#Jezici{width:150px;top:50px;right:20px;position:absolute;z-index:1000;}
.current-language{justify-content:flex-start;padding:5px 25px 5px 20px;gap:1em;}}