:root {
  --color-navy: #0d1b2a;
  --color-navy-light: #1b3249;
  --color-gold: #c9973a;
  --color-gold-light: #e8b86d;
  --color-off-white: #f5f3ef;
  --color-dark: #1e1e1e;
  --color-text-muted: #6b7280;
  --shadow-soft: 0 18px 40px rgba(13, 27, 42, 0.12);
  --shadow-strong: 0 24px 60px rgba(13, 27, 42, 0.2);
  --transition-base: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fallback Font Awesome Fonts */
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src:
    url('https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/webfonts/fa-regular-400.woff2') format('woff2'),
    url('https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/webfonts/fa-regular-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src:
    url('https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/webfonts/fa-solid-900.woff2') format('woff2'),
    url('https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/webfonts/fa-solid-900.ttf') format('truetype');
}

@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src:
    url('https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/webfonts/fa-brands-400.woff2') format('woff2'),
    url('https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.2/webfonts/fa-brands-400.ttf') format('truetype');
}
  --transition-base: 0.3s ease;
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "DM Sans", sans-serif;
  color: var(--color-dark);
  background: #fff;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

/* Font Awesome Icons - Enhanced Display Rules */
.fa, [class^="fa-"], [class*=" fa-"] {
  --fa-style-family: 'Font Awesome 6 Free';
  --fa-font-regular: normal 400 1em/1 'Font Awesome 6 Free';
  display: inline-block;
  font-weight: inherit;
  line-height: 1;
  font-variant: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
}

i[class*="fa-"] {
  display: inline-block !important;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: auto;
  height: auto;
}

.fa-solid,
.fas {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  display: inline-block !important;
}

.fa-brands,
.fab {
  font-family: 'Font Awesome 6 Brands';
  font-weight: 400;
  display: inline-block !important;
}

a,
button,
input,
select,
textarea {
  transition: color var(--transition-base), background-color var(--transition-base),
    border-color var(--transition-base), transform var(--transition-base),
    opacity var(--transition-base), box-shadow var(--transition-base);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  font-size: inherit;
}

textarea {
  resize: vertical;
}

/* Ensure icon visibility in buttons and containers */
button i {
  pointer-events: none;
  margin-right: 0.5rem;
}

button i:last-child {
  margin-right: 0;
}

[hidden] {
  display: none !important;
}

.page-hero-overlay {
  opacity: 0.34;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

::selection {
  background: var(--color-gold);
  color: var(--color-navy);
}

/* Shared Layout */
.section-shell {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-intro {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  text-align: center;
}

.section-kicker {
  margin: 0;
  color: var(--color-gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-title {
  margin: 12px 0 0;
  color: var(--color-navy);
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.section-divider {
  width: 40px;
  height: 3px;
  margin: 16px auto 0;
  background: var(--color-gold);
}

.section-copy {
  margin: 24px auto 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.9;
}

/* Header */
#site-header.is-scrolled {
  background: rgba(13, 27, 42, 0.92);
  box-shadow: 0 12px 32px rgba(13, 27, 42, 0.22);
}

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.is-open {
  max-height: 420px;
  opacity: 1;
}

.nav-link.is-active {
  color: var(--color-gold-light) !important;
}

.nav-link.is-active::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 10px;
  background: var(--color-gold);
}

/* Cards and Panels */
.premium-card {
  box-shadow: var(--shadow-soft);
}

.premium-card:hover {
  box-shadow: var(--shadow-strong);
}

.panel-surface {
  border: 1px solid rgba(13, 27, 42, 0.1);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

/* Swiper */
.testimonial-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(13, 27, 42, 0.2);
  opacity: 1;
}

.testimonial-pagination .swiper-pagination-bullet-active {
  background: var(--color-gold);
}

/* Gallery and Lightbox */
.gallery-trigger,
.gallery-item {
  cursor: pointer;
}

.gallery-item {
  margin-bottom: 1rem;
  break-inside: avoid;
}

.gallery-item.is-hidden {
  display: none;
}

#lightbox.is-open {
  pointer-events: auto;
  opacity: 1;
}

body.lightbox-open {
  overflow: hidden;
}

/* Timeline */
.timeline-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 1fr);
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) rgba(13, 27, 42, 0.08);
}

.timeline-strip::-webkit-scrollbar {
  height: 8px;
}

.timeline-strip::-webkit-scrollbar-thumb {
  background: var(--color-gold);
}

.timeline-card {
  position: relative;
  padding: 28px;
  border-top: 3px solid var(--color-gold);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: 28px;
  top: -10px;
  width: 18px;
  height: 18px;
  border: 4px solid var(--color-navy);
  background: var(--color-gold);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid rgba(13, 27, 42, 0.1);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  text-align: left;
  color: var(--color-navy);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  color: var(--color-text-muted);
}

.faq-item.is-open .faq-content {
  max-height: 240px;
  padding-bottom: 24px;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

/* Filters */
.filter-tab.is-active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-navy);
}

/* Form */
.contact-field {
  width: 100%;
  border: 1px solid rgba(13, 27, 42, 0.14);
  background: #fff;
  padding: 14px 16px;
  color: var(--color-dark);
}

.contact-field::placeholder {
  color: rgba(107, 114, 128, 0.82);
}

.contact-field.is-invalid {
  border-color: #dc2626;
  background: #fef2f2;
}

.form-error {
  margin-top: 6px;
  color: #dc2626;
  font-size: 0.9rem;
}

.form-success {
  padding: 16px 18px;
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #166534;
}

/* Utilities */
.subtle-pattern {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(201, 151, 58, 0.06) 0,
    rgba(201, 151, 58, 0.06) 2px,
    transparent 2px,
    transparent 20px
  );
}

.off-white-surface {
  background: var(--color-off-white);
}

/* Responsive */
@media (max-width: 767px) {
  .section-shell {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .nav-link.is-active::after {
    margin-top: 8px;
  }
}