/* ===========================
   AEE-PRO – style.css
   Motyw ciemny, mobile-first
   =========================== */

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

:root {
  --bg:        #0F1117;
  --bg2:       #1C2130;
  --bg3:       #1E2433;
  --blue:      #00A0E3;
  --blue-lt:   #26BFFF;
  --text:      #E8EDF2;
  --text2:     #8A96A8;
  --border:    #2A3E47;
  --radius:    10px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --max-w:     1120px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
  color: var(--text);
}

a { color: var(--blue-lt); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text); }

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

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* === SECTION === */
.section {
  padding: 4rem 0;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-lt);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section__desc {
  color: var(--text2);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--blue);
  color: var(--text);
  border-color: var(--blue);
}
.btn--primary:hover {
  background: var(--blue-lt);
  border-color: var(--blue-lt);
  color: var(--text);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--outline:hover {
  border-color: var(--blue-lt);
  color: var(--blue-lt);
}

.btn--full { width: 100%; justify-content: center; }

/* === HEADER / NAV === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav__logo img {
  height: 47px;
  width: auto;
}

.nav__links {
  display: none;
  list-style: none;
  gap: 0.25rem;
}

.nav__links a {
  color: var(--text2);
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav__links a:hover { color: var(--text); background: var(--bg2); }

.nav__cta {
  background: var(--blue) !important;
  color: var(--text) !important;
  padding: 0.4rem 1rem !important;
}
.nav__cta:hover { background: var(--blue-lt) !important; }

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav open */
.nav__links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  gap: 0.25rem;
}
.nav__links.open a { display: block; }

/* === HERO === */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(0,160,227,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(0,160,227,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero__badge {
  display: inline-block;
  background: rgba(0,160,227,0.15);
  border: 1px solid rgba(0,160,227,0.3);
  color: var(--blue-lt);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  max-width: 700px;
}

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text2);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid var(--border);
  border-radius: 12px;
  position: relative;
}
.hero__scroll span::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  background: var(--blue-lt);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  top: 5px;
  transform: translateX(-50%);
  animation: scrollDot 1.5s ease infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; top: 5px; }
  100% { opacity: 0; top: 18px; }
}

/* === ABOUT === */
.about { background: var(--bg2); }

.about__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about__img-wrap { display: flex; justify-content: center; }

.about__img-placeholder {
  width: 280px;
  height: 340px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text2);
  text-align: center;
  font-size: 0.9rem;
}
.about__img-placeholder svg { width: 60px; height: 60px; opacity: 0.5; }

.about__lead {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 400;
}

.about__facts {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.fact { display: flex; flex-direction: column; }
.fact strong { font-size: 1.35rem; font-family: 'Outfit', sans-serif; color: var(--blue-lt); }
.fact span { font-size: 0.85rem; color: var(--text2); }

/* === SERVICES === */
.services__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--blue-lt);
  margin-bottom: 1.25rem;
}
.service-card__icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-card p { color: var(--text2); font-size: 0.95rem; }

/* === PRICING === */
.pricing { background: var(--bg2); }

.pricing__table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2rem;
}

.pricing__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.pricing__row:last-child { border-bottom: none; }
.pricing__row:hover { background: rgba(0,160,227,0.05); }

.pricing__name { font-size: 0.95rem; color: var(--text); }

.pricing__price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue-lt);
  white-space: nowrap;
}

.pricing__note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.25rem;
  color: var(--text2);
  font-size: 0.88rem;
  line-height: 1.5;
}
.pricing__note svg { flex-shrink: 0; margin-top: 1px; color: var(--blue-lt); }

/* === WHY === */
.why__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.why-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.why-card__icon {
  width: 40px;
  height: 40px;
  color: var(--blue-lt);
}
.why-card__icon svg { width: 100%; height: 100%; }

.why-card h3 { font-size: 1.05rem; }
.why-card p { color: var(--text2); font-size: 0.93rem; }

/* === REVIEWS === */
.reviews { background: var(--bg2); }

.reviews__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.review-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review-card__stars { color: #F4B942; font-size: 1.1rem; letter-spacing: 2px; }

.review-card p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
  font-style: italic;
}

.review-card__author {
  display: flex;
  flex-direction: column;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.review-card__author strong { font-size: 0.9rem; }
.review-card__author span { font-size: 0.8rem; color: var(--text2); }

.reviews__source {
  margin-top: 2rem;
  color: var(--text2);
  font-size: 0.82rem;
  text-align: center;
  font-style: italic;
}

/* === AREA === */
.area__towns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.area__towns span {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  font-size: 0.88rem;
  color: var(--text2);
  transition: all var(--transition);
}
.area__towns span:first-child {
  background: rgba(0,160,227,0.15);
  border-color: rgba(0,160,227,0.4);
  color: var(--blue-lt);
  font-weight: 600;
}
.area__towns span:hover {
  border-color: var(--blue);
  color: var(--text);
}

/* === FAQ === */
.faq { background: var(--bg2); }

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.faq__item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq__item[open] { border-color: var(--blue); }

.faq__item summary {
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.97rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--blue-lt);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--blue-lt); }

.faq__item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text2);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* === GALLERY === */
.gallery__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2rem;
}

.gallery__placeholder {
  aspect-ratio: 4/3;
  background: var(--bg2);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text2);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color var(--transition);
}
.gallery__placeholder svg { width: 36px; height: 36px; opacity: 0.5; }
.gallery__placeholder:hover { border-color: var(--blue); }

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.lightbox__close:hover { color: var(--text); }

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}

/* === CONTACT === */
.contact { background: var(--bg2); }

.contact__grid {
  display: grid;
  gap: 3rem;
}

.contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  color: var(--text2);
  font-size: 0.95rem;
}
.contact__list svg {
  width: 20px;
  height: 20px;
  color: var(--blue-lt);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact__list a { color: var(--text); }
.contact__list a:hover { color: var(--blue-lt); }

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form__row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__row label {
  font-size: 0.88rem;
  color: var(--text2);
  font-weight: 500;
}
.form__row label span { color: var(--blue-lt); }

.form__row input,
.form__row select,
.form__row textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}
.form__row input:focus,
.form__row select:focus,
.form__row textarea:focus {
  border-color: var(--blue);
}
.form__row input::placeholder,
.form__row textarea::placeholder { color: var(--text2); opacity: 0.6; }
.form__row select { cursor: pointer; }
.form__row select option { background: var(--bg3); }

.form__note {
  font-size: 0.82rem;
  color: var(--text2);
  text-align: center;
  margin-top: 0.25rem;
}

/* === BOOKING (Rezerwacja wizyty) === */
.booking { background: var(--bg2); }

.booking__form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.booking__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.form__row input[type="date"] { color-scheme: dark; }

.form__hint {
  font-size: 0.78rem;
  color: var(--text2);
  margin-top: 0.3rem;
}

.booking__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2.6rem;
  align-items: center;
}

.booking__slots-hint {
  color: var(--text2);
  font-size: 0.85rem;
}

.booking__slot {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
}
.booking__slot:hover:not(:disabled) { border-color: var(--blue-lt); color: var(--blue-lt); }
.booking__slot.is-selected {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--text);
}
.booking__slot:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.booking__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.booking__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text2);
  cursor: pointer;
}
.booking__consent input {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.booking__consent a { color: var(--blue-lt); }

.booking__status {
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2rem;
}
.booking__status.is-success { color: #5fbf8a; }
.booking__status.is-error { color: #e07a7a; }

@media (min-width: 640px) {
  .booking__grid { grid-template-columns: 1fr 1fr; }
}

/* === FOOTER === */
.footer {
  background: #0A0D13;
  border-top: 1px solid var(--border);
  padding: 3rem 0 0;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer__brand p {
  color: var(--text2);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.footer__links strong,
.footer__contact strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text2);
  margin-bottom: 0.75rem;
}

.footer__links ul,
.footer__contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__links a,
.footer__contact a,
.footer__contact li {
  font-size: 0.9rem;
  color: var(--text2);
  transition: color var(--transition);
}
.footer__links a:hover,
.footer__contact a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.25rem;
  font-size: 0.82rem;
  color: var(--text2);
}
.footer__privacy:hover { color: var(--text); }

/* === STICKY CALL BUTTON === */
.sticky-actions {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  transition: opacity var(--transition);
}
.sticky-call,
.sticky-wa {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all var(--transition);
}
.sticky-call {
  background: var(--blue);
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0,160,227,0.4);
}
.sticky-call:hover {
  background: var(--blue-lt);
  color: var(--text);
  box-shadow: 0 4px 28px rgba(38,191,255,0.5);
  transform: translateY(-2px);
}
.sticky-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
}
.sticky-wa:hover {
  background: #20bd5a;
  color: #fff;
  box-shadow: 0 4px 28px rgba(37,211,102,0.5);
  transform: translateY(-2px);
}

/* === RESPONSIVE – tablet (640px+) === */
@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid      { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid  { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid  { grid-template-columns: repeat(3, 1fr); }
  .about__grid    { grid-template-columns: 1fr 1.5fr; }
  .contact__grid  { grid-template-columns: 1fr 1.5fr; }
  .footer__grid   { grid-template-columns: repeat(3, 1fr); }

  .nav__toggle { display: none; }
  .nav__links  { display: flex; }

  .sticky-actions { bottom: 2rem; right: 2rem; }
}

/* === RESPONSIVE – desktop (960px+) === */
@media (min-width: 960px) {
  .section { padding: 6rem 0; }
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .about__img-placeholder { width: 340px; height: 400px; }
}

/* === ACCESSIBILITY === */
:focus-visible {
  outline: 2px solid var(--blue-lt);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
