/*
Theme Name: Reservee theme
Theme URI: https://reservee.com/
Description: A custom reservee theme.
Author: Nemanja Ristic
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: reservee-custom-theme
*/

/* --- Start of actual CSS styles below this line --- */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  /* bolje od hidden */
}

@media (max-width: 768px) {
  .site-header {
    backdrop-filter: none;
  }
}

:root {
  --dark-navy: #22303f;
  --light-gray: #e7e8e7;
  --sky-blue: #8fbfda;
  --deep-teal: #2c6485;
  --slate: #394a56;

  --nav-text: #e7e8e7;
  /* boja burger linija */
  --nav-bg: rgba(34, 48, 63, 0.85);
  --nav-bg-solid: #22303f;
  --header-height: 72px;

  /* Font families */
  --font-primary: 'Inter', system-ui, sans-serif;

  /* Desktop sizes */
  --fs-h1: 48px;
  --fs-h2: 40px;
  --fs-h3: 32px;
  --fs-h4: 24px;
  --fs-h5: 20px;
  --fs-h6: 18px;
  --fs-p: 16px;
  --fs-small: 14px;
  --fs-caption: 12px;

  --fw-light: 300;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
}

@media (max-width: 600px) {
  :root {
    /* Mobile scale */
    --fs-h1: 32px;
    --fs-h2: 28px;
    --fs-h3: 24px;
    --fs-h4: 20px;
    --fs-h5: 18px;
    --fs-h6: 16px;
    --fs-p: 15px;
    --fs-small: 13px;
  }
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-p);
  font-weight: var(--fw-normal);
  line-height: 1.55;
  color: var(--color-text, #22303f);
  background-color: var(--light-gray);
}

h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: 1.2;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-semibold);
  line-height: 1.25;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
}

h4 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-medium);
}

h5 {
  font-size: var(--fs-h5);
  font-weight: var(--fw-medium);
}

h6 {
  font-size: var(--fs-h6);
  font-weight: var(--fw-medium);
}

p {
  font-size: var(--fs-p);
  font-weight: var(--fw-normal);
  margin-bottom: 0.8rem;
}

small {
  font-size: var(--fs-small);
  opacity: 0.85;
}


body {
  margin: 0px;
}


.site-info {
  justify-self: center;
}


/* LOADER WRAPPER */
#page-loader {
  position: fixed;
  z-index: 999999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--dark-navy);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

/* LOGO SCALING ANIMACIJA */
#page-loader img {
  width: 160px;
  height: auto;
  animation: loaderScale 1.2s ease-in-out infinite alternate;
}

/* scale efekat */
@keyframes loaderScale {
  from {
    transform: scale(1);
    opacity: 0.8;
  }

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

/* FADE OUT nakon skripte */
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}




.hero-section {
  width: 100%;
  height: 60vh;
  min-height: 60dvh;
  /* mobile browser safe */
  background-image: url("images/hero-baner-homepage.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #FFF;
  display: flex;
  align-items: center;
  /* vertical center */
  justify-content: center;
  /* horizontal center */
  position: relative;
  overflow: hidden;
}

/* Overlay */
.hero-section::before {
  width: 100%;
  left: 0;
  right: 0;
  content: "";
  position: absolute;
  inset: 0;
  /* shorthand for top:0; right:0; bottom:0; left:0 */
  background-color: #00000095;
  /* your darken value */
  pointer-events: none;
  /* allows clicks through if needed */
  z-index: 1;
}

.hero-content-holder {
  position: relative;
  z-index: 2;
  /* place content above overlay */
  text-align: center;
  width: 100%;
  max-width: 1400px;
}

.hero-about {
  position: relative;
  overflow: hidden;
  padding: 0 30px;
}

.from-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: slideInLeft 0.8s ease-out forwards;
}

.from-right {
  opacity: 0;
  transform: translateX(40px);
  animation: slideInRight 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

.from-up {
  opacity: 0;
  transform: translateY(-40px);
  animation: slideInUp 0.8s ease-out forwards;
}

.from-down {
  opacity: 0;
  transform: translateY(40px);
  animation: slideInDown 0.8s ease-out forwards;
}

/* Keyframes */

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.first-section-end {
  padding-top: 15px;
  /*box-shadow: 0 4px 6px -6px #000000;*/
}

.main-navigation {
  display: flex;
  width: 100%;
  background-color: transparent;
  align-items: center;
}

@media (min-width: 768px) {
  .menu {
    display: flex;
    justify-content: right;
    gap:10px;
    list-style-type: none;
  }
}

.menu {
  width: 100%;
  will-change: transform;
  overflow-x: hidden;
  text-align: right;
  padding: 0 40px;
}

.menu ul {
  display: flex;
  list-style-type: none;
  padding-left: 0px;
  justify-content: space-between;
  margin: 0 20%;
}

.menu ul li a {
  color: var(--light-gray);
  text-decoration: none;
}

.logo-head {
  width: 125px;
  height: 45px;
  background-size: cover;
  background-image: url("images/reservee-logo-header.svg");
}

/* ==================================================
   HEADER (ALWAYS VISIBLE)
================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--nav-bg);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.main-navigation {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

/* ==================================================
   LOGO
================================================== */

.logo-head-holder {
  display: flex;
  align-items: center;
}

/* ==================================================
   DESKTOP MENU
================================================== */

.menu ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
}

/* ==================================================
   BURGER BUTTON
================================================== */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle .burger {
  width: 28px;
  height: 2px;
  background: var(--nav-text);
  position: relative;
  display: block;
}

.nav-toggle .burger::before,
.nav-toggle .burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--nav-text);
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease;
}

.nav-toggle .burger::before {
  top: -8px;
}

.nav-toggle .burger::after {
  top: 8px;
}

/* ACTIVE BURGER (X) */
.nav-toggle.active .burger {
  background: transparent;
}

.nav-toggle.active .burger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .burger::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (min-width: 768px) {
  .menu ul {
    margin: 0 20% !important;
  }
}

/* ==================================================
   MOBILE MENU
================================================== */

@media (max-width: 768px) {

  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  /* MOBILE MENU PANEL */
  .menu {
    position: fixed;
    top: 56.5px;
    right: -5px;
    width: 75%;
    max-width: 320px;
    min-height: 100dvh;
    background: var(--nav-bg);
    padding-top: 0px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 1000;
    text-align: center;
  }

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

  .menu ul {
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0 24px;
  }

  .menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .menu a {
    display: block;
    padding: 18px 0;
    font-size: 18px;
    color: var(--light-gray);
  }

  .menu li {
    opacity: 0;
    transform: translateX(20px);
    animation: menuFade 0.35s ease forwards;
    list-style: none;
  }

  .menu.open li:nth-child(1) {
    animation-delay: 0.05s;
  }

  .menu.open li:nth-child(2) {
    animation-delay: 0.1s;
  }

  .menu.open li:nth-child(3) {
    animation-delay: 0.15s;
  }

  @keyframes menuFade {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

}


/* ==================================================
   OVERLAY
================================================== */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}



.how-it-works {
  margin-top: -5px;
  text-align: center;
  padding: 0px 20px;
}

.how-it-works h2 {
  margin-bottom: 40px;
  font-weight: var(--fw-semibold);
  color: var(--dark-navy);
}

.steps {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.step {
  background: var(--light-gray);
  border-radius: 10px;
  padding: 25px 20px;
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 12px rgb(0 0 0 / 12%);
}

.step h6 {
  margin: 15px 0 8px;
  color: var(--dark-navy);
}

.step p {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
}

/* ICON BASE */
.icon {
  width: 40px;
  height: 40px;
  background-color: var(--deep-teal);
  mask-size: cover;
  -webkit-mask-size: cover;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

/* ICONS (FLAT, JEDNOBOJNE) */
.icon-search {
  mask-image: url('icons/search.svg');
  -webkit-mask-image: url('icons/search.svg');
}

.icon-calendar {
  mask-image: url('icons/calendar.svg');
  -webkit-mask-image: url('icons/calendar.svg');
}

.icon-check {
  mask-image: url('icons/check.svg');
  -webkit-mask-image: url('icons/check.svg');
}

.icon-email {
  mask-image: url('icons/email.svg');
  -webkit-mask-image: url('icons/email.svg');
}

/* HOVER ANIMACIJE */
.step {
  transition: transform .25s ease, box-shadow .25s ease;
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.step .icon {
  transition: transform .25s ease;
}

.step:hover .icon {
  transform: scale(1.12) rotate(4deg);
}


/* ============================
   ANIMACIJE (step-by-step)
   ============================ */
.reveal-steps .step {
  opacity: 0;
  transform: translateY(20px);
}

/* kada postane aktivan preko JS */
.reveal-steps.active .step {
  animation: revealUp 0.6s ease-out forwards;
}

.reveal-steps.active .step:nth-child(1) {
  animation-delay: 0.1s;
}

.reveal-steps.active .step:nth-child(2) {
  animation-delay: 0.3s;
}

.reveal-steps.active .step:nth-child(3) {
  animation-delay: 0.5s;
}

.reveal-steps.active .step:nth-child(4) {
  animation-delay: 0.7s;
}


/* keyframes */
@keyframes revealUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .steps {
    gap: 10px;
  }

  .step {
    width: 37px;
    padding: 10px 14px;
  }

  .step h6 {
    font-size: 15px;
  }

  .step p {
    display: none;
  }

  .icon {
    width: 32px;
    height: 32px;
  }

  .hero-section {
    height: 60vh;
    min-height: 60dvh;
  }
}

/* Post CSS */
.single-post-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 20px;
}

.single-post {
  place-items: anchor-center;
}

.post-featured-image img {
  width: 300px;
  height: 370px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.post-title {
  font-size: 36px;
  margin-bottom: 10px;
}

.post-meta {
  color: #777;
  margin-bottom: 30px;
  font-size: 14px;
}

.post-content {
  font-size: 18px;
  line-height: 1.8;
}