/* ==========================================================================
   Noctua Travel Croatia — glavni stilovi
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

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

.eyebrow {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-head {
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  text-align: justify;
  text-align-last: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline-dark:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), padding var(--transition);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header.is-scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 44px;
  width: auto;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.brand-name span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--color-primary);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}

.lang-btn.active {
  background: var(--color-primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 26, 46, 0.55) 0%, rgba(15, 26, 46, 0.35) 45%, rgba(15, 26, 46, 0.8) 100%);
  z-index: -1;
}

.hero-content {
  padding-top: 70px;
}

.hero-content .eyebrow {
  color: var(--color-accent);
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  color: #fff;
  margin-bottom: 22px;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 56px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-scroll::after {
  content: "";
  width: 3px;
  height: 42px;
  background: rgba(255, 255, 255, 0.75);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---------- Intro ---------- */

.intro {
  padding: 110px 0 90px;
  text-align: center;
}

.intro .eyebrow {
  justify-content: center;
}

.intro h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin: 0 auto 26px;
}

.intro p {
  color: var(--color-text-muted);
  font-size: 1.08rem;
  text-align: justify;
  text-align-last: center;
}

.intro-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.intro-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-primary);
}

.intro-stat span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Regije ---------- */

.regions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.region-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.region-card:hover {
  box-shadow: var(--shadow-md);
}

.region-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.region-card:hover img {
  transform: scale(1.08);
}

.region-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 26, 46, 0) 30%, rgba(10, 18, 32, 0.88) 100%);
}

.region-card-body {
  position: relative;
  padding: 30px 26px;
  color: #fff;
}

.region-card-body .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--color-accent);
  color: #123016;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.region-card-body h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 10px;
}

.region-card-body p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 4.5em;
}

/* ---------- Zašto mi ---------- */

.why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.why-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.why-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.why-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.why-item p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* ---------- CTA traka ---------- */

.cta-band {
  position: relative;
  padding: 100px 0;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.cta-band-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(23, 56, 102, 0.92), rgba(35, 90, 168, 0.78));
  z-index: -1;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0 auto 18px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto 34px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #101820;
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 28px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
  gap: 18px;
}

.footer-brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-mark img {
  height: 30px;
  width: auto;
}

.footer-brand-mark .brand-name {
  color: #fff;
  font-size: 1rem;
}

/* ---------- Scroll reveal animacije ---------- */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-stagger.is-visible > * {
  transition-delay: calc(var(--stagger-index, 0) * 110ms);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale, .hero-scroll::after {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Placeholder stranice ---------- */

.page-hero {
  position: relative;
  padding: 190px 0 100px;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 26, 46, 0.6), rgba(15, 26, 46, 0.75));
  z-index: -1;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-placeholder {
  padding: 100px 0;
  text-align: center;
}

.page-placeholder p {
  color: var(--color-text-muted);
  margin: 18px auto 32px;
}

/* ---------- O nama ---------- */

.about-intro {
  text-align: center;
  margin: 0 auto 48px;
}

.about-logo {
  height: 170px;
  width: auto;
  margin: 0 auto 28px;
}

.about-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.about-text {
  margin: 0 auto;
}

.about-text p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.guide-card {
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 36px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}

.guide-avatar {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
}

.guide-role {
  display: block;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.guide-info h3 {
  font-size: 1.35rem;
  margin-bottom: 24px;
  color: var(--color-accent-dark);
}

.guide-info p {
  color: var(--color-text-muted);
  font-size: 0.96rem;
  margin-bottom: 14px;
}

.guide-info p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .guide-card {
    flex-direction: column;
    align-items: center;
    text-align: left;
    padding: 34px 26px;
  }
  .guide-role,
  .guide-info h3 {
    text-align: center;
  }
  .guide-info h3 {
    margin-bottom: 36px;
  }
}

/* ---------- Usluge ---------- */

.service-block {
  padding: 70px 0;
}

.service-block .eyebrow {
  display: block;
  text-align: center;
}

.accent-heading {
  color: var(--color-accent-dark);
}

.service-block h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin: 10px 0 24px;
  text-align: center;
  color: var(--color-accent-dark);
}

.service-block p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.service-block p:last-child {
  margin-bottom: 0;
}

.service-showcase {
  position: relative;
  height: 60vh;
  min-height: 380px;
  max-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-showcase-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.service-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-showcase-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 46, 0.4);
  z-index: -1;
}

.service-showcase-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.service-showcase-placeholder::after {
  content: attr(data-label);
  position: absolute;
  right: 20px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 600;
}

.service-showcase-quote {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .why {
    grid-template-columns: repeat(2, 1fr);
  }
  .regions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 0;
    top: 0;
    width: 78%;
    max-width: 340px;
    right: 0;
    left: auto;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-md);
  }

  .nav-open .nav-links {
    transform: translateX(0);
  }

  .nav-links a {
    color: var(--color-text);
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

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

@media (max-width: 700px) {
  .section {
    padding: 70px 0;
  }
  .intro {
    padding: 90px 0 60px;
  }
  .intro-stats {
    flex-wrap: nowrap;
    gap: 14px;
  }
  .intro-stat {
    flex: 1 1 0;
    min-width: 0;
  }
  .intro-stat strong {
    font-size: 1.6rem;
  }
  .intro-stat span {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
