/* ══════════════════════════════════════════════
   iSail.sk – style.css
   Palette:
     --blue  : #003DA5  Croatian royal blue
     --red   : #D01B2A  Croatian red (accent)
     --teak  : #B07848  boat-deck teak / earthy
     --sand  : #F5EDE0  warm sandy background
     --dark  : #151F2E  deep navy text / sections
     --grey  : #EEF4FB  cool light blue-white
     --mid   : #5A6878
   ══════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  color: #1e293b;
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Variables ─── */
:root {
  --blue:       #003DA5;
  --red:        #D01B2A;
  --teak:       #B07848;
  --teak-light: #F0E4D4;
  --sand:       #F5EDE0;
  --dark:       #151F2E;
  --grey:       #EEF4FB;
  --mid:        #5A6878;
  --radius:     8px;
  --shadow:     0 4px 20px rgba(0,0,0,.08);
  --transition: .25s ease;
}

/* ─── Container ─── */
.container { width: min(1140px, 92%); margin-inline: auto; }

/* ─── Section headers ─── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header.left { text-align: left; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
}
.section-header h2 span { color: var(--red); }
.section-sub { color: var(--mid); font-size: .95rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  border: 2px solid transparent;
}
.btn:hover   { opacity: .88; transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-full    { width: 100%; text-align: center; }

/* ══════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  border-bottom: 3px solid var(--red);
  transition: box-shadow var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .85rem;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: .55rem; }
.logo-text {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: -.02em;
}
.logo-text strong { font-weight: 700; color: var(--blue); }
.logo-tld  { color: var(--red); font-weight: 600; }
.logo-flag { font-size: 1.15rem; line-height: 1; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--dark);
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}
.nav-links a:hover            { color: var(--blue); }
.nav-links a:hover::after     { width: 100%; }

/* Language toggle */
.lang-toggle {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: .38rem .9rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
}
.lang-toggle:hover { background: var(--red); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 83px;
  overflow: hidden;
  /* Fallback gradient — deep Croatian Adriatic */
  background: linear-gradient(160deg, #001033 0%, #003DA5 55%, #1558CC 100%);
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: blur(0px);
  transform: scale(1);
  transition: opacity 1.2s ease-in-out, filter 0.7s ease, transform 0.7s ease;
}
.hero-slide.blurring {
  filter: blur(16px);
  transform: scale(1.06);
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0,20,60,.58) 0%, rgba(0,10,40,.46) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding-block: 5rem;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  margin-bottom: 1rem;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
/* Croatian red accent in the headline span */
.hero-content h1 span {
  color: #ff6b6b;
  /* warm coral-red — readable on dark bg */
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Scroll chevron */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.scroll-chevron {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2.5px solid rgba(255,255,255,.6);
  border-bottom: 2.5px solid rgba(255,255,255,.6);
  transform: rotate(45deg);
  animation: chevron-bounce 1.6s ease-in-out infinite;
}
@keyframes chevron-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0);   opacity: .6; }
  50%       { transform: rotate(45deg) translateY(7px); opacity: 1;  }
}

/* ══════════════════════════════════════════════
   STATS  (warm sandy background)
   ══════════════════════════════════════════════ */
.stats { background: var(--sand); padding-block: 3.5rem; border-top: 1px solid #e8d8c4; border-bottom: 1px solid #e8d8c4; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .3rem;
}
.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--blue);
}
.stat-label {
  font-size: .8rem;
  color: var(--teak);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

/* ══════════════════════════════════════════════
   ABOUT  (white)
   ══════════════════════════════════════════════ */
.about { padding-block: 5rem; background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text p {
  font-size: .95rem;
  color: var(--mid);
  margin-bottom: 1rem;
}
.about-text p strong { color: var(--dark); font-weight: 600; }
.about-text .btn { margin-top: 1rem; }

.about-visual {
  position: relative;
  padding-bottom: 1.5rem;
  padding-right: 1.5rem;
}
.about-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #003DA5, #1a6bcc);
  box-shadow: 0 8px 40px rgba(0,61,165,.2);
}
.about-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(0px);
  transform: scale(1);
  transition: filter 0.7s ease, transform 0.7s ease;
}
.about-img-wrap img.blurring {
  filter: blur(12px);
  transform: scale(1.04);
}
.about-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--teak);
  border-radius: 10px;
  padding: .75rem 1.2rem;
  box-shadow: 0 4px 16px rgba(176,120,72,.35);
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.badge-icon { font-size: 1.3rem; line-height: 1; flex-shrink: 0; }

/* ══════════════════════════════════════════════
   SAILING REGIONS  (light sandy)
   ══════════════════════════════════════════════ */
.oblasti { padding-block: 5rem; background: var(--sand); }
.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.dest-card {
  background: #fff;
  border: 1px solid #e2d4c2;
  border-top: 3px solid var(--teak);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(176,120,72,.08);
  transition: transform var(--transition), box-shadow var(--transition), border-top-color var(--transition);
}
.dest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,61,165,.12);
  border-top-color: var(--blue);
}
.dest-icon {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.dest-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .7rem;
}
.dest-card p {
  font-size: .88rem;
  color: var(--mid);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════
   CONTACT  (deep navy)
   ══════════════════════════════════════════════ */
.kontakt { background: var(--dark); padding-block: 5rem; color: #9baec2; }
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.kontakt-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}
.kontakt-info h2 span { color: var(--red); }
.divider {
  width: 50px;
  border: none;
  border-top: 3px solid var(--teak);
  margin-bottom: 1.4rem;
}
.kontakt-info p { font-size: .95rem; margin-bottom: 1.8rem; line-height: 1.8; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: .9rem; }
.contact-list li { display: flex; align-items: flex-start; gap: .8rem; font-size: .95rem; }
.contact-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }
.contact-list a { color: var(--teak-light); transition: opacity var(--transition); }
.contact-list a:hover { opacity: .8; }

/* Form */
.kontakt-form-wrap h2 {
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  margin-bottom: .4rem;
}
.form-sub { font-size: .85rem; color: #5a7a90; margin-bottom: 1.8rem; }
.form-group { display: flex; flex-direction: column; margin-bottom: 1.2rem; }
.form-group label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #5a7a90;
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid #253a4e;
  padding: .6rem 0;
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #253a4e; }
.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--teak); }
.form-group input.invalid,
.form-group textarea.invalid { border-bottom-color: #e74c3c; }
.form-error { font-size: .78rem; color: #e74c3c; min-height: 1em; margin-top: .25rem; }
.form-success {
  display: none;
  text-align: center;
  color: var(--teak-light);
  margin-top: 1rem;
  font-size: .9rem;
  font-weight: 600;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.footer {
  background: #0b1520;
  padding-block: 1.5rem;
  text-align: center;
  color: #354a5e;
  font-size: .82rem;
  border-top: 2px solid var(--red);
}
.footer-inner { display: flex; flex-direction: column; gap: .35rem; }
.footer a { color: var(--teak-light); transition: opacity var(--transition); }
.footer a:hover { opacity: .8; }
.footer-company { color: #2a3c50; font-size: .78rem; }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 960px) {
  .about-grid   { grid-template-columns: 1fr; }
  .about-visual { display: none; }
  .dest-grid    { grid-template-columns: repeat(2, 1fr); }
  .kontakt-grid { grid-template-columns: 1fr; gap: 3rem; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 75px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    border-bottom: 3px solid var(--red);
  }
  .nav-links.open { display: flex; }
  .nav-toggle     { display: flex; }
  .dest-grid      { grid-template-columns: 1fr; }
  .hero-ctas      { flex-direction: column; align-items: center; }
}
