@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Inter:wght@300;400;600&display=swap');

:root {
  --bg: #f8f4f1;
  --accent: #d9a7a0;
  --text: #3a2e2e;
  --light: #ffffff;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- HEADER --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 10%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  line-height: 1.2;
}

.logo p {
  font-size: 0.9rem;
  color: #6d5c5c;
}

nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* --- HERO --- */
.hero {
  position: relative;
  height: 90vh;
  background: url('../images/black-beach.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--light);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  animation: fadeInUp 1.5s ease forwards;
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--accent);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
}

.btn:hover {
  background: #c68982;
}

/* --- ABOUT PREVIEW --- */
.about-preview {
  padding: 80px 10%;
  background: var(--bg);
}

.about-preview .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.about-preview .text {
  flex: 1;
  min-width: 300px;
}

.about-preview h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.about-preview p {
  color: #574c4c;
  margin-bottom: 20px;
}

.btn-secondary {
  display: inline-block;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--light);
}

.about-preview .image {
  flex: 1;
  min-width: 280px;
  height: 350px;
  background: url('../images/office.jpg') center/cover no-repeat;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 40px 10%;
  background: #f3eae7;
  font-size: 0.9rem;
  color: #7a6b6b;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    touch-action: pan-y;
    /* pozwala tylko na pionowy scroll */
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .about-preview .container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .about-preview h3 {
    font-size: 1.4rem;
  }
}