/* style.css – Finančně V Klidu Futuristic Tech-inspired Styles */

/* ------------------------------
   RESET & NORMALIZE
------------------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  color: #f7f1df;
  background-color: #18314f;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #AEE1D8; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #fff; }

/* ------------------------------
   VARIABLE COLORS & FONT STYLES
------------------------------- */
:root {
  --primary: #295180;
  --secondary: #AEE1D8;
  --accent: #F7F1DF;
  --bg-dark: #18314f;
  --bg-light: #25395c;
  --neon: #2efdff;
  --neon-soft: #76fff7;
  --card-bg: #22436a;
  --shadow-lg: 0 4px 32px rgba(46,253,255,0.10), 0 2px 8px rgba(41,81,128,0.08);
  --shadow-card: 0 4px 20px 0 rgba(46,253,255,0.13), 0 1.5px 6px rgba(41,81,128,0.09);
  --radius: 18px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --cta-gradient: linear-gradient(90deg, #16c9f6 0%, #295180 95%);
}

/* ------------------------------
   TYPOGRAPHY HIERARCHY
------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.2rem; line-height: 1.1; }
h2 { font-size: 1.5rem; line-height: 1.15; }
h3 { font-size: 1.125rem; }
h4, h5, h6 { font-size: 1rem; font-weight: 600; }
p, ul, ol, li { font-size: 1rem; font-family: var(--font-body); }
p { margin-bottom: 16px; }
strong { color: var(--neon-soft); font-weight: 600; }

@media (min-width: 620px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.25rem; }
}

/* ------------------------------
   GLOBAL LAYOUT UTILITIES
------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.card-container, .service-grid, .client-profiles,
.card-grid, .content-grid, .team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-item, .faq-list li, .direct-contacts p {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  margin-bottom: 20px;
  transition: transform 0.18s, box-shadow 0.22s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px 0 var(--neon-soft), var(--shadow-card);
  border: 1.5px solid var(--neon);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.text-image-section, .testimonial-card, .newsletter-signup .container {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  background: #fff;
  color: #18314f;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(41,81,128,0.07);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.client-profiles > div {
  flex: 1 1 300px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px 18px 12px 18px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .container { padding: 0 10px; }
}

@media (max-width: 768px) {
  .section { padding: 28px 8px; }
  .content-wrapper { gap: 14px; }
  .card-container, .service-grid, .team-list, .client-profiles,
  .card-grid, .content-grid, .newsletter-signup .container {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section, .testimonial-card {
    flex-direction: column;
    gap: 20px;
  }
}

/* Ensure minimum 20px gap between content cards */
.card:not(:last-child), .testimonial-card:not(:last-child),
.client-profiles > div:not(:last-child), .faq-list li:not(:last-child),
.team-list > div:not(:last-child) {
  margin-bottom: 20px;
}

/* ------------------------------
   HEADER & NAVIGATION
------------------------------- */
header {
  width: 100%;
  background: #16304a;
  box-shadow: 0 2px 12px rgba(41,81,128,0.13);
  z-index: 999;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  position: relative;
  min-height: 80px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
header nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s, color 0.18s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: var(--neon);
  border-bottom: 2px solid var(--neon);
}
header img {
  height: 54px;
  width: auto;
}
.cta-button {
  display: inline-block;
  border-radius: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 34px;
  background: var(--cta-gradient);
  color: #fff;
  box-shadow: 0 2px 12px rgba(46,253,255,0.13);
  border: none;
  outline: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s, box-shadow 0.18s, transform 0.15s;
  margin-left: 18px;
  text-align: center;
  position: relative;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, #295180 0%, #16c9f6 100%);
  color: #000;
  box-shadow: 0 4px 18px 0 var(--neon), 0 1.5px 6px var(--secondary);
  transform: scale(1.045);
}

/* Mobile Nav Trigger (Burger) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--neon);
  font-size: 2.2rem;
  cursor: pointer;
  margin-left: 24px;
  z-index: 2002;
  transition: color 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #fff;
}
/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(25,45,71,0.99);
  box-shadow: 0 4px 32px rgba(46,253,255,0.2);
  z-index: 2001;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.46,1.04,.64,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 64px;
  padding-left: 0;
  gap: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px; right: 28px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2.3rem;
  cursor: pointer;
  z-index: 2011;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--neon);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100vw;
  gap: 12px;
  margin-top: 28px;
  padding-left: 38px;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: #fff;
  padding: 12px 0 12px 8px;
  border-bottom: 1px solid rgba(46,253,255,0.07);
  width: 85vw;
  transition: color 0.13s, border-color 0.15s;
  border-radius: 10px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--neon);
  border-color: var(--neon);
  background: rgba(46,253,255,0.07);
}

@media (max-width: 1080px) {
  header nav { gap: 22px; }
}
@media (max-width: 880px) {
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-height: 60px;
  }
  header nav, .cta-button { display: none !important; }
  .mobile-menu-toggle { display: block; }
}

/* Show nav again on desktop */
@media (min-width: 881px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
  header nav, .cta-button { display: flex; }
}

/* ------------------------------
   HERO SECTION (Index)
------------------------------- */
.hero {
  background: linear-gradient(112deg, #18314f 20%, #295180 90%);
  padding: 68px 0 52px 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 340px;
  border-radius: 0 0 80px 80px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 650px;
}
.hero h1 {
  font-size: 2.5rem;
  text-shadow: 0 2px 14px var(--neon-soft);
  margin-bottom: 22px;
}
.hero p {
  max-width: 540px;
  font-size: 1.18rem;
  color: var(--secondary);
  margin-bottom: 22px;
}
.hero .cta-button {
  margin-top: 12px;
}

@media (max-width: 650px) {
  .hero {
    padding: 34px 0 24px 0;
    min-height: 180px;
    border-radius: 0 0 30px 30px;
  }
  .hero .content-wrapper {
    padding-left: 0; padding-right: 0;
  }
  .hero h1 { font-size: 1.45rem; }
}

/* ------------------------------
   FEATURE & SERVICES LISTS
------------------------------- */
ul, ol {
  margin-bottom: 10px;
  margin-top: 0;
  padding-left: 30px;
  line-height: 1.65;
}
ul li, ol li {
  margin-bottom: 10px;
  padding-left: 2px;
  position: relative;
}
ul li img {
  display: inline-block;
  vertical-align: middle;
  width: 22px; height: 22px;
  margin-right: 7px;
  filter: drop-shadow(0 0 4px var(--neon));
}
.service-grid > div, .team-list > div {
  flex: 1 1 320px;
  background: var(--card-bg);
  padding: 24px 20px 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.21s, box-shadow 0.23s;
}
.service-grid > div:hover, .team-list > div:hover {
  transform: scale(1.033);
  box-shadow: 0 8px 32px 0 var(--neon), var(--shadow-card);
  border: 1.5px solid var(--neon);
}
.service-grid > div strong {
  color: var(--neon);
  margin-top: 18px;
  font-size: 1rem;
}
.service-grid > div img {
  width:40px; height:40px; margin-bottom: 10px;
  filter: drop-shadow(0 0 6px var(--neon-soft));
}
.team-list > div {
  box-shadow: 0 2px 16px 0 rgba(46,253,255,0.07), var(--shadow-card);
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .service-grid, .team-list { flex-direction: column; }
  .service-grid > div { min-width: 0; }
}

/* ------------------------------
   TESTIMONIALS & BLOG TEASERS
------------------------------- */
.testimonial-card {
  border-left: 5px solid var(--neon-soft);
  font-size: 1.13rem;
  max-width: 600px;
}
.testimonial-card strong {
  color: var(--primary);
}
.testimonial-card p {
  color: #121b29;
}

/* Tipy z blogu on index */
section ul li a {
  transition: color 0.13s, border-bottom-color 0.16s;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
}
section ul li a:hover {
  color: var(--neon);
  border-bottom: 1.5px solid var(--neon);
}
.topic-tags {
  display: inline-block;
  color: var(--neon-soft);
  background: rgba(46,253,255, 0.14);
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 2px;
}

/* FAQ */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}
.faq-list li {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 18px 16px;
  margin-bottom: 20px;
}
.faq-list strong {
  color: var(--neon-soft);
  font-weight: 700;
  font-family: var(--font-display);
}

/* ------------------------------
   CTA & NEWSLETTER
------------------------------- */
.cta-section {
  background: linear-gradient(130deg, #295180 60%, #16c9f6 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 62px 18px;
  margin-bottom: 60px;
  position: relative;
}
.cta-section .content-wrapper {
  align-items: center;
  gap: 18px;
  text-align: center;
}
.cta-section h2 {
  background: -webkit-linear-gradient(#fff, var(--neon-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 8px var(--card-bg);
}
.cta-section .cta-button {
  margin-top: 16px;
  font-size: 1.13rem;
}
.newsletter-signup {
  background: var(--bg-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: 54px;
}
.newsletter-signup .content-wrapper {
  align-items: flex-start;
}

/* ------------------------------
   CONTACT + MAP (Kontakt)
------------------------------- */
.direct-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}
.direct-contacts p img {
  width: 24px;
  margin-right: 8px;
  vertical-align: middle;
  filter: drop-shadow(0 0 7px var(--neon));
  display: inline-block;
}
.map-snippet {
  background: var(--card-bg);
  color: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 14px 12px;
  margin-top: 12px;
}
.contact-prompt .cta-button {
  margin-bottom: 8px;
}

/* ------------------------------
   FOOTER
------------------------------- */
footer {
  background: #16304a;
  color: #cdeaea;
  margin-top: 40px;
  box-shadow: 0 -3px 16px 0 var(--primary);
  border-radius: 30px 30px 0 0;
  padding: 30px 0 18px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a:link, footer nav a:visited {
  color: var(--neon-soft);
  font-size: 0.97rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s, border-bottom 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--neon);
  border-bottom: 1px solid var(--neon);
}
footer img {
  width: 42px;
  margin-bottom: 12px;
}
footer p {
  color: #fff;
  font-size: 0.97rem;
  margin-top: 12px;
}
@media (max-width: 900px) {
  footer .container { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ------------------------------
   COOKIE CONSENT BANNER + MODAL
------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #22436a;
  color: #fff;
  box-shadow: 0 -2px 24px var(--neon-soft);
  padding: 20px 20px 18px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 2999;
  animation: cookie-slide-in 0.6s cubic-bezier(.65, 0, .17, 1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(110%); opacity: 0.3; } to { transform: none; opacity: 1; }
}
.cookie-banner p {
  margin: 0;
  color: #fff;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-buttons button {
  border-radius: 16px;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 20px;
  margin: 0;
  box-shadow: 0 2px 10px 0 rgba(46,253,255,0.04);
  cursor: pointer;
  transition: background 0.13s, color 0.13s, box-shadow 0.15s, outline 0.11s;
}
.cookie-buttons .accept {
  background: var(--neon);
  color: #18314f;
}
.cookie-buttons .accept:hover, .cookie-buttons .accept:focus {
  background: #fff; color: var(--primary); box-shadow: 0 4px 14px 0 var(--neon-soft);
}
.cookie-buttons .reject {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-buttons .reject:hover, .cookie-buttons .reject:focus {
  background: #f4f9fd; color: var(--neon);
}
.cookie-buttons .settings {
  background: transparent;
  border: 1.4px solid var(--neon-soft);
  color: var(--neon-soft);
}
.cookie-buttons .settings:hover, .cookie-buttons .settings:focus {
  background: rgba(46,253,255,0.14); color: #fff;
  border-color: var(--neon);
}
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; gap: 16px; padding: 18px 8px; }
  .cookie-buttons { justify-content: flex-start; flex-wrap: wrap; }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(24,49,79, 0.95);
  z-index: 4000;
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.28s, visibility 0s 0.3s;
}
.cookie-modal.active {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.36s;
}
.cookie-modal-content {
  background: #18314f;
  color: #fff;
  padding: 36px 24px;
  width: 95vw;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 2px 28px var(--neon);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookie-modal-fadein 0.32s;
  position: relative;
}
@keyframes cookie-modal-fadein { from { transform: translateY(40px); opacity: 0;} to { transform: none; opacity: 1; } }
.cookie-modal-content h3 {
  color: var(--neon-soft);
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.cookie-preference-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  font-size: 1rem;
}
.cookie-preference-category label {
  color: #fff;
  font-family: var(--font-body);
}
.cookie-toggle {
  width: 42px; height: 24px;
  background: #eaeaea;
  border-radius: 12px;
  position: relative;
  display: inline-block;
}
.cookie-toggle input { display: none; }
.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e6e6e6;
  border-radius: 12px;
  transition: background 0.22s;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--neon);
}
.cookie-toggle-thumb {
  position: absolute;
  left: 2px; top: 2px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.22s;
}
.cookie-toggle input:checked + .cookie-toggle-slider .cookie-toggle-thumb {
  transform: translateX(18px);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal-actions button {
  border-radius: 16px;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal-actions .save {
  background: var(--neon);
  color: #18314f;
}
.cookie-modal-actions .cancel {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-modal-actions .cancel:hover, .cookie-modal-actions .cancel:focus {
  background: #f4f9fd; color: var(--neon);
}

/* ------------------------------
   THANK YOU PAGE
------------------------------- */
.thankyou-section {
  background: var(--card-bg);
  color: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-top: 54px;
  text-align: center;
  padding: 52px 20px 48px 20px;
}
.thankyou-section h1 {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 18px;
}

/* ------------------------------
   ANIMATIONS & MICRO-INTERACTIONS
------------------------------- */
.card, .service-grid > div, .team-list > div, .client-profiles > div {
  will-change: transform, box-shadow;
  transition: transform 0.18s, box-shadow 0.21s, border-color 0.16s;
}
.cta-button, .cookie-buttons button, .cookie-modal-actions button {
  transition: background 0.14s, color 0.13s, box-shadow 0.11s, transform 0.13s;
}
.cta-button:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px 0 var(--neon);
}

/* ------------------------------
   MISCELLANEOUS
------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  background: #1c395e;
}
::-webkit-scrollbar-thumb {
  background: var(--neon);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-soft);
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #2efdff44;
  padding: 7px 14px;
  background: #f7f1df;
  color: #295180;
  outline: none;
  margin-bottom: 14px;
}
input:focus, textarea:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 2px var(--neon-soft);
}

/* ------------------------------
   PRINT SUPPORT
------------------------------- */
@media print {
  * { background: #fff !important; color: #111 !important; }
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
}
