/* =========================================================
   Holiday apartments Stobreč — stylesheet
   ========================================================= */

:root {
  --bg:        #FAF7EF;
  --surface:   #FFFFFF;
  --ink:       #18282D;
  --ink-soft:  #51616A;
  --sea:       #0E4C5C;
  --sea-2:     #1C6E80;
  --sand:      #D89B3E;
  --sand-soft: #F2E4C8;
  --line:      #E7E1D2;
  --shadow:    0 18px 40px -22px rgba(14, 76, 92, .35);
  --radius:    18px;
  --maxw:      1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.01em;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.script { font-family: "Dancing Script", cursive; font-weight: 700; }

/* ---- Helpers ------------------------------------------- */
.eyebrow {
  font-family: "Manrope", sans-serif;
  font-size: .76rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--sea-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--sand); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .92rem;
  padding: 14px 28px; border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  cursor: pointer; border: none;
}
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: var(--sea-2); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--sea); color: var(--sea); transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--sea); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---- Header -------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 239, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand {
  font-family: "Dancing Script", cursive;
  font-size: 1.7rem; font-weight: 700;
  color: var(--sea); line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 16px; border-radius: 999px;
  font-weight: 600; font-size: .94rem;
  color: var(--ink-soft);
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--sea); }
.nav-links a.active { color: var(--sea); background: var(--sand-soft); }
.nav-links .btn { margin-left: 10px; padding: 11px 22px; color: #fff; }
.nav-links .btn:hover { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---- Hero ---------------------------------------------- */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
}
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(14,40,46,.40) 0%, rgba(14,40,46,.70) 100%),
    linear-gradient(180deg, rgba(14,40,46,.55) 0%, rgba(14,40,46,.45) 45%, rgba(14,40,46,.72) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 40px 0; max-width: 820px; }
.hero .eyebrow { color: var(--sand-soft); justify-content: center; }
.hero .eyebrow::before { background: var(--sand); }
.hero-logo {
  font-family: "Dancing Script", cursive; font-weight: 700;
  font-size: clamp(3.2rem, 8vw, 6rem); line-height: 1.05;
  margin: 14px 0 6px;
  text-shadow: 0 6px 30px rgba(0,0,0,.45);
}
.hero-sub {
  font-family: "Fraunces", serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: .04em; color: var(--sand-soft);
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.12rem; max-width: 540px;
  margin: 0 auto 30px; color: rgba(255,255,255,.9);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.page-hero {
  position: relative; min-height: 52vh;
  display: flex; align-items: center; color: #fff; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,40,46,.40), rgba(14,40,46,.72));
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 16px 0 12px; font-weight: 400; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 520px; }
.page-hero .eyebrow { color: var(--sand-soft); }

/* ---- Sections ------------------------------------------ */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 16px 0 14px; font-weight: 400; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---- Intro --------------------------------------------- */
.intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.intro-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.intro-media img { width: 100%; height: 480px; object-fit: cover; }
.intro-badge {
  position: absolute; left: 24px; bottom: 24px;
  background: var(--surface); border-radius: 14px;
  padding: 16px 22px; box-shadow: var(--shadow);
}
.intro-badge strong { font-family: "Fraunces", serif; font-size: 2rem; color: var(--sea); display: block; }
.intro-badge span { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
.intro-body h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 400; margin: 16px 0 18px; }
.intro-body p { color: var(--ink-soft); margin-bottom: 16px; }

/* ---- Features ------------------------------------------ */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 26px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature .icon {
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--sand-soft); display: grid; place-items: center;
  margin-bottom: 18px; font-size: 1.45rem;
}
.feature h3 { font-size: 1.22rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: .95rem; }

/* ---- Locations ----------------------------------------- */
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.loc-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 440px; display: flex; align-items: flex-end; color: #fff;
}
.loc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.loc-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,40,46,0) 35%, rgba(14,40,46,.88) 100%);
}
.loc-card:hover img { transform: scale(1.06); }
.loc-body { position: relative; z-index: 2; padding: 36px; }
.loc-body .script { font-size: 2.3rem; color: var(--sand-soft); line-height: 1.1; display: block; margin-bottom: 6px; }
.loc-body p { color: rgba(255,255,255,.86); margin-bottom: 16px; font-size: .96rem; }
.loc-link { font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; color: var(--sand-soft); display: inline-flex; gap: 7px; }
.loc-link span { transition: transform .25s ease; }
.loc-card:hover .loc-link span { transform: translateX(5px); }

/* ---- Distances ----------------------------------------- */
.location { background: var(--sea); color: #fff; }
.location .eyebrow { color: var(--sand-soft); }
.distance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 44px; }
.distance { border-top: 2px solid rgba(255,255,255,.22); padding-top: 22px; }
.distance .num { font-family: "Fraunces", serif; font-size: 2.6rem; color: var(--sand); display: block; line-height: 1; }
.distance h4 { font-size: 1.12rem; margin: 12px 0 7px; color: #fff; }
.distance p { font-size: .9rem; color: rgba(255,255,255,.72); }

/* ---- Testimonials -------------------------------------- */
.testimonials { background: var(--sand-soft); }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t-card { background: var(--surface); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 16px; }
.t-card .quote { font-family: "Fraunces", serif; font-size: 2.4rem; color: var(--sand); line-height: 0; height: 18px; }
.t-card p { color: var(--ink-soft); font-size: .98rem; flex-grow: 1; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-author .dot { width: 38px; height: 38px; border-radius: 50%; background: var(--sea); color: #fff; display: grid; place-items: center; font-family: "Fraunces", serif; font-size: 1.1rem; }
.t-author strong { display: block; font-size: .96rem; }
.t-author small { color: var(--ink-soft); }

/* ---- Apartments ---------------------------------------- */
.apt {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 40px;
}
.apt-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 30px 34px 6px;
}
.apt-head .apt-title h3 { font-size: 1.6rem; font-weight: 400; }
.apt-loc { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sea-2); }
.apt-price { font-family: "Fraunces", serif; font-size: 1.7rem; color: var(--sea); text-align: right; }
.apt-price small { font-family: "Manrope", sans-serif; font-size: .72rem; color: var(--ink-soft); font-weight: 600; display: block; }
.apt-body { padding: 14px 34px 32px; }
.apt-desc { color: var(--ink-soft); margin-bottom: 18px; max-width: 720px; }
.apt-specs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.apt-specs li {
  background: var(--bg); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; font-size: .85rem;
  color: var(--ink); font-weight: 600;
}
.apt-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.apt-gallery .gitem {
  position: relative; padding-bottom: 72%; overflow: hidden;
  border-radius: 10px; cursor: pointer; background: var(--line);
}
.apt-gallery .gitem img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .45s ease;
}
.apt-gallery .gitem:hover img { transform: scale(1.08); }
.apt-gallery .gitem.more::after {
  content: "+" attr(data-count);
  position: absolute; inset: 0;
  background: rgba(14,40,46,.66); color: #fff;
  display: grid; place-items: center;
  font-family: "Fraunces", serif; font-size: 1.5rem;
}

/* ---- Lightbox ------------------------------------------ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,22,25,.94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.12);
  border: none; color: #fff; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%;
  font-size: 1.5rem; display: grid; place-items: center;
  transition: background .2s ease;
}
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 22px; right: 24px; width: 46px; height: 46px; font-size: 1.2rem; }
.lb-counter {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 600; letter-spacing: .05em;
}

/* ---- Values -------------------------------------------- */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.value { display: flex; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.value .vnum { font-family: "Fraunces", serif; font-size: 1.8rem; color: var(--sand); flex-shrink: 0; }
.value h3 { font-size: 1.25rem; margin-bottom: 7px; }
.value p { color: var(--ink-soft); font-size: .95rem; }

/* ---- CTA ----------------------------------------------- */
.cta-band { position: relative; color: #fff; text-align: center; overflow: hidden; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: rgba(14,40,46,.78); }
.cta-inner { position: relative; z-index: 2; padding: 100px 0; }
.cta-inner h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; margin: 16px auto 16px; max-width: 660px; }
.cta-inner p { color: rgba(255,255,255,.82); max-width: 480px; margin: 0 auto 28px; }
.cta-inner .eyebrow { color: var(--sand-soft); justify-content: center; }

/* ---- Contact ------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: .98rem;
  padding: 13px 16px; border: 1.5px solid var(--line);
  border-radius: 11px; background: var(--bg); color: var(--ink);
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sea); }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.info-card { background: var(--sea); color: #fff; border-radius: var(--radius); padding: 36px; margin-bottom: 22px; }
.info-card:last-child { margin-bottom: 0; }
.info-card h3 { font-size: 1.3rem; margin-bottom: 6px; font-weight: 400; }
.info-card .role { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sand-soft); font-weight: 700; }
.info-card .addr { color: rgba(255,255,255,.82); margin: 14px 0; font-size: .95rem; }
.info-card a { color: var(--sand-soft); font-weight: 600; }
.info-line { display: flex; gap: 10px; font-size: .95rem; margin-top: 6px; color: rgba(255,255,255,.9); }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 48px; }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---- Footer -------------------------------------------- */
.site-footer { background: #0C2226; color: rgba(255,255,255,.7); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { color: #fff; font-family: "Manrope", sans-serif; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-brand { font-family: "Dancing Script", cursive; font-size: 1.9rem; color: #fff; margin-bottom: 12px; }
.footer-grid p { font-size: .94rem; }
.footer-grid ul li { margin-bottom: 9px; }
.footer-grid ul a { font-size: .94rem; transition: color .2s ease; }
.footer-grid ul a:hover { color: var(--sand); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px; display: flex; justify-content: space-between; font-size: .85rem; flex-wrap: wrap; gap: 10px; }

/* ---- Reveal -------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

.hero-inner > * { opacity: 0; animation: rise .9s ease forwards; }
.hero-inner > *:nth-child(1) { animation-delay: .15s; }
.hero-inner > *:nth-child(2) { animation-delay: .30s; }
.hero-inner > *:nth-child(3) { animation-delay: .45s; }
.hero-inner > *:nth-child(4) { animation-delay: .60s; }
.hero-inner > *:nth-child(5) { animation-delay: .75s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---- Responsive ---------------------------------------- */
@media (max-width: 980px) {
  .features { grid-template-columns: 1fr 1fr; }
  .distance-grid { grid-template-columns: 1fr 1fr; }
  .intro, .locations, .values, .contact-grid, .t-grid { grid-template-columns: 1fr; }
  .t-grid .t-card:nth-child(3) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .apt-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .section { padding: 70px 0; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    background: var(--bg); flex-direction: column; align-items: stretch;
    padding: 18px 26px 26px; gap: 4px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; }
  .nav-links .btn { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: flex; }
  .features { grid-template-columns: 1fr; }
  .distance-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .intro-media img { height: 340px; }
  .apt-gallery { grid-template-columns: repeat(2, 1fr); }
  .apt-head, .apt-body { padding-left: 22px; padding-right: 22px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}
