@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --gold: #C9A96E;
  --gold-light: #E8D5B0;
  --gold-dark: #8B6914;
  --cream: #FAF7F2;
  --cream-dark: #F0EAE0;
  --charcoal: #1C1C1E;
  --muted: #6B6560;
  --warm-white: #FEFCF8;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for sticky navbar */
}

body {
  font-family: 'Jost', sans-serif;
  background: var(--warm-white);
  color: var(--charcoal);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: 'Cormorant Garamond', serif;
}

.font-display {
  font-family: 'Playfair Display', serif;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.4);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(201, 169, 110, 0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fade {
  animation: fadeIn 1s ease forwards;
}

/* Gold gradient text */
.text-gold-gradient {
  background: linear-gradient(135deg, #C9A96E 0%, #E8D5B0 50%, #8B6914 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gold button */
.btn-gold {
  background: linear-gradient(135deg, #C9A96E, #A8803A);
  color: #1C1C1E;
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 14px 32px;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #D4B47A, #C9A96E);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.35);
}

.btn-outline-gold {
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 12px 28px;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  background: transparent;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--charcoal);
}

/* Divider */
.divider-gold {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 12px 0;
}

.divider-gold::before,
.divider-gold::after {
  content: '';
  height: 1px;
  width: 40px;
  background: var(--gold);
  opacity: 0.5;
}

/* Section label */
.section-label {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--gold);
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}

#navbar.scrolled {
  background: rgba(28, 28, 30, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

/* Hero slider */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 0.6;
  z-index: 1;
}

.hero-overlay {
  background: linear-gradient(to bottom,
      rgba(28, 28, 30, 0.5) 0%,
      rgba(28, 28, 30, 0.3) 40%,
      rgba(28, 28, 30, 0.6) 100%);
}

/* Service cards */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-image-wrapper img {
  transform: scale(1.08);
}

/* Testimonial */
.testimonial-card {
  background: var(--cream);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 4px;
  padding: 32px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: 'Cormorant Garamond', serif;
  font-size: 7rem;
  color: var(--gold);
  opacity: 0.15;
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
}

/* Stats */
.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

/* Gold line accent */
.gold-line::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-top: 12px;
}

.gold-line-center::after {
  margin-left: auto;
  margin-right: auto;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--charcoal);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 300px;
  padding-bottom: 16px;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  font-size: 1rem;
}

.faq-icon.open {
  transform: rotate(45deg);
}

/* Offer badge */
.offer-badge {
  background: linear-gradient(135deg, #C9A96E, #A8803A);
  color: var(--charcoal);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 1px;
  display: inline-block;
}

.animate-pulse-glow {
  animation: pulse-glow 2.5s infinite;
}

/* Sticky CTA bar (mobile) */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: var(--charcoal);
  border-top: 1px solid rgba(201, 169, 110, 0.3);
  display: flex;
  height: 60px;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 8px;
}

.gallery-grid .tall {
  grid-row: span 2;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 2px;
  transition: transform 0.4s ease, opacity 0.3s ease;
  cursor: pointer;
}

.gallery-grid .tall img {
  height: 100%;
  min-height: 408px;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  opacity: 0.85;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu */
#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

#mobile-menu.open {
  transform: translateX(0);
}

/* Blog card */
.blog-card {
  border-radius: 4px;
  overflow: hidden;
  background: var(--warm-white);
  border: 1px solid rgba(201, 169, 110, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Booking modal */
#booking-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(28, 28, 30, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

#booking-modal.open {
  display: flex;
}

/* Noise texture overlay */
.noise-overlay {
  position: relative;
}

.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.04;
}

/* Luxury texture bg */
.luxury-bg {
  background-color: var(--charcoal);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(201, 169, 110, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 169, 110, 0.05) 0%, transparent 40%);
}

/* Input styles */
.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201, 169, 110, 0.3);
  color: var(--charcoal);
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  padding: 12px 0;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-bottom-color: var(--gold);
}

.form-input::placeholder {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.form-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201, 169, 110, 0.3);
  color: var(--charcoal);
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  padding: 12px 0;
  outline: none;
  appearance: none;
  cursor: pointer;
}

/* Loader */
.loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--charcoal);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid .tall img {
    min-height: 300px;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}