/* ==========================================================================
   Global base styles, resets, typography, shared components
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-serif);
  background: var(--color-parchment);
  color: var(--text-on-parchment);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* Section utility */
.section {
  position: relative;
  padding: 96px 0;
}

.section--tight {
  padding: 56px 0;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold-deep);
  margin-bottom: 18px;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  height: 1px;
  width: 44px;
  background: var(--color-gold-line);
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--color-sepia-dark);
  margin-bottom: 14px;
}

.section-title--on-dark {
  color: var(--color-cream);
}

.section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  font-family: var(--font-caption);
  font-size: 19px;
  font-style: italic;
  color: var(--text-on-parchment-muted);
}

/* Texture helpers */
.tex-parchment {
  background-image: url("../assets/images/09_parchment_texture.jpg");
  background-size: 900px;
  background-repeat: repeat;
}

.tex-filigree {
  background-image: url("../assets/images/10_dark_filigree_texture.jpg");
  background-size: cover;
  background-position: center;
}

.tex-map {
  background-image: url("../assets/images/13_old_map_texture.jpg");
  background-size: 1000px;
  background-repeat: repeat;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 250px;
  padding: 23px 34px;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 5px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-classic), box-shadow 0.25s var(--ease-classic), background 0.25s var(--ease-classic);
  white-space: nowrap;
}

.btn svg,
.btn .btn-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(180deg, #f2d896 0%, #dcb768 38%, #b78a37 78%, #8f691f 100%);
  color: var(--color-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 24px -8px rgba(157, 118, 32, 0.6);
  border-color: #7c5a1c;
}

.btn-gold:hover {
  box-shadow: 0 14px 30px -8px rgba(157, 118, 32, 0.75);
}

.btn-outline-navy {
  background: rgba(8, 14, 28, 0.55);
  color: var(--color-gold-bright);
  border: 1px solid var(--color-gold-line);
}

.btn-outline-navy:hover {
  background: rgba(8, 14, 28, 0.8);
  border-color: var(--color-gold);
}

.btn-outline-gold {
  background: transparent;
  color: var(--color-gold-deep);
  border: 1px solid var(--color-gold-deep);
}

.btn-outline-gold:hover {
  background: rgba(201, 162, 75, 0.1);
}

/* Ornamental divider — built from real HTML/CSS, not an image.
   (The supplied 07/12 "transparent" PNGs carry baked-in opaque
   backgrounds rather than alpha transparency, so they cannot be used
   as free-floating overlay ornaments without showing a visible box.) */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 380px;
  max-width: 80%;
  margin: 26px auto;
  color: var(--color-gold);
}

.ornament-divider .orn-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor 60%, transparent);
}

.ornament-divider .orn-glyph {
  flex-shrink: 0;
  font-size: 19px;
  line-height: 1;
  transform: translateY(-1px);
}

.fleur {
  display: inline-block;
  font-size: 1em;
  color: var(--color-gold);
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Page banner (shared header treatment for interior pages) */
.page-banner {
  position: relative;
  background: linear-gradient(160deg, var(--color-navy-deepest) 0%, var(--color-navy) 70%, var(--color-navy-light) 100%);
  padding: 72px 0 60px;
  text-align: center;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/14_faded_architecture_texture.jpg") no-repeat center / cover;
  opacity: 0.16;
  mix-blend-mode: luminosity;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 12, 23, 0.2) 0%, rgba(7, 12, 23, 0.75) 100%);
}

.page-banner-content {
  position: relative;
  z-index: 1;
}

.page-breadcrumb {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-on-navy-muted);
  margin-bottom: 18px;
}

.page-breadcrumb a {
  color: var(--color-gold);
}

.page-breadcrumb a:hover {
  color: var(--color-gold-bright);
}

.page-title {
  font-size: clamp(32px, 5vw, 52px);
  color: var(--color-cream);
}

.page-title .accent {
  background: linear-gradient(180deg, #f1d9a0 0%, #cda257 55%, #92711f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  margin: 16px auto 0;
  max-width: 600px;
  font-family: var(--font-caption);
  font-style: italic;
  font-size: 18px;
  color: var(--color-gold-bright);
}

/* Site footer (shared across all pages) */
.site-footer {
  background: var(--color-navy-deepest);
  color: var(--text-on-navy-muted);
  padding: 64px 0 28px;
  border-top: 3px solid var(--color-gold-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(201, 162, 75, 0.2);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-brand .monogram {
  width: 46px;
  height: 46px;
  font-size: 22px;
}

.footer-brand-text .name {
  font-family: var(--font-display);
  color: var(--color-gold-bright);
  letter-spacing: var(--tracking-wide);
  font-size: 16px;
}

.footer-brand-text .tag {
  font-size: 10px;
  letter-spacing: var(--tracking-wider);
  color: var(--text-on-navy-muted);
}

.footer-about-text {
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-serif);
  color: var(--color-gold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 18px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-on-navy-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-gold-bright);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 26px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.footer-disclaimer {
  max-width: 900px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-on-navy-muted);
  padding: 0 20px;
}

/* ==========================================================================
   WELCOME MODAL
   ========================================================================== */
.welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 16, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  padding: 1.5rem;
}
.welcome-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.welcome-modal {
  background: #151119;
  border: 1px solid rgba(201, 168, 76, 0.3);
  box-shadow: 0 0 60px rgba(201, 168, 76, 0.15), 0 0 20px rgba(0,0,0,0.8);
  border-radius: 4px;
  padding: 3.5rem 2.5rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.welcome-overlay.show .welcome-modal {
  transform: translateY(0) scale(1);
}

.welcome-symbol img {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 15px rgba(201, 168, 76, 0.4));
  animation: welcomeFloat 4s ease-in-out infinite;
}

@keyframes welcomeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.welcome-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #c9a84c;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.welcome-desc {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  color: rgba(245, 237, 224, 0.75);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.welcome-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.welcome-actions .btn {
  min-width: 140px;
}
