/*
  Shared component styles for Royal Horizon.
  These classes are intentionally small overlays on top of the existing Tailwind markup.
*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 251, 241, 0.88);
  border-bottom: 1px solid rgba(191, 202, 187, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(246, 251, 241, 0.96);
  box-shadow: 0 14px 36px -26px rgba(0, 33, 6, 0.55);
}

.site-nav {
  width: 100%;
  max-width: 1280px;
  min-height: var(--rh-header-height);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rh-primary);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}

.brand-mark .material-symbols-outlined {
  color: var(--rh-secondary);
  font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 0, "opsz" 24;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--rh-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 20px;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--rh-primary);
}

.nav-link.is-active {
  border-bottom: 2px solid var(--rh-secondary);
  padding-bottom: 5px;
}

.mobile-menu-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rh-primary);
  border: 1px solid rgba(112, 122, 109, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--rh-header-height) 0 auto 0;
  z-index: 55;
  background: rgba(246, 251, 241, 0.98);
  border-bottom: 1px solid var(--rh-outline);
  box-shadow: var(--rh-shadow-soft);
  padding: 18px 20px 26px;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid rgba(191, 202, 187, 0.45);
}

.btn-primary,
.btn-secondary,
.btn-glass,
.btn-outline,
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 20px;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn-primary,
.cta-link {
  background: var(--rh-primary);
  color: #fff;
  padding: 12px 24px;
}

.btn-primary:hover,
.cta-link:hover {
  background: var(--rh-primary-container);
  box-shadow: 0 18px 32px -22px rgba(0, 33, 6, 0.8);
}

.btn-secondary {
  background: var(--rh-secondary);
  color: #fff;
  padding: 12px 24px;
}

.btn-outline {
  border: 1px solid currentColor;
  padding: 12px 24px;
}

.btn-glass,
.glass-nav,
.glass-back {
  background: rgba(246, 251, 241, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover,
.btn-glass:hover,
.cta-link:hover {
  transform: translateY(-1px);
}

.detail-back {
  position: fixed;
  top: 24px;
  left: 20px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--rh-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 18px 42px -24px rgba(0, 33, 6, 0.45);
}

.detail-back:hover {
  color: var(--rh-secondary);
  border-color: rgba(121, 89, 23, 0.42);
}

.hero-gradient {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.22) 48%, rgba(246, 251, 241, 1) 100%);
}

.cinematic-gradient {
  background: linear-gradient(135deg, rgba(0, 90, 30, 0.88), rgba(24, 29, 23, 0.72));
}

.text-shadow,
.text-shadow-sm {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.32);
}

.text-shadow-lg,
.text-shadow-hero {
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.cinematic-shadow,
.safari-shadow,
.editorial-shadow {
  box-shadow: var(--rh-shadow);
}

.tribal-divider,
.pattern-divider {
  min-height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='20' viewBox='0 0 80 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 L10 0 L20 10 L30 0 L40 10 L50 0 L60 10 L70 0 L80 10' fill='none' stroke='%23795917' stroke-width='1' opacity='0.28'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

.tribal-mask {
  mask-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'><circle cx='50' cy='50' r='45' stroke='black' stroke-width='5' fill='none' stroke-dasharray='2 2'/></svg>");
  mask-repeat: repeat;
}

.pattern-bg,
.textured-bg,
.texture-overlay {
  background-image: radial-gradient(circle at 2px 2px, rgba(121, 89, 23, 0.24) 1px, transparent 0);
  background-size: 18px 18px;
}

.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

.asymmetric-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.asymmetric-border {
  border-radius: 64px 4px 64px 4px;
}

.custom-scrollbar::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--rh-secondary);
  border-radius: 999px;
}

.form-message {
  display: none;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--rh-outline);
  background: var(--rh-cream-soft);
  color: var(--rh-muted);
  font-weight: 600;
}

.form-message.is-visible {
  display: block;
}

.form-message.is-error {
  border-color: rgba(186, 26, 26, 0.35);
  color: #93000a;
  background: #ffdad6;
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--rh-outline);
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 20px 36px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.site-footer h4,
.site-footer h5 {
  color: var(--rh-primary);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--rh-muted);
  transition: color 180ms ease;
}

.site-footer a:hover {
  color: var(--rh-secondary);
}
