/* ============================================================
   Villa Suvo Vrelo — Jahorina
   Alpine premium retreat: crisp white + pine/forest green + warm wood
   ============================================================ */

:root {
  --pine: #1f3a2e;
  --pine-deep: #16291f;
  --forest: #2f5e45;
  --moss: #4d7c5a;
  --wood: #a9794d;
  --wood-soft: #c79a6b;
  --cream: #f6f3ec;
  --paper: #fbfaf6;
  --ink: #20251f;
  --muted: #5e6a5d;
  --line: #e4e0d4;
  --white: #ffffff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
  --shadow: 0 18px 50px -24px rgba(31, 58, 46, 0.35);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 400;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

.section { padding: 96px 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }

h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); color: var(--pine); }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
}
.eyebrow-line { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.eyebrow-line::before { content: ""; width: 30px; height: 1px; background: var(--wood); }
.eyebrow-center { justify-content: center; }

/* ============ HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(31,58,46,0.08);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-mark {
  font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: var(--white);
  letter-spacing: .01em; transition: color .3s ease;
}
.brand-sub {
  font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(255,255,255,0.78); margin-top: 5px; transition: color .3s ease;
}
.scrolled .brand-mark { color: var(--pine); }
.scrolled .brand-sub { color: var(--moss); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.92);
  letter-spacing: .01em; transition: color .2s ease; position: relative;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px;
  background: var(--wood-soft); transition: width .25s ease;
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.scrolled .nav a { color: var(--ink); }
.nav-cta {
  background: var(--wood); color: var(--white) !important;
  padding: 9px 20px; border-radius: 2px; font-weight: 600;
  transition: background .2s ease;
}
.nav-cta:hover { background: var(--wood-soft); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--white); transition: .3s; }
.scrolled .nav-toggle span { background: var(--pine); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: var(--white); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("images/villa-exterior.jpg") center 38% / cover no-repeat;
  transform: scale(1.04);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(22,41,31,0.62) 0%, rgba(22,41,31,0.28) 38%, rgba(22,41,31,0.78) 100%),
    radial-gradient(120% 90% at 30% 20%, rgba(31,58,46,0.18), transparent 60%);
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; padding-top: 60px; }
.hero .eyebrow { color: var(--wood-soft); }
.hero h1 {
  font-size: clamp(3rem, 8vw, 5.6rem); margin: 16px 0 22px; color: var(--white);
  text-shadow: 0 2px 24px rgba(0,0,0,.3);
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--wood-soft); }
.hero-lede {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 400; max-width: 600px; color: rgba(255,255,255,0.94); line-height: 1.4;
}
.hero-target {
  margin-top: 20px; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-credit {
  position: absolute; bottom: 22px; right: 24px; z-index: 2;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.92rem; letter-spacing: .01em;
  padding: 14px 28px; border-radius: 2px; transition: all .22s ease; cursor: pointer;
  border: 1px solid transparent;
}
.btn-solid { background: var(--wood); color: var(--white); }
.btn-solid:hover { background: var(--wood-soft); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* ============ STRIP ============ */
.strip { background: var(--pine); color: var(--white); }
.strip-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,0.1);
}
.strip-item {
  background: var(--pine); padding: 26px 22px; display: flex; flex-direction: column; gap: 6px;
}
.strip-k {
  font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--wood-soft);
}
.strip-v { font-size: 0.84rem; color: rgba(255,255,255,0.82); }

/* ============ ABOUT ============ */
.about { background: var(--paper); }
.about-grid {
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center;
}
.about-figure { position: relative; box-shadow: var(--shadow); border-radius: 3px; overflow: hidden; }
.about-figure img { width: 100%; height: auto; }
.about-figure figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 16px 18px; font-size: 0.78rem; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: linear-gradient(transparent, rgba(22,41,31,0.78));
}
.about-copy h2 { margin-bottom: 18px; }
.lead { font-size: 1.12rem; color: var(--ink); margin-bottom: 16px; }
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.text-link {
  font-weight: 600; color: var(--forest); border-bottom: 1px solid var(--wood-soft);
  padding-bottom: 2px; transition: color .2s;
}
.text-link:hover { color: var(--wood); }

/* ============ SECTION HEAD ============ */
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-top: 10px; }

/* ============ SERVICES ============ */
.services { background: var(--cream); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc {
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  padding: 34px 28px; transition: transform .25s ease, box-shadow .25s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-num {
  font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--wood);
  display: block; margin-bottom: 14px;
}
.svc h3 { color: var(--pine); margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 0.96rem; }

/* ============ GALLERY ============ */
.gallery-sec { background: var(--paper); }
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; grid-auto-flow: dense;
}
.card {
  position: relative; overflow: hidden; border-radius: 3px; cursor: pointer;
  background: var(--pine-deep); box-shadow: 0 10px 30px -18px rgba(31,58,46,0.5);
  aspect-ratio: 4 / 3;
}
.card-wide { grid-column: span 2; }
.card img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .5s ease, filter .3s ease;
}
.card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(22,41,31,0.45) 100%);
  opacity: 0; transition: opacity .3s ease;
}
.card:hover img { transform: scale(1.06); }
.card:hover::after { opacity: 1; }
.card:focus-visible { outline: 2px solid var(--wood); outline-offset: 3px; }

/* ============ WHY ============ */
.why { background: var(--pine); color: var(--white); }
.why h2 { color: var(--white); }
.why .eyebrow { color: var(--wood-soft); }
.why .eyebrow-line::before { background: var(--wood-soft); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.why-card {
  border: 1px solid rgba(255,255,255,0.14); border-radius: 3px; padding: 36px 28px;
  background: rgba(255,255,255,0.03); text-align: center;
}
.why-ico { font-size: 1.6rem; color: var(--wood-soft); display: block; margin-bottom: 14px; }
.why-card h3 { color: var(--white); margin-bottom: 10px; }
.why-card p { color: rgba(255,255,255,0.78); font-size: 0.96rem; }

/* ============ CONTACT ============ */
.contact { background: var(--cream); }
.contact-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.contact-lede { color: var(--muted); font-size: 1.1rem; margin: 16px auto 32px; max-width: 560px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.contact .btn-solid { background: var(--wood); }
.contact .btn-ghost { color: var(--pine); border-color: var(--pine); }
.contact .btn-ghost:hover { background: var(--pine); color: var(--white); }
.contact-loc {
  margin-top: 30px; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--moss);
}

/* ============ FOOTER ============ */
.site-footer { background: var(--pine-deep); color: rgba(255,255,255,0.8); padding: 64px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px;
}
.footer-word { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--white); display: block; }
.footer-word-sub {
  font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--wood-soft);
  display: block; margin: 6px 0 14px;
}
.footer-brand p { font-size: 0.92rem; line-height: 1.6; }
.f-label {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--wood-soft);
  display: block; margin-bottom: 10px;
}
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: var(--wood-soft); }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 22px 24px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem; color: rgba(255,255,255,0.55);
}

/* ============ STICKY MOBILE BAR ============ */
.mobile-bar { display: none; }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  background: rgba(15, 24, 18, 0.94); padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lb-inner { max-width: 92vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-inner img { max-width: 92vw; max-height: 78vh; width: auto; height: auto; border-radius: 3px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.lb-cap { color: rgba(255,255,255,0.82); font-size: 0.9rem; font-family: var(--serif); font-style: italic; text-align: center; }
.lb-close, .lb-nav {
  position: absolute; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,0.22); }
.lb-close { top: 22px; right: 22px; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; line-height: 1; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(78vw, 320px);
    background: var(--pine-deep); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 26px; padding: 40px; transform: translateX(100%); transition: transform .35s ease; z-index: 60;
  }
  .nav.open { transform: translateX(0); }
  .nav a { color: rgba(255,255,255,0.92) !important; font-size: 1.15rem; }
  .scrolled .nav a { color: rgba(255,255,255,0.92) !important; }
  .nav-cta { background: var(--wood); }
  .nav-toggle { display: flex; z-index: 70; }
  .nav.open ~ .nav-toggle span { background: #fff; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: span 2; }
  .hero-inner { padding-top: 40px; }
  .hero-actions .btn { flex: 1; min-width: 0; }

  /* sticky mobile bar */
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    box-shadow: 0 -6px 24px -10px rgba(0,0,0,.4);
  }
  .mobile-bar a {
    flex: 1; text-align: center; padding: 15px 8px; font-weight: 600; font-size: 0.95rem;
    color: #fff; letter-spacing: .02em;
  }
  .mb-call { background: var(--wood); }
  .mb-dm { background: var(--pine); }
  body { padding-bottom: 54px; }
  .footer-base { padding-bottom: 70px; }
}

@media (max-width: 480px) {
  .svc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr; }
  .contact-actions { flex-direction: column; }
  .contact-actions .btn { width: 100%; }
}
