/* Dusky Arch Edukacja - Soft Pastel Responsive Flexbox Stylesheet */

/* ==================== 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, 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 {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #FBFCFE;
  font-family: 'Roboto', Arial, sans-serif;
  color: #3d4061;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== SOFT PASTEL COLOR PALETTE ==================== */
:root {
  --primary: #2c3e50;
  --secondary: #d35400;
  --accent: #f7f7f9;
  --brand-orange: #ffe5d6;
  --brand-lilac: #f1eafc;
  --brand-mint: #d1f5ee;
  --brand-pink: #ffe0ee;
  --brand-blue: #e2ebfa;
  --brand-yellow: #fef7d7;
  --card-bg: #fcfbff;
  --soft-border: #e9e7f6;
  --soft-shadow: 0 2px 16px 0 rgba(69, 105, 144, 0.06);
  --lighter-text: #9596a8;
  --white: #fff;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}


/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; color: var(--primary); letter-spacing: 0.01em; }
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; color: #614896; margin-bottom: 20px; }
h3 { font-size: 1.4rem; color: #9893cd; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; }

p, li, .subtitle, blockquote {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  line-height: 1.6;
}
.subtitle {
  font-size: 1.2rem;
  color: #8684a8;
  margin-bottom: 24px;
}
strong { font-weight: 700; }
a { color: var(--secondary); text-decoration: none; transition: color 0.18s; }
a:hover, a:focus { color: #88346e; }

/* ==================== LAYOUT STRUCTURE ==================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

section {
  background: none;
  border-radius: 24px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-sizing: border-box;
}

/****** FLEX LAYOUT UTILS ******/
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
}
.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;
  background: var(--brand-blue);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  border: 1px solid var(--soft-border);
  margin-bottom: 20px;
  flex: 1 1 300px;
  min-width: 260px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 8px 30px 0 rgba(98,105,177,0.10);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/****** Card Design ******/
.team-card, .card, .testimonial-card, .contact-details, .map-location {
  background: var(--card-bg);
  border: 1px solid var(--soft-border);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  padding: 22px 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.2s;
}
.team-card:hover, .card:hover {
  box-shadow: 0 8px 32px 0 rgba(98,105,177,0.08);
  transform: translateY(-2px) scale(1.012);
}

/****** List Styles ******/
ul, ol {
  margin-left: 24px;
  padding-left: 0;
  margin-bottom: 22px;
}
ul li, ol li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 28px;
  line-height: 1.6;
  list-style: none;
  font-size: 1.02rem;
  color: var(--primary);
}
ul li img, ol li img {
  width: 22px; height: 22px; margin-right: 10px; vertical-align: middle; margin-left: -28px; margin-top: -2px;
}
ul li::before {
  content: '';
  width: 12px; height: 12px;
  background: linear-gradient(135deg, #d6f7ee 0%, #ffe0ee 100%);
  border-radius: 50%;
  position: absolute;
  left: 4px; top: 0.68em;
  transform: translateY(-50%);
}
ul li img ~ span, ol li img ~ span {
  margin-left: 4px;
}

/****** Blockquote ******/
blockquote {
  font-style: italic;
  color: #58578c;
  font-size: 1.1rem;
  padding-left: 25px;
  border-left: 4px solid var(--brand-pink);
  margin-bottom: 8px;
}

.testimonial-meta {
  font-size: 0.98rem;
  color: #473366;
  margin-left: 4px;
  font-weight: 500;
}

/****** CTA BUTTONS ******/
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  background: linear-gradient(90deg, #ffe5d6 60%, #d1f5ee 100%);
  border: none;
  color: var(--primary);
  border-radius: 999px;
  font-size: 1.1rem;
  padding: 0.86em 2.2em;
  margin-top: 16px;
  box-shadow: 0 1px 6px 0 rgba(183,187,225,0.07);
  cursor: pointer;
  transition: background 0.23s, filter 0.24s, transform 0.2s;
  outline: none;
  text-decoration: none;
}
.cta.primary {
  background: linear-gradient(90deg, #f1eafc 40%, #ffe0ee 100%);
  color: #473366;
}
.cta:hover, .cta:focus {
  background: linear-gradient(90deg, #d1f5ee 35%, #ffe5d6 100%);
  color: var(--secondary);
  filter: brightness(1.04) saturate(1.08);
  transform: scale(1.03);
}

/****** SEARCH BAR ******/
.search-bar {
  display: flex;
  align-items: center;
  margin: 18px 0 0 0;
  width: 100%;
}
.search-bar input[type="text"] {
  width: 100%;
  background: var(--brand-blue);
  border: 1px solid var(--soft-border);
  border-radius: 22px;
  padding: 13px 18px;
  font-size: 1.10rem;
  color: var(--primary);
  box-shadow: var(--soft-shadow);
  outline: none;
  transition: border 0.18s, box-shadow 0.18s;
}
.search-bar input[type="text"]:focus {
  border: 1.5px solid var(--brand-mint);
  box-shadow: 0 2px 10px rgba(92,205,178,0.09);
}

/****** HEADER & NAVBAR ******/
header {
  background: linear-gradient(90deg, #f1eafc 0%, #ffe0ee 100%);
  border-bottom: 1.5px solid var(--soft-border);
  box-shadow: 0 2px 6px 0 rgba(98, 105, 177, 0.03);
  padding: 0 0 0 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 75px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand-logo { display: flex; align-items: center; }
.brand-logo img {
  height: 40px;
  width: auto;
  margin-right: 8px;
  border-radius: 16px;
  background: #fff6;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  color: #4c4961;
  border-radius: 12px;
  padding: 7px 12px;
  transition: background 0.17s, color 0.17s;
}
.main-nav a.cta {
  font-weight: 600;
  margin-left: 14px;
  background: linear-gradient(90deg, #f1eafc 40%, #ffe0ee 100%);
  color: #473366;
  border-radius: 999px;
  padding: 8px 26px;
  box-shadow: 0 1px 6px 0 rgba(183,187,225,0.07);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--brand-lilac);
  color: var(--secondary);
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: linear-gradient(90deg, #d1f5ee 20%, #ffe5d6 90%);
  color: var(--secondary);
}

/* Mobile menu hamburger */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #8b85b9;
  padding: 11px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.17s;
  z-index: 1002;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--brand-lilac);
}

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #f7f7f9 90%, #e2ebfa 100%);
  box-shadow: 0 12px 40px 0 rgba(100,110,200,0.07);
  transform: translateX(100%);
  opacity: 0;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.4s cubic-bezier(.45, .05, .55, 1), opacity 0.2s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #a09ad7;
  align-self: flex-end;
  margin: 14px 22px 0 0;
  cursor: pointer;
  transition: color 0.17s;
  z-index: 1051;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  margin: 32px 0 0 30px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: #505983;
  padding: 12px 0 12px 8px;
  border-radius: 7px;
  font-weight: 500;
  min-width: 180px;
  display: block;
  transition: background 0.18s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-mint);
  color: var(--secondary);
}

/* ==================== FOOTER ==================== */
footer {
  background: linear-gradient(90deg, #f7f7f9 65%, #e2ebfa 100%);
  border-top: 1.5px solid var(--soft-border);
  padding-top: 18px;
  margin-top: 40px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.footer-brand img { height: 38px; margin-bottom: 8px; border-radius: 11px; background: #fff; }
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-menu a {
  color: #717095;
  font-size: 0.97rem;
  text-decoration: none;
  transition: color 0.19s;
}
.footer-menu a:hover { color: var(--secondary); }
.footer-contact, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.97rem;
  color: var(--primary);
}
.footer-contact img { width: 18px; height: 18px; border-radius: 3px; }
.footer-social {
  flex-direction: row;
  gap: 13px;
  margin-top: 14px;
}
.footer-social a img {
  width: 26px;
  height: 26px;
  background: #fff;
  border-radius: 8px;
  transition: filter 0.17s;
}
.footer-social a:hover img {
  filter: brightness(0.95) saturate(1.5);
}
.legal {
  text-align: center;
  margin-top: 16px;
  font-size: 0.93rem;
  color: #bdbdbd;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 1050px) {
  .container { max-width: 96vw; }
}
@media (max-width: 900px) {
  .content-wrapper, .card-container, .content-grid {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .main-nav { gap: 14px; }
  section { padding: 30px 12px; }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 9px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .brand-logo img { height: 33px; }
  .content-wrapper { gap: 16px; padding-top: 6px; }
  .testimonial-card, .team-card, .card {
    padding: 18px 10px;
    font-size: 0.96rem;
  }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.2rem; margin-bottom: 14px; }
  h3 { font-size: 1.07rem; margin-bottom: 10px; }
  section { padding: 20px 2px; margin-bottom: 32px; }
  .footer-social a img { width: 22px; height: 22px; }
  /* Mobile menu overlay covers entire viewport */
  .mobile-menu {
    padding-top: 17px;
    align-items: flex-start;
    width: 100vw; min-height: 100vh;
  }
  .mobile-nav {
    margin: 20px 0 0 16px;
    gap: 16px;
  }
}
@media (max-width: 520px) {
  .brand-logo img { height: 27px; }
  .testimonial-card, .team-card, .card {
    padding: 13px 6px;
    font-size: 0.92rem;
  }
  blockquote { font-size: 0.99rem; }
  h1, h2, h3 { margin-bottom: 11px; }
  .footer-brand img { height: 22px; }
}

/****** COLUMN-TO-ROW FLEX ON LAYOUT ROWS ******/
.text-image-section {
  flex-direction: column;
  align-items: flex-start;
}
@media (min-width: 769px) {
  .text-image-section {
    flex-direction: row;
    align-items: center;
  }
}

/****** Layout container margins ******/
.card, .team-card, .testimonial-card, .content-wrapper>*:not(:last-child) {
  margin-bottom: 20px !important;
}

/* ==================== SPECIAL COMPONENTS ==================== */
.category-filter {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.95rem; color: #918dc0;
}
.category-filter a {
  color: #895eae;
  margin: 0 3px;
}
.category-filter a:hover { text-decoration: underline; color: #d35400; }

.map-location img {
  width: 32px;
  height: 32px;
  margin-right: 9px;
  border-radius: 7px;
}
.map-location span {
  font-size: 0.97rem;
  color: #614896;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  font-size: 0.98rem;
}
.contact-details img { width: 22px; height: 22px; border-radius: 3px; }

/* ==================== COOKIE CONSENT BANNER ==================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, #ffe5d6 60%, #d1f5ee 100%);
  padding: 22px 12px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: 0 -2px 18px 0 rgba(100,105,160,0.13);
  z-index: 1200;
  transition: transform 0.32s cubic-bezier(.69,.18,.47,1.09), opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner span {
  color: #463b67;
  font-size: 1.03rem;
  margin-bottom: 0;
  text-align: center;
}
.cookie-btns {
  display: flex; flex-direction: row; align-items: center; gap: 16px;
}
.cookie-btns button {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 22px;
  border: none;
  border-radius: 99px;
  margin: 0 5px;
  transition: background 0.19s, color 0.12s;
  cursor: pointer;
  box-shadow: 0 1px 4px 0 rgba(100, 110, 140, 0.07);
  background: #fff;
  color: var(--primary);
}
.cookie-btns .accept {
  background: linear-gradient(90deg, #d1f5ee 20%, #ffe5d6 100%);
  color: #311a4b;
}
.cookie-btns .accept:hover { background: #ffe5d6; color: #d35400; }
.cookie-btns .reject {
  background: #f7f7f9;
  color: #7876ae;
}
.cookie-btns .reject:hover { background: #ffe0ee; color: #d35400; }
.cookie-btns .settings {
  background: #fff;
  color: #717095;
}
.cookie-btns .settings:hover { background: #d1f5ee; color: #7a6699; }

/****** Cookie Modal ******/
.cookie-modal {
  position: fixed;
  z-index: 1300;
  left: 50%;
  top: 50%;
  transform: translate(-50%,170%) scale(0.95);
  opacity: 0;
  background: var(--card-bg);
  padding: 30px 24px 20px 24px;
  box-shadow: 0 6px 40px 0 rgba(100,110,200,0.14);
  border-radius: 18px;
  width: 95vw;
  max-width: 380px;
  transition: transform 0.34s cubic-bezier(.77,.03,.48,1.08), opacity 0.2s;
  pointer-events: none;
}
.cookie-modal.open {
  transform: translate(-50%,-50%) scale(1.0);
  opacity: 1;
  pointer-events: all;
}
.cookie-modal h3 {
  font-size: 1.13rem;
  margin-bottom: 10px;
  color: #88346e;
}
.cookie-modal .cookie-category {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
  font-size: 1rem;
}
.cookie-modal .cookie-category label {
  font-size: 1.04rem; color: #6a64b6;
}
.cookie-modal .cookie-category input[type='checkbox'] {
  accent-color: #D35400;
  width: 18px; height: 18px;
}
.cookie-modal .cookie-category .always {
  font-size: 0.95em;
  color: #c6b5e4;
  margin-left: 7px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.cookie-modal button {
  font-family: var(--font-display); font-size: 1rem; font-weight: 500;
  padding: 7px 19px;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.16s, color 0.11s;
}
.cookie-modal .save {
  background: linear-gradient(90deg,#d1f5ee 20%,#ffe5d6 100%);
  color: #473366;
}
.cookie-modal .cancel {
  background: #ffe0ee;
  color: #85519c;
}
.cookie-modal .save:hover { background: #ffe5d6; color: #d35400; }
.cookie-modal .cancel:hover { background: #d1f5ee; color: #473366; }

/****** Hide scroll on modal open ******/
body.cookie-modal-open { overflow: hidden; }

/* ==================== ANIMATIONS & MICRO-INTERACTIONS ==================== */
[data-animate] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s, transform 0.6s; }
[data-animate].visible { opacity: 1; transform: none; }

button:active, .cta:active {
  filter: brightness(0.97) saturate(0.96);
  transform: scale(0.97);
}

/* ==================== VISUAL DECOR AND DETAIL ==================== */
section {
  /* only soft background for first hero section! */
}
section:nth-child(2n) {
  background: linear-gradient(100deg, #f7f7f9 70%, #e2ebfa 100%);
}
section:nth-child(2n+1) {
  background: #fff;
}

section {
  border-radius: 24px;
  border: 1px solid var(--soft-border);
  box-shadow: 0 2px 16px 0 rgba(183,187,225,0.06);
}

/****** Form styles (for possible future use) ******/
input, textarea, select {
  font-family: var(--font-body);
  background: #f1eafc;
  border: 1px solid var(--soft-border);
  border-radius: 14px;
  padding: 11px 16px;
  font-size: 1rem;
  color: var(--primary);
  outline: none;
  transition: border 0.18s, box-shadow 0.17s;
}
input:focus, textarea:focus, select:focus {
  border-color: #d35400;
  box-shadow: 0 2px 8px 0 rgba(182,167,227,0.09);
}

label { font-family: var(--font-display); font-size: 1.06rem; color: #473366; margin-bottom: 6px; }

/* ==================== ACCESSIBILITY & CONTRAST ==================== */
.testimonial-card,
blockquote, .testimonial-meta { color: #36334d; background: var(--brand-blue); }
.testimonial-card blockquote { color: #45416e; background: transparent; border-left: 4px solid #ffe0ee; }

.testimonial-card {
  background: #e2ebfa;
  color: #393144;
  border-color: #e4ddfa;
}

/****** Add strong visual contrast if dark mode detected ******/
@media (prefers-color-scheme: dark) {
  body { background: #232239; color: #f1f1fa; }
  section, .card, .team-card, .testimonial-card {
    background: #30305a;
    color: #f5f5fa;
    border-color: #473866;
  }
  .main-nav a, .mobile-nav a, .footer-menu a, .footer-contact span, .category-filter, label {
    color: #835151; }
  .footer-social a img { background: #2c3e50; }
  .search-bar input { background: #373250; color: #f4f3f8; border-color: #48358A; }
}

/* ==================== UTILITIES & MISC ==================== */
.hide { display: none !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.gap-20 { gap: 20px !important; }

/****** Prevent card/content overlap, ensure enough gap everywhere ******/
.testimonial-card, .team-card, .card, .section, .content-wrapper>* {
  margin-bottom: 20px !important;
}

/****** Prevent images from overflowing ******/
img { max-width: 100%; display: inline-block; border: none; }


/* ==================== END - Dusky Arch Edukacja Soft Pastel CSS ==================== */
