@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ════════════════════════════════════════
   LAYOUT UTILITIES
════════════════════════════════════════ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 80px 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 968px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section {
    padding: 56px 0;
  }
}

/* ════════════════════════════════════════
   TYPOGRAPHY UTILITIES
════════════════════════════════════════ */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-luxury {
  font-family: var(--font-luxury);
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-dark);
  margin-bottom: 10px;
  position: relative;
  padding-left: 28px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 2px;
  background: var(--gradient-gold);
}

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--transition-fast);
}

.btn:hover::after {
  background: rgba(255, 255, 255, 0.08);
}

/* Primary – green gradient */
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(45, 90, 39, 0.30);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow-green);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Secondary – gold gradient */
.btn-secondary {
  background: var(--gradient-gold);
  color: var(--primary-xdark);
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.30);
}

.btn-secondary:hover {
  box-shadow: var(--shadow-glow-gold);
  transform: translateY(-2px);
}

/* Outline */
.btn-outline {
  border: 2px solid currentColor;
  color: var(--primary-color);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Ghost */
.btn-ghost {
  color: var(--text-color);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--surface-muted);
  color: var(--primary-color);
}

/* Modifiers */
.btn-block {
  width: 100%;
}

.btn-disabled,
.btn:disabled {
  background: var(--border-color) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

/* ════════════════════════════════════════
   CARDS & SURFACES
════════════════════════════════════════ */
.card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 160, 89, 0.4);
}

/* Glassmorphism card */
.glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Section divider */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.section-divider-icon {
  color: var(--accent-color);
  font-size: 1.1rem;
}

/* ════════════════════════════════════════
   FORM STYLES
════════════════════════════════════════ */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-color);
  font-size: 0.875rem;
  letter-spacing: 0.2px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--surface-color);
  transition: var(--transition-fast);
  color: var(--text-color);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.12);
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-control-error {
  border-color: var(--danger-color);
  box-shadow: 0 0 0 3px rgba(201, 59, 59, 0.1);
}

.error-text {
  color: var(--danger-color);
  font-size: 0.78rem;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ════════════════════════════════════════
   SKELETON LOADING
════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg,
      var(--surface-muted) 25%,
      #ede8e1 50%,
      var(--surface-muted) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

/* ════════════════════════════════════════
   SCROLL-TO-TOP FAB
════════════════════════════════════════ */
.scroll-to-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: var(--z-top);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-round);
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(45, 90, 39, 0.35);
  cursor: pointer;
  border: none;
  transition: all var(--transition-spring);
  opacity: 0;
  transform: translateY(16px) scale(0.8);
  pointer-events: none;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-to-top-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: var(--shadow-glow-green);
}

/* ════════════════════════════════════════
   PAGE READ PROGRESS BAR
════════════════════════════════════════ */
.page-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-gold);
  z-index: var(--z-top);
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(197, 160, 89, 0.5);
}

/* ════════════════════════════════════════
   ANIMATIONS & KEYFRAMES
════════════════════════════════════════ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

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

@keyframes blurIn {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(12px);
  }

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

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

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

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(45, 90, 39, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(45, 90, 39, 0);
  }
}

@keyframes pulseGoldGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(197, 160, 89, 0);
  }
}

@keyframes float {

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

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

@keyframes floatSlow {

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

  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

@keyframes swingIn {
  0% {
    transform: rotate(-12deg) scale(0);
    opacity: 0;
  }

  70% {
    transform: rotate(4deg) scale(1.05);
  }

  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes bounce {

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

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

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes progressFill {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

@keyframes ribbonSlide {
  from {
    transform: translate(8px, -8px) rotate(45deg) scale(0);
  }

  to {
    transform: translate(8px, -8px) rotate(45deg) scale(1);
  }
}

@keyframes heartBeat {

  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.15);
  }

  50% {
    transform: scale(1);
  }

  75% {
    transform: scale(1.1);
  }
}

/* Animation utility classes */
.fade-in {
  animation: fadeIn var(--transition-normal) forwards;
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

.slide-in-right {
  animation: slideInRight var(--transition-normal) forwards;
}

.slide-up {
  animation: slideUp var(--transition-normal) forwards;
}

.blur-in {
  animation: blurIn 0.5s ease forwards;
}

/* Stagger delays */
.stagger-1 {
  animation-delay: 0.1s;
  opacity: 0;
}

.stagger-2 {
  animation-delay: 0.2s;
  opacity: 0;
}

.stagger-3 {
  animation-delay: 0.3s;
  opacity: 0;
}

.stagger-4 {
  animation-delay: 0.4s;
  opacity: 0;
}

.stagger-5 {
  animation-delay: 0.5s;
  opacity: 0;
}

/* ════════════════════════════════════════
   PREMIUM SCROLLBAR
════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-light), var(--accent-color));
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-dark), var(--accent-dark));
}

/* ════════════════════════════════════════
   SELECTION
════════════════════════════════════════ */
::selection {
  background: rgba(197, 160, 89, 0.25);
  color: var(--primary-dark);
}