/* ==========================================================================
   ZAKŁAD POGRZEBOWY FENIKS - PAWEŁ NAWARA (KOSZĘCIN)
   Styl dopracowany: menu w jednej linii, wysoki kontrast przycisków, brak czerni
   ========================================================================== */

/* 1. Reset i baza */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-dark-hero);
  color: var(--text-dark-primary);
  font-family: var(--font-sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Bezpieczne domyślne style linków */
a {
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition);
}

a:visited {
  color: inherit;
}

/* Wykluczenie przycisków z ogólnej reguły a:hover/active, aby nie niszczyć kontrastu */
a:not(.btn):not(.header-pill-contact):not(.news-item-link):hover,
a:not(.btn):not(.header-pill-contact):not(.news-item-link):focus,
a:not(.btn):not(.header-pill-contact):not(.news-item-link):active {
  color: var(--gold-light);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ==========================================================================
   2. GŁÓWNY HEADER - GWARANCJA JEDNEJ LINII (FLEX-WRAP: NOWRAP)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-dark-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 12px 0;
  transition: var(--transition);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap; /* NIGDY NIE ZAWIJAJ W NAGŁÓWKU */
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
}

/* Logo Feniks: kompaktowe i niełamliwe */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0; /* Nie zmniejszaj logotypu */
  white-space: nowrap;
}

.brand-emblem-icon {
  width: 44px;
  height: 44px;
  color: var(--gold-primary);
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.4));
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-pre {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  line-height: 1.1;
  font-weight: 500;
}

.brand-main {
  font-family: var(--font-script);
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--gold-light);
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.05;
  margin-top: -3px;
  margin-bottom: -3px;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.35));
}

.brand-sub {
  font-size: 0.74rem;
  color: var(--text-dark-muted);
  letter-spacing: 0.8px;
  font-weight: 500;
}

/* Nawigacja główna: ściśle w jednej linii, z elastycznym odstępem */
.main-nav-container {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  overflow: visible;
}

.main-nav {
  display: flex;
  list-style: none;
  align-items: center;
  white-space: nowrap;
  flex-wrap: nowrap;
  gap: clamp(14px, 1.8vw, 32px);
  margin: 0;
  padding: 0;
}

.main-nav li {
  white-space: nowrap;
  flex-shrink: 0;
}

.main-nav a {
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff !important;
  position: relative;
  padding: 8px 2px;
  display: inline-block;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a:visited {
  color: #ffffff !important;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
  transition: width 0.3s ease;
}

/* Po kliknięciu link w menu zmienia się na piękny złoty, a NIE czarny! */
.main-nav a:hover,
.main-nav a:focus,
.main-nav a:active,
.main-nav a.active {
  color: var(--gold-light) !important;
  text-shadow: 0 0 10px rgba(247, 223, 150, 0.6);
}

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

/* Pigułka Pilny Kontakt 24h - sztywno zabezpieczona przed znikaniem po kliknięciu */
.header-pill-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gold-pill-bg) !important;
  border: 1.5px solid var(--gold-pill-border) !important;
  padding: 7px 18px 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  white-space: nowrap;
  transition: var(--transition);
}

/* Stan :visited, :hover, :focus, :active - tekst ZAWSZE czytelny ciemny na kremowym tle */
.header-pill-contact:visited,
.header-pill-contact:hover,
.header-pill-contact:focus,
.header-pill-contact:active {
  background: #ffffff !important;
  border-color: var(--gold-primary) !important;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}

.pill-phone-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #111317;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pill-phone-icon svg {
  width: 18px;
  height: 18px;
  color: #111317;
  fill: #111317;
}

.pill-text-col {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.pill-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #695536 !important;
  line-height: 1.1;
}

.pill-number {
  font-size: 1.12rem;
  font-weight: 800;
  color: #111317 !important;
  line-height: 1.2;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* ==========================================================================
   3. HERO SECTION (Z POLSKĄ DOSTOJNĄ TYPOGRAFIĄ)
   ========================================================================== */
.hero-wrapper {
  position: relative;
  background: var(--bg-dark-hero);
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.hero-main-container {
  display: grid;
  grid-template-columns: 1fr 140px;
  position: relative;
  min-height: 580px;
}

.hero-center-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 55px;
  padding-bottom: 90px;
  background: 
    linear-gradient(180deg, rgba(20, 22, 26, 0.82) 0%, rgba(20, 22, 26, 0.25) 45%, rgba(20, 22, 26, 0.92) 100%),
    url('../assets/images/hero-candle-clean.jpg') center top / cover no-repeat;
}

.hero-grand-headline {
  text-align: center;
  max-width: 960px;
  padding: 0 24px;
  margin-bottom: 24px;
}

.hero-grand-headline h1 {
  font-family: var(--font-serif);
  font-size: var(--font-size-h1);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-gold-headline);
  line-height: 1.22;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.9);
}

.hero-grand-headline p {
  font-size: var(--font-size-lead);
  letter-spacing: 1px;
  color: #ffffff;
  opacity: 0.95;
  margin-top: 14px;
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}

.hero-right-gold-panel {
  background: 
    linear-gradient(180deg, rgba(212, 175, 55, 0.35) 0%, rgba(184, 148, 77, 0.7) 100%),
    url('../assets/images/gold-phoenix-panel.jpg') center right / cover no-repeat;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: -6px 0 25px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   4. 4 ŁUKOWATE KARTY OFERTOWE Z IKONAMI Z WERSJI 1
   ========================================================================== */
.arched-cards-band {
  margin-top: -75px;
  position: relative;
  z-index: 20;
  padding-bottom: 40px;
}

.arched-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.arched-card {
  background: var(--bg-dark-card);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 40px 22px 26px 22px;
  position: relative;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.arched-card:hover {
  transform: translateY(-6px);
  background: var(--bg-dark-card-hover);
  border-color: var(--gold-light);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 175, 55, 0.3);
}

.arched-crest {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 48px;
  background: var(--bg-dark-card);
  border-top: 1px solid rgba(212, 175, 55, 0.45);
  border-left: 1px solid rgba(212, 175, 55, 0.45);
  border-right: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 40px 40px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.arched-card:hover .arched-crest {
  background: var(--bg-dark-card-hover);
  border-color: var(--gold-light);
}

.arched-crest-icon {
  width: 30px;
  height: 30px;
  color: var(--gold-primary);
  transition: transform 0.3s ease;
}

.arched-card:hover .arched-crest-icon {
  transform: scale(1.15);
  color: var(--gold-light);
}

.arched-title {
  font-family: var(--font-serif);
  font-size: var(--font-size-card-title);
  color: var(--gold-light);
  margin-top: 8px;
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.arched-desc {
  font-size: 0.95rem;
  color: var(--text-dark-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

/* ==========================================================================
   5. SEKCJA EDITORIAL: "NASZE WARTOŚCI" + ZŁOTY PANEL
   ========================================================================== */
.editorial-section {
  background: var(--bg-cream);
  color: var(--text-cream-primary);
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  position: relative;
  overflow: hidden;
}

.editorial-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 560px;
}

.editorial-left {
  padding: 60px 70px 70px 0;
  position: relative;
}

.ginkgo-art-watermark {
  position: absolute;
  top: 40px;
  right: 50px;
  width: 160px;
  height: 160px;
  opacity: 0.35;
  pointer-events: none;
  color: var(--gold-dark);
}

.phoenix-art-bottom {
  position: absolute;
  bottom: 30px;
  left: -20px;
  width: 140px;
  height: 140px;
  opacity: 0.28;
  pointer-events: none;
  color: var(--gold-dark);
}

.editorial-heading {
  font-family: var(--font-serif);
  font-size: var(--font-size-h2);
  color: #1a1917;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  font-weight: 600;
}

.editorial-text {
  font-size: 1.12rem;
  color: var(--text-cream-secondary);
  line-height: 1.85;
  max-width: 720px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.testimonial-block {
  position: relative;
  z-index: 2;
  margin-top: 36px;
}

.testimonial-label {
  font-family: var(--font-serif);
  font-size: var(--font-size-h3);
  color: #1a1917;
  margin-bottom: 18px;
  font-weight: 600;
}

.testimonial-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.testimonial-tag-pill {
  background: transparent;
  border: 1.5px solid #826a45;
  color: #695232;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 18px;
  border-radius: 6px;
  white-space: nowrap;
}

.speech-bubble {
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 10px;
  padding: 24px 28px;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  flex-grow: 1;
}

.speech-bubble::before {
  content: "";
  position: absolute;
  top: 22px;
  left: -12px;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 12px solid #ffffff;
}

.speech-bubble p {
  font-size: 1.05rem;
  color: var(--text-cream-primary);
  line-height: 1.75;
  font-style: italic;
}

.speech-author {
  display: block;
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #826a45;
  font-style: normal;
}

/* Prawa kolumna: Złoty panel */
.editorial-right-gold {
  background: 
    linear-gradient(180deg, #dfc384 0%, #c9a45b 100%),
    url('../assets/images/gold-sidebar-bg.jpg') center center / cover no-repeat;
  padding: 48px 36px;
  color: #1a1917;
  border-left: 1px solid rgba(212, 175, 55, 0.5);
  display: flex;
  flex-direction: column;
}

.news-heading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1917;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(26, 25, 23, 0.25);
}

.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.news-item-link {
  display: block;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(26, 25, 23, 0.18);
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 600;
  color: #1f1b13 !important;
  transition: var(--transition);
}

.news-item-link:visited {
  color: #1f1b13 !important;
}

.news-item-link:hover, .news-item-link:focus, .news-item-link:active {
  color: #000000 !important;
  transform: translateX(6px);
  text-decoration: underline;
}

/* ==========================================================================
   6. DODATKOWE SEKCJE FUNKCJONALNE
   ========================================================================== */
.extra-section-dark {
  padding: 90px 0;
  background: var(--bg-dark-hero);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.extra-section-dark:nth-of-type(even) {
  background: var(--bg-dark-surface);
}

/* ==========================================================================
   7. MINIMALISTYCZNY FOOTER
   ========================================================================== */
.footer-minimal {
  background: var(--bg-dark-footer);
  color: #b5b0a5;
  padding: 50px 0 35px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  text-align: center;
}

.footer-nav-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 35px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.footer-nav-row a {
  color: #ffffff !important;
}

.footer-nav-row a:visited {
  color: #ffffff !important;
}

.footer-nav-row a:hover, .footer-nav-row a:focus, .footer-nav-row a:active {
  color: var(--gold-light) !important;
  text-decoration: underline;
}

.footer-center-brand {
  margin-bottom: 16px;
}

.footer-pre {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold-light);
  display: block;
}

.footer-brand-title {
  font-family: var(--font-script);
  font-size: 3.2rem;
  color: var(--gold-primary);
  line-height: 1.1;
  display: block;
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #8c877e;
  margin-top: 10px;
}
