/* -----------------------------
 ISKRA RODZINY - STYLE.CSS
 Elegant Classic Responsive Theme
 Fully Flexbox-based, No CSS Grid/Columns
------------------------------*/

/* CSS RESET & NORMALIZATION */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, ul, ol, li, a, img, section, nav, header, footer, main, button, input, strong {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  box-sizing: border-box;
  vertical-align: baseline;
}
html {
  -webkit-text-size-adjust:100%;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-size: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', 'Georgia', serif;
  background: #F8F6F3;
  color: #234D6A;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
}
ul, ol {
  margin-left: 24px;
}
button, a {
  outline: none;
  text-decoration: none;
  cursor: pointer;
  color: inherit;
  background: none;
  border: none;
}
input[type="text"] {
  font-family: inherit;
}

/*------------------------------------
TYPOGRAPHY - Elegant Classic
--------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', "Times New Roman", Times, serif;
  color: #234D6A;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 20px;}
h2 { font-size: 2rem; line-height: 1.18; margin-bottom: 16px;}
h3 { font-size: 1.25rem; line-height: 1.24; margin-bottom: 12px;}
h4, h5, h6 { font-size: 1.05rem; margin-bottom: 10px; }
p, li, input {
  font-family: 'Roboto', 'Georgia', serif;
  color: #234D6A;
  font-size: 1rem;
}
strong { font-weight: bold; }

/* Responsive Typography */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.1rem; }
}

/*------------------------------------
COLOR SCHEME
--------------------------------------*/
:root {
  --primary: #234D6A;
  --secondary: #E57A44;
  --accent: #F8F6F3;
  --text-dark: #234D6A;
  --text-light: #fff;
  --muted: #E0DBD4;
  --card-bg: #fff;
  --border: #D5CEC2;
  --shadow: 0 2px 12px rgba(35,77,106,0.05);
}

/*------------------------------------
STRUCTURAL LAYOUT CLASSES
--------------------------------------*/
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
section {
  background: var(--accent);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  margin-top: 16px;
  background: none;
}

/*------------------------------------
HEADER & NAVIGATION
--------------------------------------*/
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(35,77,106, 0.05);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 99;
}
header .container {
  flex-direction: row;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  padding: 12px 20px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-right: 24px;
}
header nav a {
  color: var(--primary);
  font-size: 1rem;
  font-family: 'Montserrat', serif;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
  transition: color .18s;
}
header nav a:after {
  content: '';
  display: block;
  margin: 0 auto;
  height: 2px;
  width: 0;
  background: var(--secondary);
  transition: width 0.18s;
}
header nav a:hover, header nav a:focus {
  color: var(--secondary);
}
header nav a:hover:after, header nav a:focus:after {
  width: 80%;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  background: var(--secondary);
  color: #fff;
  font-family: 'Montserrat', serif;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 24px;
  padding: 12px 30px;
  margin-left: 10px;
  box-shadow: 0 2px 8px rgba(229, 122, 68,.10);
  letter-spacing: 0.01em;
  border: none;
  transition: background .18s, box-shadow .2s, transform .12s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #f28d63;
  color: #fff;
  box-shadow: 0 4px 24px rgba(229, 122, 68,.14);
  transform: translateY(-2px) scale(1.03);
}
.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  background: none;
  color: var(--secondary);
  font-family: 'Montserrat', serif;
  font-weight: 600;
  border: 2px solid var(--secondary);
  border-radius: 22px;
  padding: 10px 26px;
  margin-top: 14px;
  font-size: 1rem;
  transition: background .16s, color .15s, border .16s;
}
.cta-btn-secondary:hover, .cta-btn-secondary:focus {
  background: var(--secondary);
  color: #fff;
}

button, .cta-btn, .cta-btn-secondary {
  transition: background .2s, color .18s, border .18s, transform .12s;
}

/*------------------------------------
MOBILE MENU (BURGER NAVIGATION)
--------------------------------------*/
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #fff;
  font-size: 2rem;
  padding: 5px 15px;
  border-radius: 4px;
  border: none;
  margin-left: 18px;
  transition: background .22s;
  z-index: 101;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #f28d63;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(35,77,106, 0.96);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.7,.2,.2,1);
  z-index: 201;
  opacity: 1;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2rem;
  border: none;
  position: absolute;
  right: 22px;
  top: 22px;
  z-index: 202;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 50%;
  transition: background .13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.18);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  margin-top: 80px;
  padding-left: 40px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', serif;
  padding: 11px 0;
  font-weight: 600;
  transition: color .18s, background .13s;
  border-radius: 8px;
  width: fit-content;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(229,122,68,0.10);
}
@media (max-width: 1024px) {
  header nav { display: none; }
  .cta-btn { display: none; }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu-toggle { display: none !important; }
}

/*------------------------------------
HERO & MAIN CTA SECTIONS
--------------------------------------*/
main section:first-child {
  background: #fff;
  border-bottom: 1px solid var(--muted);
  min-height: 260px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

/*------------------------------------
FLEX LAYOUTS & MANDATORY SPACING
--------------------------------------*/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 24px;
  transition: box-shadow .18s, transform .15s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 28px rgba(35,77,106,0.09);
  transform: translateY(-2px) scale(1.01);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 28px 14px 28px;
  background: #fff;
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 22px rgba(35,77,106, .08);
  border-radius: 18px;
  min-width: 275px;
  max-width: 400px;
  margin-right: 20px;
  margin-bottom: 20px;
  color: var(--primary);
  position: relative;
}
.testimonial-card strong {
  margin-top: 10px;
  color: var(--secondary);
  letter-spacing: 0.01em;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature grids for Features & Porady Rodzinne */
.feature-grid,
.service-cards,
.team-member-briefs,
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.feature-grid > div,
.service-cards > div,
.team-member-briefs > div,
.faq-list > div {
  flex: 1 1 290px;
  min-width: 260px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 24px 20px;
  margin-bottom: 20px;
  transition: box-shadow .18s, transform .10s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-grid > div img {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  margin-top: 0;
}
.feature-grid > div h3,
.service-cards > div h3 {
  font-size: 1.13rem;
  color: var(--primary);
  margin-bottom: 3px;
}
.feature-grid > div:hover,
.service-cards > div:hover,
.team-member-briefs > div:hover,
.faq-list > div:hover {
  box-shadow: 0 6px 36px rgba(35,77,106, 0.11);
  transform: translateY(-4px) scale(1.012);
}

/* Blog Specific */
.blog-categories {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.category-filters {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.category-filters a {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 0.96rem;
  font-family: 'Montserrat', serif;
  transition: background .17s, color .14s, border .14s;
}
.category-filters a:hover, .category-filters a:focus {
  background: var(--secondary);
  color: #fff;
  border: 1px solid var(--secondary);
}

/* FAQ section spacing */
.faq-list > div h3 {
  margin-bottom: 5px;
}

/*------------------------------------
LIST SPACING
--------------------------------------*/
ul, ol {
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 7px;
  padding-left: 0px;
)

/*------------------------------------
INPUTS & SEARCH
--------------------------------------*/
input[type="text"] {
  width: 100%;
  max-width: 380px;
  border-radius: 18px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 1rem;
  padding: 13px 22px;
  color: var(--primary);
  margin-top: 8px;
  transition: border .18s, box-shadow .15s;
  box-shadow: 0 2px 12px rgba(35,77,106,0.04);
}
input[type="text"]:focus {
  border: 1.5px solid var(--secondary);
  box-shadow: 0 6px 24px rgba(229,122,68, 0.12);
}

/*------------------------------------
FOOTER
--------------------------------------*/
footer {
  background: var(--accent);
  border-top: 1.5px solid var(--muted);
  color: var(--primary);
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
  padding: 36px 20px 12px 20px;
}
.footer-logo-contact {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.footer-logo-contact img {
  width: 60px;
  height: auto;
}
.footer-logo-contact > div > p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 7px 0;
  font-size: 1rem;
}
.footer-logo-contact img[alt^="Adres"],
.footer-logo-contact img[alt^="Telefon"],
.footer-logo-contact img[alt^="E-mail"],
.footer-logo-contact img[alt^="Godziny"] {
  width: 19px;
  height: auto;
  opacity: 0.6;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: flex-start;
}
.footer-nav a {
  color: var(--primary);
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color .15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid var(--muted);
  margin-top: 14px;
  text-align: center;
  padding: 14px 0px 12px 0;
  font-size: 0.95rem;
}

/*------------------------------------
COOKIE CONSENT BANNER & MODAL
--------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -2px 24px rgba(35,77,106,.09);
  border-top: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 9999;
  padding: 20px 20px 15px 20px;
  font-size: 1rem;
  animation: cookie-banner-slidein 600ms cubic-bezier(.55,.11,.18,.92);
}
@keyframes cookie-banner-slidein {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cookie-banner .banner-btns {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 8px;
}
.cookie-banner button {
  min-width: 110px;
  font-size: 1rem;
  font-family: 'Montserrat', serif;
  border-radius: 18px;
  border: none;
  padding: 9px 22px;
  cursor: pointer;
  transition: background .16s, color .14s;
  margin-top: 0;
}
.cookie-banner .accept {
  background: var(--secondary);
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #e86a2c;
}
.cookie-banner .reject {
  background: #d9d9d9;
  color: var(--primary);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #e5e5e5;
}
.cookie-banner .settings {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--primary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
}

.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10001;
  background: rgba(35,77,106, 0.37);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .22s;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 40px rgba(35,77,106, .17);
  max-width: 430px;
  width: 90%;
  padding: 36px 28px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  animation: cookie-modal-fadein 410ms cubic-bezier(.52,.28,.22,1);
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; transform: scale(.98); }
  to   { opacity: 1; transform: scale(1); }
}
.cookie-modal-content h2 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.cookie-modal-content .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
  font-family: 'Roboto', serif;
}
.cookie-modal-content .switch {
  width: 40px;
  height: 22px;
  background: #e6e0d6;
  border-radius: 16px;
  position: relative;
  cursor: pointer;
  margin-left: auto;
}
.cookie-modal-content .switch::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 16px;
  background: var(--secondary);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left .21s, background .21s;
}
.cookie-modal-content .switch.active::before {
  left: 20px;
  background: var(--primary);
}
.cookie-modal-content .switch.disabled {
  background: #ececec;
  cursor: not-allowed;
  opacity: .66;
}
.cookie-modal-content .switch.disabled::before {
  background: #bdbdbd;
}
.cookie-modal-content .cookie-category label {
  font-size: .98rem;
  font-family: 'Roboto', serif;
  color: var(--primary);
}
.cookie-modal-content .modal-btns {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--primary);
  position: absolute;
  right: 19px;
  top: 14px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 222;
  border-radius: 5px;
  transition: background .13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #eef2f2;
}

/*------------------------------------
UTILITY CLASSES
--------------------------------------*/
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.d-flex { display: flex; }
.gap-20 { gap: 20px; }

/*------------------------------------
CONFIRMATION MESSAGE (Thank You)
--------------------------------------*/
.confirmation-message {
  padding: 14px 0 14px 0;
  font-size: 1.15rem;
  background: #f6efea;
  color: var(--primary);
  margin-bottom: 44px;
  border-radius: 14px;
}

/*------------------------------------
MEDIA QUERIES: MOBILE-FIRST
--------------------------------------*/
@media (max-width: 1024px) {
  .container {
    max-width: 99vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 25px 12px 8px 12px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  section, .section { padding: 32px 8px; }
  .feature-grid, .team-member-briefs, .service-cards, .faq-list {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .service-cards > div, .faq-list > div, .team-member-briefs > div {
    min-width: 0;
  }
  .testimonial-slider {
    gap: 15px;
    padding-bottom: 2px;
  }
  .footer-logo-contact, .footer-nav {
    flex-direction: column;
    gap: 9px;
  }
}
@media (max-width: 560px) {
  h1 { font-size: 1.18rem;}
  h2 { font-size: 1.07rem;}
  .footer-logo-contact img {
    width: 44px;
  }
}

/*------------------------------------
SUBTLE ANIMATIONS & TRANSITIONS
--------------------------------------*/
.card, .feature-grid > div, .service-cards > div, .team-member-briefs > div, .faq-list > div,
.category-filters a, .cta-btn, .cta-btn-secondary, input[type="text"] {
  transition: box-shadow .17s, background .15s, transform .11s, border .14s, color .14s;
}

/*------------------------------------
ACCESSIBILITY
--------------------------------------*/
a:focus, button:focus, .cta-btn:focus, .cta-btn-secondary:focus, input:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 1.5px;
}
::-webkit-input-placeholder { color: #9e9e9e; }
::-moz-placeholder { color: #9e9e9e; }
:-ms-input-placeholder { color: #9e9e9e; }
::placeholder { color: #9e9e9e; }

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

