* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg: #15110d;
  --panel: #1f1914;
  --cream: #ece3d4;
  --gold: #c9a24b;
  --gold-soft: #e0c78a;
  --tan: #c9a24b; /* legacy accent -> gold */
  --ink: #15110d; /* dark surface */
  --muted: #9c9183;
  --line: rgba(201, 162, 75, 0.22);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}
html {
  scroll-behavior: smooth;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--cream);
}
.wrapper {
  overflow-x: hidden;
  position: relative;
}
/* anchor offset so the fixed-height header doesn't cover section titles */
#about-us,
#coffin,
#frame,
#fundusze,
#contact {
  scroll-margin-top: 120px;
}
.nav-header {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
  height: 140px;
}
.nav-container {
  display: flex;
  height: 120px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1410px;
  margin: 0 auto;
}
.nav-header a {
  height: 100%;
  width: auto;
}
.nav-header a img {
  height: 100%;
  width: auto;
  border-radius: 10px;
}
.nav-link {
  display: flex;
  flex: 1;
  padding: 0rem 4rem;
  justify-content: flex-end;
  width: 50%;
  list-style: none;
  font-family: var(--serif);
}
.nav-item a {
  position: relative;
  align-items: center;
  display: block;
  padding: 1rem 2rem;
  font-size: 1.5rem;
  color: var(--cream);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}
.nav-item a::after {
  content: "";
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 0.65rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.nav-item a:hover {
  color: var(--gold);
}
.nav-item a:hover::after {
  transform: scaleX(1);
}

.hero-image {
  position: relative;
  top: 0;
  left: 0;
  background-image: linear-gradient(
      to bottom,
      rgba(13, 10, 8, 0.62) 0%,
      rgba(13, 10, 8, 0.5) 45%,
      rgba(13, 10, 8, 0.82) 100%
    ),
    url(./img/wood-336589_1920.webp);
  width: 100%;
  height: 100vh;
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-text {
  max-width: 1410px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
}
.hero-image h2 {
  font-family: var(--serif);
  color: var(--cream);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  animation: hero-rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
.hero-image h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--cream);
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: hero-rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Hero Button */
.hero-image a {
  display: inline-block;
  padding: 1rem 2.75rem;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  color: var(--cream);
  font-size: 1.4rem;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid var(--cream);
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
  opacity: 0;
  animation: hero-rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}
.hero-image a:hover {
  color: var(--ink);
  background: var(--cream);
  border-color: var(--cream);
}
/* Hero scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  text-decoration: none;
  font-size: 1.5rem;
  opacity: 0;
  animation: cue-in 1s ease 1.1s forwards;
}
.scroll-cue i {
  display: block;
  animation: cue-bob 2s ease-in-out infinite;
}
@keyframes cue-in {
  to {
    opacity: 0.85;
  }
}
@keyframes cue-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}
.container {
  width: 100%;
  max-width: 1410px;
  margin: 0 auto;
}
/* ============================================================
   Type scale — one consistent, fluid system for the whole site
   (clamp keeps headings/text in proportion at every width,
   replacing the old scattered per-breakpoint font sizes)
   ============================================================ */
.hero-image h2 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 600;
}
.hero-image h3 {
  font-size: clamp(1.5rem, 3.4vw, 3rem);
}
/* all section headings share one size and never diverge */
.about-us h1,
.coffin-text h2,
.frame-text h2,
.funds h2,
.contact h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}
/* all body copy shares one size */
.about-us p,
.coffin-text p,
.frame-text p,
.funds p,
.funds-list,
.contact p,
footer > div > p {
  font-size: clamp(1.05rem, 1.45vw, 1.5rem);
}

/* about us section */
.about-us {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 4rem 0;
}
.about-us h1 {
  position: relative;
  font-family: var(--serif);
  line-height: 1.15;
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
}
.about-us h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 3px;
  background: var(--tan);
}

.about-us p {
  display: block;
  line-height: 2.1rem;
  font-family: "roboto", sans-serif;
  color: var(--muted);
  max-width: 70ch;
}
/* Coffin Section */
section.coffin {
  display: flex;
  align-items: center;
  margin: 4rem 0 8rem;
  gap: 2rem;
}
.coffin-img {
  width: 50%;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 25px 50px -20px rgba(26, 21, 18, 0.55);
}
.coffin-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.coffin-img:hover img {
  transform: scale(1.05);
}
.coffin-text {
  flex: 1;
  position: relative;
}
.coffin-text h2 {
  padding: 2rem 0;
  font-family: var(--serif);
}

.coffin-text p {
  display: block;
  padding: 1rem 0;
  line-height: 2rem;
  font-family: "roboto", sans-serif;
  color: var(--muted);
}
.coffin-text a {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.9rem 2.5rem;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 1.3rem;
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: background 0.4s ease, color 0.4s ease;
}
.coffin-text a:hover {
  background: var(--gold);
  color: var(--bg);
}
/* Frame Section */
section.frame {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;

  margin: 8rem 0;
}
.frame-img {
  width: 50%;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 25px 50px -20px rgba(26, 21, 18, 0.55);
}
.frame-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.frame-img:hover img {
  transform: scale(1.05);
}
.frame-text {
  flex: 1;
  position: relative;
}
.frame-text h2 {
  padding: 2rem 5rem;
  font-family: var(--serif);
}

.frame-text p {
  display: block;
  padding: 0 5rem;
  line-height: 2rem;
  font-family: "roboto", sans-serif;
  color: var(--muted);
}

/* Fundusze Europejskie Section */
section.funds {
  margin: 8rem 0;
  padding: 3.5rem;
  background: #ffffff;
  border: 1px solid #e7dccf;
  border-top: 4px solid var(--tan);
  border-radius: 8px;
  box-shadow: 0 25px 55px -30px rgba(26, 21, 18, 0.45);
}
.funds-banner {
  display: block;
  width: 100%;
  max-width: 605px;
  height: auto;
  margin: 0 auto 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #ece3d7;
}
.funds h2 {
  padding: 1rem 0 2rem;
  font-family: var(--serif);
  color: #1f1914;
}
.funds p {
  display: block;
  padding: 0.5rem 0;
  line-height: 2rem;
  font-family: "roboto", sans-serif;
  color: #6a6258;
}
.funds-list {
  padding: 0.5rem 0 0.5rem 2.5rem;
  line-height: 2rem;
  font-family: "roboto", sans-serif;
  color: #6a6258;
}
.funds-value {
  font-weight: bold;
  color: #000 !important;
}
.funds-tags {
  color: #cc9159 !important;
}

/*  Contact Section */
.contact {
  background: var(--panel);
  margin: 4rem auto;
  padding: 3.5rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.contact-info {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
}
.contact h2 {
  font-family: var(--serif);
  color: var(--gold);
}
.contact p {
  font-family: "Roboto", sans-serif;
  color: var(--muted);
}
.con-1,
.con-2,
.con-3 {
  padding: 4rem;
}

.contact-info > * > h4 {
  font-size: 1.4rem;
  font-family: var(--serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  padding-bottom: 1.5rem;
}
.contact-info > * > p {
  font-size: 1.7rem;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding-bottom: 1.25rem;
  color: var(--cream);
}
.contact-info > * > p > a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.contact-info > * > p > a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
/* maps */
.google-map {
  margin: 4rem auto;
}
#map {
  height: 400px;
  margin: auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 45px -25px rgba(26, 21, 18, 0.55);
}

footer {
  width: 100%;
  margin-top: 5rem;
  background-color: #000;
}
footer > div {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
footer > div > img {
  margin: 25px auto;
  width: 300px;
  border-radius: 10px;
}
footer > div > p {
  color: var(--muted);
}
.burger {
  position: absolute;
  z-index: 1;
  right: 20px;
  top: 10px;
  padding: 10px;
  cursor: pointer;
  background-color: transparent;
  border: 0;
  display: none;
}
.hamburger-box {
  width: 40px;
  height: 30px;
  display: inline-block;
  position: relative;
}
.hamburger-inner {
  width: 100%;
  height: 4px;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  position: absolute;
  background: #fbefef;
}
.hamburger-inner::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 40px;
  height: 4px;
  background: #fbefef;
  transition: all 0.5s ease;
}

.hamburger-inner::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  width: 40px;
  height: 4px;
  background: #fbefef;
  transition: all 0.5s ease;
}
.burger.active .hamburger-inner {
  background-color: transparent;
}
.burger.active .hamburger-inner::after {
  transform: translateY(-15px) rotate(-45deg);
  background-color: var(--gold);
}
.burger.active .hamburger-inner::before {
  transform: translateY(15px) rotate(45deg);
  background-color: var(--gold);
}

.up-arrow {
  position: fixed;
  right: 40px;
  bottom: 40px;
  width: 60px;
  height: 60px;
  background: var(--gold);
  cursor: pointer;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.8);
  transition: opacity 0.5s ease-in-out, background 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
}
.up-arrow:hover {
  background: var(--gold-soft);
  transform: translateY(-4px);
}
.fa-angle-up {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: var(--bg);
  font-size: 2rem;
}

/* Scroll reveal (class added by JS so content stays visible without JS) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
  .hero-image h2,
  .hero-image h3,
  .hero-image a {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 2200px) {
  .nav-link {
    width: 60%;
  }
}

@media (max-width: 2000px) {
  /* about us section */

  .about-us h1 {
  }
  /* Coffin Section */
  .coffin-text p {
  }
  /* Frame Section */
  .frame-text p {
  }
  .nav-link {
    width: 65%;
  }
}
@media (max-width: 1800px) {
  .nav-header {
    height: 80px;
  }
  .nav-container {
    height: 60px;
  }
  .about-us h1 {
  }
  .nav-link {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    background: var(--panel);
    flex-direction: column;
    padding: 6rem 1rem 2rem;
    justify-content: space-evenly;
    width: 30%;
    height: 100vh;
    list-style: none;
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: all 0.5s ease;
  }
  .nav-link.active {
    transform: translateX(0%);
  }
  .nav-item {
    align-items: center;
  }
  .nav-item a {
    display: block;
    padding: 1rem 2rem;
    font-size: 2rem;
    color: var(--cream);
    text-decoration: none;
    cursor: pointer;
  }
  .nav-item a:hover {
    color: var(--gold);
  }
  .burger {
    display: block;
  }
}

@media (max-width: 1600px) {
  .about-us h1 {
  }
  .coffin-text p {
  }
  /* Frame Section */
  .frame-text p {
  }

  .coffin-text a {
    top: 85%;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    border: 1px solid var(--gold);
  }
  .contact h2 {
  }
  .con-1,
  .con-2,
  .con-3 {
    padding: 3rem;
  }

  .contact-info > * > h4 {
    font-size: 1.5rem;
  }
  .contact-info > * > p {
    font-size: 1.4rem;
  }
  .hero-image h2 {
  }
  .hero-image h3 {
  }
  /* Hero Button */
  .hero-image button {
    font-size: 1.5rem;
  }
}

@media (max-width: 1410px) {
  .nav-container {
    padding: 0 2rem;
  }
  .hero-text {
    padding: 2rem 2rem;
  }
  .about-us {
    padding: 4rem 2rem;
  }
  .about-us h1 {
    margin-bottom: 2rem;
  }
  .about-us p {
    line-height: 1.5rem;
  }

  .hero-image h2 {
    top: 30%;
  }
  .hero-image h3 {
    top: 50%;
  }
  .nav-link {
    width: 40%;
  }

  .nav-item {
    font-size: 1.8rem;
  }

  /* Coffin Section */
  section.coffin {
    width: 100%;
    padding: 0 2rem;
  }

  .coffin-text {
    flex: 1;
    position: relative;
    display: flex;
    margin: auto;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
  }
  .coffin-text h2 {
    padding: 2rem 0rem;
  }

  .coffin-text p {
    padding: 0;
    line-height: 1.5rem;
    margin-bottom: 1rem;
  }
  .coffin-text a {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    font-size: 1.2rem;
    text-decoration: none;
    border: 1px solid var(--gold);
  }
  /* Frame Section */
  section.frame {
    flex-direction: row-reverse;
    width: 100%;
    padding: 0 2rem;
  }

  .frame-text {
    position: relative;
    display: flex;
    margin: auto;
    flex-direction: column;
    height: 100%;
  }
  .frame-text h2 {
    padding: 2rem 0rem;
  }

  .frame-text p {
    padding: 0;
    line-height: 1.5rem;
  }

  /*  Contact Section */
  .contact h2 {
    margin-bottom: 2rem;
  }
  .con-1,
  .con-2,
  .con-3 {
    padding: 2rem;
  }

  .contact-info > * > h4 {
    font-size: 1.4rem;
    font-family: var(--serif);
    padding-bottom: 1rem;
  }
  .contact-info > * > p {
    font-size: 1.4rem;
    padding-bottom: 1rem;
  }

  #map {
    height: 300px;
  }
  footer > div > p {
    color: var(--muted);
  }
}

@media (max-width: 1024px) {
  .nav-container {
    padding: 0 1rem;
    height: 60px;
  }
  .nav-header a {
    height: 100%;
  }
  .nav-header a img {
    height: 100%;
    width: auto;
  }
  .hero-image h2 {
  }
  .hero-image h3 {
  }
  .hero-image a {
    font-size: 1.5rem;
  }
  .nav-link {
    width: 40%;
  }

  .nav-item {
    font-size: 1.6rem;
  }

  .about-us {
    padding: 2rem 1rem;
  }
  .about-us h1 {
  }

  /* Coffin Section */
  section.coffin {
    margin: 2rem auto 2rem;
    flex-direction: column;
    padding: 2rem 1rem;
  }

  /* Frame Section */
  section.frame {
    margin: 2rem auto 2rem;
    flex-direction: column;
    padding: 2rem 1rem;
  }

  /*  Contact Section */
  .contact h2 {
  }

  .con-1,
  .con-2,
  .con-3 {
    padding: 2rem;
    text-align: center;
  }
  .contact-info {
    flex-direction: column;
    align-items: center;
  }

  .contact-info > * > h4 {
    font-size: 1.4rem;
    font-family: var(--serif);
    padding-bottom: 1rem;
  }
  .contact-info > * > p {
    font-size: 1.4rem;
    padding-bottom: 1rem;
  }

  #map {
    height: 300px;
  }
  footer > div > p {
    color: var(--muted);
  }
}

@media screen and (max-width: 800px) {
  .contact p {
  }
  .frame-text h2,
  .coffin-text h2,
  .funds h2 {
  }
  section.funds {
    margin: 2rem 0;
    padding: 1.5rem;
  }
  .funds p,
  .funds-list {
  }

  .contact h2 {
  }
  .con-1,
  .con-2,
  .con-3 {
    padding: 2rem;
  }
  .contact-info {
    flex-direction: column;
  }

  .contact-info > * > h4 {
    font-size: 1.4rem;
    font-family: var(--serif);
    padding-bottom: 1rem;
  }
  .contact-info > * > p {
    font-size: 1.4rem;
    padding-bottom: 1rem;
  }

  #map {
    height: 300px;
  }
  footer > div > p {
    color: var(--muted);
  }
  .nav-link {
    width: 100%;
  }

  .nav-item {
    font-size: 1.6rem;
  }

  .hero-image h2 {
  }
  .hero-image h3 {
  }
  /* Hero Button */
  .hero-image button {
    font-size: 1.5rem;
  }
  .about-us {
    margin-top: 20px;
  }
  .about-us h1 {
    padding-top: 2rem;
  }
  section.coffin,
  section.frame {
    width: 100%;
    margin: 2rem 0;
  }

  .coffin-img,
  .frame-img {
    width: 100%;
  }
  .coffin-text {
    flex: 2;
  }

  .contact {
    width: 100%;
    margin-bottom: 2rem;
  }

  #map {
    width: 100%;
  }
  footer {
    margin-top: 2rem;
  }
  footer > div > img {
    width: 200px;
  }
  footer > div > p {
  }
}
@media screen and (orientation: landscape) and (max-width: 600px) {
  .coffin-text a {
    top: 70%;
  }
}
@media screen and (max-width: 400px) {
  .coffin-text a {
    top: 90%;
  }
  .contact-info > * > h4 {
    font-size: 1.4rem;
    font-family: var(--serif);
    padding-bottom: 1rem;
  }
  .contact-info > * > p {
    font-size: 1.2rem;
    padding-bottom: 1rem;
  }
  footer > div > p {
  }
}

html {
  scroll-behavior: smooth;
}
