:root {
  --color-white: #FFFFFF;
  --color-gray-soft: #F5F5F5;
  --color-beige: #D1C7BD;
  --color-charcoal: #1B1B1B;
  --color-bronze: #C8A27A;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-xxl: 2rem;
  --font-size-hero: 2.5rem;
  
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Playfair Display', sans-serif;
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-charcoal);
}

h1 {
  font-size: var(--font-size-hero);
}

h2 {
  font-size: var(--font-size-xxl);
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--color-bronze);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-charcoal);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xxl) 0;
}

.header {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.98) 100%);
  backdrop-filter: blur(10px);
  padding: var(--space-md) 0;
  z-index: 100;
  transition: transform var(--transition-base);
}

.header.hidden {
  transform: translateY(-100%);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1002;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-charcoal);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  align-items: center;
}

.nav-menu a {
  color: var(--color-charcoal);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-bronze);
  transition: width var(--transition-base);
}

.nav-menu a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--font-size-xl);
  color: var(--color-charcoal);
  cursor: pointer;
  z-index: 1001;
  padding: var(--space-xs);
  position: relative;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-soft) 100%);
  transform: translateY(-100%);
  transition: transform var(--transition-base);
  z-index: 1000;
  padding: var(--space-xxl) var(--space-lg);
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu ul {
  list-style: none;
  margin-top: var(--space-xxl);
}

.mobile-menu li {
  margin-bottom: var(--space-md);
}

.mobile-menu a {
  color: var(--color-charcoal);
  font-size: var(--font-size-md);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-beige);
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../pictures/hero-bg.png');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(27, 27, 27, 0.4) 0%, rgba(200, 162, 122, 0.3) 100%);
  animation: gradientShift 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(200, 162, 122, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes gradientShift {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: var(--space-xl);
  background-color: rgba(27, 27, 27, 0.6);
  border-radius: var(--border-radius-lg);
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-content p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-bronze);
  color: var(--color-white);
  border: none;
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-top: var(--space-md);
  text-align: center;
  position: relative;
  z-index: 1;
}

.btn:hover {
  background: var(--color-charcoal);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-bronze);
  color: var(--color-bronze);
}

.btn-secondary:hover {
  background: var(--color-bronze);
  color: var(--color-white);
}

.section-gray {
  background-color: var(--color-gray-soft);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-md);
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(200, 162, 122, 0.1), transparent);
  transform: rotate(45deg);
  transition: transform var(--transition-slow);
  opacity: 0;
  pointer-events: none;
}

.card:hover::before {
  transform: rotate(45deg) translate(50%, 50%);
  opacity: 1;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--border-radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, var(--color-bronze), var(--color-beige), var(--color-bronze));
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.card:hover::after {
  opacity: 0.3;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-charcoal);
}

.card p {
  color: var(--color-charcoal);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
}

.price {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-bronze);
  margin-top: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--color-charcoal);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid var(--color-beige);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-base);
  font-family: inherit;
  transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-bronze);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
  font-size: var(--font-size-xs);
}

.map-container {
  margin-top: var(--space-lg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}

.footer {
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: var(--space-lg) 0;
  margin-top: var(--space-xxl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-menu {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  flex-wrap: wrap;
}

.footer-menu a {
  color: var(--color-beige);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-menu a:hover {
  color: var(--color-bronze);
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-md);
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gray-soft) 100%);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.legal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-bronze) 0%, var(--color-beige) 50%, var(--color-bronze) 100%);
}

.legal-content h1 {
  margin-bottom: var(--space-md);
  color: var(--color-charcoal);
  font-size: var(--font-size-xxl);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-beige);
  position: relative;
}

.legal-content h1::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background: var(--color-bronze);
}

.legal-content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--color-charcoal);
  font-size: var(--font-size-xl);
  padding-left: var(--space-md);
  border-left: 4px solid var(--color-bronze);
  position: relative;
}

.legal-content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-charcoal);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.legal-content p {
  margin-bottom: var(--space-md);
  line-height: 1.9;
  color: var(--color-charcoal);
  font-size: var(--font-size-base);
}

.legal-content p strong {
  color: var(--color-charcoal);
  font-weight: 600;
}

.legal-content ul {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}

.legal-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.8;
  color: var(--color-charcoal);
  position: relative;
  padding-left: var(--space-sm);
}

.legal-content li::marker {
  color: var(--color-bronze);
}

.legal-content a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-base);
}

.legal-content a:hover {
  color: #FFFFFF;
  text-decoration-thickness: 2px;
  opacity: 0.9;
}

.home-button {
  display: inline-block;
  margin-top: var(--space-xl);
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-bronze);
  color: #FFFFFF;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.home-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-base);
}

.home-button:hover::before {
  left: 100%;
}

.home-button:hover {
  background: var(--color-charcoal);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.error-page {
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-page h1 {
  font-size: 6rem;
  color: var(--color-bronze);
  margin-bottom: var(--space-md);
}

.error-page p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: var(--space-md);
}

.popup-overlay.active {
  display: flex;
}

.popup-content {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.popup-content h2 {
  margin-bottom: var(--space-md);
}

.popup-content p {
  margin-bottom: var(--space-md);
  font-size: var(--font-size-sm);
}

.popup-close {
  margin-top: var(--space-md);
  width: 100%;
}

@media (max-width: 768px) {
  :root {
    --font-size-hero: 2rem;
    --font-size-xxl: 1.5rem;
    --font-size-xl: 1.25rem;
    --space-xxl: 2.5rem;
    --space-xl: 2rem;
  }
  
  .nav-menu {
    display: none;
  }
  
  .menu-toggle {
    display: block;
    position: relative;
    z-index: 1001;
  }
  
  .hero {
    min-height: 50vh;
    background-attachment: scroll;
  }
  
  .hero-content {
    padding: var(--space-md);
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .map-container iframe {
    height: 300px;
  }
  
  .error-page h1 {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-hero: 1.75rem;
    --space-xxl: 2rem;
    --space-xl: 1.5rem;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
  
  .card {
    padding: var(--space-md);
  }
  
  .card img {
    height: 180px;
  }
  
  .map-container iframe {
    height: 250px;
  }
  
  .legal-content {
    padding: var(--space-lg) var(--space-sm);
    border-radius: var(--border-radius-md);
  }
  
  .legal-content h1 {
    font-size: var(--font-size-xl);
  }
  
  .legal-content h2 {
    font-size: var(--font-size-lg);
    padding-left: var(--space-sm);
  }
  
  .legal-content ul {
    margin-left: var(--space-md);
    padding-left: var(--space-sm);
  }
}

@media (max-width: 320px) {
  :root {
    --font-size-base: 0.875rem;
    --font-size-hero: 1.5rem;
    --space-md: 1rem;
    --space-lg: 1.25rem;
  }
  
  .hero-content {
    padding: var(--space-sm);
  }
  
  .btn {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-xs);
  }
}

