/* ============================================================
   LuxeSpa Studio — Premium Wellness Design
   ============================================================ */

/* --- Variables & Reset --- */
:root {
  --white: #ffffff;
  --off-white: #f9f8f6;
  --light-gray: #f2f0ed;
  --border: #e4e0db;
  --border-light: #eeebe7;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6560;
  --text-light: #9e9894;
  --accent: #40a5cf;
  --accent-hover: #2d8fba;
  --accent-light: rgba(64, 165, 207, 0.08);
  --accent-medium: rgba(64, 165, 207, 0.15);
  --dark: #142332;
  --dark-2: #1a1a1a;
  --dark-3: #2a2a2a;
  --dark-card: #111820;
  --shadow-xs: 0 1px 8px rgba(0,0,0,0.05);
  --shadow-sm: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.13);
  --shadow-xl: 0 40px 100px rgba(0,0,0,0.18);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.4s var(--ease);
  --transition-fast: all 0.2s ease;
  --radius: 6px;
  --radius-lg: 12px;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --nav-h: 80px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: #f0ebe6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
ul { list-style: none; }

/* --- Typography --- */
.display-title {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
em { font-style: italic; }

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
}
.container--narrow { max-width: 960px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background: #69503c;
  color: var(--white);
  border: 1px solid #69503c;
}
.btn--primary:hover {
  background: #7d5f47;
  border-color: #7d5f47;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(105, 80, 60, 0.3);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.45);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}
.btn--outline-dark {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn--outline-dark:hover {
  background: var(--text-primary);
  color: var(--white);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}
.btn--sm { padding: 12px 24px; font-size: 0.72rem; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* --- Section Common --- */
.section { padding: 120px 0; }
.section--gray { background: var(--off-white); }
.section--dark { background: var(--dark); }

.section-header {
  text-align: center;
  margin-bottom: 72px;
}
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #20354a;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.section-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ======================
   NAVIGATION
   ====================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), var(--shadow-sm);
}
#navbar.scrolled .nav-link { color: var(--text-primary); }
#navbar.scrolled .nav-link:hover { color: #142332; }
#navbar.scrolled .nav-logo-text { color: var(--text-primary); }
#navbar.scrolled .nav-logo-sub { color: var(--text-secondary); }
#navbar.scrolled .nav-hamburger span { background: var(--text-primary); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.nav-logo__img {
  display: block;
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}
#navbar.scrolled .nav-logo__img {
  filter: none;
}
.footer-logo__img {
  display: block;
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 44px;
}
.nav-link {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #142332;
  transition: width 0.3s var(--ease);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link--accent { color: #ffffff !important; }
.nav-link--accent::after { background: #142332; }
#navbar.scrolled .nav-link--accent { color: #142332 !important; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 11px 28px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(64, 165, 207, 0.3);
}
#navbar.scrolled .nav-cta {
  color: var(--text-primary);
  border-color: var(--border);
}
#navbar.scrolled .nav-cta:hover {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: var(--transition);
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ======================
   HERO
   ====================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform-origin: center center;
  will-change: transform, filter;
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  0% {
    transform: scale(1.05) translate(0%, 0%);
    filter: brightness(1) saturate(1);
  }
  50% {
    transform: scale(1.12) translate(-1.5%, -1%);
    filter: brightness(1.05) saturate(1.06);
  }
  100% {
    transform: scale(1.18) translate(1.5%, 1%);
    filter: brightness(0.98) saturate(1.02);
  }
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 22% 48%, rgba(64, 165, 207, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 65% at 78% 32%, rgba(64, 165, 207, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse 35% 45% at 55% 85%, rgba(20, 60, 100, 0.35) 0%, transparent 55%),
    linear-gradient(175deg, #071320 0%, #0a1c2e 30%, #060f1c 60%, #0d2030 100%);
  animation: heroBg 18s ease-in-out infinite alternate;
}
.hero__shimmer {
  position: absolute;
  inset: -20%;
  z-index: 2;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0,
      transparent 180px,
      rgba(64, 165, 207, 0.025) 180px,
      rgba(64, 165, 207, 0.025) 181px
    );
  animation: shimmerMove 40s linear infinite;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    to bottom,
    rgba(5, 14, 25, 0.35) 0%,
    rgba(5, 14, 25, 0.18) 45%,
    rgba(5, 14, 25, 0.68) 100%
  );
}
@keyframes heroBg {
  0%   { transform: scale(1) translate(0, 0); opacity: 0.85; }
  50%  { transform: scale(1.03) translate(0.8%, 0.4%); opacity: 1; }
  100% { transform: scale(1.05) translate(-0.5%, 0.8%); opacity: 0.92; }
}
@keyframes shimmerMove {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

.hero__content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 32px;
}
.hero__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #20354a;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.3s forwards;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 88px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.5s forwards;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
}
.hero__subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.7s forwards;
}
.hero__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.9s forwards;
}
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1.3s forwards;
}
.hero__scroll span {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(0.8); }
}

/* ======================
   SERVICES — ŠTA NUDIMO
   ====================== */
.usluge { background: #f0ebe6; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.service-card {
  background: #f3efeb;
  padding: 44px 36px;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #e9e4df;
  opacity: 0;
  transition: var(--transition);
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #142332;
  transition: width 0.5s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(20, 35, 50, 0.25);
  z-index: 2;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { width: 100%; }
.service-card__icon {
  width: 48px;
  height: 48px;
  color: #142332;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.service-card:hover .service-card__icon { transform: scale(1.1); }
.service-card__icon svg { width: 100%; height: 100%; }
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.service-card__text {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

/* ======================
   FEATURED PROJECTS
   ====================== */
.projekti { background: var(--off-white); }
.projekti .section-header { text-align: left; margin-bottom: 56px; }
.projekti-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}
.projekti-header-row .section-subtitle { text-align: left; margin: 0; max-width: 420px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--dark-card);
}
.project-card:nth-child(1) { grid-column: 1 / 8; grid-row: 1; min-height: 520px; }
.project-card:nth-child(2) { grid-column: 8 / 13; grid-row: 1; min-height: 520px; }
.project-card:nth-child(3) { grid-column: 1 / 6; grid-row: 2; min-height: 400px; }
.project-card:nth-child(4) { grid-column: 6 / 13; grid-row: 2; min-height: 400px; }

.project-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform-origin: center;
  transition: transform 0.8s var(--ease);
}
.project-card:hover .project-card__img { transform: scale(1.06); }

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 12, 22, 0.88) 0%,
    rgba(5, 12, 22, 0.25) 50%,
    rgba(5, 12, 22, 0.05) 100%
  );
  transition: var(--transition);
  z-index: 2;
}
.project-card:hover .project-card__overlay {
  background: linear-gradient(
    to top,
    rgba(5, 12, 22, 0.92) 0%,
    rgba(5, 12, 22, 0.45) 55%,
    rgba(5, 12, 22, 0.08) 100%
  );
}
.project-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px;
  z-index: 3;
  transform: translateY(8px);
  transition: transform 0.4s var(--ease);
}
.project-card:hover .project-card__content { transform: translateY(0); }
.project-card__category {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.project-card__title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 8px;
}
.project-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
}
.project-card__meta span { display: flex; align-items: center; gap: 5px; }
.project-card__desc {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  margin-top: 12px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s ease;
}
.project-card:hover .project-card__desc { max-height: 80px; opacity: 1; }

/* Logo badge on project cards */
.project-card__logo-wrap {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 4;
  background: rgba(10, 18, 28, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 8px 14px;
  transition: var(--transition);
}
.project-card:hover .project-card__logo-wrap {
  background: rgba(10, 18, 28, 0.75);
  border-color: rgba(255,255,255,0.2);
}
.project-card__logo-wrap img {
  display: block;
  max-height: 34px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.projects-cta { text-align: center; margin-top: 56px; }

/* Project card image gradients */
.project-card:nth-child(1) .project-card__img {
  background-image: linear-gradient(135deg, #081825 0%, #102a42 40%, #0a2035 70%, #081522 100%);
}
.project-card:nth-child(2) .project-card__img {
  background-image: linear-gradient(145deg, #0d1a25 0%, #0e2d40 45%, #0a2232 100%);
}
.project-card:nth-child(3) .project-card__img {
  background-image: linear-gradient(120deg, #0f1e2a 0%, #1a3a55 50%, #102438 100%);
}
.project-card:nth-child(4) .project-card__img {
  background-image: linear-gradient(160deg, #081520 0%, #0c2840 50%, #091820 100%);
}

/* Project image texture overlay */
.project-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 60% 60% at 30% 40%, rgba(64,165,207,0.12) 0%, transparent 60%);
}

/* ======================
   WHY CHOOSE US — PREDNOSTI
   ====================== */
.prednosti { background: #f0ebe6; }
.prednosti__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 80px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  padding: 52px 40px;
  text-align: center;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--border-light);
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 300;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.stat-number span {
  color: #20354a;
  font-weight: 400;
}
.stat-label {
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.prednosti__benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.benefit-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 44px 40px;
  background: #f3efeb;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: var(--transition);
}
.benefit-item:hover {
  background: #e9e4df;
  border-color: rgba(20, 35, 50, 0.25);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.benefit-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: #142332;
}
.benefit-icon svg { width: 100%; height: 100%; }
.benefit-content h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.benefit-content p {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ======================
   PARTNERS — SARADNICI
   ====================== */
.saradnici { background: var(--off-white); padding: 80px 0; }
.saradnici .section-header { margin-bottom: 48px; }
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
}
.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--off-white), transparent);
}
.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--off-white), transparent);
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 60px;
  min-width: 200px;
  height: 80px;
  filter: grayscale(100%) opacity(0.4);
  transition: var(--transition);
  cursor: default;
}
.partner-logo:hover { filter: grayscale(0%) opacity(1); }
.partner-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ======================
   CTA SECTION
   ====================== */
.cta-section {
  background: #20354a;
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(64, 165, 207, 0.08) 0%, transparent 65%);
  pointer-events: none;
}
.cta-section .section-label { color: var(--accent); }
.cta-section .section-title { color: var(--white); }
.cta-section .section-subtitle { color: rgba(255,255,255,0.55); }
.cta-section .btn--primary {
  background: var(--accent);
  border-color: var(--accent);
}
.cta-section .btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 12px 30px rgba(64, 165, 207, 0.3);
}
.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
}

/* ======================
   FOOTER
   ====================== */
footer {
  background: #142332;
  color: var(--white);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 40px;
}
.footer-brand .nav-logo-text { color: var(--white); font-size: 1.6rem; }
.footer-brand .nav-logo-sub { color: rgba(255,255,255,0.35); }
.footer-tagline {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  margin-top: 20px;
  margin-bottom: 32px;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(64,165,207,0.1);
}
.footer-col h5 {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 24px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  transition: var(--transition-fast);
}
.footer-nav a:hover { color: var(--white); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}
.footer-contact-item span {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-copyright {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
}
.footer-bottom-links {
  display: flex;
  gap: 28px;
}
.footer-bottom-links a {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
  transition: var(--transition-fast);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ======================
   REFERENCE PAGE — HERO
   ====================== */
.page-hero {
  background: var(--dark);
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 25% 50%, rgba(64,165,207,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 75% 40%, rgba(64,165,207,0.07) 0%, transparent 50%);
}
.page-hero__label { color: var(--accent); position: relative; z-index: 1; }
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.page-hero__subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ======================
   REFERENCE PAGE — FILTERS
   ====================== */
.ref-filters {
  background: var(--white);
  padding: 48px 0;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
}
.filter-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 24px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* ======================
   REFERENCE PAGE — GRID
   ====================== */
.ref-section { padding: 80px 0 120px; background: var(--off-white); }
.ref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ref-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
}
.ref-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.ref-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.ref-card__img-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease);
}
.ref-card:hover .ref-card__img-inner { transform: scale(1.06); }
.ref-card__category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: rgba(10, 20, 30, 0.75);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.ref-card__body { padding: 28px; }
.ref-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.ref-card__meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 14px;
}
.ref-card__meta span { display: flex; align-items: center; gap: 4px; }
.ref-card__desc {
  font-size: 0.87rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-secondary);
}
.ref-card__footer {
  padding: 0 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ref-card__link {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}
.ref-card__link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.ref-card:hover .ref-card__link svg { transform: translateX(4px); }

/* Hidden state for filter */
.ref-card.hidden {
  opacity: 0;
  transform: scale(0.97) translateY(8px);
  pointer-events: none;
}
.ref-card.filtered-out {
  display: none;
}

/* ======================
   MODAL
   ====================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.modal.active { opacity: 1; visibility: visible; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.88);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.modal__panel {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  box-shadow: var(--shadow-xl);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s var(--ease-out), opacity 0.4s ease;
  opacity: 0;
}
.modal.active .modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
  font-size: 1.1rem;
  cursor: pointer;
}
.modal__close:hover { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.4); }
.modal__image {
  position: relative;
  min-height: 500px;
  background: var(--dark-card);
  overflow: hidden;
}
.modal__image-inner {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.modal__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,12,22,0.5) 0%, transparent 50%);
}
.modal__info {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
}
.modal__category {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.modal__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.modal__meta {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}
.modal__meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-secondary);
}
.modal__meta-item svg { width: 15px; height: 15px; color: var(--accent); }
.modal__desc {
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.modal__details { margin-bottom: 36px; }
.modal__details h5 {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
}
.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal__tag {
  padding: 6px 16px;
  background: var(--light-gray);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-secondary);
}
.modal__cta { margin-top: auto; }

/* ======================
   SCROLL REVEAL ANIMATIONS
   ====================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-delay="100"] { transition-delay: 0.1s; }
[data-reveal][data-delay="150"] { transition-delay: 0.15s; }
[data-reveal][data-delay="200"] { transition-delay: 0.2s; }
[data-reveal][data-delay="250"] { transition-delay: 0.25s; }
[data-reveal][data-delay="300"] { transition-delay: 0.3s; }
[data-reveal][data-delay="350"] { transition-delay: 0.35s; }
[data-reveal][data-delay="400"] { transition-delay: 0.4s; }
[data-reveal][data-delay="450"] { transition-delay: 0.45s; }
[data-reveal][data-delay="500"] { transition-delay: 0.5s; }
[data-reveal][data-delay="600"] { transition-delay: 0.6s; }

/* Fade up animation (hero) */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 1100px) {
  .container { padding: 0 32px; }
  .nav-container { padding: 0 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .prednosti__stats { grid-template-columns: repeat(2, 1fr); }
  .prednosti__stats .stat-item:nth-child(3)::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .ref-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .project-card:nth-child(1) { grid-column: 1 / 2; grid-row: 1; min-height: 380px; }
  .project-card:nth-child(2) { grid-column: 2 / 3; grid-row: 1; min-height: 380px; }
  .project-card:nth-child(3) { grid-column: 1 / 2; grid-row: 2; min-height: 320px; }
  .project-card:nth-child(4) { grid-column: 2 / 3; grid-row: 2; min-height: 320px; }
  .prednosti__benefits { grid-template-columns: 1fr 1fr; }
  .modal__panel { grid-template-columns: 1fr; }
  .modal__image { min-height: 280px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .nav-container { padding: 0 20px; }
  .nav-menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(20, 35, 50, 0.97); backdrop-filter: blur(20px);
    flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 24px;
    border-top: 1px solid rgba(255,255,255,0.08); }
  .nav-menu.open { display: flex; }
  .nav-link,
  #navbar.scrolled .nav-link { color: #ffffff; font-size: 1rem; letter-spacing: 0.06em; }
  .nav-link--accent,
  #navbar.scrolled .nav-link--accent { color: #ffffff !important; }
  .footer-grid > div:nth-child(2),
  .footer-grid > div:nth-child(3) { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero__title { font-size: clamp(36px, 8vw, 56px); }
  .hero__subtitle { font-size: 0.95rem; }
  .hero__subtitle br { display: none; }
  .hero__buttons { gap: 12px; }
  .btn { padding: 14px 28px; }
  .section-title { font-size: clamp(32px, 6vw, 48px); }
  .services-grid { grid-template-columns: 1fr; gap: 0; }
  .service-card:hover { transform: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card:nth-child(n) { grid-column: 1; grid-row: auto; min-height: 320px; }
  .projekti-header-row { flex-direction: column; align-items: flex-start; }
  .prednosti__stats { grid-template-columns: repeat(2, 1fr); }
  .prednosti__stats .stat-item::before { display: none !important; }
  .prednosti__benefits { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .ref-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 130px 0 70px; }
  .ref-filters { position: static; }
  .modal { padding: 0; align-items: flex-end; }
  .modal__panel { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 90vh; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ======================
   GALLERY LIGHTBOX
   ====================== */
.gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 3500;
  background: #000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gallery-overlay.active { opacity: 1; visibility: visible; }

.gallery-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, transparent 100%);
  pointer-events: none;
}
.gallery-topbar > * { pointer-events: auto; }

.gallery-project-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
}
.gallery-counter-top {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.14em;
}
.gallery-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  cursor: pointer;
}
.gallery-close-btn:hover { background: rgba(255,255,255,0.18); }

/* Main image area */
.gallery-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 70px 80px 80px;
}
.gallery-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  opacity: 1;
  transition: opacity 0.22s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.gallery-img.fading { opacity: 0; }

/* Prev / Next arrows */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  cursor: pointer;
  z-index: 2;
}
.gallery-arrow:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.35); }
.gallery-arrow:disabled { opacity: 0.2; cursor: not-allowed; }
.gallery-arrow--prev { left: 16px; }
.gallery-arrow--next { right: 16px; }

/* Thumbnail strip */
.gallery-thumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 18px;
  flex-wrap: wrap;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.gallery-thumb {
  width: 52px;
  height: 36px;
  border-radius: 3px;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.gallery-thumb:hover { opacity: 0.8; }
.gallery-thumb.active { opacity: 1; border-color: var(--accent); }

/* Make project cards clickable */
.project-card { cursor: pointer; }

@media (max-width: 768px) {
  .gallery-stage { padding: 64px 52px 70px; }
  .gallery-arrow { width: 40px; height: 40px; }
  .gallery-arrow--prev { left: 8px; }
  .gallery-arrow--next { right: 8px; }
  .gallery-thumb { width: 40px; height: 28px; }
}

/* ======================
   CONTACT POPUP
   ====================== */
.cpop {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.cpop.active { opacity: 1; visibility: visible; }
.cpop__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.82);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.cpop__panel {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 48px 44px 40px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.22);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.38s var(--ease-out);
}
.cpop.active .cpop__panel {
  transform: translateY(0) scale(1);
}
.cpop__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.cpop__close:hover { background: var(--light-gray); color: var(--text-primary); }

.cpop__header { margin-bottom: 28px; }
.cpop__header .section-label { margin-bottom: 8px; }
.cpop__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 8px;
}
.cpop__subtitle {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Form */
.cpop__form { display: flex; flex-direction: column; gap: 16px; }
.cpop__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cpop__field { display: flex; flex-direction: column; gap: 6px; }
.cpop__field label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.cpop__field input,
.cpop__field textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  width: 100%;
  resize: none;
}
.cpop__field input::placeholder,
.cpop__field textarea::placeholder { color: var(--text-light); }
.cpop__field input:focus,
.cpop__field textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(64, 165, 207, 0.12);
}
.cpop__field input.error,
.cpop__field textarea.error { border-color: #e05050; }
.cpop__field textarea { min-height: 110px; }

.cpop__submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  font-size: 0.78rem;
}
.cpop__submit svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Success state */
.cpop__success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 24px 0 8px;
}
.cpop__success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(64, 165, 207, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.cpop__success h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-primary);
}
.cpop__success p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; }

/* Divider */
.cpop__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 18px;
  color: var(--text-light);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cpop__divider::before,
.cpop__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* Phone link */
.cpop__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  text-decoration: none;
}
.cpop__phone svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.cpop__phone:hover { color: var(--accent); }

@media (max-width: 560px) {
  .cpop__panel { padding: 36px 24px 32px; }
  .cpop__row { grid-template-columns: 1fr; }
}

/* ======================
   FLIPBOOK CATALOG
   ====================== */
.flipbook-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(4, 8, 15, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 20px 16px 16px;
}
.flipbook-overlay.active { opacity: 1; visibility: visible; }

.flipbook-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.flipbook-close:hover { background: rgba(255,255,255,0.18); }

.flipbook-scene {
  perspective: 2800px;
  width: min(88vw, 980px);
  height: min(68vh, 600px);
  position: relative;
}

.flipbook-book {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  box-shadow: 0 40px 80px rgba(0,0,0,0.7);
  border-radius: 4px 8px 8px 4px;
}
.flipbook-book::after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 5%;
  right: 5%;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.flipbook-left,
.flipbook-right {
  flex: 1;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.flipbook-left { border-radius: 4px 0 0 4px; }
.flipbook-right { border-radius: 0 8px 8px 0; }

.flipbook-spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 6px;
  transform: translateX(-50%);
  background: linear-gradient(to right,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.15) 30%,
    rgba(255,255,255,0.06) 50%,
    rgba(0,0,0,0.15) 70%,
    rgba(0,0,0,0.45) 100%);
  z-index: 6;
  pointer-events: none;
}

.flipbook-page {
  position: absolute;
  top: 0;
  height: 100%;
  transform-style: preserve-3d;
  z-index: 10;
  opacity: 0;
}
.flipbook-page__front,
.flipbook-page__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.flipbook-page__back { transform: rotateY(180deg); }

/* --- Page content --- */
.fb-cover-left {
  width: 100%;
  height: 100%;
  background: #0c1118;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.fb-cover-logo {
  width: 110px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.fb-cover-tagline {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0 28px;
  line-height: 1.7;
}
.fb-cover-right {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.fb-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.18) 55%, rgba(0,0,0,0.08) 100%);
}
.fb-cover-content {
  position: relative;
  z-index: 1;
  padding: 32px 28px;
}
.fb-cover-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.fb-cover-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
}
.fb-cover-location {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
}

.fb-page {
  width: 100%;
  height: 100%;
  background: #fff;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  position: relative;
}
.fb-page--dark { background: #111820; color: #fff; }
.fb-page--accent-bg { background: linear-gradient(140deg, #081825 0%, #0e2f48 100%); color: #fff; }

.fb-page-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.fb-page h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-primary);
  margin-top: 2px;
}
.fb-page--dark h3, .fb-page--accent-bg h3 { color: #fff; }
.fb-page p {
  font-size: 0.81rem;
  line-height: 1.78;
  color: var(--text-secondary);
}
.fb-page--dark p { color: rgba(255,255,255,0.62); }
.fb-page--accent-bg p { color: rgba(255,255,255,0.62); }

.fb-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}
.fb-tag {
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}
.fb-page--dark .fb-tag { border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.55); }

.fb-full-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.fb-price-list { display: flex; flex-direction: column; }
.fb-price-item {
  display: flex;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 8px;
}
.fb-price-item:last-child { border-bottom: none; }
.fb-price-name { font-size: 0.79rem; color: var(--text-primary); flex: 1; min-width: 0; }
.fb-price-dots {
  flex: 1;
  min-width: 12px;
  border-bottom: 1px dotted var(--border);
  margin: 0 6px;
  position: relative;
  top: -3px;
}
.fb-price-val { font-size: 0.79rem; color: var(--accent); font-weight: 500; white-space: nowrap; }
.fb-price-note {
  font-size: 0.69rem;
  color: var(--text-light);
  margin-top: 14px;
  line-height: 1.65;
  font-style: italic;
}

.fb-closing {
  width: 100%;
  height: 100%;
  background: #0c1118;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 32px;
  gap: 16px;
}
.fb-closing__logo { width: 90px; filter: brightness(0) invert(1); opacity: 0.88; }
.fb-closing__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.3;
}
.fb-closing__subtitle { font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 240px; }
.fb-closing__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 6px;
  transition: background 0.2s;
}
.fb-closing__cta:hover { background: var(--accent-hover); }

/* Navigation */
.flipbook-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}
.flipbook-nav__btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.flipbook-nav__btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.38);
}
.flipbook-nav__btn:disabled { opacity: 0.28; cursor: not-allowed; }
.flipbook-nav__counter {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.12em;
  min-width: 70px;
  text-align: center;
}
.flipbook-hint {
  margin-top: 10px;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .flipbook-scene { width: 96vw; height: 58vh; }
  .fb-page { padding: 22px 18px; gap: 12px; }
  .fb-page h3 { font-size: 1.1rem; }
  .fb-page p { font-size: 0.75rem; line-height: 1.65; }
  .fb-price-name, .fb-price-val { font-size: 0.72rem; }
  .fb-cover-title { font-size: 1.25rem; }
  .fb-cover-content { padding: 20px 18px; }
  .flipbook-close { top: 12px; right: 14px; width: 36px; height: 36px; }
}
@media (max-width: 480px) {
  .flipbook-scene { width: 98vw; height: 82vw; }
  .fb-page { padding: 16px 14px; }
}

/* ======================
   BACK TO TOP BUTTON
   ====================== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #41a4ce;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(65, 164, 206, 0.3);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #2f8db5;
  box-shadow: 0 12px 30px rgba(65, 164, 206, 0.45);
  transform: translateY(-3px);
}
.back-to-top svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 768px) {
  .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
  .back-to-top svg { width: 20px; height: 20px; }
}
