:root {
  --bg: #ffffff;
  --fg: #222222;
  --muted: #f3f4f6;
  --muted-foreground: #6b7280;
  --border: #e5e7eb;
  --primary: #1e4d6d; /* navy-800 */
  --primary-contrast: #ffffff;
  --navy-900: #1a3a52;
  --navy-800: #1e4d6d;
  --navy-50: #f0f6fa;
  --gold-500: #c9a961;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 800px; margin: 0 auto; }
.row { display: flex; }
.center { align-items: center; }
.between { justify-content: space-between; }
.gap-sm { gap: .5rem; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-navy { color: var(--navy-800); }
.muted { color: var(--muted-foreground); }
.text-balance { text-wrap: balance; }

/* Header */
.site-header {
  position: fixed; inset: 0 auto auto 0; right: 0; z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
  background: transparent;
}
.site-header .container { padding: 1rem; gap: .75rem; }
.site-header.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(6px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }

.menu-toggle { display: inline-flex; font-size: 1.1rem; line-height: 1; padding: .5rem .625rem; }
.nav { display: none; gap: 1rem; }
@media (min-width: 768px) { .nav { display: flex; } }
.nav-link { background: none; border: 0; padding: .25rem 0; color: rgba(0,0,0,0.7); cursor: pointer; font-weight: 500; }
.nav-link:hover { color: rgba(0,0,0,0.9); }

.btn-ghost { background: transparent; border: 1px solid transparent; color: #111; padding: .375rem .625rem; border-radius: .5rem; cursor: pointer; }
.btn-ghost:hover { background: #f9fafb; }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 1rem; height: 1rem; }

/* Mobile menu behavior */
@media (max-width: 767.98px) {
  .site-header { position: fixed; }
  .site-header.open .nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    padding: .75rem 1rem calc(1rem + env(safe-area-inset-bottom));
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: .5rem;
  }
  .nav-link { padding: .75rem .25rem; text-align: left; font-size: 1rem; }
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: var(--bg); }
.hero-inner { padding: 8rem 1rem; position: relative; z-index: 1; width: 100%; }
.hero-logo { width: min(100%, 520px); height: auto; display: block; margin: 0 auto; }
.hero-pattern { position: absolute; inset: 0; opacity: .03; background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(201,169,97,.25) 35px, rgba(201,169,97,.25) 70px); }
.hero-gradient { position: absolute; left: 0; right: 0; bottom: 0; height: 8rem; background: linear-gradient(to top, rgba(243,244,246,.8), transparent); }

@media (max-width: 767.98px) {
  .hero-inner { padding-top: 6rem; padding-bottom: 5rem; }
}

/* Sections */
.section { padding: 6rem 0; background: var(--bg); }
.section-muted { background: #f7f7f8; }
.section-title { font-family: "Playfair Display", Georgia, serif; font-size: clamp(2rem, 3vw, 3rem); font-weight: 800; text-align: center; margin: 0 0 3.5rem; color: var(--navy-800); }
@media (max-width: 767.98px) {
  .section { padding: 3.5rem 0; }
  .section-title { margin-bottom: 2rem; }
}

/* Cards / Grid */
.grid { display: grid; }
.cards-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.gap-lg { gap: 2rem; }

.card { background: #fff; border: 1px solid var(--border); border-radius: .75rem; padding: 2rem; transition: border-color .2s ease, box-shadow .2s ease; }
.card:hover { border-color: var(--gold-500); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.card-icon { width: 3rem; height: 3rem; border-radius: .75rem; background: var(--navy-50); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .75rem; }
.card-icon img { width: 1.75rem; height: 1.75rem; object-fit: contain; display: block; }
.card-title { font-family: "Playfair Display", Georgia, serif; font-size: 1.25rem; margin: .25rem 0 .5rem; color: var(--navy-800); }
.card-text { color: var(--muted-foreground); line-height: 1.6; font-size: .95rem; }

/* Status */
.status-card { background: #fff; border: 2px solid rgba(30,77,109,.2); border-radius: .85rem; padding: 3rem 2.5rem; text-align: center; }
.status-icon-wrap { display: flex; justify-content: center; margin-bottom: 1rem; }
.status-icon { width: 4rem; height: 4rem; border-radius: 999px; background: rgba(30,77,109,.08); display: inline-flex; align-items: center; justify-content: center; margin-bottom: .75rem; }
.status-icon img { width: 3rem; height: 3rem; object-fit: contain; display: block; }
.status-title { font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.75rem, 2.5vw, 2.25rem); font-weight: 800; margin: 1rem 0 .5rem; color: var(--primary); }
.status-message { font-size: 1.5rem; color: #8a6b28; font-weight: 600; margin: 0 0 .5rem; }
.status-desc { color: var(--muted-foreground); line-height: 1.7; }
@media (max-width: 767.98px) {
  .status-card { padding: 2rem 1.25rem; }
  .status-icon { width: 3.25rem; height: 3.25rem; font-size: 1.25rem; }
  .status-message { font-size: 1.05rem; }
}

/* Imprint */
.imprint-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; background: #fff; border: 1px solid var(--border); border-radius: .75rem; padding: 2rem; }
@media (min-width: 768px) { .imprint-grid { padding: 3rem; } }
.imprint-block {}
.imprint-label { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--muted-foreground); margin: 0 0 .25rem; font-weight: 700; }
.imprint-value { font-size: 1.1rem; color: #111827; line-height: 1.6; margin: 0; }

/* Footer */
.site-footer { background: var(--navy-900); color: #fff; padding: 3rem 0; }
.site-footer .muted { color: #b6c8d6; }
@supports(padding:max(0px)) {
  .site-footer { padding-bottom: max(3rem, calc(2rem + env(safe-area-inset-bottom))); }
}

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px);} to{ opacity:1; transform:none;} }
@keyframes fadeIn { from { opacity: 0;} to{ opacity:1;} }

.animate-on-view { opacity: 0; }
.animate-on-view.in-view.fade-in-up { animation: fadeInUp .8s ease-out forwards; }
.animate-on-view.in-view.fade-in { animation: fadeIn 1s ease-out forwards; }
.stagger-1 { animation-delay: .1s; }
.stagger-2 { animation-delay: .2s; }
.stagger-3 { animation-delay: .3s; }
.stagger-4 { animation-delay: .4s; }
.stagger-5 { animation-delay: .5s; }
.stagger-6 { animation-delay: .6s; }

/* Utilities */
.text-navy { color: var(--navy-800); }
.text-primary { color: var(--primary); }
.text-center { text-align: center; }

/* Focus styles & motion preferences */
:focus-visible { outline: 3px solid rgba(30,77,109,.35); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
