/* ============================================================
   AVaaS Shared Styles — avaas-shared.css
   Shared across all pages: variables, reset, header, footer,
   buttons, typography, layout, and responsive base.
   ============================================================ */

/* ---- Variables ---- */
:root {
  --white: #FFFFFF;
  --bg: #FAFAFA;
  --bg-warm: #E8E6E0;
  --bg-navy: #1B2A4A;
  --bg-navy-light: #243559;
  --border: #B0B8C1;
  --border-dark: #8B95A0;
  --navy: #1B2A4A;
  --navy-mid: #2C4066;
  --slate: #4A5568;
  --text: #1F2937;
  --text-light: #374151;
  --text-faint: #4B5563;
  --heading: #111827;
  --accent: #1B6B5A;
  --accent-light: #F0F7F5;
  --green: #22C55E;
  --red: #991B1B;
  --red-bg: #FDF2F2;
  --red-border: #F5D0D0;
  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

/* ---- Layout ---- */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 32px; }

/* ---- Notice bar ---- */
.notice { background: var(--bg-warm); border-bottom: 1px solid var(--border); padding: 10px 32px; text-align: center; font-size: 13px; color: var(--slate); text-wrap: balance; }
.notice strong { color: var(--red); font-weight: 600; }

/* ---- Header ---- */
header { padding: 14px 0; border-bottom: none; background: var(--bg-navy); position: sticky; top: 0; z-index: 100; }
header .wrap { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--mono); font-size: 17px; font-weight: 500; color: var(--white); text-decoration: none; letter-spacing: 1px; }
.header-nav { display: flex; align-items: center; gap: 20px; }
.header-nav > a { font-size: 13px; color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 500; white-space: nowrap; }
.header-nav > a:hover { color: var(--white); }
.header-cta { background: var(--white); color: var(--navy) !important; padding: 7px 16px; border-radius: 4px; font-size: 12px !important; font-weight: 600 !important; transition: opacity 0.2s; white-space: nowrap; }
.header-cta:hover { opacity: 0.9 !important; }
.hamburger { display: none; }

/* ---- Dropdown menu ---- */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown > a { cursor: pointer; font-size: 13px; color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 500; white-space: nowrap; }
.nav-dropdown > a:hover { color: var(--white); }
.nav-dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 260px; background: var(--white); border: 1.5px solid var(--border); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 8px 0; opacity: 0; visibility: hidden; transition: opacity 0.15s, visibility 0.15s; z-index: 200; padding-top: 16px; }
.nav-dropdown-menu::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 20px; }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; }
.nav-dropdown-menu a { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; font-size: 13px; color: var(--text); text-decoration: none; transition: background 0.1s; line-height: 1.4; white-space: nowrap; font-weight: 400; }
.nav-dropdown-menu a:hover { background: var(--bg-warm); color: var(--navy); }
.nav-dropdown-menu a .dd-name { font-weight: 500; }
.nav-dropdown-menu a .dd-status { font-family: var(--mono); font-size: 10px; letter-spacing: 0.5px; color: var(--text-faint); flex-shrink: 0; margin-left: 16px; }
.nav-dropdown-menu a .dd-status.live { color: var(--accent); }
.nav-dropdown-menu a .dd-status.soon { color: var(--red); }
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* ---- Buttons ---- */
.btn-primary { display: inline-block; background: var(--navy); color: var(--white); padding: 12px 28px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 14px; transition: background 0.2s; }
.btn-primary:hover { background: var(--navy-mid); }
.btn-secondary { display: inline-block; color: var(--text-faint); padding: 12px 20px; text-decoration: none; font-weight: 500; font-size: 14px; transition: color 0.2s; }
.btn-secondary:hover { color: var(--heading); }

/* ---- Section base ---- */
.section { padding: 80px 0; }
.section-warm { background: var(--bg-warm); }
.section-navy { background: var(--bg-navy); }
.section-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 2.5px; color: var(--text-faint); text-transform: uppercase; margin-bottom: 14px; }
.section-heading { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--heading); margin-bottom: 16px; max-width: 700px; text-wrap: balance; line-height: 1.2; letter-spacing: -0.3px; }
.section-intro { font-size: 16px; color: var(--text-light); margin-bottom: 40px; max-width: 640px; line-height: 1.75; text-wrap: pretty; }

/* ---- CTA section ---- */
.cta-section { padding: 80px 0; text-align: center; background: var(--bg-navy); border-bottom: none; }
.cta-section h2 { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--white); margin-bottom: 12px; max-width: 540px; margin-left: auto; margin-right: auto; text-wrap: balance; }
.cta-section p { font-size: 15px; color: rgba(255,255,255,0.7); margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.7; text-wrap: pretty; }
.cta-section .btn-primary { background: var(--white); color: var(--navy); }
.cta-section .btn-primary:hover { opacity: 0.9; }
.cta-contact { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,0.45); }
.cta-contact a { color: rgba(255,255,255,0.6); text-decoration: none; }
.cta-contact a:hover { color: var(--white); }

/* ---- Footer ---- */
footer { padding: 32px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.8; background: #141F33; }
footer a { color: rgba(255,255,255,0.5); text-decoration: none; }
footer a:hover { color: var(--white); }

/* ---- Responsive: shared elements ---- */
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .notice { padding: 10px 20px; font-size: 12px; line-height: 1.5; }
  header .wrap { gap: 12px; position: relative; }
  .logo svg { width: 180px; height: auto; }
  .hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; z-index: 201; margin-left: auto; }
  .hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.8); border-radius: 1px; transition: transform 0.2s, opacity 0.2s; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-nav { gap: 0; display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-navy); border-top: 1px solid rgba(255,255,255,0.1); padding: 8px 0; z-index: 200; }
  .header-nav.open { display: flex; }
  .header-nav > a { display: block; padding: 12px 24px; font-size: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .header-nav > a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
  .header-nav > a.header-cta { margin: 8px 16px; padding: 10px 20px; text-align: center; border-radius: 4px; border-bottom: none; }
  .nav-dropdown { width: 100%; display: block; }
  .nav-dropdown > a { display: block !important; padding: 12px 24px; font-size: 14px; color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.06); cursor: pointer; }
  .nav-dropdown-menu { position: static; opacity: 1 !important; visibility: visible !important; min-width: auto; background: rgba(255,255,255,0.03); border: none; border-radius: 0; box-shadow: none; padding: 0; margin: 0; display: none; transform: none; left: auto; }
  .nav-dropdown-menu.mobile-open { display: block; }
  .nav-dropdown-menu a { padding: 10px 24px 10px 40px; font-size: 13px; color: rgba(255,255,255,0.6) !important; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .nav-dropdown-menu a:hover { background: rgba(255,255,255,0.05); color: var(--white) !important; }
  .nav-dropdown-menu a .dd-status { color: rgba(255,255,255,0.4) !important; }
  .nav-dropdown-menu a .dd-status.live { color: var(--accent) !important; }
  .nav-dropdown-menu a .dd-status.soon { color: #F87171 !important; }
  .nav-dropdown-divider { background: rgba(255,255,255,0.06); margin: 4px 24px; }
  .header-cta { padding: 7px 14px; font-size: 12px !important; white-space: nowrap; }
  .section { padding: 48px 0; }
  .section-heading { font-size: 26px; }
  .section-intro { font-size: 14px; }
  .cta-section { padding: 48px 0; }
  .cta-section h2 { font-size: 26px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
}
