:root {
  --primary: #1e3a5f;
  --secondary: #d4af37;
  --accent: #8b1538;
  --dark: #fafaf9;
  --surface: #ffffff;
  --text: #111827;
  --text-muted: #4b5563;
  --border: rgba(30, 58, 95, 0.16);
}

body.template-frontpage {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(212, 175, 55, 0.15), transparent 60%),
              radial-gradient(1200px 600px at 90% 0%, rgba(139, 21, 56, 0.12), transparent 65%),
              var(--dark);
  color: var(--text);
}

body.template-frontpage h1,
body.template-frontpage h2,
body.template-frontpage h3,
body.template-frontpage h4,
body.template-frontpage h5,
body.template-frontpage h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
}

body.template-frontpage p,
body.template-frontpage li,
body.template-frontpage summary,
body.template-frontpage label,
body.template-frontpage .text-gray-200,
body.template-frontpage .text-gray-300,
body.template-frontpage .text-gray-400,
body.template-frontpage .text-gray-500,
body.template-frontpage .text-gray-600 {
  color: var(--text-muted) !important;
}

body.template-frontpage .glass {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

/* Keep sections visible even if page JS animations fail. */
body.template-frontpage .reveal-on-scroll,
body.template-frontpage .reveal-on-scroll.active {
  opacity: 1 !important;
  transform: none !important;
}

body.template-frontpage .bg-black\/20,
body.template-frontpage .bg-black\/25 {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(248, 246, 240, 0.85) 100%) !important;
}

body.template-frontpage .bg-dark\/60,
body.template-frontpage .bg-dark\/50 {
  background: rgba(255, 255, 255, 0.88) !important;
}

body.template-frontpage .bg-white\/5 {
  background-color: rgba(30, 58, 95, 0.06) !important;
}

body.template-frontpage .bg-white\/10 {
  background-color: rgba(30, 58, 95, 0.1) !important;
}

body.template-frontpage .border-white\/10,
body.template-frontpage .border-white\/15 {
  border-color: var(--border) !important;
}

body.template-frontpage .text-white {
  color: var(--primary);
}

body.template-frontpage .text-secondary {
  color: var(--secondary) !important;
}

body.template-frontpage .text-accent {
  color: var(--accent) !important;
}

body.template-frontpage .mobile-menu-btn span {
  background: var(--primary);
}

body.template-frontpage .mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
}

body.template-frontpage .mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
}

body.template-frontpage nav.fixed.glass {
  background: rgba(250, 250, 249, 0.9);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body.template-frontpage header.fixed {
  background: rgba(250, 250, 249, 0.9) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body.template-frontpage .nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

body.template-frontpage .nav-dropdown-menu a {
  color: #334155;
}

body.template-frontpage .nav-dropdown-menu a:hover,
body.template-frontpage .nav-dropdown-menu a.active {
  background: rgba(30, 58, 95, 0.08);
  color: var(--primary);
}

body.template-frontpage .desktop-nav > a,
body.template-frontpage .desktop-nav > .nav-dropdown > a {
  color: #475569 !important;
}

body.template-frontpage header.fixed nav a {
  color: #475569;
}

body.template-frontpage header.fixed nav a:hover {
  color: var(--primary) !important;
}

body.template-frontpage .desktop-nav > a:hover,
body.template-frontpage .desktop-nav > .nav-dropdown > a:hover {
  color: var(--primary) !important;
}

body.template-frontpage .mobile-menu {
  background: rgba(250, 250, 249, 0.98);
  border-left: 1px solid var(--border);
}

body.template-frontpage #mobileMenu {
  background: rgba(250, 250, 249, 0.98) !important;
}

body.template-frontpage .mobile-nav-item,
body.template-frontpage .mobile-dropdown-toggle {
  color: #334155;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

body.template-frontpage .mobile-dropdown-content {
  background: rgba(15, 23, 42, 0.03);
}

body.template-frontpage .mobile-dropdown-content a {
  color: #475569;
}

body.template-frontpage .mobile-dropdown-content a:hover {
  color: var(--primary);
}

body.template-frontpage .mobile-cta,
body.template-frontpage .bg-gradient-to-r.from-primary.to-secondary,
body.template-frontpage .bg-primary {
  color: #fff !important;
}

body.template-frontpage .mobile-cta,
body.template-frontpage .bg-gradient-to-r.from-primary.to-secondary {
  background-image: linear-gradient(135deg, var(--accent), #a61f47 45%, var(--primary)) !important;
}

body.template-frontpage .bg-primary {
  background-color: var(--accent) !important;
}

body.template-frontpage .shadow-primary\/25 {
  --tw-shadow-color: rgba(139, 21, 56, 0.26) !important;
}

body.template-frontpage .breadcrumbs ol,
body.template-frontpage .breadcrumbs a,
body.template-frontpage .breadcrumbs .current {
  color: #64748b !important;
}

body.template-frontpage .breadcrumbs a:hover {
  color: var(--primary) !important;
}

body.template-frontpage input,
body.template-frontpage textarea,
body.template-frontpage select {
  color: var(--text) !important;
}

body.template-frontpage input:focus,
body.template-frontpage textarea:focus,
body.template-frontpage select:focus {
  border-color: rgba(139, 21, 56, 0.55) !important;
  box-shadow: 0 0 0 1px rgba(139, 21, 56, 0.25) !important;
}

body.template-frontpage .peer:focus + label {
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--accent) !important;
}

body.template-frontpage footer {
  background: radial-gradient(120% 120% at 0% 0%, rgba(139, 21, 56, 0.28) 0%, transparent 44%),
              linear-gradient(140deg, #0f2945 0%, #1e2f53 55%, #5a112a 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.26) !important;
}

body.template-frontpage footer,
body.template-frontpage footer p,
body.template-frontpage footer a,
body.template-frontpage footer .text-gray-300,
body.template-frontpage footer .text-gray-600,
body.template-frontpage footer .text-white {
  color: rgba(241, 245, 249, 0.92) !important;
}

body.template-frontpage footer a:hover {
  color: #fbbf24 !important;
}

@media (max-width: 768px) {
  body.template-frontpage .mobile-menu-btn {
    display: flex !important;
  }

  body.template-frontpage h1 {
    font-size: clamp(2rem, 8vw, 2.5rem) !important;
    line-height: 1.1;
  }

  body.template-frontpage main .glass {
    padding: 1.25rem;
  }

  body.template-frontpage .mobile-menu {
    max-width: 100%;
  }
}
