/* movenoak.org — "Morská sviežosť" palette, friendly & rounded style */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --c-primary: #0277BD;
  --c-secondary: #4FC3F7;
  --c-accent: #FF5722;
  --c-neutral: #ECEFF1;
  --c-text: #263238;
}

html {
  scroll-behavior: smooth;
}
html,
body {
  overflow-x: hidden;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--c-text);
  background: #ffffff;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Quicksand', sans-serif;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 9999px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--c-secondary); outline-offset: 3px; }

.btn-cta {
  background: var(--c-accent);
  color: #fff;
  padding: 1rem 2.25rem;
  font-size: 1.15rem;
  box-shadow: 0 10px 24px rgba(255, 87, 34, .35);
}
.btn-cta:hover { background: #f4511e; box-shadow: 0 14px 30px rgba(255, 87, 34, .45); }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  padding: .75rem 1.75rem;
}
.btn-primary:hover { background: #01579b; }

.btn-ghost {
  background: #fff;
  color: var(--c-primary);
  padding: .75rem 1.75rem;
  border: 2px solid var(--c-secondary);
}
.btn-ghost:hover { background: var(--c-neutral); }

/* Cards */
.card {
  background: #fff;
  border-radius: 1.75rem;
  box-shadow: 0 12px 30px rgba(38, 50, 56, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(2, 119, 189, .15); }

/* Soft section backgrounds */
.bg-soft { background: var(--c-neutral); }
.bg-wave {
  background: linear-gradient(135deg, #4FC3F7 0%, #0277BD 100%);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Accordion */
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion.open .accordion-body { max-height: 600px; }
.accordion.open .accordion-icon { transform: rotate(45deg); }
.accordion-icon { transition: transform .3s ease; }

/* Inputs */
.field {
  width: 100%;
  border: 2px solid #cfd8dc;
  border-radius: 1rem;
  padding: .85rem 1.1rem;
  font-family: 'Nunito', sans-serif;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field:focus {
  outline: none;
  border-color: var(--c-secondary);
  box-shadow: 0 0 0 4px rgba(79, 195, 247, .25);
}

/* Cookie banner */
#cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(960px, 94%);
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 18px 50px rgba(38, 50, 56, .25);
  padding: 1.25rem 1.5rem;
  z-index: 60;
}
#cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(38, 50, 56, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 70;
  padding: 1rem;
}
#cookie-modal.open { display: flex; }
.toggle {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 9999px;
  background: #b0bec5;
  cursor: pointer;
  border: none;
  flex: 0 0 auto;
  transition: background .2s ease;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: left .2s ease;
}
.toggle[aria-checked="true"] { background: var(--c-primary); }
.toggle[aria-checked="true"]::after { left: 27px; }
.toggle[disabled] { opacity: .7; cursor: not-allowed; }

/* Sticky header helper */
.header-sticky { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); }

/* ---------------------------------------------------------------
   Color fallbacks — guarantee legible contrast even if the Tailwind
   Play CDN / custom config does not load (e.g. blocked by a preview
   CSP or offline). When Tailwind IS loaded, its runtime styles are
   injected after this file and override these, keeping opacity variants.
   --------------------------------------------------------------- */
[class~="text-primary"]   { color: var(--c-primary); }
[class~="text-secondary"] { color: var(--c-secondary); }
[class~="text-accent"]    { color: var(--c-accent); }
[class*="text-ink"]       { color: var(--c-text); }
[class*="text-white"]     { color: #ffffff; }

[class~="bg-ink"]      { background-color: var(--c-text); }
[class~="bg-primary"]  { background-color: var(--c-primary); }
[class~="bg-accent"]   { background-color: var(--c-accent); }
[class~="bg-neutral"]  { background-color: var(--c-neutral); }
[class~="bg-white"]    { background-color: #ffffff; }
[class~="bg-white/90"] { background-color: rgba(255, 255, 255, 0.92); }
[class~="bg-white/10"] { background-color: rgba(255, 255, 255, 0.12); }
[class~="border-neutral"] { border-color: var(--c-neutral); }
