:root {
  --primary: #111827;
  --light: #f9fafb;
  --text: #4b5563;
  --goldLight: #ccab71;
  --goldMedium: rgb(139, 101, 8);
  --goldDark: rgb(169, 130, 0);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}
body {
  background: white;
  color: var(--primary);
}
body.modal-open {
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: auto;
}

section {
  padding: 100px 20px;
}
.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 60px;
}

.btn-primary {
  background: var(--goldMedium);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: white;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
.btn-primary:hover {
  background: var(--goldDark);
}

a,
button {
  touch-action: manipulation;
}

/* HEADER */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: 0.3s ease;
  padding: 0 20px;
}
header a {
  font-size: 1rem;
}

header.sticky {
  position: fixed;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}
header.sticky .hamburger {
  color: var(--primary);
}
header.sticky #logo2 .white {
  display: none;
}
header.sticky #logo2 .black {
  display: block;
  width: 60%;
}

header.sticky .nav-link::after {
  background-color: var(--primary);
}
header.sticky nav .nav-link a {
  color: var(--text);
  font-size: 0.75rem;
}
header.sticky nav .nav-link a:hover {
  color: var(--primary);
}

/* nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
#logo2 {
  opacity: 0;
  max-width: 440px;
  width: 100%;
  padding-right: 2.5rem;
  animation: fadeDown 0.8s ease forwards 1s;
}

#logo2 img {
  width: 100%;
  height: auto;
  display: block;
}

#logo2 .white {
  display: block;
}

#logo2 .black {
  display: none;
}

.mobile-white-wrapper {
  display: flex;
  align-items: center;
  width: 25%;
  min-width: 70px;
  max-width: 250px;
}

#logo2 .mobile-white {
  /* background-color: black; */
  display: none;
  width: 100%;
  height: auto;
  object-fit: contain;
}
#logo2 .mobile-black {
  display: none;
  width: 17%;
  min-width: 50px;
  padding: 3px 0;
}

/* Navigation list */
#nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

#nav-links li {
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeDown 0.8s ease forwards;
}

#nav-links li:nth-child(1) {
  animation-delay: 1s;
}
#nav-links li:nth-child(2) {
  animation-delay: 1.1s;
}
#nav-links li:nth-child(3) {
  animation-delay: 1.2s;
}
#nav-links li:nth-child(4) {
  animation-delay: 1.3s;
}

#nav-links.open li {
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeDown 0.3s ease forwards;
}

/* Links */
#nav-links a {
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-link a {
  color: white;
}

.nav-link a:hover {
  color: #f39c12;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #f39c12;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hamburger icon */
#hamburger {
  opacity: 0;
  animation: fadeDown 0.8s ease forwards 1s;
}

.hamburger {
  display: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
}

/* --- HERO --- */
.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)),
    url("./assets/hero.webp") no-repeat center/cover;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero-content {
  width: 85vw;
  max-width: 900px;
  margin: auto;
}

/* Initial hidden state */
.hero-content #logo-center,
.hero-content h1,
.hero-content h2,
.hero-content .btn-primary {
  opacity: 0;
  transform: translateY(20px);
}

/* Center logo */
.hero-content #logo-center {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  margin-bottom: 2rem;
  animation: logoIntro 1.5s ease forwards;
}

/* Headings */
.hero-content h1,
.hero-content h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;

  animation: fadeUp 0.8s ease forwards 1.3s;
}

.hero-content h2 {
  margin-bottom: 5rem;
}

/* Button */
.hero-content .btn-primary {
  display: block;
  width: 40%;
  min-width: 300px;
  margin: 0 auto;
  animation: fadeUp 0.8s ease forwards 1.5s;
}

/* --- ABOUT --- */

/* Images wrapper */
#about .imgs-wrapper {
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

/* Images */
#about .imgs-wrapper img {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: 15px;
}

/* --- WARUM --- */
#warum .warum-box {
  max-width: 800px;
  margin: auto;
  text-align: left;
}

#warum .warum-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  gap: 16px;
}

#warum .warum-list li {
  position: relative;
  padding: 16px 20px 16px 52px;
  background: #ffffff;
  border-radius: 10px;
  font-size: 1.05rem;
  border-left: 4px solid var(--goldDark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Check icon */
#warum .warum-list li::before {
  content: "✔";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--goldDark);
  font-weight: bold;
  font-size: 1rem;
}

/* Hover effect */
#warum .warum-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

/* --- SERVICES --- */
/* Service description */
#services .service-description {
  padding: 2rem 3rem;
  text-align: center;
}

#services .service-description p {
  margin-bottom: 1rem;
}
#services .service-description p:last-of-type {
  margin-top: 2.5rem;
  margin-bottom: -0.5rem;
}

/* Services grid */
#services .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-content: center;
}

/* Service card */
#services .service-card {
  background: var(--light);
  padding: 15px 25px;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

#services .service-card i {
  font-size: 25px;
  margin-bottom: 12px;
  color: var(--goldDark);
  transition:
    text-shadow 0.35s ease,
    color 0.35s ease;
}

#services .service-card p {
  font-size: 1rem;
  font-weight: bold;
}

/* Hover effects */
#services .service-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.15),
    0 0 18px rgba(204, 171, 113, 0.35);
}

#services .service-card:hover i {
  color: #ccab71;
  text-shadow:
    0 0 3px rgba(204, 171, 113, 0.35),
    0 0 6px rgba(169, 130, 0, 0.2);
}

/* Service summary */
#services .service-summary {
  padding: 2rem 3rem;
  text-align: center;
}

#services .service-summary p {
  margin-top: 1rem;
}

#services .service-summary h2 {
  margin-top: 2rem;
}

/* --- SUMMARY --- */
#summary-text {
  padding: 1rem;
}

#summary-text .container {
  padding: 14px 20px 14px 45px;
  margin-bottom: 12px;
  background: #fafafa;
  border-radius: 8px;
  font-size: 1.05rem;
  border-left: 4px solid #c9a227;
  border-left: 4px solid var(--goldDark);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

#summary-text p {
  text-align: center;
}

/* --- CONTACT --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
  align-items: center;
  margin-bottom: 15rem;
}

/* Contact info */
.contact-wrapper .contact-info h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.contact-wrapper .contact-info p {
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.7;
}

.contact-wrapper .contact-info i {
  color: var(--goldDark);
  margin-right: 10px;
  font-size: 1.2rem;
}
.contact-wrapper .contact-info .link {
  color: inherit !important;
  text-decoration: none !important;
}

/* Contact form */
.contact-wrapper .contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-wrapper .contact-form input,
.contact-wrapper .contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 16px;
}
.contact-wrapper .contact-form input:focus {
  outline: none;
  border-color: var(--goldDark);
  box-shadow: 0 0 5px var(--goldDark);
}
.contact-wrapper .contact-form textarea:focus {
  outline: none;
  border-color: var(--goldDark);
  box-shadow: 0 0 5px var(--goldDark);
}

/* Checkbox container */
.contact-wrapper .checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-wrapper .checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--goldMedium);
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
}

.contact-wrapper .checkbox-container .checkbox-text {
  display: block;
  flex: 1;
}

.contact-wrapper .checkbox-container a {
  color: var(--goldMedium);
  text-decoration: underline;
}

.contact-wrapper .checkbox-container a:hover {
  color: var(--goldDark);
}

/* --- MODAL WITH BLUR --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 2000;
}

/* Modal box */
.modal-overlay .modal {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 20px;
  max-width: 800px;
  width: 90%;
  transform: scale(0.9);
  transition: 0.3s ease;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

/* Modal content */
.modal-overlay .modal h3 {
  margin-bottom: 2rem;
}

.modal-overlay .modal p {
  color: var(--text);
  line-height: 1.4;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 40px;
  cursor: pointer;
  color: var(--goldDark);
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoIntro {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }

  25% {
    opacity: 1;
    transform: translate(0, 0) scale(1.1);
  }

  55% {
    opacity: 1;
    transform: translate(0, 0) scale(1.1);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

/* --- MEDIA QUERIES --- */

/* tablet */
@media (max-width: 1024px) {
  nav .hamburger {
    display: block;
  }

  #nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 1rem;
    background: white;
    border-radius: 8px;
  }
  #nav-links.open {
    display: flex;
  }
  #nav-links a {
    color: var(--text);
  }

  .nav-link::after {
    content: none;
  }

  header.sticky nav .nav-link a {
    color: var(--text);
    font-size: 1rem;
  }
}

/* big phone */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  section {
    padding: 70px 20px;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 40px;
  }

  header.sticky {
    padding: 0 20px;
  }

  header.sticky #logo2 .white {
    display: none;
  }
  header.sticky #logo2 .black {
    display: none;
  }
  header.sticky #logo2 .mobile-white {
    display: none;
  }
  header.sticky #logo2 .mobile-black {
    display: block;
  }

  /* HERO */

  .hero {
    height: auto;
    padding: 120px 20px 80px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 14px;
    /* margin-bottom: 0.5rem; */
  }

  /* NAVIGATION */

  /* LOGO */
  #logo2 .white {
    display: none;
  }

  #logo2 .black {
    display: none;
  }
  #logo2 .mobile-white {
    display: block;
  }
  #logo2 .mobile-black {
    display: none;
  }

  .btn-primary {
    font-size: 1.2rem;
    padding: 14px 22px;
  }

  /* ABOUT IMAGES */

  #about .imgs-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  #about .imgs-wrapper img {
    width: 100%;
  }

  /* WARUM JCH */
  #warum .warum-list li {
    padding: 12px 18px 12px 43px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 0.95rem;
  }

  /* SERVICES GRID */

  #services .services-grid {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .service-card i {
    font-size: 30px;
  }

  /* CONTACT */

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info h3 {
    font-size: 24px;
  }

  .checkbox-container {
    gap: 8px;
  }

  .checkbox-container .checkbox-text {
    font-size: 11px;
  }
}

/* small phone */
@media (max-width: 479px) {
  /* HERO */

  #logo2 .white {
    display: none;
  }
  #logo2 .black {
    display: none;
  }
  #logo2 .mobile-white {
    display: block;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 12px;
  }

  .hero-content .btn-primary {
    font-size: 0.85rem;
    padding: 12px 20px;
    min-width: 200px;
  }

  /* SERVICES */

  #services .services-grid {
    grid-template-columns: 1fr;
  }

  /* WARUM JCH */
  #warum .warum-list li {
    padding: 10px 16px 10px 40px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 0.85rem;
  }

  /* TEXT */
  p {
    font-size: 14px;
  }

  nav #logo img {
    width: 35px;
  }

  nav #logo p {
    font-size: 0.8rem;
  }
}
