/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variables */
:root {
  --background: #FAF6F0;
  --foreground: #2D2623;
  --primary: #D98A6C;
  --primary-rgb: 217, 138, 108;
  --secondary: #C4704B;
  --secondary-rgb: 196, 112, 75;
  --card: #FFFFFF;
  --text-muted: #6B5F5B;
  --accent: #8C9A86;
  --accent-light: #A3B8A8;
  --accent-dark: #6B7A6A;
  --section-background: rgba(217, 138, 108, 0.1);
}

/* Theme: Terracotta (default) */
[data-theme="terracotta"] {
  --background: #FAF6F0;
  --foreground: #2D2623;
  --primary: #D98A6C;
  --primary-rgb: 217, 138, 108;
  --secondary: #C4704B;
  --secondary-rgb: 196, 112, 75;
  --card: #FFFFFF;
  --text-muted: #6B5F5B;
  --accent: #8C9A86;
  --section-background: rgba(217, 138, 108, 0.1);
}

/* Theme: Botanical */
[data-theme="botanical"] {
  --background: #F9F9F6;
  --foreground: #2C3531;
  --primary: #7A8B7B;
  --primary-rgb: 122, 139, 123;
  --secondary: #C5A059;
  --secondary-rgb: 197, 160, 89;
  --card: #FFFFFF;
  --text-muted: #6B7770;
  --accent: #D4B896;
  --section-background: rgba(122, 139, 123, 0.1);
}

/* Theme: Dusty */
[data-theme="dusty"] {
  --background: #FAF7F5;
  --foreground: #1A1615;
  --primary: #C8A29A;
  --primary-rgb: 200, 162, 154;
  --secondary: #8B5A5A;
  --secondary-rgb: 139, 90, 90;
  --card: #FFFFFF;
  --text-muted: #4A3F3D;
  --accent: #D4A59A;
  --section-background: rgba(200, 162, 154, 0.1);
}

/* Theme: Luxury */
[data-theme="luxury"] {
  --background: #FDFBF7;
  --foreground: #192A26;
  --primary: #1E3A34;
  --primary-rgb: 30, 58, 52;
  --secondary: #D4AF37;
  --secondary-rgb: 212, 175, 55;
  --card: #FFFFFF;
  --text-muted: #4A5F56;
  --accent: #F4EBE1;
  --section-background: rgba(30, 58, 52, 0.1);
}

/* Theme: Neutral */
[data-theme="neutral"] {
  --background: #F5F4F0;
  --foreground: #1A1A1A;
  --primary: #556B2F;
  --primary-rgb: 85, 107, 47;
  --secondary: #8F9779;
  --secondary-rgb: 143, 151, 121;
  --card: #FFFFFF;
  --text-muted: #5A5A5A;
  --accent: #7A8565;
  --section-background: rgba(85, 107, 47, 0.1);
}

/* Footer w neutral theme - taki sam kolor jak przycisk CTA */
[data-theme="neutral"] .footer {
  background-color: #8d987b;
}

/* Base styles */
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Utility classes */
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 400;
  color: var(--foreground);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 3rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

p {
  font-family: 'Lato', sans-serif;
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  z-index: 50;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.navbar:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

.logo a {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #1A1A1A;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.logo a:hover {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1A1A1A;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 400;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary);
}

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

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  color: #1A1A1A;
  transition: color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-block;
}

.social-links a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 8rem 1rem 6rem;
  background: linear-gradient(to bottom, rgba(217, 138, 108, 0.1), var(--background));
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  color: white;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 2rem;
  color: white;
  font-weight: 400;
  letter-spacing: -0.02em;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p.subtitle {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', serif;
  color: white;
  font-style: italic;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero p {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  font-weight: 400;
  cursor: pointer;
  border: none;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.btn-primary {
  background-color: var(--secondary);
  color: white;
  box-shadow: 0 4px 6px rgba(196, 112, 75, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(196, 112, 75, 0.3);
}

.btn-secondary {
  background-color: white;
  color: var(--foreground);
  border: 2px solid #d1d5db;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

/* Sections */
section {
  padding: 6rem 1rem;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Cards */
.card {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
  border-color: rgba(217, 138, 108, 0.2);
}

/* Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: white;
  padding: 1rem 1rem;
}

.footer .container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: white;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p.subtitle {
    font-size: 1.5rem;
  }
  
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: 4rem 1rem;
  }
}

/* Image filters */
.filter-warm {
  filter: sepia(0.15) saturate(1.05) brightness(1.05);
}

.filter-soft {
  filter: brightness(1.03) contrast(0.97);
}

/* Scrollbar */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Form styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--secondary);
  border-radius: 0.25rem;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 138, 108, 0.1);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

/* Decorative elements */
.decorative-gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(3rem);
  pointer-events: none;
}

.decorative-gradient-1 {
  top: 0;
  right: 0;
  width: 24rem;
  height: 24rem;
  background: linear-gradient(to bottom left, rgba(var(--primary-rgb), 0.05), transparent);
}

.decorative-gradient-2 {
  bottom: 0;
  left: 0;
  width: 24rem;
  height: 24rem;
  background: linear-gradient(to top right, rgba(var(--secondary-rgb), 0.05), transparent);
}

/* Parallax effect on hero */
.hero-bg img {
  transform: scale(1.1);
  transition: transform 0.5s ease;
}

.hero:hover .hero-bg img {
  transform: scale(1.15);
}

/* Image hover effects */
img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  animation: shimmer 2s infinite;
  background: linear-gradient(to right, #f6f7f8 8%, #edeef1 18%, #f6f7f8 33%);
  background-size: 1000px 100%;
}

/* Trustindex widget override */
.ti-widget {
  margin: 0 auto !important;
  max-width: 600px !important;
  width: 100% !important;
  margin-top: 2rem !important;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  width: 2rem;
  height: 0.25rem;
  background: var(--foreground);
  border-radius: 0.125rem;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    background: var(--card);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu a {
    font-size: 1.25rem;
  }
}