/* =====================================================
   Base Typography & Font Imports
   ===================================================== */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Crimson+Pro:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");

body {
  font-family: "Crimson Pro", serif;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cormorant Garamond", serif;
}

/* =====================================================
   Content Styling (for CMS content)
   ===================================================== */
.content-image {
  border-radius: 8px;
  object-fit: cover;
}

@media all and (min-width: 768px) {
  .content-image {
    width: 500px;
    height: 500px;
    margin-right: 2rem !important;
    float: left;
  }
}

@media all and (max-width: 768px) {
  .content-image {
    height: 350px;
    margin-bottom: 1rem !important;
  }
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.content h1 {
  font-size: 2rem !important;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.25rem !important;
}

.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  font-size: 1.5rem !important;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem !important;
}

.content p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.25rem !important;
}

.content ul,
.content ol {
  margin-bottom: 1.25rem !important;
  margin-left: 2rem;
}

.content ul {
  list-style-type: disc;
}

.content ol {
  list-style-type: decimal;
}

.content li {
  margin-bottom: 0.5rem;
}

.content a {
  color: #eb9316;
  text-decoration: underline;
  font-weight: 500;
}

.content a:hover {
  color: #d06e10;
}

.content blockquote {
  font-size: 1.25rem;
  font-style: italic;
  border-left: 4px solid #eb9316;
  padding-left: 1rem;
  margin-bottom: 1.5rem !important;
  color: #555;
}

.content strong {
  font-weight: 600;
}

.content em {
  font-style: italic;
}

.content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
}

.content hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

/* =====================================================
   Form Components
   ===================================================== */
.iti {
  width: 100%;
}

/* =====================================================
   Utility Classes
   ===================================================== */

/* Line Clamping */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =====================================================
   Animations
   ===================================================== */

/* Fade In Up Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Scale In Animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-in {
  animation: scaleIn 0.4s ease-out forwards;
}

/* Pulse Animation */
@keyframes pulse-soft {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-pulse-soft {
  animation: pulse-soft 2s ease-in-out infinite;
}

/* Float Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* =====================================================
   Hero Section Animations
   ===================================================== */

/* Gradient Animation */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientFlow 8s ease infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 3s ease-in-out infinite;
}

/* Text Reveal Animation */
@keyframes revealText {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.animate-reveal {
  animation: revealText 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.animate-reveal-delay-1 {
  animation: revealText 1s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
  opacity: 0;
}

.animate-reveal-delay-2 {
  animation: revealText 1s cubic-bezier(0.65, 0, 0.35, 1) 0.4s forwards;
  opacity: 0;
}

.animate-reveal-delay-3 {
  animation: revealText 1s cubic-bezier(0.65, 0, 0.35, 1) 0.6s forwards;
  opacity: 0;
}

/* Floating Orb Animation */
@keyframes floatOrb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(10px, -15px) scale(1.05);
  }
  50% {
    transform: translate(-5px, -25px) scale(1);
  }
  75% {
    transform: translate(-15px, -10px) scale(0.95);
  }
}

.animate-orb {
  animation: floatOrb 8s ease-in-out infinite;
}

.animate-orb-reverse {
  animation: floatOrb 10s ease-in-out infinite reverse;
}

/* Glow Pulse */
@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
  }
  50% {
    box-shadow:
      0 0 40px rgba(245, 158, 11, 0.6),
      0 0 60px rgba(245, 158, 11, 0.3);
  }
}

.animate-glow {
  animation: glowPulse 3s ease-in-out infinite;
}

/* Slide In From Left */
@keyframes slideInLeft {
  0% {
    transform: translateX(-50px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-left {
  animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Slide In From Right */
@keyframes slideInRight {
  0% {
    transform: translateX(50px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-right {
  animation: slideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Bounce In */
@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-bounce-in {
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Counter Animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-count {
  animation: countUp 0.6s ease-out forwards;
}

/* Rotate Slow */
@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-rotate-slow {
  animation: rotateSlow 20s linear infinite;
}

/* Badge Float */
@keyframes badgeFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-8px) rotate(3deg);
  }
}

.animate-badge-float {
  animation: badgeFloat 4s ease-in-out infinite;
}

/* Image Parallax Effect */
.hero-image-container {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.hero-image-container:hover .hero-main-image {
  transform: scale(1.03);
}

.hero-main-image {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Premium Border Gradient */
.border-gradient {
  position: relative;
}

.border-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #f59e0b, #c27752, #f59e0b);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Particle Dots */
.particle-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  opacity: 0.6;
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-30px) translateX(10px);
    opacity: 0.3;
  }
}

.animate-particle {
  animation: particleFloat 5s ease-in-out infinite;
}

/* Stagger delays for particles */
.particle-delay-1 {
  animation-delay: 0s;
}
.particle-delay-2 {
  animation-delay: 0.5s;
}
.particle-delay-3 {
  animation-delay: 1s;
}
.particle-delay-4 {
  animation-delay: 1.5s;
}
.particle-delay-5 {
  animation-delay: 2s;
}
.particle-delay-6 {
  animation-delay: 2.5s;
}

/* =====================================================
   Navigation Styles
   ===================================================== */

/* Dropdown Menu Styles */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: block;
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    background: transparent;
  }

  .dropdown-menu.hidden {
    display: none;
  }
}

/* Active Nav Link */
.nav-active {
  color: #eb9316 !important;
  font-weight: 600;
}

/* =====================================================
   Card Hover Effects
   ===================================================== */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* =====================================================
   Button Styles
   ===================================================== */
.btn-primary {
  background: linear-gradient(135deg, #eb9316 0%, #d06e10 100%);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d06e10 0%, #ac4e11 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(235, 147, 22, 0.3);
}

.btn-secondary {
  background: #5b4737;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #4f3e32;
  transform: translateY(-2px);
}

/* =====================================================
   Form Focus States
   ===================================================== */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #eb9316 !important;
  box-shadow: 0 0 0 3px rgba(235, 147, 22, 0.1) !important;
}

/* =====================================================
   Scroll Behavior
   ===================================================== */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #9a8657;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #846c49;
}

/* =====================================================
   Loading States
   ===================================================== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* =====================================================
   Toast/Alert Styles
   ===================================================== */
.toast {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-success {
  border-left: 4px solid #519e47;
}

.toast-error {
  border-left: 4px solid #dc2626;
}

.toast-info {
  border-left: 4px solid #3b82f6;
}

/* =====================================================
   Selection Highlight
   ===================================================== */
::selection {
  background: #eb9316;
  color: white;
}

::-moz-selection {
  background: #eb9316;
  color: white;
}

/* =====================================================
   Print Styles
   ===================================================== */
@media print {
  nav,
  footer,
  .no-print {
    display: none !important;
  }

  body {
    font-size: 12pt;
  }

  a {
    text-decoration: none;
    color: inherit;
  }
}
