/* =============================================
   HIGHTIDE SOLUTIONS — main stylesheet
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; line-height: 1.7;
  color: #1a2a3a; background: #fff; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

:root {
  --navy:      #0d2a4a;
  --navy-mid:  #163d66;
  --navy-light:#1a4f82;
  --blue:      #2a7bc8;
  --blue-light:#e8f1fb;
  --yellow:    #f5c518;
  --yellow-bg: rgba(245,197,24,0.15);
  --yellow-border: rgba(245,197,24,0.35);
  --text:      #1a2a3a;
  --text-muted:#5a6a7a;
  --border:    rgba(0,0,0,0.08);
  --white:     #fff;
  --bg-alt:    #f5f8fc;
  --bg-blue:   #f0f7ff;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow-hover: 0 8px 32px rgba(13,42,74,0.16);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --side-pad:  48px;
  --max-width: 1100px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 var(--side-pad);
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 11px; }
.nav-logo-icon {
  width: 38px; height: 38px; background: var(--yellow); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--navy);
  letter-spacing: 0.02em; flex-shrink: 0;
}
.nav-logo-text { color: #fff; font-size: 18px; font-weight: 600; letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 16px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--yellow); background: rgba(255,255,255,0.06); }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition); transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; background: var(--navy);
  padding: 0; max-height: 0; overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open { max-height: 300px; padding: 12px 0 20px; }
.mobile-link {
  color: rgba(255,255,255,0.8); font-size: 15px; font-weight: 500;
  padding: 13px var(--side-pad); letter-spacing: 0.04em;
  transition: color var(--transition), background var(--transition);
  border-left: 3px solid transparent;
}
.mobile-link:hover { color: var(--yellow); background: rgba(255,255,255,0.04); border-left-color: var(--yellow); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 100px 0 80px;
}
.hero-bg-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-bg-orb--1 {
  width: 500px; height: 500px; right: -120px; top: -100px;
  background: radial-gradient(circle, rgba(245,197,24,0.07) 0%, transparent 70%);
}
.hero-bg-orb--2 {
  width: 300px; height: 300px; right: 100px; bottom: -80px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
}
.hero-inner {
  max-width: var(--max-width); margin: 0 auto; width: 100%;
  padding: 0 var(--side-pad); position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center;
  background: var(--yellow-bg); border: 1px solid var(--yellow-border);
  border-radius: 20px; padding: 5px 14px; margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}
.hero-eyebrow span {
  color: var(--yellow); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(42px, 6.5vw, 76px);
  font-weight: 700; line-height: 1.05; color: #fff;
  margin-bottom: 20px; letter-spacing: -0.02em;
  animation: fadeInUp 0.7s 0.1s ease both;
}
.hero-title em { color: var(--yellow); font-style: normal; }
.hero-sub {
  color: rgba(255,255,255,0.65); font-size: 18px; line-height: 1.55;
  white-space: nowrap; margin-bottom: 36px;
  animation: fadeInUp 0.7s 0.2s ease both;
}
.btn-hero {
  display: inline-block; background: var(--yellow); color: var(--navy);
  font-size: 15px; font-weight: 600; padding: 14px 32px;
  border-radius: var(--radius-sm); letter-spacing: 0.03em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  animation: fadeInUp 0.7s 0.3s ease both; margin-bottom: 48px;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,197,24,0.35); background: #ffd340; }
.hero-scroll {
  display: block; width: 32px;
  animation: fadeInUp 0.7s 0.4s ease both, bounce 2.5s 1.5s ease-in-out infinite;
}
.hero-scroll svg { width: 28px; height: 28px; color: rgba(255,255,255,0.4); transition: color var(--transition); }
.hero-scroll:hover svg { color: var(--yellow); }

@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }

/* ---- SECTIONS ---- */
.section { padding: 80px 0; }
.section--alt  { background: var(--bg-alt); }
.section--blue { background: var(--bg-blue); }

.section-header { margin-bottom: 40px; text-align: center; }

.section-label {
  display: block; font-size: 13px; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px;
}
.section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700; color: var(--text); line-height: 1.2; letter-spacing: -0.02em;
}

/* ---- O NÁS & VIZE ---- */
.about-stack { display: flex; flex-direction: column; max-width: 520px; margin: 0 auto; }
.about-para { padding: 24px 0; border-bottom: 1px solid var(--border); }
.about-para:last-child { border-bottom: none; }
.accent-line { width: 28px; height: 2px; background: var(--yellow); border-radius: 2px; margin-bottom: 16px; }
.about-para p { font-size: 18px; color: var(--text-muted); line-height: 1.85; }

/* ---- SERVICE CARDS ---- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.services-grid--3 { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin: 0 auto; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; cursor: default;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  will-change: transform;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(42,123,200,0.3); }
.service-icon {
  width: 38px; height: 38px; background: var(--blue-light); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  color: #185fa5; transition: background var(--transition), color var(--transition);
}
.service-card:hover .service-icon { background: var(--navy); color: var(--yellow); }
.service-icon svg { width: 18px; height: 18px; }
.service-tag {
  display: inline-block; background: var(--blue-light); color: #185fa5;
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px;
  margin-bottom: 10px; letter-spacing: 0.05em; text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}
.service-card:hover .service-tag { background: rgba(245,197,24,0.2); color: #8a6000; }
.service-card h4 { font-size: 17px; font-weight: 600; color: var(--text); line-height: 1.45; margin-bottom: 8px; }
.service-card p  { font-size: 16px; color: var(--text-muted); line-height: 1.7; }

/* ---- KONTAKT ---- */
.contact-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px; align-items: start;
}
.contact-text .section-label { text-align: left; }
.contact-text .section-title { text-align: left; margin-bottom: 12px; }
.contact-text > p { font-size: 18px; color: var(--text-muted); line-height: 1.75; margin-top: 8px; }
.contact-card {
  background: var(--navy); border-radius: var(--radius); padding: 28px 32px;
  display: flex; flex-direction: column; gap: 18px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(13,42,74,0.3); }
.contact-row { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.contact-val { font-size: 16px; color: #fff; }
.contact-val a { color: var(--yellow); transition: opacity var(--transition); }
.contact-val a:hover { opacity: 0.8; }

/* ---- FOOTER ---- */
.footer { background: var(--navy); padding: 22px 0; }
.footer p { font-size: 12px; color: rgba(255,255,255,0.3); text-align: center; }

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 44px; height: 44px; background: var(--navy);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(13,42,74,0.25);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--blue); box-shadow: 0 6px 20px rgba(42,123,200,0.4); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---- SCROLL REVEAL ---- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.services-grid .service-card.reveal:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.services-grid .service-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.services-grid .service-card.reveal:nth-child(4) { transition-delay: 0.06s; }
.services-grid .service-card.reveal:nth-child(5) { transition-delay: 0.14s; }
.services-grid .service-card.reveal:nth-child(6) { transition-delay: 0.22s; }
.about-para.reveal:nth-child(1) { transition-delay: 0s; }
.about-para.reveal:nth-child(2) { transition-delay: 0.1s; }
.about-para.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ---- TABLET ---- */
@media (max-width: 960px) {
  :root { --side-pad: 36px; }
  .services-grid, .services-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
}

/* ---- MOBILE ---- */
@media (max-width: 640px) {
  :root { --side-pad: 20px; }
  .nav-inner { height: 60px; }
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .mobile-menu { display: flex; }
  .hero { padding-top: 90px; padding-bottom: 60px; min-height: 100svh; }
  .hero-sub { white-space: normal; font-size: 20px; }
  .btn-hero { font-size: 17px; }
  .section-label { font-size: 15px; }
  .about-para p { font-size: 20px; }
  .service-card h4 { font-size: 19px; }
  .service-card p { font-size: 18px; }
  .contact-text > p { font-size: 20px; }
  .contact-val { font-size: 18px; }
  .section { padding: 56px 0; }
  .about-stack { max-width: 100%; }
  .services-grid, .services-grid--3 { grid-template-columns: 1fr; gap: 12px; }
  .services-grid .service-card.reveal:nth-child(n) { transition-delay: 0s; }
  .contact-wrap { gap: 28px; }
  .contact-card { padding: 22px 24px; }
  .back-to-top { bottom: 20px; right: 20px; }
}

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