/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background-color: #f5f5f7;
  line-height: 1.6;
}

/* Kolory */
:root {
  --bg-main: #f5f5f7;
  --bg-card: #ffffff;
  --accent: #2ec4c9;
  --accent-dark: #14929a;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-soft: rgba(17, 24, 39, 0.08);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* Layout */
.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-header.center {
  text-align: center;
}

.section-header.center p {
  max-width: 580px;
  margin-inline: auto;
}

/* Typografia */

h1, h2, h3 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  margin-top: 0;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin-bottom: 0.3rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

p {
  margin-top: 0;
  color: var(--text-main);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(245, 245, 247, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(209, 213, 219, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #e0fbff, #2ec4c9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  color: #0b1120;
}

.logo-text {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
}

.logo-highlight {
  color: var(--accent-dark);
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-main);
  position: relative;
  padding-block: 0.2rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width 0.18s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background-color: #111827;
}

/* HERO */

.hero {
  position: relative;
  min-height: 85vh;
  background-color: #0b1120;
  color: #f9fafb;
  overflow: hidden;
}

.hero-photography {
  background-color: #0b1120;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.01);
}

.hero-overlay-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;   /* panel przy lewej krawędzi na desktopie */
  align-items: center;
  min-height: 85vh;
}

.hero-panel {
  max-width: 460px;              /* węższy panel – więcej widać slider */
  background: rgba(15, 23, 42, 0.86);
  border-radius: 1.6rem;
  padding: 2.1rem 2.3rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
}

/* lekkie przesunięcie jeszcze bardziej w lewo na bardzo szerokich ekranach */
@media (min-width: 1200px) {
  .hero-panel {
    margin-left: -1.5rem;
  }
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e0f2fe;
  margin-bottom: 0.8rem;
}

.hero-panel h1 {
  color: #f9fafb;
  margin-bottom: 0.6rem;
}

.hero-subtitle {
  color: #e5e7eb;
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Hero arrows */

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(15, 23, 42, 0.55);
  color: #f9fafb;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.hero-arrow-prev {
  left: 1.5rem;
}

.hero-arrow-next {
  right: 1.5rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
  background 0.12s ease, color 0.12s ease;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #f9fafb;
  box-shadow: 0 18px 40px rgba(20, 146, 154, 0.6);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(20, 146, 154, 0.7);
}

.btn-ghost {
  background-color: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.7);
}

.btn-ghost:hover {
  background-color: rgba(15, 23, 42, 0.6);
}

.btn-full {
  width: 100%;
}

/* BIO */

.section-bio {
  background-color: var(--bg-main);
}

.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.8fr);
  gap: 3rem;
  align-items: flex-start;
}

.bio-grid p {
  color: var(--text-muted);
}

.bio-highlight {
  background-color: var(--bg-card);
  border-radius: 1.5rem;
  padding: 2rem 1.8rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.bio-highlight ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-main);
}

/* USŁUGI MINIMALNE */

.section-services-minimal {
  background-color: var(--bg-card);
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.service-minimal {
  border-radius: 1.5rem;
  padding: 1.9rem 1.8rem;
  border: 1px solid var(--border-soft);
  background: linear-gradient(to bottom, #ffffff, #f5f5f7);
}

.service-minimal p {
  color: var(--text-muted);
}

.service-minimal ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

/* TESTIMONIALS */

.section-testimonials {
  background-color: var(--bg-main);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background-color: var(--bg-card);
  border-radius: 1.4rem;
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.testimonial-quote {
  font-size: 0.98rem;
}

.testimonial-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
}

/* GALERIA – intro + filtry */

.section-gallery-intro {
  padding-bottom: 1.5rem;
  background-color: var(--bg-main);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.filter-btn {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background-color: #ffffff;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-main);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #f9fafb;
  border-color: transparent;
}

/* GALERIA – grid */

.section-gallery-grid {
  padding-top: 1rem;
  background-color: #f9fafb;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 1.2rem;
  overflow: hidden;
  background-color: #e5e7eb;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 100%;
  transform: scale(1.02);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item::after {
  content: "Powiększ";
  position: absolute;
  inset: auto 0 0;
  text-align: center;
  padding: 0.4rem 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85), transparent);
  color: #f9fafb;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  border: none;
  background: none;
  color: #f9fafb;
  font-size: 2rem;
  cursor: pointer;
}

/* KONTAKT – strona */

.section-contact-page {
  background-color: var(--bg-card);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: flex-start;
}

.contact-info p {
  color: var(--text-muted);
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.contact-details li {
  margin-bottom: 0.6rem;
}

.contact-details a {
  color: var(--accent-dark);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.social-links {
  margin-top: 1.5rem;
}

.social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.social-pills a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background-color: #f9fafb;
  font-size: 0.85rem;
  color: var(--text-main);
  text-decoration: none;
}

.social-pills a:hover {
  border-color: var(--accent);
}

/* Formularze */

.contact-form-card {
  background-color: var(--bg-main);
  border-radius: 1.6rem;
  padding: 2rem 1.9rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

label {
  font-size: 0.9rem;
  font-weight: 500;
}

input,
textarea,
select {
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(156, 163, 175, 0.9);
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #f9fafb;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(46, 196, 201, 0.6);
}

textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
}

.form-status {
  font-size: 0.85rem;
  margin-top: 0.7rem;
}

/* STOPKA – rozbudowana */

.site-footer {
  background-color: #111827;
  color: #e5e7eb;
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(55, 65, 81, 0.8);
}

.footer-column h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: #f9fafb;
}

.footer-column p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-nav,
.footer-contact {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  font-size: 0.9rem;
}

.footer-nav li + li,
.footer-contact li + li {
  margin-top: 0.3rem;
}

.footer-nav a,
.footer-contact a {
  color: #e5e7eb;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-contact a:hover {
  text-decoration: underline;
}

.footer-cta {
  margin-top: 0.7rem;
}

.footer-cta .btn {
  padding-inline: 1.2rem;
  font-size: 0.88rem;
}

.footer-social {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.footer-social span {
  color: #9ca3af;
}

.footer-social a {
  color: #a5f3fc;
  text-decoration: none;
}

.footer-social a:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding: 1.2rem 0 2rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.footer-note {
  color: #9ca3af;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stany formularzy */

.form-status.success {
  color: #15803d;
}

.form-status.error {
  color: #b91c1c;
}

/* RWD */

@media (max-width: 960px) {
  .bio-grid,
  .service-strip,
  .testimonials-grid,
  .gallery-grid,
  .contact-page-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-overlay-content {
    min-height: 78vh;
    justify-content: center;      /* na mobile panel wyśrodkowany */
  }

  .hero-panel {
    max-width: 100%;
    margin-left: 0;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 2rem, 100%);
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    max-height: 0;
    overflow: hidden;
    background-color: rgba(245, 245, 247, 0.98);
    transition: max-height 0.2s ease;
  }

  .main-nav.open {
    max-height: 260px;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 1.5rem 1.2rem;
    gap: 0.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 3.8rem 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-arrow {
    display: none;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    padding: 1.6rem 1.4rem;
  }
}
