/* ==========================================================================
   CRUMAIRE — custom CSS supplement (Tailwind CDN handles utilities)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Google Fonts
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Crimson+Pro:ital,wght@0,300;0,400;1,300;1,400;1,600&family=Nunito+Sans:ital,wght@0,200;0,300;0,400;0,600;1,300&display=swap');

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: #3B1D4A;
  color: #F3E9DC;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* --------------------------------------------------------------------------
   Selection / focus
   -------------------------------------------------------------------------- */
::selection { background: rgba(200, 169, 81, 0.22); color: #F3E9DC; }
:focus-visible { outline: 1px solid #C8A951; outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Scrollbar
   -------------------------------------------------------------------------- */
::-webkit-scrollbar              { width: 5px; }
::-webkit-scrollbar-track        { background: #3B1D4A; }
::-webkit-scrollbar-thumb        { background: rgba(200,169,81,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover  { background: rgba(200,169,81,0.55); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav-link {
  position: relative;
  padding-bottom: 3px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: #C8A951;
  transition: width 220ms ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Hamburger button spans */
.ham-span {
  display: block;
  width: 24px; height: 1px;
  background: #C8A951;
  transition: transform 220ms ease, opacity 220ms ease;
}
.ham-open .ham-s1 { transform: translateY(8px) rotate(45deg); }
.ham-open .ham-s2 { opacity: 0; }
.ham-open .ham-s3 { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: rgba(42, 19, 54, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,169,81,0.15);
  padding: 1.75rem 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 49;
}
.nav-drawer.open { display: flex; }

/* --------------------------------------------------------------------------
   Hero canvas
   -------------------------------------------------------------------------- */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   3D card tilt
   -------------------------------------------------------------------------- */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.tilt-card:hover {
  box-shadow: 0 24px 60px -8px rgba(200,169,81,0.12),
              0 8px 24px -4px rgba(0,0,0,0.4);
}
.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  border-radius: inherit;
  transition: background 60ms linear;
}

/* --------------------------------------------------------------------------
   Animated gold shimmer on section dividers
   -------------------------------------------------------------------------- */
.shimmer-line {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200,169,81,0.6) 40%,
    rgba(200,169,81,0.8) 50%,
    rgba(200,169,81,0.6) 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
}
.reveal.visible {
  animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Stagger delays for grid children */
.reveal-delay-1 { animation-delay: 0.08s; }
.reveal-delay-2 { animation-delay: 0.16s; }
.reveal-delay-3 { animation-delay: 0.24s; }
.reveal-delay-4 { animation-delay: 0.32s; }

/* --------------------------------------------------------------------------
   Form inputs  (Tailwind can't target ::placeholder colour easily)
   -------------------------------------------------------------------------- */
.form-input {
  background: transparent;
  border: 1px solid rgba(200,169,81,0.22);
  border-radius: 1px;
  padding: 0.75rem 1rem;
  width: 100%;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 300;
  color: #F3E9DC;
  outline: none;
  transition: border-color 220ms ease;
  -webkit-appearance: none;
}
.form-input::placeholder { color: rgba(243,233,220,0.28); }
.form-input:focus        { border-color: #C8A951; }

textarea.form-input { resize: vertical; min-height: 140px; }

/* --------------------------------------------------------------------------
   Form messages
   -------------------------------------------------------------------------- */
.msg-success {
  padding: .875rem 1rem;
  background: rgba(200,169,81,0.06);
  border: 1px solid rgba(200,169,81,0.35);
  border-radius: 1px;
  color: #C8A951;
  font-size: .9rem;
  line-height: 1.6;
  display: none;
}
.msg-error {
  padding: .875rem 1rem;
  background: rgba(176,137,104,0.06);
  border: 1px solid rgba(176,137,104,0.35);
  border-radius: 1px;
  color: #B08968;
  font-size: .9rem;
  line-height: 1.6;
  display: none;
}
.msg-success.show,
.msg-error.show { display: block; }

/* --------------------------------------------------------------------------
   About image placeholder
   -------------------------------------------------------------------------- */
.img-placeholder {
  width: 100%;
  background-color: #B08968;
  border-radius: 2px;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

/* --------------------------------------------------------------------------
   Floating gold orb (decorative, hero)
   -------------------------------------------------------------------------- */
@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-18px) scale(1.04); }
}
.orb {
  animation: floatOrb 8s ease-in-out infinite;
  pointer-events: none;
}
