/* ===================================
   KAYDAVMODELS AGENCY — Custom CSS
   Works with Tailwind CSS Browser CDN
=================================== */

:root {
  --radius: 0.25rem;
  --onyx: #1a1a22;
  --ivory: #f8f5ee;
  --gold: #c9a96e;
  --gold-foreground: #1a1a22;
  --background: #111118;
  --foreground: #f8f5ee;
  --card: #1c1c24;
  --card-foreground: #f8f5ee;
  --muted: #2a2a35;
  --muted-foreground: #8a8a9a;
  --border: rgba(255,255,255,0.1);
  --input: rgba(255,255,255,0.12);
  --ring: #c9a96e;
  --color-gold: #c9a96e;
  --color-ivory: #f8f5ee;
  --color-background: #111118;
  --color-foreground: #f8f5ee;
  --color-card: #1c1c24;
  --color-card-foreground: #f8f5ee;
  --color-muted: #2a2a35;
  --color-muted-foreground: #8a8a9a;
  --color-border: rgba(255,255,255,0.1);
  --color-primary: #c9a96e;
  --color-primary-foreground: #1a1a22;
  --color-secondary: #2a2a35;
  --color-secondary-foreground: #f8f5ee;
  --font-serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; border-color: var(--color-border); }
html { scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Tailwind color overrides */
.bg-background { background-color: var(--background) !important; }
.bg-card\/40 { background-color: rgba(28,28,36,0.4) !important; }
.text-ivory { color: var(--ivory) !important; }
.text-gold { color: var(--gold) !important; }
.text-muted-foreground { color: var(--muted-foreground) !important; }
.border-border { border-color: var(--border) !important; }
.border-gold { border-color: var(--gold) !important; }
.border-gold\/40 { border-color: rgba(201,169,110,0.4) !important; }
.text-ivory\/80 { color: rgba(248,245,238,0.8) !important; }
.text-ivory\/75 { color: rgba(248,245,238,0.75) !important; }
.text-ivory\/85 { color: rgba(248,245,238,0.85) !important; }
.text-ivory\/70 { color: rgba(248,245,238,0.7) !important; }
.text-gold\/40 { color: rgba(201,169,110,0.4) !important; }
.bg-background\/95 { background-color: rgba(17,17,24,0.95) !important; }
.bg-background\/70 { background-color: rgba(17,17,24,0.7) !important; }
.bg-background\/60 { background-color: rgba(17,17,24,0.6) !important; }
.bg-background\/50 { background-color: rgba(17,17,24,0.5) !important; }
.bg-background\/40 { background-color: rgba(17,17,24,0.4) !important; }
.bg-background\/30 { background-color: rgba(17,17,24,0.3) !important; }
.bg-background\/0  { background-color: transparent !important; }
.from-background { --tw-gradient-from: var(--background); }
.from-background\/50 { --tw-gradient-from: rgba(17,17,24,0.5); }
.from-background\/60 { --tw-gradient-from: rgba(17,17,24,0.6); }
.from-background\/70 { --tw-gradient-from: rgba(17,17,24,0.7); }
.from-background\/80 { --tw-gradient-from: rgba(17,17,24,0.8); }
.from-background\/85 { --tw-gradient-from: rgba(17,17,24,0.85); }
.via-background\/30 { --tw-gradient-via: rgba(17,17,24,0.3); }
.via-background\/40 { --tw-gradient-via: rgba(17,17,24,0.4); }
.to-background { --tw-gradient-to: var(--background); }
.bg-card { background-color: var(--card) !important; }
.placeholder\:text-muted-foreground::placeholder { color: var(--muted-foreground); }
.focus\:border-gold:focus { border-color: var(--gold) !important; }

/* Eyebrow utility */
.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gold);
}

/* Hairline and gold rule */
.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.gold-rule { width: 48px; height: 1px; background: var(--gold); margin-top: 1.5rem; }

/* Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  background: var(--gold);
  color: var(--gold-foreground);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border: 1px solid var(--gold);
  transition: all 250ms ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-gold:hover,
.btn-gold-hover:hover {
  background: transparent !important;
  color: var(--gold) !important;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  background: transparent;
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border: 1px solid var(--ivory);
  transition: all 250ms ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-outline:hover,
.btn-outline-hover:hover {
  background: var(--ivory) !important;
  color: var(--onyx) !important;
}

/* Nav link */
.nav-link {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ivory);
  transition: color 200ms ease;
  text-decoration: none;
}
.nav-link:hover { color: var(--gold); }

/* ===================================
   Animations
=================================== */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(3deg); }
}
@keyframes float-slower {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-22px) rotate(-4deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50%       { opacity: 1;   transform: scale(1.15); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes shimmer-text {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.animate-float       { animation: float-slow 6s ease-in-out infinite; }
.animate-float-slow  { animation: float-slower 9s ease-in-out infinite; }
.animate-twinkle     { animation: twinkle 2.6s ease-in-out infinite; }
.animate-spin-slow   { animation: spin-slow 24s linear infinite; }
.animate-marquee     { animation: marquee 38s linear infinite; }

.shimmer-text {
  background: linear-gradient(90deg, var(--ivory) 0%, var(--gold) 50%, var(--ivory) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer-text 4s linear infinite;
}

/* ===================================
   Reveal / Scroll Animation
=================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms ease-out, transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===================================
   Header / main padding
=================================== */
main {
  padding-top: 4rem; /* 16 * 0.25rem = 4rem (pt-16) */
}
@media (min-width: 768px) {
  main { padding-top: 5rem; } /* pt-20 */
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-float, .animate-float-slow, .animate-twinkle,
  .animate-spin-slow, .animate-marquee, .shimmer-text { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
