/* ================== CSS 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, menu, 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, 
main, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background-color: #101319;
  color: #F2E3CA;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
  outline: none;
  transition: color 0.18s;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
  border: none;
  background: none;
}
button {
  cursor: pointer;
  background: none;
}

/* ================== COLOR TOKENS ====================== */
:root {
  --color-primary: #1E232D;
  --color-secondary: #4B829E;
  --color-accent: #F2E3CA;
  --color-body-bg: #101319;
  --color-card-bg: #23273a;
  --color-testimonial-bg: #EAEAEA;
  --color-testimonial-text: #20232a;
  --color-border: #233a59;
  --color-success: #68f8c1;
  --color-error: #fb467e;
  --color-shadow: 0 4px 28px 0 rgba(20,37,73,0.25);
  --font-title: 'Montserrat', 'Roboto', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ================== TYPOGRAPHY ====================== */
h1 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1.13;
  color: var(--color-accent);
  text-shadow: 0 2px 24px #4B829E18;
  margin-bottom: 24px;
}
h2 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.65rem;
  color: var(--color-secondary);
  margin-bottom: 20px;
  margin-top: 16px;
}
h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  margin-bottom: 10px;
}
h3 {
  font-size: 1.18rem;
}
h4 {
  font-size: 1.1rem;
}
p, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-accent);
}
strong {
  color: var(--color-success);
  font-weight: 700;
}
.tagline{
  font-size: 1.18rem;
  color: var(--color-secondary);
  margin-bottom: 32px;
  font-family: var(--font-title);
}

/* ================== LAYOUT & CONTAINERS ====================== */
.container {
  margin-left: auto;
  margin-right: auto;
  max-width: 960px;
  padding-left: 16px;
  padding-right: 16px;
  width: 100%;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}
.text-section {
  /* For sections with extended body content */
  margin-bottom: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: linear-gradient(100deg, #1E232D 60%, #4B829E 100%);
  border-radius: 28px;
  box-shadow: var(--color-shadow);
  position: relative;
}

/* ================== HEADER / NAV ====================== */
header {
  background: #13161e;
  border-bottom: 2px solid var(--color-secondary);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  padding-top: 8px;
  padding-bottom: 8px;
}
header .content-wrapper {
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
}
img[alt="Botique Nožička"] {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 2px 24px #4B829E22);
}
.main-navigation {
  display: flex;
  gap: 16px;
  align-items: center;
}
.main-navigation a {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-accent);
  padding: 8px 18px;
  border-radius: 16px;
  transition: background 0.15s, color 0.18s;
  background: transparent;
  border: 1px solid transparent;
  position: relative;
}
.main-navigation a:hover,
.main-navigation a:focus {
  color: var(--color-secondary);
  background: #27324a;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px #4B829E44, 0 0 12px 0 #4B829E55;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.15rem;
  color: var(--color-accent);
  margin-left: 10px;
  z-index: 99;
  transition: color 0.15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: var(--color-success);
}


/* ================== MOBILE MENU ====================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, #23273a99, #13161ee0 85%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.37,1.19,.17,.93);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: var(--color-accent);
  font-size: 2.1rem;
  margin: 22px 36px 0 0;
  align-self: flex-end;
  border: none;
  z-index: 201;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-error);
}
.mobile-nav {
  margin-right: 42px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-end;
  margin-top: 44px;
}
.mobile-nav a {
  font-family: var(--font-title);
  font-size: 1.28rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 20px 6px;
  background: #1e232d;
  color: var(--color-accent);
  transition: background 0.15s, color 0.17s, box-shadow 0.18s;
  box-shadow: 0 4px 18px #10182836;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 0 0 2px #68f8c133;
}

@media (max-width: 1100px) {
  header .container { max-width: 100%; }
}
@media (max-width: 950px) {
  .container { max-width: 98vw; }
}
@media (max-width: 800px) {
  header .main-navigation { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 801px) {
  .mobile-menu { display: none !important; }
}

/* ================== MAIN ELEMENTS ====================== */
main {
  min-height: 78vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  /* already applied above */
}

/* ================== CARDS & FLEX CONTAINERS ====================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-bg);
  border-radius: 18px;
  box-shadow: var(--color-shadow);
  color: var(--color-accent);
  padding: 24px 24px 20px 24px;
  min-width: 260px;
  flex: 1 1 270px;
  transition: box-shadow 0.22s;
  border: 1.5px solid #22335055;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 42px 0 #4B829E44, 0 0 0 4px #F2E3CA11;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--color-testimonial-bg);
  color: var(--color-testimonial-text);
  border-radius: 16px;
  box-shadow: 0 2px 18px #4B829E11;
  font-size: 1.05em;
  transition: box-shadow 0.17s, transform 0.17s;
  position: relative;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 24px #4B829E33;
  transform: translateY(-2px) scale(1.011);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

@media (max-width: 768px) {
  .content-wrapper {
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

/* ================== BUTTONS & CTAs ====================== */
.btn-primary {
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-title);
  font-size: 1.09rem;
  font-weight: 700;
  padding: 13px 36px;
  border-radius: 24px 8px 24px 8px;
  box-shadow: 0 4px 20px #4B829E33;
  transition: background 0.15s, color 0.16s, box-shadow 0.18s, transform 0.16s;
  border: 2px solid transparent;
  margin-top: 7px;
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #68f8c1;
  color: var(--color-primary);
  box-shadow: 0 6px 24px #68f8c111, 0 0 0 3px #1E232D22;
  transform: translateY(-2px) scale(1.037);
}
.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 28px;
  border-radius: 24px;
  box-shadow: 0 4px 12px #4B829E22;
  margin-top: 7px;
  transition: background 0.17s, color 0.16s, border-color 0.17s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
  border-color: #68f8c1;
}
/* Disabled button styling */
button[disabled], .btn-primary[disabled], .btn-secondary[disabled] {
  background: #23283a!important;
  color: #bcbcbc !important;
  cursor: not-allowed;
  border-color: #44454a!important;
}

/* ================== FORMS ====================== */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
input[type="email"], input[type="text"], input[type="search"], input[type="password"] {
  padding: 10px 14px;
  border-radius: 13px;
  background: #23273a;
  border: 1px solid #4B829E;
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: 4px;
  transition: border 0.16s, background 0.17s;
}
input[type="email"]:focus, input[type="text"]:focus {
  border-color: #68f8c1;
  background: #27324a;
}
label {
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: 6px;
}

/* ================== FOOTER ====================== */
footer {
  background: #141927;
  color: var(--color-accent);
  padding: 32px 0 0 0;
  border-top: 2.5px solid var(--color-secondary);
}
footer .container {
  padding-bottom: 24px;
}
footer .content-wrapper {
  flex-direction: row;
  gap: 34px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  margin-bottom: 9px;
  font-size: 1rem;
}
footer a {
  color: var(--color-secondary);
  transition: color 0.13s, text-decoration 0.13s;
}
footer a:hover, footer a:focus {
  color: #68f8c1;
  text-decoration: underline;
}
footer strong {
  color: #fff;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
  }
}

/* ================== COOKIE CONSENT BANNER =============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #1E232D;
  color: var(--color-accent);
  box-shadow: 0 -2px 32px #4B829E33;
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 16px 18px 18px 18px;
  border-radius: 20px 20px 0 0;
  border-top: 3.5px solid var(--color-secondary);
  animation: slideUpCookie 0.6s cubic-bezier(.37,1.19,.17,.93) 1;
  font-size: 1rem;
}
@keyframes slideUpCookie {
  from { transform: translateY(110%); opacity:0 } to { transform: none; opacity:1 }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  font-family: var(--font-title);
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 18px;
  border: none;
  background: var(--color-secondary);
  color: #fff;
  margin-left: 0;
  box-shadow: 0 2px 12px #4B829E33;
  transition: background .16s, color .16s, box-shadow .18s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #68f8c1;
  color: var(--color-primary);
  box-shadow: 0 4px 24px #68f8c144;
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  border: 1.5px solid var(--color-secondary);
  color: var(--color-accent);
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* ========== COOKIE MODAL ========== */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: #202b3dcc;
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieModal .35s;
}
@keyframes fadeInCookieModal { from { opacity: 0 } to { opacity: 1 } }
.cookie-modal {
  background: #23273a;
  color: var(--color-accent);
  border-radius: 24px;
  padding: 38px 28px 30px 28px;
  box-shadow: 0 4px 48px #1E232D88;
  min-width: 320px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: floatCookieModal .44s cubic-bezier(.37,1.19,.17,.93);
}
@keyframes floatCookieModal {
  from { transform: translateY(32px) scale(.94) }
  to { transform: none }
}
.cookie-modal h2 {
  color: var(--color-secondary);
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-family: var(--font-title);
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 19px;
  height: 19px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  color: var(--color-accent);
}
.cookie-modal .cookie-category input[disabled] + label {
  color: #888890;
  font-style: italic;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}
.cookie-modal button {
  border-radius: 16px;
  padding: 7px 22px;
  font-family: var(--font-title);
  font-size: 1rem;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  transition: background 0.13s, color 0.14s, box-shadow 0.14s;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #68f8c1;
  color: var(--color-primary);
  box-shadow: 0 0 0 2px #68f8c122;
}
.cookie-modal .cookie-close {
  position: absolute;
  right: 16px;
  top: 12px;
  color: #70aee1;
  background: none;
  border: none;
  font-size: 1.39rem;
  cursor: pointer;
  z-index: 2;
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus {
  color: var(--color-error);
}

@media (max-width: 600px) {
  .cookie-modal { padding: 22px 12px 18px 12px; min-width: 0; max-width: 99vw; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 6px; font-size: 0.96rem;  }
}

/* ================== ANIMATIONS & MICROINTERACTIONS ====================== */
a, button, .card, .btn-primary, .btn-secondary, .main-navigation a, .mobile-menu-toggle, .mobile-menu-close, .testimonial-card {
  transition: 
    color 0.15s, 
    background 0.18s, 
    transform 0.14s, 
    box-shadow 0.16s, 
    border-color 0.15s;
}
.card:hover, .testimonial-card:hover {
  transform: translateY(-2px) scale(1.014);
  z-index: 2;
}

/* ================== RESPONSIVE ====================== */
@media (max-width: 700px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.25rem; }
  .section, section { padding: 18px 3vw !important; }
  .testimonial-card { font-size: 0.98rem; }
  .container { max-width: 99vw; padding-left: 6vw; padding-right: 6vw; }
  .card { min-width: 0; padding: 14px 7vw 12px 7vw; }
}

@media (max-width: 480px) {
  .section, section { padding: 8px 2vw !important; }
  h1 { font-size: 1.35rem; }
  .btn-primary, .btn-secondary { font-size: 0.98rem; padding: 10px 10vw; }
}

/* ================== MISC: FOCUS & ACCESSIBILITY ====================== */
a:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible, button:focus-visible {
  outline: 2.5px solid #68f8c1;
  outline-offset: 3px;
}

/* ================== SPECIAL CLASSES ====================== */
.thankyou {
  color: #68f8c1;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

::-webkit-scrollbar {
  width: 9px;
  background: #23273a;
}
::-webkit-scrollbar-thumb {
  background: #4B829E;
  border-radius: 7px;
}

/* ================== END ====================== */
