/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; background: #F5F0EB; color: #1A1A1A; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid #FF6B35; outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(255,107,53,0.25); color: #1A1A1A; }

/* ===== CSS Variables ===== */
:root {
  --color-bg: #F5F0EB;
  --color-text: #1A1A1A;
  --color-accent: #FF6B35;
  --color-blue: #1B3A5E;
  --color-gold: #D4AF37;
  --color-white: #FFFFFF;
  --color-border: #D9D9D9;
  --color-muted: #666666;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1200px;
  --header-height: 60px;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 9999;
  padding: 8px 16px;
  background: #FF6B35;
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 4px 0;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===== Header & Capsule Nav ===== */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 10px 16px; pointer-events: none; }
.capsule-nav { display: flex; align-items: center; justify-content: space-between; max-width: var(--container-max); margin: 0 auto; background: rgba(255,255,255,0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 40px; padding: 8px 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); pointer-events: auto; border: 1px solid rgba(0,0,0,0.04); }
.nav-brand { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--color-blue); display: flex; align-items: center; gap: 2px; }
.nav-brand .gold-dot { color: var(--color-gold); font-size: 1.4em; line-height: 1; }

.nav-links { display: flex; gap: 8px; }
.nav-links a { display: inline-block; padding: 6px 14px; border-radius: 20px; font-size: 0.875rem; font-weight: 600; color: var(--color-text); transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.nav-links a:hover { background: rgba(27,58,94,0.08); color: var(--color-blue); }
.nav-links a:focus-visible { box-shadow: 0 0 0 2px var(--color-accent); background: rgba(255,107,53,0.1); }
.nav-links a[aria-current="page"] { background: var(--color-blue); color: #fff; font-weight: 700; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; padding: 4px; width: 32px; height: 32px; justify-content: center; align-items: center; }
.toggle-bar { display: block; width: 22px; height: 2px; background: var(--color-blue); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
[data-open] .toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
[data-open] .toggle-bar:nth-child(2) { opacity: 0; }
[data-open] .toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu { position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; background: rgba(255,255,255,0.95); backdrop-filter: blur(16px); border-radius: 24px; padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); display: none; }
  .nav-menu[data-open] { display: block; }
  .nav-links { flex-direction: column; gap: 4px; }
  .nav-links a { display: block; padding: 12px 16px; border-radius: 12px; font-size: 1rem; }
  .capsule-nav { position: relative; }
}

/* ===== Footer ===== */
.site-footer { background: var(--color-blue); color: #fff; padding: 40px 20px 24px; margin-top: 80px; border-top: 4px solid var(--color-gold); }
.footer-inner { max-width: var(--container-max); margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.footer-brand .footer-logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.footer-brand .gold-dot { color: var(--color-gold); }
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.7); margin-top: 4px; }
.footer-nav ul { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,0.85); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.footer-nav a:hover { color: var(--color-gold); }
.footer-info { font-size: 0.8125rem; line-height: 1.8; color: rgba(255,255,255,0.65); }
.footer-info a { color: var(--color-gold); }
.footer-note { font-style: italic; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.15); }

@media (max-width: 600px) {
  .footer-nav ul { flex-direction: column; gap: 12px; }
}

/* ===== General Components ===== */
.content-container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }

.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--color-accent); color: #fff; font-weight: 700; font-size: 1rem; padding: 12px 28px; border-radius: 40px; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; }
.btn-primary:hover { background: #e85a2a; transform: scale(1.02); box-shadow: 0 4px 16px rgba(255,107,53,0.3); }
.btn-primary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--color-blue); border: 2px solid var(--color-blue); font-weight: 600; padding: 10px 24px; border-radius: 40px; transition: background 0.2s, color 0.2s; }
.btn-secondary:hover { background: var(--color-blue); color: #fff; }

.section-title { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--color-text); margin-bottom: 24px; }
.section-title.accent { color: var(--color-accent); }

.grid-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-3col { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.card { background: var(--color-white); border-radius: 16px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }

.glass-card { background: rgba(255,255,255,0.6); backdrop-filter: blur(8px); border-radius: 16px; padding: 24px; border: 1px solid rgba(0,0,0,0.05); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.875rem; color: var(--color-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--color-blue); text-decoration: underline; }
.breadcrumb a:hover { color: var(--color-accent); }

/* ===== Scroll Progress Bar ===== */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--color-accent), var(--color-gold)); width: 0%; z-index: 9999; pointer-events: none; transition: width 0.1s linear; }

/* ===== Scroll Top Button ===== */
.scroll-top { position: fixed; bottom: 30px; right: 30px; width: 48px; height: 48px; border-radius: 50%; background: var(--color-blue); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.3s, visibility 0.3s, transform 0.3s; box-shadow: 0 2px 12px rgba(0,0,0,0.15); z-index: 999; }
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--color-accent); }
.scroll-top:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ===== Responsive Images ===== */
.img-responsive { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; background: var(--color-border); }
.img-placeholder { width: 100%; aspect-ratio: 16/9; background: #e8e0d8; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--color-muted); font-size: 0.875rem; }

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .btn-primary:hover { transform: none; }
  .card:hover { transform: none; }
  .scroll-top { transition: none; }
}

/* ===== Utility ===== */
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }

/* ===== Main Content Skip ===== */
#main-content { display: block; min-height: 60vh; }
