/* ============================================================
   CNX Chili Adventures — style.css
   Redesign: boutique luxury DMC · editorial · personal expert
   ============================================================ */


/* ----------------------------------------------------------
   ZMIENNE
   ---------------------------------------------------------- */
:root {
  --teal:          #0F6E56;
  --teal-dark:     #04342C;
  --black:         #1A1A18;
  --bg:            #FFFFFF;
  --bg-alt:        #F7F5F0;
  --gold:          #C8922A;
  --white:         #FFFFFF;
  --footer-bg:     #0E0E0C;
  --footer-text:   #777770;
  --text-body:     #2A2A28;
  --text-muted:    #6A6A65;
  --border:        rgba(0, 0, 0, 0.09);

  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  --radius:        4px;
  --transition:    0.3s ease;
  --max-w:         1160px;
}


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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-body);
  background-color: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ol, ul {
  list-style: none;
}


/* ----------------------------------------------------------
   KONTENERY
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.container--narrow {
  max-width: 680px;
}


/* ----------------------------------------------------------
   PRZYCISKI
   ---------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 15px 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
}

.btn--teal {
  background-color: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn--teal:hover {
  background-color: transparent;
  border-color: var(--teal);
  color: var(--teal);
}

/* Outlined variant — used in hero on dark bg */
.btn--outline {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

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

.btn--large {
  font-size: 0.9rem;
  padding: 17px 40px;
  letter-spacing: 0.08em;
}

.btn--full {
  width: 100%;
  text-align: center;
  display: block;
}


/* ----------------------------------------------------------
   SEKCJE
   ---------------------------------------------------------- */
.section {
  padding: 120px 0;
}

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

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

.section--dark {
  background-color: var(--black);
}

/* Eyebrow — small cap label above headings */
.section__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  text-align: center;
}

.section__eyebrow--left {
  text-align: left;
}

/* Nagłówki sekcji */
.section__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 56px;
  text-align: center;
}

.section__heading--left {
  text-align: left;
}

.section__heading--white {
  color: var(--white);
}

.section__subheading {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -44px;
  margin-bottom: 64px;
  line-height: 1.75;
}


/* ----------------------------------------------------------
   FADE-IN
   ---------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ----------------------------------------------------------
   NAWIGACJA
   ---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav__logo-img {
  display: block;
  flex-shrink: 0;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__logo-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  line-height: 1;
}

.nav__logo-tagline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: #0F6E56;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__hamburger span {
  display: block;
  height: 1.5px;
  background-color: var(--black);
  border-radius: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__cta {
  display: none;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  padding: 8px 28px 24px;
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile-link {
  display: block;
  padding: 14px 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.01em;
}

.nav__mobile-link:hover {
  color: var(--teal);
}

.nav__mobile-cta {
  margin-top: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .nav__cta {
    display: inline-block;
  }
  .nav__hamburger {
    display: none;
  }
  .nav__mobile {
    display: none !important;
  }
}


/* ----------------------------------------------------------
   HERO — cinematic full-viewport
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

/* Gradient overlay — dark at bottom, lighter at top */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 8, 0.30) 0%,
    rgba(10, 10, 8, 0.55) 50%,
    rgba(10, 10, 8, 0.80) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 100px;
  max-width: 900px;
}

/* Small eyebrow above headline */
.hero__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.hero__subheadline {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  margin-bottom: 48px;
  max-width: 560px;
  font-weight: 400;
}

.hero__cta {
  margin-bottom: 32px;
}

.hero__badge {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.40);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ----------------------------------------------------------
   SEKCJA PROBLEM — 3 kolumny (editorial, bez kart)
   ---------------------------------------------------------- */
.columns-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .columns-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

.column-card {
  padding: 40px 36px 40px 0;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .column-card {
    padding: 48px 48px 48px 0;
  }
  .column-card:not(:first-child) {
    padding-left: 48px;
    border-left: 1px solid var(--border);
  }
}

.column-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--black);
  margin-bottom: 14px;
  line-height: 1.3;
}

.column-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}


/* ----------------------------------------------------------
   OFERTA — siatka 2×2 (editorial cards)
   ---------------------------------------------------------- */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-bottom: 80px;
  background-color: var(--border);
}

@media (min-width: 768px) {
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.offer-card {
  background-color: var(--bg);
  overflow: hidden;
  transition: none;
}

.offer-card__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.6s ease;
}

.offer-card:hover .offer-card__img {
  transform: scale(1.03);
}

.offer-card__inner {
  padding: 32px 36px 40px;
}

.offer-card__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 14px;
}

.offer-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--black);
  margin-bottom: 14px;
  line-height: 1.2;
}

.offer-card__text {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.8;
}


/* ----------------------------------------------------------
   MANIFESTO — full-width dark text block
   ---------------------------------------------------------- */
.manifesto {
  background-color: #1D1D1B;
  padding: 100px 0;
}

.manifesto__inner {
  max-width: 760px;
  text-align: center;
}

.manifesto__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.manifesto__text {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.9;
  font-weight: 400;
}


/* ----------------------------------------------------------
   O NAS — editorial two-column
   ---------------------------------------------------------- */
.about__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}

@media (min-width: 768px) {
  .about__layout {
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: center;
  }
}

/* Zdjęcie */
.about__photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 8px;
}

.about__text {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.9;
  margin-bottom: 48px;
}

/* Trzy liczby */
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.about__stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 24px;
}

.about__stat:not(:first-child) {
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.about__stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--black);
  line-height: 1;
}

.about__stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.5;
}


/* ----------------------------------------------------------
   GALERIA ZDJĘĆ
   ---------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: var(--black);
  border-radius: 8px;
}

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

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


/* ----------------------------------------------------------
   REFERENCJE — dark, editorial
   ---------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 768px) {
  .testimonial-card {
    padding: 0 40px;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }
  .testimonial-card:first-child {
    padding-left: 0;
    border-left: none;
  }
}

.testimonial-card__stars {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 3px;
}

.testimonial-card__quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  font-style: italic;
}

.testimonial-card__author {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white);
  font-style: normal;
  letter-spacing: 0.02em;
}

.testimonial-card__company {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 400;
  letter-spacing: 0.04em;
}


/* ----------------------------------------------------------
   FORMULARZ KONTAKTOWY
   ---------------------------------------------------------- */
.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

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

  .form-group--full,
  .form-submit,
  .form-success {
    grid-column: 1 / -1;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--black);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--teal);
}

.form-input::placeholder {
  color: rgba(0, 0, 0, 0.25);
}

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

.form-success {
  display: none;
  padding: 18px 24px;
  background-color: rgba(15, 110, 86, 0.07);
  border: 1px solid rgba(15, 110, 86, 0.2);
  color: var(--teal-dark);
  font-weight: 500;
  font-size: 0.97rem;
  text-align: center;
}

.form-success.is-visible {
  display: block;
}


/* ----------------------------------------------------------
   ALTERNATYWNE KANAŁY KONTAKTU
   ---------------------------------------------------------- */
.contact-alt {
  text-align: center;
}

.contact-alt__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 2;
}

.contact-alt__text a {
  color: var(--teal);
  font-weight: 500;
}

.contact-alt__b2c {
  margin-top: 16px;
  font-size: 0.78rem;
  color: #AAAAAA;
}

.contact-alt__b2c a {
  color: #AAAAAA;
  text-decoration: underline;
}

.contact-alt__b2c a:hover {
  color: var(--text-muted);
}


/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */
.footer {
  background-color: var(--footer-bg);
  padding: 40px 0;
}

.footer__layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .footer__layout {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--footer-text);
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__link {
  font-size: 0.78rem;
  color: var(--footer-text);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

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


/* ----------------------------------------------------------
   RESPONSYWNOŚĆ — mobilna
   ---------------------------------------------------------- */
@media (max-width: 480px) {
  .about__stats {
    gap: 0;
  }

  .offer-card__img {
    height: 220px;
  }

  .container {
    padding: 0 20px;
  }
}


/* ----------------------------------------------------------
   RESPONSYWNOŚĆ — max 768px (mobile/tablet)
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  /* --- Navbar tagline --- */
  .nav__logo-tagline {
    font-size: 9px;
    white-space: normal;
    max-width: 160px;
  }

  /* --- Sections globally --- */
  .section {
    padding: 60px 20px;
  }

  .section__heading {
    font-size: 2rem;
    text-align: left;
    margin-bottom: 36px;
  }

  .section__eyebrow {
    text-align: left;
  }

  .section__subheading {
    text-align: left;
  }

  /* --- Hero --- */
  .hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100svh;
    background-position: center 20%;
    background-size: cover;
  }

  .hero__content {
    padding-top: 0;
    margin-top: 0;
    padding-bottom: 0;
    justify-content: flex-start;
  }

  .hero__eyebrow {
    margin-top: 0;
  }

  /* --- "Dlaczego partner lokalny" section --- */
  #dlaczego {
    padding-bottom: 20px;
  }

  /* --- Offers section --- */
  #oferta {
    padding-bottom: 0;
  }

  #oferta .offer-grid {
    margin-bottom: 0;
  }

  .offer-card:last-child {
    margin-bottom: 0;
  }

  /* --- h3 headings --- */
  .offer-card__title,
  .column-card__title {
    font-size: 1.4rem;
  }

  /* --- Manifesto dark section --- */
  .manifesto {
    padding: 60px 24px;
  }

  .manifesto__inner {
    text-align: left;
  }

  .manifesto__text {
    font-size: 1rem;
    text-align: left;
  }

  /* --- Testimonials --- */
  .testimonials-grid {
    gap: 32px;
  }

  .testimonial-card {
    text-align: left;
  }

  .testimonial-card__quote {
    font-size: 1rem;
    text-align: left;
  }
}


/* ----------------------------------------------------------
   DOSTĘPNOŚĆ
   ---------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
