/* =====================================================================
   Oczyszczanie pozazmysłowe — odświeżony motyw (premium / minimalist)
   Warstwa nakładana na Bootstrap 5. Tryb jasny.
   Marka: błękit #106eea → zachowany jako akcent; głęboki granat jako
   tekst; ciepła kość słoniowa jako tło; dyskretne złoto na detalach.
   Typografia: Cormorant Garamond (nagłówki) + Mulish (treść).
   ===================================================================== */

:root {
  --bg:        #faf8f4;   /* ciepła kość słoniowa */
  --bg-tint:   #f1ede4;   /* sekcje przyciemnione (piaskowy) */
  --bg-deep:   #161d30;   /* ciemne tło (hero scrim, stopka akcent) */
  --ink:       #1d2740;   /* tekst nagłówków / głęboki granat */
  --body:      #3a4258;   /* tekst akapitów */
  --muted:     #8a8f9e;   /* podpisy, eyebrow */
  --accent:    #1f5fe0;   /* błękit marki, odświeżony */
  --accent-2:  #143c95;   /* ciemniejszy błękit */
  --gold:      #b08d4f;   /* złoty detal */
  --gold-soft: #e7dcc4;   /* jasne złoto */
  --line:      rgba(29, 39, 64, 0.12);
  --card-shadow: 0 18px 50px -28px rgba(29, 39, 64, 0.40);
  --nav-scrolled: rgba(250, 248, 244, 0.92);
  --nav-mobile: rgba(250, 248, 244, 0.96);

  --bs-body-bg: var(--bg);
}

/* ---------------------------------------------------------- tryb ciemny */
[data-bs-theme="dark"] {
  --bg:        #12151d;   /* głęboki grafit */
  --bg-tint:   #181c27;   /* sekcje przyciemnione */
  --bg-deep:   #0c0f16;   /* stopka / hero scrim */
  --ink:       #f0ece2;   /* nagłówki — ciepła biel */
  --body:      #c3c8d4;   /* akapity */
  --muted:     #868b99;
  --accent:    #6aa3ff;   /* rozjaśniony błękit */
  --accent-2:  #8fbcff;
  --gold:      #cdb78c;   /* jaśniejsze złoto */
  --gold-soft: #5a5036;
  --line:      rgba(255, 255, 255, 0.12);
  --card-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.65);
  --nav-scrolled: rgba(18, 21, 29, 0.92);
  --nav-mobile: rgba(18, 21, 29, 0.96);
}

/* ------------------------------------------------------------- bazowe */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.12;
}

p { color: var(--body); }
strong { color: var(--ink); font-weight: 700; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--accent-2); }

::selection { background: var(--accent); color: #fff; }

/* Eyebrow — mała etykieta nad tytułem sekcji */
.eyebrow {
  font-family: "Mulish", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before,
.eyebrow.center::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
  display: inline-block;
}
.eyebrow.center { justify-content: center; }

/* ---------------------------------------------------------------- nav */

#mainNav {
  background: transparent;
  padding: 1.1rem 0;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
  border: 0;
}
#mainNav .navbar-brand {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: #fff;
  transition: color .35s ease;
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}
#site-footer .brand-mark { width: 26px; height: 26px; }
#mainNav .nav-link {
  font-family: "Mulish", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  padding: 0.4rem 0.9rem;
  position: relative;
  transition: color .25s ease;
}
#mainNav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem;
  bottom: 0.15rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: #fff; }
#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after { transform: scaleX(1); }

#mainNav .nav-fb { opacity: .9; transition: opacity .25s ease, transform .25s ease; }
#mainNav .nav-fb:hover { opacity: 1; transform: translateY(-1px); }
#mainNav .nav-fb img { display: block; }

/* rozwijane podmenu "Artykuły" */
#mainNav .dropdown-toggle::after {
  margin-left: .45em;
  vertical-align: .12em;
  border-top-width: .32em;
  border-right-width: .26em;
  border-left-width: .26em;
  opacity: .8;
}
#mainNav .dropdown-menu {
  --bs-dropdown-bg: var(--bg);
  --bs-dropdown-link-color: var(--body);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  padding: .5rem;
  margin-top: .55rem;
  min-width: 264px;
}
#mainNav .dropdown-item {
  font-family: "Mulish", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--body);
  padding: 0.62rem 0.9rem;
  border-radius: 5px;
  white-space: normal;
  transition: background .2s ease, color .2s ease, padding-left .2s ease;
}
#mainNav .dropdown-item + .dropdown-item { margin-top: 2px; }
#mainNav .dropdown-item:hover,
#mainNav .dropdown-item:focus,
#mainNav .dropdown-item.active {
  background: var(--accent);
  color: #fff;
  padding-left: 1.1rem;
}
/* na ekranach desktop — odstęp menu (otwieranie po najechaniu obsługuje JS) */
@media (min-width: 992px) {
  #mainNav .dropdown-menu { margin-top: .35rem; }
}
/* w menu mobilnym — podmenu bez ramki/cienia, wcięte */
@media (max-width: 991.98px) {
  #mainNav .dropdown-menu {
    border: 0;
    box-shadow: none;
    padding: 0 0 .3rem .6rem;
    margin: 0;
    background: transparent;
  }
  #mainNav .dropdown-item { color: var(--body); }
}

/* przełącznik motywu */
#themeToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.45);
  background: transparent;
  color: #fff;
  transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}
#themeToggle:hover { transform: translateY(-1px); border-color: #fff; }
#mainNav.scrolled #themeToggle {
  color: var(--ink);
  border-color: var(--line);
}
#mainNav.scrolled #themeToggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}
@media (max-width: 991.98px) {
  #themeToggle { color: var(--ink); border-color: var(--line); }
}

/* stan po scrollu */
#mainNav.scrolled {
  background: var(--nav-scrolled);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(29,39,64,.5);
  padding: 0.7rem 0;
}
#mainNav.scrolled .navbar-brand { color: var(--ink); }
#mainNav.scrolled .nav-link { color: var(--body); }
#mainNav.scrolled .nav-link:hover,
#mainNav.scrolled .nav-link.active { color: var(--accent); }

#mainNav .navbar-toggler {
  border-color: rgba(255,255,255,0.5);
}
#mainNav.scrolled .navbar-toggler { border-color: var(--line); }
#mainNav .navbar-toggler:focus { box-shadow: none; }
#mainNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-width='2' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e");
}
#mainNav.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2829,39,64,0.85%29' stroke-linecap='round' stroke-width='2' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  #mainNav { background: var(--nav-mobile); backdrop-filter: blur(10px); }
  #mainNav .navbar-brand,
  #mainNav .nav-link { color: var(--ink); }
  #mainNav .nav-link { color: var(--body); }
  #mainNav .navbar-collapse {
    background: var(--bg);
    margin-top: .6rem;
    padding: .6rem .4rem;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
  }
  #mainNav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2829,39,64,0.85%29' stroke-linecap='round' stroke-width='2' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e");
  }
}

/* --------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #0e1424;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  background: url("../img/dakini-home.jpg") center 30% / cover no-repeat;
  transform: scale(1.04);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,16,32,0.78) 0%, rgba(10,16,32,0.45) 42%, rgba(10,16,32,0.12) 72%, rgba(10,16,32,0.05) 100%),
    linear-gradient(0deg, rgba(10,16,32,0.55) 0%, rgba(10,16,32,0) 38%);
}
.hero .container { position: relative; z-index: 2; }

.hero__inner { max-width: 760px; }
.hero__eyebrow {
  color: #e7dcc4;
  margin-bottom: 1.6rem;
}
.hero__eyebrow::before { background: #cdb78c; opacity: .8; }
.hero-title {
  color: #fff;
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0;
  text-shadow: 0 2px 40px rgba(0,0,0,0.35);
}
.hero-title em {
  font-style: italic;
  color: #e7dcc4;
}
.hero__lead {
  color: rgba(255,255,255,0.86);
  font-size: 1.2rem;
  line-height: 1.65;
  font-weight: 300;
  max-width: 30em;
  margin: 1.8rem 0 2.6rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}
.hero__scroll span {
  width: 1px; height: 46px;
  background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0));
  animation: scrollpulse 2.2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { opacity: .3; transform: scaleY(.6); transform-origin: top; }
  50%      { opacity: 1;  transform: scaleY(1);  transform-origin: top; }
}

/* -------------------------------------------------------------- buttons */

.btn {
  font-family: "Mulish", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-radius: 0;
  padding: 0.95rem 2.1rem;
  white-space: nowrap;
  transition: all .28s ease;
}
.btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: var(--accent-2);
  --bs-btn-hover-border-color: var(--accent-2);
  --bs-btn-active-bg: var(--accent-2);
  box-shadow: 0 16px 30px -16px rgba(31, 95, 224, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 38px -16px rgba(31,95,224,.75); }

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.btn-line svg { transition: transform .28s ease; }
.btn-line:hover svg { transform: translateX(5px); }

/* -------------------------------------------------------------- sekcje */

.site-section {
  padding: clamp(72px, 10vw, 128px) 0;
  position: relative;
}
.section-tinted { background: var(--bg-tint); }

.section-head { margin-bottom: 3.2rem; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h3,
.section-title h3 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}
/* ukryj powtarzaną nadtytułową frazę H2 z oryginału, zastąpioną eyebrow */
.section-title h2 { display: none; }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title .eyebrow { margin-bottom: 1rem; }

.section-body {
  font-size: 1.075rem;
  line-height: 1.85;
  color: var(--body);
  text-wrap: pretty;
}
.section-body p { margin-bottom: 1.3rem; }
.section-body p:last-child { margin-bottom: 0; }

.section-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}
.section-body ul li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.7rem;
}
.section-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 9px; height: 9px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.section-body blockquote {
  border-left: 0;
  margin: 0 0 1.6rem;
  padding: 0;
}
.section-body blockquote p {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
  position: relative;
  padding-left: 2rem;
}
.section-body blockquote p::before {
  content: "\201C";
  position: absolute;
  left: -0.1rem; top: 0.25em;
  font-size: 3rem;
  color: var(--gold);
  line-height: 0;
}

/* mała śródtytułowa H2 w ofercie */
.section-body h2 {
  font-size: 1.6rem;
  margin: 0 0 1.2rem;
  color: var(--ink);
}

/* Artykuł — wąska kolumna z drop-cap na pierwszym akapicie */
.article-measure { max-width: 760px; margin: 0 auto; }
.article-measure.dropcap > p:first-of-type::first-letter {
  font-family: "Cormorant Garamond", serif;
  float: left;
  font-size: 4.6rem;
  line-height: 0.78;
  padding: 0.06em 0.16em 0 0;
  color: var(--accent);
  font-weight: 600;
}

/* --------------------------------------------------------- kafelki art */

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.4vw, 1.8rem);
}
@media (max-width: 575.98px) { .tiles-grid { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 11;
  background: var(--bg-deep);
  text-decoration: none;
  box-shadow: var(--card-shadow);
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,20,36,0.05) 0%, rgba(14,20,36,0.30) 45%, rgba(14,20,36,0.82) 100%);
  transition: background .4s ease;
}
.tile:hover img { transform: scale(1.07); }
.tile:hover::after { background: linear-gradient(180deg, rgba(20,60,149,0.10) 0%, rgba(14,20,36,0.40) 45%, rgba(14,20,36,0.88) 100%); }

.tile__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 1.6rem 1.7rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.tile__num {
  font-family: "Mulish", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #e7dcc4;
  display: block;
  margin-bottom: 0.5rem;
}
.tile__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}
.tile__arrow {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  transition: background .3s ease, transform .3s ease, border-color .3s ease;
}
.tile:hover .tile__arrow {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ------------------------------------------------------------- obrazy */

.framed {
  position: relative;
  display: inline-block;
}
.framed img {
  position: relative;
  z-index: 1;
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  display: block;
}
.framed::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold);
  border-radius: 4px;
}
.content-img { max-height: 520px; width: 100%; object-fit: cover; }

/* portret O mnie — mały plik, ograniczamy szerokość i kadrujemy */
.portrait { max-width: 340px; }
.portrait img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }

/* układ tekst + obraz */
.split { align-items: center; }
.split .lead-line {
  width: 54px; height: 2px;
  background: var(--gold);
  margin-bottom: 1.6rem;
}

/* ------------------------------------------------------------- kontakt */

.contact-email {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 500;
  word-break: break-word;
}
.contact-email a { color: var(--ink); border-bottom: 1px solid var(--gold-soft); }
.contact-email a:hover { color: var(--accent); border-color: var(--accent); }

/* --------------------------------------------------------------- stopka */

#site-footer {
  background: var(--bg-deep);
  color: rgba(255,255,255,0.72);
  border: 0;
  padding: 3.4rem 0;
}
#site-footer .footer-brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  color: #fff;
  font-weight: 500;
}
#site-footer a { color: rgba(255,255,255,0.72); }
#site-footer a:hover { color: #fff; }
#site-footer .foot-fb { opacity: .85; transition: opacity .25s, transform .25s; }
#site-footer .foot-fb:hover { opacity: 1; transform: translateY(-2px); }

/* ------------------------------------------------------- reveal anim */

[data-reveal] {
  opacity: 1;
  transform: none;
}
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__img { transform: none; }
  .hero__scroll span { animation: none; }
  html { scroll-behavior: auto; }
}
