/* ========================================
   HelpKids - Centrum Terapii Dzieci
   Main Stylesheet
   ======================================== */

/* === CSS Variables === */
:root {
  --primary: #4A90E2;
  --primary-dark: #357ABD;
  --secondary: #FF9A76;
  --secondary-dark: #E8865F;
  --accent: #66D9B8;
  --dark: #2C3E50;
  --light-bg: #FDF8F5;
  --white: #FFFFFF;
  --text: #333333;
  --text-light: #666666;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background-color: var(--light-bg);
}

.section__title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* === Header & Navigation === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo__img {
  height: 70px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
  transition: var(--transition);
}

.logo__img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.5);
}

.logo__text {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Hamburger Menu (CSS-only) */
.nav__toggle {
  display: none;
}

.nav__toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle-label span,
.nav__toggle-label span::before,
.nav__toggle-label span::after {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  position: relative;
  transition: var(--transition);
}

.nav__toggle-label span::before,
.nav__toggle-label span::after {
  content: '';
  position: absolute;
}

.nav__toggle-label span::before { top: -8px; }
.nav__toggle-label span::after { top: 8px; }

.nav__menu {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  color: var(--dark);
  padding: 0.5rem 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--primary);
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.85) 0%, rgba(102, 217, 184, 0.7) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 280px;
  height: 280px;
  background-image: url('../assets/logo/HELPKIDS.jpg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  pointer-events: none;
  border-radius: 50%;
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 600px;
}

.hero__title {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero__subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero--small {
  min-height: 40vh;
}

.hero--small .hero__title {
  font-size: 2.5rem;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn--primary {
  background: var(--secondary);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* === Cards === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--white);
}

.card__title {
  margin-bottom: 1rem;
}

.card__text {
  color: var(--text-light);
}

.card__link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.card__link:hover {
  color: var(--secondary);
}

/* === Team Cards === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.team-card__img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
}

.team-card__content {
  padding: 1.5rem;
}

.team-card__name {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.team-card__role {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.team-card__bio {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* === Service Cards (Oferta) === */
.services-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.services-nav__link {
  padding: 0.75rem 1.5rem;
  background: var(--light-bg);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--dark);
}

.services-nav__link:hover {
  background: var(--primary);
  color: var(--white);
}

.service-section {
  margin-bottom: 4rem;
}

.service-section__title {
  color: var(--primary);
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--secondary);
  display: inline-block;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service-item summary {
  padding: 1.25rem;
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.service-item summary:hover {
  background: var(--light-bg);
}

.service-item summary::marker {
  display: none;
}

.service-item summary::-webkit-details-marker {
  display: none;
}

.service-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.service-item[open] summary::after {
  transform: rotate(45deg);
}

.service-item__content {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-light);
  line-height: 1.7;
}

.service-item__price {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* === Gallery === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery__item:hover .gallery__img {
  transform: scale(1.05);
}

.gallery__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(74, 144, 226, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__overlay span {
  color: var(--white);
  font-size: 2rem;
}

/* === Contact Section === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-info {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info__icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info__label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.contact-info__value {
  color: var(--text-light);
}

.contact-info__value a {
  color: var(--primary);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 300px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: none;
}

.contact-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.contact-images img {
  border-radius: var(--radius);
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* === Contact Form === */
.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
}

/* === Features === */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature {
  text-align: center;
  padding: 2rem;
}

.feature__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.feature__title {
  margin-bottom: 0.75rem;
}

.feature__text {
  color: var(--text-light);
}

/* === Footer === */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer__logo-img {
  height: 80px;
  width: auto;
  border-radius: 10px;
  opacity: 0.95;
  transition: var(--transition);
}

.footer__logo-img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__title {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary);
}

.footer__text {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
}

.footer__link:hover {
  color: var(--secondary);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer__contact-item a {
  color: rgba(255, 255, 255, 0.8);
}

.footer__contact-item a:hover {
  color: var(--secondary);
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.footer__social a:hover {
  background: var(--secondary);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* === Responsive === */
@media (max-width: 850px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero--small .hero__title {
    font-size: 2rem;
  }

  .hero::after {
    width: 200px;
    height: 200px;
    right: 2%;
  }

  .logo__img {
    height: 60px;
  }

  .section {
    padding: 3rem 0;
  }

  .nav__toggle-label {
    display: block;
  }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav__toggle:checked ~ .nav__menu {
    display: flex;
  }

  .nav__toggle:checked ~ .nav__toggle-label span {
    background: transparent;
  }

  .nav__toggle:checked ~ .nav__toggle-label span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav__toggle:checked ~ .nav__toggle-label span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .nav__link {
    padding: 1rem;
    border-bottom: 1px solid var(--light-bg);
  }
}

@media (max-width: 550px) {
  .container {
    padding: 0 1rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .hero {
    min-height: 60vh;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .contact-images {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer__social {
    justify-content: center;
  }

  .hero::after {
    width: 150px;
    height: 150px;
    opacity: 0.1;
  }

  .logo__img {
    height: 55px;
  }
}

/* === Utility Classes === */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* === Pricing Tables === */
.pricing-table {
  max-width: 800px;
  margin: 0 auto;
}

.price-list {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.price-list th,
.price-list td {
  padding: 1rem 1.5rem;
  text-align: left;
}

.price-list th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.price-list th:last-child,
.price-list td:last-child {
  text-align: right;
  white-space: nowrap;
}

.price-list tbody tr {
  border-bottom: 1px solid #eee;
}

.price-list tbody tr:last-child {
  border-bottom: none;
}

.price-list tbody tr:hover {
  background: #f8f9fa;
}

/* SOM Page Styles */
.som-content {
  max-width: 900px;
  margin: 0 auto;
}

.som-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
}

.som-content h2 {
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.som-content ul,
.som-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.som-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.som-standards {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.som-standard {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.som-standard h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.som-standard ul {
  margin-top: 0.75rem;
}
