/* Fantazyczna Fala Minimalist Theme – style.css */

/* === 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, 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  background: #fff;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #17322A;
  background: #FFF;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *:before, *:after {
  box-sizing: inherit;
}

ul, ol {
  list-style-type: none;
  padding-left: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button {
  font-family: inherit;
  font-size: 1em;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}

/* === BRAND COLORS & FONTS === */
:root {
  --primary: #174B3A;
  --secondary: #F7D134;
  --accent: #F2F3F7;
  --neutral-text: #17322A;
  --white: #fff;
  --shadow: 0px 3px 16px rgba(23, 75, 58, 0.08);
  --radius: 14px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --focus-outline: 2px solid var(--secondary);
}

/* === LAYOUT – CONTAINERS & FLEXBOX === */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0px 8px 32px rgba(23, 75, 58, 0.13);
}
.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;
  width: 100%;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--accent);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 20px 28px;
  margin-bottom: 20px;
  color: var(--neutral-text);
  font-size: 1.05em;
  max-width: 520px;
  flex: 1 1 320px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* === HEADER & NAVIGATION === */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(23, 75, 58, 0.04);
  position: sticky;
  top: 0;
  z-index: 110;
  min-height: 72px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: center;
  padding: 18px 0 16px 0;
}
.main-nav > a {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  margin: 0 2px;
  border-radius: 7px;
  padding: 6px 12px;
  transition: background .16s, color .16s;
}
.main-nav > a.cta-nav {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  border-radius: 8px;
  padding: 7px 18px;
  box-shadow: 0 2px 10px rgba(247, 209, 52, 0.14);
}
.main-nav > a:hover:not(.cta-nav), .main-nav > a:focus:not(.cta-nav) {
  background: var(--accent);
  color: var(--primary);
  outline: none;
}
.main-nav > a.cta-nav:hover, .main-nav > a.cta-nav:focus {
  background: var(--primary);
  color: var(--secondary);
  outline: none;
}
.main-nav img {
  height: 36px;
  width: auto;
  display: block;
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--white);
  border-radius: 7px;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 13px;
  z-index: 220;
  transition: background 0.16s;
  border: none;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--primary);
  outline: none;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  box-shadow: 0 0 24px rgba(23,75,58,.06);
  transform: translateX(-102vw);
  transition: transform .38s cubic-bezier(.56,.07,.47,.92);
  z-index: 2000;
  padding: 24px 20px 12px 20px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.8rem;
  width: 40px;
  height: 40px;
  align-self: flex-end;
  border: none;
  margin-bottom: 24px;
  transition: background 0.12s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--primary);
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  margin-top: 8px;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 11px 0 11px 5px;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  width: 100%;
  border-radius: 6px;
  transition: background .18s, color .2s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--accent);
  color: var(--primary);
}

/* Show burger, hide nav on mobile */
@media (max-width: 1060px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1061px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* === HERO, HEADINGS, TYPOGRAPHY === */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  margin-top: 0;
  line-height: 1.23;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 550;
  margin-bottom: 7px;
  margin-top: 0;
}
h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 500;
  margin-top: 0;
}
p, ul li, ol li {
  font-family: var(--font-body);
  color: var(--neutral-text);
  font-size: 1.07em;
  line-height: 1.75;
  margin-bottom: 0;
  font-weight: 400;
}
strong { font-weight: 600; }

ul li img,
ol li img {
  vertical-align: middle;
  margin-right: 10px;
  height: 1.2em;
  width: auto;
}
ul li, ol li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 2px 0;
}

/* === BUTTONS & LINKS === */
.cta-main, .cta-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 13px 38px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
  box-shadow: 0 2px 10px rgba(247, 209, 52, 0.12);
  transition: background .18s, color .18s, transform .08s;
  cursor: pointer;
  text-decoration: none;
}
.cta-main:hover, .cta-main:focus {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-2px) scale(1.012);
  outline: var(--focus-outline);
}
.cta-main:active {
  background: var(--secondary);
  color: var(--primary);
  transform: none;
}

/* === CARD, LIST, TESTIMONIAL STYLES === */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: box-shadow 0.25s;
}
.card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  font-size: 1.17rem;
  font-weight: 600;
}
.card h3 > span {
  color: var(--primary);
  background: var(--accent);
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 400;
  margin-left: 7px;
  padding: 3px 10px;
}

.testimonial-card {
  position: relative;
  transition: box-shadow .22s, transform .16s;
}
.testimonial-card:hover {
  box-shadow: 0px 10px 26px rgba(23,75,58,0.15);
  transform: translateY(-2px) scale(1.02);
}
.testimonial-card p {
  font-style: italic;
  margin-bottom: 10px;
  font-size: 1.08em;
}
.testimonial-card span {
  font-family: var(--font-display);
  font-size: 0.98em;
  font-weight: 600;
  color: var(--primary);
}

.feature-item h4 {
  margin-bottom: 5px;
}

/* === FOOTER === */
footer {
  width: 100%;
  background: var(--accent);
  border-top: 1px solid #e3e7e7;
  padding: 38px 0 18px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font-display);
  font-size: 1.1em;
  color: var(--primary);
  font-weight: 600;
}
.footer-brand img {
  width: 38px;
  height: 38px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  padding: 6px 0px;
  transition: color .18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
  outline: none;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.footer-social img {
  width: 30px;
  height: 30px;
  opacity: 0.85;
  transition: opacity .15s, transform .13s;
}
.footer-social img:hover, .footer-social img:focus {
  opacity: 1;
  transform: scale(1.07);
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: var(--white);
  box-shadow: 0 -2px 16px rgba(23,75,58,.09);
  z-index: 3000;
  padding: 24px 14px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  width: 100vw;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .24s, transform .32s;
  font-size: 1em;
  border-radius: 18px 18px 0 0;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
}
.cookie-banner p {
  color: var(--primary);
  font-size: 1.08em;
  text-align: center;
  line-height: 1.48;
}
.cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  border: none;
  font-family: var(--font-display);
  font-size: 1em;
  font-weight: 600;
  padding: 8px 24px;
  cursor: pointer;
  transition: background .18s, color .18s, transform .11s;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.reject {
  background: var(--accent);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-btn.settings {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  opacity: 0.9;
  outline: var(--focus-outline);
}
.cookie-btn:active { transform: scale(.98); }

/* Cookie settings modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,75,58,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity .25s, visibility .25s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cookie-modal {
  background: var(--white);
  border-radius: 17px;
  box-shadow: 0 8px 40px rgba(23,75,58,0.16);
  max-width: 430px;
  padding: 36px 26px 30px 26px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: fadeInScale .30s cubic-bezier(.56,.08,.56,1) 1;
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(.96) translateY(28px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h3 { font-size: 1.18em; color: var(--primary); font-weight: 700; margin:10px 0 4px 0; }
.cookie-modal .modal-section {
  margin-bottom: 6px;
  font-size: 1em;
  color: var(--neutral-text);
}
.cookie-toggle {
  margin-right: 14px;
}
.cookie-modal .cookie-toggle[type=checkbox] {
  width: 22px; height: 22px; accent-color: var(--secondary);
}
.cookie-modal button {
  margin-top: 12px;
  align-self: flex-end;
  background: var(--primary);
  color: var(--white);
  padding: 8px 26px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 1em;
  font-weight: 600;
  transition: background .14s;
}
.cookie-modal button:focus, .cookie-modal button:hover {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal .close-modal-btn {
  position: absolute;
  top: 13px; right: 13px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  font-size: 1.25em;
  width: 32px; height: 32px; text-align:center;
  cursor: pointer;
  box-shadow: none;
  transition: background .13s, color .11s;
}
.cookie-modal .close-modal-btn:hover,
.cookie-modal .close-modal-btn:focus {
  background: var(--primary);
  color: var(--secondary);
}

/* === SPACING & LAYOUT RESPONSIVENESS === */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(23,75,58,0.05);
}

@media (max-width: 990px) {
  .container { max-width: 98vw; padding: 0 10px; }
  .main-nav { gap: 18px; }
  section { padding: 32px 8px; }
}
@media (max-width: 768px) {
  .container { padding: 0 6px; }
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.45rem; }
  .main-nav { padding: 9px 0; }
  .content-wrapper { gap: 15px; }
  section { border-radius: 11px; padding: 24px 2px; }
  .testimonial-card { padding: 15px 12px; }
  .footer-brand { flex-direction: column; gap: 7px; text-align: center; }
}

@media (max-width: 640px) {
  .content-grid, .card-container, .text-image-section {
    flex-direction: column !important;
    gap: 15px;
    align-items: stretch;
  }
  .footer-nav { flex-direction: column; align-items: center; gap: 10px; }
  .footer-social { justify-content: center; }
  .footer-brand { font-size: 1em; }
}

@media (max-width: 480px) {
  .cookie-modal { padding: 15vw 5vw; }
  .cookie-banner { padding: 14px 6px 8px 6px; }
}

/* === FOCUS & ACCESSIBILITY === */
:focus { outline: var(--focus-outline); }
a:focus-visible, button:focus-visible { outline: var(--focus-outline); }

/* === MISC. UTILS & MINIMAL EFFECTS === */
::-webkit-scrollbar { width: 8px; background: var(--accent); }
::-webkit-scrollbar-thumb { background: #e5e5e5; border-radius: 17px; }

.box-shadow-1 { box-shadow: var(--shadow); }
.rounded { border-radius: var(--radius); }
.bg-accent { background: var(--accent); }
.bg-primary { background: var(--primary) !important; color: var(--white) !important; }

/* === REMOVE OVERLAP ENSURE SPACING === */
section, .testimonial-card, .card, .content-wrapper, .content-grid, .feature-item, .contact-info {
  margin-bottom: 20px;
}
/* space all main cards/testimonials */
.testimonial-card + .testimonial-card, .card + .card {
  margin-top: 20px;
}
section + section {
  margin-top: 40px;
}

/* === END === */
