/* ============================================================
   Water Sport Centar Selce — Plaža Maslina
   Modern coastal redesign
   ============================================================ */

:root {
  /* Palette — Adriatic blues + sunny accent (from the shark/parasail logo) */
  --navy:        #062f4f;
  --ocean:       #0a5ca8;
  --ocean-light: #1689d6;
  --sky:         #5bc0eb;
  --foam:        #e8f5fc;
  --sun:         #ffc312;
  --sun-dark:    #f0a500;
  --coral:       #ff6b6b;

  --ink:         #0c2433;
  --body:        #41576a;
  --muted:       #7b8c9b;
  --line:        #e2ebf2;
  --white:       #ffffff;
  --bg-soft:     #f5f9fc;

  --radius:      18px;
  --radius-sm:   12px;
  --shadow-sm:   0 4px 14px rgba(6, 47, 79, 0.08);
  --shadow:      0 16px 40px rgba(6, 47, 79, 0.12);
  --shadow-lg:   0 30px 70px rgba(6, 47, 79, 0.20);

  --container:   1180px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.7;
  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-head);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
}

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ocean);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--sun);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: .8rem 0 1rem;
  letter-spacing: -0.02em;
}
.section-lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
}
.center .section-lead { margin-inline: auto; }
.center .eyebrow::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  padding: .95rem 1.8rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn--sun { background: var(--sun); color: var(--navy); box-shadow: 0 10px 24px rgba(255, 195, 18, .4); }
.btn--sun:hover { box-shadow: 0 16px 32px rgba(255, 195, 18, .5); }
.btn--ocean { background: var(--ocean); color: #fff; box-shadow: 0 10px 24px rgba(10, 92, 168, .35); }
.btn--ocean:hover { box-shadow: 0 16px 32px rgba(10, 92, 168, .45); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--outline { background: transparent; color: var(--ocean); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ocean); }

/* ============================================================
   Header / Navigation
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 1.1rem 0;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 3px; box-shadow: var(--shadow-sm); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: #fff; transition: color .4s; }
.brand__sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); transition: color .4s; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .98rem;
  color: rgba(255,255,255,.92);
  position: relative;
  padding: .3rem 0;
  transition: color .3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--sun);
  border-radius: 2px;
  transition: width .3s var(--ease);
}
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

/* Scrolled state */
.header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: .65rem 0;
}
.header.scrolled .brand__name { color: var(--ink); }
.header.scrolled .brand__sub { color: var(--muted); }
.header.scrolled .nav__links a { color: var(--ink); }
.header.scrolled .nav__toggle span { background: var(--ink); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}
.nav__toggle span {
  width: 26px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.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); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(6,47,79,.85) 0%, rgba(6,47,79,.55) 45%, rgba(10,92,168,.25) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; padding-block: 9rem; }
.hero__eyebrow {
  color: var(--sun);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .85rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.hero__eyebrow::before { content:""; width: 32px; height:2px; background: var(--sun); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  margin: 1.2rem 0 1.4rem;
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--sun); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.35rem); color: rgba(255,255,255,.92); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero__stat strong { font-family: var(--font-head); font-size: 2rem; color: #fff; display: block; }
.hero__stat span { font-size: .85rem; color: rgba(255,255,255,.8); letter-spacing: .05em; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.8);
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.hero__scroll .mouse {
  width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px;
  position: relative;
}
.hero__scroll .mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px; transform: translateX(-50%);
  width: 4px; height: 7px; background: #fff; border-radius: 2px;
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,12px)} 100%{opacity:0} }

/* Wave divider */
.wave-divider { line-height: 0; }
.wave-divider svg { width: 100%; height: clamp(50px, 8vw, 110px); display: block; }
.hero .wave-divider { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 2; }

/* ============================================================
   Intro / page header (subpages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: clamp(9rem, 16vw, 13rem) 0 clamp(5rem, 9vw, 8rem);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.page-hero__bg { position:absolute; inset:0; background-size:cover; background-position:center; }
.page-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(6,47,79,.8), rgba(6,47,79,.65)); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { color:#fff; font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing:-.02em; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 600px; margin: 1rem auto 0; font-size: 1.1rem; }
.breadcrumb { color: rgba(255,255,255,.75); font-size:.85rem; letter-spacing:.08em; margin-bottom:1rem; }
.breadcrumb a:hover { color: var(--sun); }

/* ============================================================
   Activities / cards
   ============================================================ */
.grid { display: grid; gap: 1.8rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width:100%; height:100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.08); }
.card__tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--sun); color: var(--navy);
  font-family: var(--font-head); font-weight: 600; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: 999px;
}
.card__body { padding: 1.6rem 1.6rem 1.8rem; display:flex; flex-direction:column; flex:1; }
.card__body h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.card__body p { color: var(--muted); font-size: .98rem; flex: 1; }
.card__link {
  margin-top: 1.2rem;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  color: var(--ocean); display: inline-flex; align-items: center; gap: .45rem;
  transition: gap .3s;
}
.card:hover .card__link { gap: .8rem; }

/* ============================================================
   Feature / alternating split
   ============================================================ */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature + .feature { margin-top: clamp(3rem, 7vw, 6rem); }
.feature--reverse .feature__media { order: 2; }
.feature__media {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.feature__media img { width:100%; aspect-ratio: 5/4; object-fit: cover; }
.feature__badge {
  position:absolute; bottom: 18px; left: 18px;
  background: rgba(6,47,79,.85); color:#fff; backdrop-filter: blur(6px);
  padding: .7rem 1.2rem; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight:600; font-size:.9rem;
  display:flex; align-items:center; gap:.5rem;
}
.feature__badge .num { color: var(--sun); font-size:1.3rem; }
.feature h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: .7rem 0 1rem; }
.feature p { margin-bottom: 1.4rem; }
.feature__list { display: grid; gap: .8rem; margin-bottom: 1.8rem; }
.feature__list li { display:flex; gap:.7rem; align-items:flex-start; color: var(--body); }
.feature__list svg { flex:none; margin-top:3px; color: var(--ocean); }

/* Spec chips */
.specs { display:flex; flex-wrap:wrap; gap:.7rem; margin: 1.2rem 0 1.8rem; }
.spec {
  display:flex; align-items:center; gap:.5rem;
  background: var(--foam); color: var(--ocean);
  font-family: var(--font-head); font-weight:600; font-size:.85rem;
  padding:.55rem 1rem; border-radius:999px;
}

/* ============================================================
   Steps / how it works
   ============================================================ */
.steps { display:grid; grid-template-columns: repeat(4,1fr); gap:1.8rem; counter-reset: step; }
.step { text-align:center; position:relative; }
.step__num {
  width:64px; height:64px; margin:0 auto 1.2rem;
  display:grid; place-items:center;
  background: linear-gradient(135deg, var(--ocean), var(--ocean-light));
  color:#fff; border-radius:50%;
  font-family: var(--font-head); font-weight:700; font-size:1.4rem;
  box-shadow: 0 10px 24px rgba(10,92,168,.35);
}
.step h3 { font-size:1.2rem; margin-bottom:.5rem; }
.step p { color: var(--muted); font-size:.95rem; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery { columns: 3; column-gap: 1.1rem; }
.gallery__item {
  break-inside: avoid; margin-bottom: 1.1rem;
  border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; position: relative; box-shadow: var(--shadow-sm);
}
.gallery__item img { width:100%; transition: transform .6s var(--ease); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,47,79,.5));
  opacity: 0; transition: opacity .4s;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,20,33,.92); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.12); color:#fff;
  border:0; cursor:pointer; width:52px; height:52px; border-radius:50%;
  font-size:1.4rem; display:grid; place-items:center;
  transition: background .3s; backdrop-filter: blur(4px);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: 24px; }
.lightbox__nav.next { right: 24px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--ocean));
  color:#fff; border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align:center;
}
.cta-band::before, .cta-band::after {
  content:""; position:absolute; border-radius:50%;
  background: rgba(255,255,255,.06);
}
.cta-band::before { width:300px; height:300px; top:-120px; right:-80px; }
.cta-band::after { width:220px; height:220px; bottom:-110px; left:-60px; background: rgba(255,195,18,.12); }
.cta-band h2 { color:#fff; font-size: clamp(1.8rem,4vw,2.8rem); margin-bottom:1rem; position:relative; }
.cta-band p { color: rgba(255,255,255,.9); max-width:560px; margin:0 auto 2rem; position:relative; }
.cta-band__actions { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; position:relative; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items:start; }
.contact-cards { display:grid; gap:1.2rem; }
.contact-card {
  display:flex; gap:1.1rem; align-items:flex-start;
  background:#fff; border:1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.4rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card__icon {
  flex:none; width:50px; height:50px; border-radius:14px;
  display:grid; place-items:center;
  background: var(--foam); color: var(--ocean);
}
.contact-card h4 { font-size:1.05rem; margin-bottom:.2rem; }
.contact-card a, .contact-card p { color: var(--muted); font-size:.98rem; }
.contact-card a:hover { color: var(--ocean); }

.contact-form { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem,4vw,2.4rem); box-shadow: var(--shadow-sm); }
.contact-form h3 { font-size:1.5rem; margin-bottom:1.4rem; }
.field { margin-bottom:1.1rem; }
.field label { display:block; font-family:var(--font-head); font-weight:500; font-size:.88rem; color:var(--ink); margin-bottom:.4rem; }
.field input, .field textarea {
  width:100%; font-family: var(--font-body); font-size:1rem; color:var(--ink);
  padding:.85rem 1rem; border:1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); transition: border-color .3s, background .3s;
}
.field input:focus, .field textarea:focus { outline:none; border-color: var(--ocean); background:#fff; }
.field textarea { resize: vertical; min-height: 120px; }

.map-embed { margin-top: clamp(3rem,6vw,5rem); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); border:1px solid var(--line); line-height:0; }
.map-embed iframe { width:100%; height: 420px; border:0; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--navy); color: rgba(255,255,255,.75); padding: clamp(3.5rem,7vw,5rem) 0 0; }
.footer__top { display:grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand { display:flex; align-items:center; gap:.8rem; margin-bottom:1.2rem; }
.footer__brand img { width:54px; height:54px; border-radius:50%; background:#fff; padding:3px; }
.footer__brand strong { font-family:var(--font-head); color:#fff; font-size:1.15rem; display:block; }
.footer__brand span { font-size:.75rem; letter-spacing:.12em; text-transform:uppercase; color: var(--sky); }
.footer p { font-size:.95rem; max-width: 320px; }
.footer h4 { color:#fff; font-size:1.05rem; margin-bottom:1.1rem; }
.footer__links { display:grid; gap:.7rem; }
.footer__links a, .footer__contact li { font-size:.95rem; transition: color .3s; }
.footer__links a:hover { color: var(--sun); }
.footer__contact { display:grid; gap:.8rem; }
.footer__contact li { display:flex; gap:.6rem; align-items:flex-start; }
.footer__contact svg { flex:none; margin-top:3px; color: var(--sky); }
.footer__contact a:hover { color: var(--sun); }
.socials { display:flex; gap:.7rem; margin-top:1.3rem; }
.socials a {
  width:42px; height:42px; border-radius:50%;
  display:grid; place-items:center;
  background: rgba(255,255,255,.08); color:#fff;
  transition: background .3s, transform .3s;
}
.socials a:hover { background: var(--sun); color: var(--navy); transform: translateY(-3px); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:.6rem;
  font-size:.85rem; color: rgba(255,255,255,.55);
}
.footer__bottom a:hover { color: var(--sun); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity:0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity:1; transform:none; }
.reveal[data-delay="1"] { transition-delay:.1s; }
.reveal[data-delay="2"] { transition-delay:.2s; }
.reveal[data-delay="3"] { transition-delay:.3s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2,1fr); gap: 2.5rem 1.5rem; }
  .feature, .contact-grid { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
  .feature__media { max-width: 560px; }
  .gallery { columns: 2; }
}
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto;
    width: min(80vw, 320px);
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav.open .nav__links { transform: translateX(0); }
  .nav__links a { color: var(--ink) !important; font-size: 1.3rem; }
  .hero__stats { gap: 1.8rem; }
  .hero__stat strong { font-size: 1.6rem; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; }
}
@media (max-width: 520px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .hero__actions .btn, .cta-band__actions .btn { width: 100%; justify-content:center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity:1; transform:none; }
}
