/* =========================
   0) Base & animations
   ========================= */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
}

/* Fade-in on scroll */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-in-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth theme transitions */
:where(
    body,
    header,
    section,
    footer,
    a,
    button,
    .card,
    .theme-surface,
    .btn,
    path,
    svg
  ) {
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    fill 0.35s ease;
}

/* =========================
   1) Theme tokens
   ========================= */
:root {
  --gold: #e7c24d;
  --gold-deep: #c49b1f;

  --text: #1f2937;
  --text-muted: #4b5563;

  --bg: #fffdf5;
  --surface: #ffffff;
}

/* =========================
   2) Utilities
   ========================= */
.text-gold {
  color: var(--gold);
}

.hover-text-gold:hover {
  color: var(--gold);
}

.hover-text-dark:hover {
  color: var(--text);
}

/* Tiny gold dot (for lists) */
.dot-gold {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: var(--gold);
}

/* Soft pill tags (hero chips) */
.pill-gold-soft {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(231, 194, 77, 0.12);
  border: 1px solid rgba(231, 194, 77, 0.4);
  font-size: 11px;
  font-weight: 500;
  color: #92400e;
}

/* Card hover effect */
.card-hover-lift {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card-hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  border-color: rgba(231, 194, 77, 0.5);
}

/* =========================
   3) Buttons
   ========================= */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f9e29a, #e7c24d);
  color: #111827;
  font-weight: 600;
  border: 1px solid rgba(231, 194, 77, 0.7);
  box-shadow:
    0 10px 22px rgba(180, 137, 19, 0.25),
    0 2px 6px rgba(15, 23, 42, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.btn-gold:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ffe799, #f3cc55);
  box-shadow:
    0 14px 30px rgba(180, 137, 19, 0.32),
    0 4px 10px rgba(15, 23, 42, 0.22);
}

.btn-gold:active {
  transform: translateY(0);
  box-shadow:
    0 5px 14px rgba(180, 137, 19, 0.26),
    0 2px 6px rgba(15, 23, 42, 0.22);
}

/* Outline button */
.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(231, 194, 77, 0.9);
  background: #ffffff;
  color: #92400e;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-gold-outline:hover {
  background: rgba(255, 249, 219, 0.9);
  border-color: rgba(231, 194, 77, 1);
  box-shadow: 0 8px 20px rgba(148, 116, 34, 0.25);
}

/* =========================
   4) Section headings
   ========================= */

/* Small uppercase label e.g. "About Us" / "Our Services" */
.section-kicker {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Main section title with gold underline */
.section-title-main {
  position: relative;
  display: inline-block;
  padding-bottom: 0.4rem;
}

.section-title-main::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -0.25rem;
  height: 3px;
  width: 72px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #facc15, #e7c24d);
}

/* Optional accent for important h3s */
.section-subtitle {
  position: relative;
  padding-left: 10px;
}

.section-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: var(--gold);
}

/* =========================
   5) Scroll cue
   ========================= */
.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
}

.scroll-cue-dot {
  width: 22px;
  height: 38px;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  position: relative;
}

.scroll-cue-dot::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 5px;
  height: 9px;
  border-radius: 9999px;
  background: var(--gold);
  transform: translateX(-50%);
  animation: scrollDot 2.1s ease-in-out infinite;
}

@keyframes scrollDot {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, 9px);
  }
  70% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
}

/* =========================
   6) Top nav underline
   ========================= */
.nav-underline {
  position: relative;
}

.nav-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-underline:hover::after {
  width: 100%;
}

.site-header {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* ============================================
   Improved Accordion / Details UI
============================================ */

/* Wrapper card hover */
details {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

details:hover {
  border-color: rgba(231, 194, 77, 0.8);
  box-shadow: 0 10px 26px rgba(231, 194, 77, 0.18);
}

/* Summary click area */
details > summary {
  border-radius: 1rem;
  transition: background 0.25s ease;
}

details > summary:hover {
  background: rgba(231, 194, 77, 0.08);
}

/* Arrow animation */
details summary span {
  transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

/* Rotate arrow when open */
details[open] summary span {
  transform: rotate(90deg);
  background: rgba(231, 194, 77, 0.12);
  border-color: var(--gold);
  color: var(--gold);
}

/* Smooth accordion opening */
details[open] div {
  animation: fadeSlide 0.35s ease;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}