:root {
  --bg: #F1EFE6;
  --surface-alt: #E4E0D1;
  --ink: #2B332C;
  --ink-soft: #5B6459;
  --accent: #8A6558;
  --accent-deep: #445540;
  --photo: #8A6558;
  --border: #D4CFBC;
  --btn-ink: #F6F4EC;

  --font-display: "Fraunces", serif;
  --font-body: "Inter", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1F1B;
    --surface-alt: #242923;
    --ink: #EDEAE0;
    --ink-soft: #A8AFA3;
    --accent: #C99C88;
    --accent-deep: #8FB088;
    --photo: #8A6558;
    --border: #3A3F38;
    --btn-ink: #1B1F1B;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 28px;
  font-size: 0.95rem;
}

.nav a:focus-visible {
  color: var(--accent-deep);
}

@media (hover: hover) {
  .nav a:hover {
    color: var(--accent-deep);
  }
}

/* Hero */
.hero {
  padding: 72px 0 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
}

.lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 22px 0 32px;
}

.btn {
  display: inline-block;
  background: var(--accent-deep);
  color: var(--btn-ink);
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.btn:focus-visible {
  background: var(--ink);
}

@media (hover: hover) {
  .btn:hover {
    background: var(--ink);
  }
}

.hero-photo {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--photo) url('../images/milena_photo.JPG') center/cover no-repeat;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.hero-photo:hover::before {
  transform: scale(1.05);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  z-index: -1;
  transition: transform 0.3s ease;
}

.hero-photo:hover::after {
  transform: scale(1.05);
}

/* Sections */
.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-divider {
  border-top: 1px solid var(--border);
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section h2 {
  font-size: 1.9rem;
  font-weight: 500;
  margin-bottom: 32px;
}

.section-body {
  color: var(--ink-soft);
  max-width: 62ch;
}

.section-body p {
  margin: 0 0 40px;
}

.section-body a {
  color: var(--accent-deep);
}

.section-grid {
  display: block;
}

.subsection {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

#w-czym-pomagam {
  margin-top: 0;
  padding-top: 24px;
}

.subsection h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.section-body .label {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 28px 0 10px;
}

.helping {
  margin: 10px 0 0;
  padding: 0;
  list-style: circle;
  max-width: 62ch;
  list-style-position: inside;
}

.helping li {
  padding: 0 0 10px;
  color: var(--ink-soft);
}

.credentials {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  max-width: 62ch;
}

.credentials li {
  padding: 10px 0;
  color: var(--ink-soft);
}

/* Offer cards */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.offer-card {
  background: var(--bg);
  border-left: 3px solid var(--accent);
  padding: 24px;
  border-radius: 2px;
}

.offer-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.offer-card p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: max-content auto;
  gap: 56px;
  align-items: start;
}

.contact-details {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.contact-details dt {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.contact-details dd {
  margin: 0;
  font-size: 1rem;
}

.contact-details a {
  color: inherit;
  text-decoration: none;
}

.contact-details a:focus-visible {
  color: var(--accent-deep);
  text-decoration: underline;
}

@media (hover: hover) {
  .contact-details a:hover {
    color: var(--accent-deep);
    text-decoration: underline;
  }
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

/* Rezerwacja (Booking) */
.pricing-info {
  max-width: 62ch;
  margin-bottom: 32px;
}

.pricing-info p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.pricing-info strong {
  color: var(--accent-deep);
  font-weight: 600;
}

/* Calendar switcher */
.cal-switcher {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.cal-switch-btn {
  padding: 12px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (hover: hover) {
  .cal-switch-btn:hover {
    background: var(--surface-alt);
    border-color: var(--accent);
    color: var(--ink);
  }
}

.cal-switch-btn.active {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--btn-ink);
}

@media (hover: hover) {
  .cal-switch-btn.active:hover {
    background: var(--ink);
    border-color: var(--ink);
  }
}

/* Calendar container */
.cal-container {
  position: relative;
  overflow: hidden;
}

.cal-container[hidden] {
  display: none;
}

.cal-wrapper {
  border-radius: 8px;
  display: block;
  overflow: hidden;
}

.cal-wrapper:not(.active) {
  display: none;
}

.cal-wrapper.active {
  display: block;
}

.cal-wrapper > div {
  width: 100%;
  height: auto;
  overflow-x: hidden !important;
  max-width: 100%;
}

.cal-wrapper iframe {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.cal-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 48px 24px;
  text-align: center;
  background: var(--surface-alt);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.cal-placeholder[hidden] {
  display: none;
}

.cal-placeholder p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.cal-placeholder p:first-child {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.cal-placeholder p a {
  color: var(--accent-deep);
}

.cal-placeholder .btn {
  margin-top: 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
}

.site-footer a:focus-visible {
  color: var(--accent-deep);
}

@media (hover: hover) {
  .site-footer a:hover {
    color: var(--accent-deep);
  }
}

/* Responsive */
@media (max-width: 760px) {
  .hero-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    order: -1;
  }

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

  .nav a {
    margin-left: 16px;
  }

  .section {
    padding: 32px 0;
  }

  .hero {
    padding: 40px 0 48px;
  }

  .subsection {
    margin-top: 32px;
    padding-top: 32px;
  }

  .pricing-info {
    margin-bottom: 24px;
  }

  .cal-switcher {
    margin-bottom: 24px;
  }

  .cal-switch-btn {
    font-size: 0.9rem;
    padding: 10px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
