/* Warstwa odwzorowująca elementy, które stary kod tworzył dopiero w JavaScript. */

html {
  overflow-y: scroll;
}

main {
  display: block;
}

.logo-text .logo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 2px;
}

.service-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.service-card h3 {
  font-weight: 700;
  color: #d4b77a;
}

.service-card:focus,
.service-card:active {
  outline: none;
  box-shadow: none;
}

.service-card::after {
  pointer-events: none;
}

/* Identyczna kreska w nawigacji po zastąpieniu hashy prawdziwymi URL-ami. */
nav a[data-nav="home"]::after,
nav a[data-nav="about"]::after,
nav a[data-nav="contact"]::after {
  display: block;
  width: 0;
}

nav a[data-nav="home"]:hover::after,
nav a[data-nav="about"]:hover::after,
nav a[data-nav="contact"]:hover::after {
  width: 70%;
}

/* Animacje i widok specjalizacji — wartości z obecnego skryptu. */
.fade-element {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

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

.page-fade {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.page-visible {
  opacity: 1;
  transition: opacity 0.8s ease;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card {
  background: #222;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  will-change: transform;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 25px rgba(0,0,0,0.45);
}

.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.6s ease;
  will-change: transform;
}

.service-card:hover img {
  transform: scale(1.08);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::after {
  opacity: 1;
}

.case-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-hero-overlay {
  background: rgba(0,0,0,0.55);
  padding: 40px 70px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
}

.case-hero-overlay h1 {
  font-size: 2.5rem;
  margin: 0;
}

.case-hero-overlay p {
  color: #c4a060;
  font-weight: 600;
  margin-bottom: 10px;
}

.case-detail {
  text-align: center;
  padding: 60px 20px;
}

.case-detail-inner {
  max-width: 900px;
  background: #1b1b1b;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  padding: 40px;
  margin: 40px auto;
}

.case-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

.case-btn-container {
  text-align: center;
  margin-top: 20px;
}

.case-btn-container .btn-main {
  display: inline-block;
  padding: 12px 28px;
  background-color: #c4a060;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.case-btn-container .btn-main:hover {
  background-color: #d4b16a;
  transform: scale(1.05);
}

/* Dane w nagłówku oraz podpisy kart. */
.header-contact {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-left: 14px;
  color: #d4b77a;
  font-weight: 600;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.header-contact .hc-item {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.header-contact svg {
  display: inline-block;
  vertical-align: middle;
}

.see-more {
  position: absolute;
  bottom: 12px;
  right: 16px;
  color: #d4b77a;
  font-weight: 700;
  font-size: 0.95rem;
  pointer-events: none;
}

/* Ikona domku. */
.domek-icon-fixed {
  position: absolute;
  top: calc(100vh + 70px);
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.domek-icon-fixed img {
  width: 90px;
  height: auto;
  opacity: 0.95;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.domek-icon-fixed img:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* Widok O Kancelarii — wartości z obecnego skryptu. */
.about-hero {
  position: relative;
  height: 45vh;
  background: url('https://adwokat24lublin.pl/wp-content/uploads/2025/10/pexels-ekaterina-bolovtsova-6077797-scaled.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero .overlay {
  text-align: center;
  background: rgba(0,0,0,0.45);
  padding: 40px 70px;
  border-radius: 10px;
}

.about-hero h4 {
  color: #d4b77a;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.about-hero h1 {
  font-size: 42px;
  color: white;
  font-weight: 400;
}

.about-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  padding: 70px 10%;
  background-color: #111;
  color: #ddd;
}

.about-text-with-icon {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.about-text-right-icon {
  flex-direction: row;
}

.about-icon-single {
  background-color: #8c7156;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  border-radius: 0;
  flex-shrink: 0;
}

.about-icon-single img {
  width: 45px;
  height: 45px;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.about-image img {
  width: 700px;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.about-text {
  max-width: 700px;
  font-size: 18px;
  line-height: 1.7;
}

.about-text h2 {
  color: #d4b77a;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-text hr {
  width: 80%;
  border: none;
  border-top: 2px solid #d4b77a;
  margin: 10px 0 20px 0;
}

.about-pricing {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  padding: 70px 10%;
  background-color: #0e0e0e;
  color: #ddd;
}

.pricing-text-with-icon {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.pricing-text {
  max-width: 700px;
  font-size: 18px;
  line-height: 1.7;
  text-align: left;
}

.pricing-text h2 {
  color: #d4b77a;
  font-weight: 700;
  margin-bottom: 10px;
}

.pricing-text hr {
  width: 80%;
  border: none;
  border-top: 2px solid #d4b77a;
  margin: 10px 0 20px 0;
}

.pricing-image img {
  width: 380px;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.pricing-image {
  width: 40%;
  display: flex;
  justify-content: center;
}

.pricing-image img {
  max-width: var(--pricing-image-width, 900px);
  width: 90%;
  height: auto;
  object-fit: contain;
}

.invite-wrapper {
  margin-top: 30px;
  text-align: left;
}

.invite-line {
  height: 2px;
  width: 180px;
  background-color: #d4b77a;
  margin-bottom: 10px;
}

.invite-text {
  color: #d4b77a;
  font-weight: 600;
  font-style: normal;
  margin: 0;
  cursor: pointer;
  transition: color 0.3s;
  display: inline-block;
  padding: 0;
  text-decoration: none;
}

.invite-text:hover {
  color: #e5c785;
  text-decoration: underline;
}

.about-contact-wrapper {
  background-color: #111;
}

/* Mapa i dane po bokach sekcji Kontakt. */
.contact {
  position: relative;
}

.contact h1 {
  color: var(--accent-gold);
  font-size: 1.5em;
  margin-bottom: 15px;
}

.edge-left,
.edge-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: auto;
}

.edge-left {
  left: 3vw;
  text-align: left;
  max-width: 420px;
}

.map-container {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.edge-right {
  right: 3vw;
  text-align: right;
  max-width: 420px;
}

.edge-right .hc-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #e6e6e6;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(212,183,122,0.3);
  flex-wrap: wrap;
  word-break: break-word;
}

.edge-right svg path,
.edge-right svg circle,
.edge-right svg line {
  fill: none;
  stroke: #d4b77a;
  stroke-width: 1.6;
}

/* Formularz ma taki sam końcowy układ jak po wykonaniu starego JS. */
.contact-form-block {
  margin-top: 60px;
}

.view-kontakt #contactForm,
.view-kontakt .contact-heading,
.view-kontakt .contact-subheading {
  display: block;
}

.contact-left-inline {
  margin-top: 2px;
  display: block;
  text-align: left;
  color: #101011;
  font-size: 0.45rem;
  line-height: 1.2;
  opacity: 0.9;
  word-spacing: 1px;
  letter-spacing: 0.2px;
}

.contact-left-inline strong {
  font-weight: 700;
  color: #101011;
}

.hamburger {
  display: none;
}

@media (max-width: 1100px) {
  .edge-left,
  .edge-right {
    position: static;
    transform: none;
    display: block !important;
    text-align: center;
    margin: 20px auto;
  }

  .map-container iframe {
    height: 250px;
  }

  .edge-right {
    margin-top: 20px;
  }

  .edge-right .hc-item {
    justify-content: center;
  }

  .contact-left-inline {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .about-content,
  .about-pricing {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-text-with-icon,
  .pricing-text-with-icon {
    flex-direction: column;
    align-items: center;
  }

  .about-icon-single {
    margin-bottom: 20px;
  }

  .pricing-image img,
  .about-image img {
    width: 100%;
    max-width: 500px;
  }

  .invite-wrapper {
    text-align: center;
  }

  .invite-line {
    margin: 0 auto 10px auto;
  }
}

@media (max-width: 950px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    width: 28px;
    height: 22px;
    justify-content: center;
    z-index: 1001;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .hamburger span {
    background: #d4b77a;
    height: 3px;
    width: 100%;
    border-radius: 2px;
    transition: 0.3s ease;
  }

  .navbar nav {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: absolute;
    top: 100px;
    right: 0;
    width: 100vw;
    background: rgba(0,0,0,0.96);
    padding: 25px 0;
    border-top: 1px solid #d4b77a;
    z-index: 1000;
    overflow-x: hidden;
    animation: menuFadeOut 0.2s ease forwards;
  }

  .navbar nav.active {
    display: flex !important;
    animation: menuFadeIn 0.35s ease forwards;
  }

  .navbar nav a {
    color: #fff;
    padding: 14px 0;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: nowrap;
  }

  .navbar nav a:hover {
    color: #d4b77a;
  }

  .logo-text {
    margin-right: 60px !important;
  }

  .dropdown .dropdown-content {
    display: none !important;
    visibility: hidden !important;
  }

  .dropdown .dropbtn {
    pointer-events: auto !important;
  }
}

@media (max-width: 700px) {
  .header-contact {
    display: none;
  }

  .see-more {
    font-size: 0.85rem;
    right: 12px;
    bottom: 10px;
  }
}

@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes menuFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}
