/**
 * FCAL Critical CSS
 * Above-the-fold styles for fastest initial render.
 * Non-critical styles load asynchronously via main.css.
 */

/* CSS Variables */
:root {
  --ink: #0d1b3e;
  --ink2: #1a3060;
  --ink3: #2b4a8c;
  --g1: #d4a017;
  --g2: #e8c145;
  --glt: #fdf6e0;
  --gdk: #a07810;
  --tl: #1a6b68;
  --tlm: #22857f;
  --tllt: #daf2f0;
  --pale: #f0f3fa;
  --bdr: #e2e2e2;
  --white: #fff;
  --txt: #1a1a2e;
  --txt2: #52556a;
  --rd: #b22828;
  --off: #f7f6f4;
  --gold-grad: linear-gradient(135deg, #d4a017 0%, #f0c840 50%, #c99010 100%);
  --navy-grad: linear-gradient(135deg, #0d1b3e 0%, #1a3060 100%);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--txt);
  background: #fdfcf9;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0; outline: 3px solid var(--g1); outline-offset: 2px; }

/* Scroll Progress */
#prog {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gold-grad);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Alert Banner */
.alert-bar {
  background: #b22828;
  color: #fff;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.alert-bar a { color: var(--g2); font-weight: 700; text-decoration: none; }
.alert-bar a:hover { text-decoration: underline; }
.alert-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
}
.alert-close:hover { color: #fff; }

/* Strip */
.strip {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 8px 0;
  font-size: 0.78rem;
}
.strip .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.strip a { color: rgba(255,255,255,0.7); text-decoration: none; }
.strip a:hover { color: #fff; }
.strip svg { width: 14px; height: 14px; vertical-align: middle; margin-right: 4px; }
.dot { display: inline-block; width: 8px; height: 8px; background: #22c55e; border-radius: 50%; margin-right: 6px; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Navigation */
nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 226, 226, 0.5);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}
nav.sc { box-shadow: 0 2px 20px rgba(13, 27, 62, 0.1); }
.navi { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; gap: 16px; min-width: 0; }
.logo-blk { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); flex-shrink: 0; min-width: 0; }
.logo-img { width: 58px; height: 58px; border-radius: 9px; object-fit: contain; border: 1.5px solid rgba(212,160,23,.2); box-shadow: 0 2px 8px rgba(13,27,62,.1); flex-shrink: 0; background: #fff; }
.logo-txt { display: flex; flex-direction: column; min-width: 0; }
.ln { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 700; line-height: 1.1; }
.ln span { color: var(--g1); }
.lm { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 0.7rem; color: var(--txt2); }
.logo-pill { background: var(--tl); color: #fff; padding: 2px 8px; border-radius: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* Nav Links */
.nl { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
.nl a {
  display: block;
  padding: 8px 12px;
  color: var(--txt2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.nl a:hover { background: var(--pale); color: var(--ink); }
.nl a.active { background: var(--ink); color: #fff; }
.nc { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nc .ph { display: none; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 800; color: var(--txt); }
.nc .ph svg { width: 16px; height: 16px; color: var(--g1); flex-shrink: 0; }
.nc .btn { padding: 12px 24px; border-radius: 30px; }

/* Mobile Nav Toggle */
.nav-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
.hbg { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 5px; }
.hbg span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }
.mob { display: none; background: #fff; border-top: 1px solid var(--bdr); padding: 18px 24px 26px; box-shadow: 0 8px 24px rgba(13, 27, 62, .08); }
.mob.op { display: block; }
.mob a { display: block; padding: 12px; font-size: .95rem; font-weight: 700; color: var(--txt); border-bottom: 1px solid var(--bdr); border-radius: 6px; }

/* Hero */
.hero {
  background: var(--navy-grad);
  color: #fff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,160,23,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 8s infinite alternate;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26,107,104,0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 6s infinite alternate-reverse;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.2); opacity: 1; } }
.hero-content { position: relative; z-index: 10; max-width: 750px; margin: 0 auto; padding: 0 26px; }
.hero-badge { display: inline-block; padding: 6px 16px; border-radius: 30px; background: rgba(212, 160, 23, 0.15); border: 1px solid rgba(212, 160, 23, 0.3); color: var(--g2); font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-family: 'Cormorant Garamond', serif; font-size: 4.2rem; margin: 0 0 20px; line-height: 1.1; text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.hero h1 em { color: var(--g2); font-style: italic; }
.hero p { opacity: 0.85; font-size: 1.2rem; line-height: 1.7; margin: 0; }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.btn-g { background: var(--gold-grad); color: var(--ink); box-shadow: 0 4px 16px rgba(212, 160, 23, 0.3); }
.btn-g:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212, 160, 23, 0.4); }
.btn-n { background: var(--ink); color: #fff; box-shadow: 0 4px 16px rgba(13, 27, 62, 0.2); }
.btn-n:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13, 27, 62, 0.3); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 26px; }

/* Typography */
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; color: var(--ink); margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
.ttl { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; color: var(--ink); font-weight: 700; margin: 0 0 10px; line-height: 1.15; }
.sub { color: var(--txt2); font-size: 1.05rem; max-width: 680px; line-height: 1.7; }
.lbl { display: inline-block; background: rgba(26, 107, 104, 0.1); color: var(--tl); padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.gln { width: 60px; height: 3px; background: var(--gold-grad); margin: 14px auto 0; border-radius: 2px; }
.gln.cx { margin-left: 0; }

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Back to Top */
#btt {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
  z-index: 999;
}
#btt.vis { opacity: 1; visibility: visible; }
#btt:hover { background: var(--ink2); transform: translateY(-2px); }

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 2.5rem; }
  .strip .container { flex-direction: column; text-align: center; }
  .nl { display: none; }
  .nc .btn,
  .nc .ph { display: none; }
  .hbg { display: flex; flex: 0 0 auto; margin-left: auto; }
  .nav-toggle { display: block; }
  .navi { height: 72px; padding: 0; }
  .logo-blk { flex-shrink: 1; max-width: calc(100% - 50px); }
  .ln { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lm { gap: 4px; flex-wrap: wrap; }
  .logo-yr { display: none; }
  .logo-img { width: 46px; height: 46px; }
}
