:root {
  --color-primary: #2d2a24;
  --color-secondary: #c9a96e;
  --color-accent: #e8d5b7;
  --color-dark: #1a1814;
  --color-light: #faf7f2;
  --color-body: #faf7f2;
  --color-text: #2d2a24;
  --color-text-light: #6b655a;
  --color-white: #ffffff;
  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-body);
  color: var(--color-text);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
}

h2 {
  font-size: 2.6rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 2rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--color-text-light);
}

a {
  color: #7A6533;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Links on dark backgrounds (hero, etc.) need lighter color */
.text-white a,
.hero-overlay a,
footer a {
  color: var(--color-secondary);
}

.text-white a:hover,
.hero-overlay a:hover,
footer a:hover {
  color: var(--color-accent);
}

/* Fix: ensure .btn-outline-light inside hero overlay uses white for contrast */
.hero-overlay .btn-outline-light,
.text-white .btn-outline-light {
  color: var(--color-white);
  border-color: var(--color-white);
}

.hero-overlay .btn-outline-light:hover,
.text-white .btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

/* Fix: ensure .btn-gold in hero overlay keeps dark text on gold background */
.hero-overlay .btn-gold,
.text-white .btn-gold {
  color: var(--color-dark);
}

.hero-overlay .btn-gold:hover,
.text-white .btn-gold:hover {
  color: var(--color-secondary);
}

/* Fix contrast for visually-hidden carousel control text on light background */
.carousel .visually-hidden {
  color: #000;
}

/* section spacing */
section {
  padding: 5rem 0;
}

/* hero overlay */
.hero-overlay {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-overlay > * {
  position: relative;
  z-index: 2;
}

/* buttons */
.btn-gold {
  background: var(--color-secondary);
  color: var(--color-dark);
  border: 1px solid var(--color-secondary);
  padding: 0.75rem 2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  transition: all var(--transition);
  border-radius: 0;
}

.btn-gold:hover {
  background: transparent;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-outline-light {
  border: 1px solid var(--color-white);
  color: var(--color-white);
  padding: 0.75rem 2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  transition: all var(--transition);
  border-radius: 0;
}

.btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

/* cards */
.card {
  border: none;
  background: var(--color-white);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card-img-top {
  height: 260px;
  object-fit: cover;
}

/* footer */
footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

footer h5 {
  color: var(--color-accent);
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
}

footer a {
  color: var(--color-secondary);
}

footer a:hover {
  color: var(--color-accent);
}

/* Footer paragraphs must use light color on dark background */
footer p,
footer p.small,
footer p.mb-1,
footer p.mb-3,
footer p.mt-3 {
  color: rgba(255,255,255,0.7);
}

footer strong {
  color: rgba(255,255,255,0.85);
}

/* cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1.5rem 2rem;
  z-index: 9999;
  display: none;
  animation: slideUp 0.5s ease;
}

.cookie-banner.show {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  color: var(--color-accent);
  font-size: 0.95rem;
  max-width: 80%;
}

.cookie-banner a {
  color: var(--color-secondary);
}

.cookie-banner .btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.8rem;
  background: var(--color-secondary);
  color: var(--color-dark);
  border: none;
  cursor: pointer;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* forms */
.form-control {
  border-radius: 0;
  border: 1px solid #ddd;
  padding: 0.8rem 1rem;
  background: var(--color-white);
  transition: border-color var(--transition);
}

.form-control:focus {
  border-color: var(--color-secondary);
  box-shadow: none;
}

/* notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--color-secondary);
  color: var(--color-dark);
  padding: 1rem 2rem;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.notification.show {
  opacity: 1;
}

/* aos customization */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* responsive */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  section { padding: 3rem 0; }
}

/* testimonial slider custom dots */
.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-secondary);
  opacity: 0.4;
}

.carousel-indicators .active {
  opacity: 1;
}

/* price cards */
.price-card {
  border: 1px solid #e0d6c8;
  padding: 2rem;
  background: var(--color-white);
  transition: all var(--transition);
}

.price-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.price-card .price {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  color: var(--color-primary);
}

/* gallery grid */
.gallery-item {
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  transition: transform 0.6s ease;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* process steps */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--color-secondary);
  color: var(--color-dark);
  font-weight: 700;
  font-size: 1.2rem;
}

/* map */
.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* footer logo */
footer img {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

/* contact info */
.contact-info i {
  color: var(--color-secondary);
  width: 25px;
}

/* Mobile responsive fixes */
@media (max-width: 576px) {
  .cookie-banner p {
    max-width: 100%;
  }
  
  .cookie-banner.show {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-item img {
    height: 200px;
  }
}
