/* AppsOCall shared theme (A3 Midnight). Loaded after each page's own styles. */

:root {
  --navy: #0b1b33;
  --navy-mid: #16305a;
  --blue: #1d6fa4;
  --blue-lt: #e8f1f8;
  --sky: #7dd3fc;
  --slate: #4a5568;
  --slate-lt: #f4f7fb;
  --border: #dde5ef;
}

body { color: #172235; }

/* Headings: serif display, like the home page */
h1, h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; letter-spacing: -0.005em; }
h1 { font-style: normal !important; line-height: 1.06; }
h1 em { font-style: italic !important; color: var(--sky) !important; }
h2 { line-height: 1.12; font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-weight: 600; }

/* Eyebrow labels: quieter, like the home page */
.label {
  background: transparent !important; border: 0 !important; padding: 0 !important;
  border-radius: 0 !important; letter-spacing: 0.2em; font-size: 0.75rem;
  color: var(--blue) !important; margin-bottom: 0.75rem;
}
.hero .label, .section--dark .label, .risk-section .label { color: var(--sky) !important; }

/* Nav */
.nav { background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav__inner { max-width: 1200px; }
.nav__links a { color: #dde6f3; }
.nav__cta {
  background: var(--sky) !important; color: var(--navy) !important;
  padding: 0.6rem 1.1rem !important; font-weight: 600 !important; border-radius: 6px;
}
.nav__cta:hover { background: #a5e1fd !important; text-decoration: none !important; }

/* Hero: flat midnight, no pattern */
.hero { background: var(--navy) !important; padding-top: 5.5rem; padding-bottom: 5.5rem; }
.hero::before { display: none; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
.hero p { color: #c7d5ea; }
.hero__trust-item { color: #9db0cc; }

/* Buttons */
.btn { border-radius: 6px; }
.btn--primary { background: var(--blue); }
.hero .btn--primary, .section--dark .btn--primary, .risk-section .btn--primary {
  background: var(--sky); color: var(--navy);
}
.hero .btn--primary:hover, .section--dark .btn--primary:hover { background: #a5e1fd; }
.btn--outline-white { border-color: #4f6a92; border-width: 1px; }

/* Sections and cards */
.section--alt { background: var(--slate-lt); }
.section--dark, .risk-section { background: var(--navy) !important; }
.service-card, .case-card { border-color: var(--border); }
.service-card:hover { box-shadow: 0 12px 40px rgba(11,27,51,0.10); }

/* Info banner under the nav */
.warning-banner { background: #e8f1f8 !important; border-color: #c7dcee !important; }

/* Line icons that replace the old emoji */
.ico { display: inline-flex; align-items: center; justify-content: center; }
.ico svg { width: 22px; height: 22px; }
.service-icon { background: var(--blue-lt) !important; color: var(--blue); }
.service-icon .ico svg { width: 24px; height: 24px; }
.credential__icon { color: var(--blue); }
.warning-banner__icon { color: var(--blue); }
.case-card__outcome .ico { color: #0f7a3d; vertical-align: -5px; margin-right: 0.35rem; }
.case-card__outcome .ico svg { width: 18px; height: 18px; }
.contact-point .ico { color: var(--sky); vertical-align: -4px; }
.contact-point .ico svg { width: 18px; height: 18px; }

/* About quote */
.about-quote { border-radius: 12px; }
.about-quote p:first-child { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.35rem; line-height: 1.4; color: var(--navy); font-style: normal; }

/* Footer */
.footer { background: #071326 !important; }

/* Let hero headings wrap naturally instead of forced line breaks */
.hero h1 br { display: none; }
.nav__logo svg { height: 42px; }
@media (max-width: 480px) { .hero h1 { font-size: 2.2rem; } }

.contact-wrap > * { min-width: 0; }
.contact-point { overflow-wrap: anywhere; }

/* Mobile menu, shared by every page */
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: #ffffff; border-radius: 2px; }
@media (max-width: 860px) {
  .nav__burger { display: flex; }
  .nav__inner { flex-wrap: wrap; }
  .nav__links { display: none !important; }
  .nav__links.is-open { display: flex !important; flex-direction: column; align-items: flex-start; width: 100%; gap: 1rem; padding: 1rem 0 0.5rem; }
}

/* Blog and articles */
.article-header { background: var(--navy) !important; }
.article-header::before { display: none; }
.article-header h1 { color: #ffffff; font-size: clamp(2rem, 4.4vw, 3rem); }
.article-body h2 { font-size: 1.6rem; }
.article-cta { background: var(--navy) !important; border-radius: 12px; }
.blog-header { background: var(--navy) !important; }
.blog-header::before { display: none; }
.blog-header h1 { color: #ffffff; }

/* Accessibility: contrast fixes (WCAG AA) */
.footer__links a { color: #c7d5ea !important; }
.footer__links a:hover { color: #ffffff !important; }
.footer p, .footer__disclaimer { color: #9db0cc !important; }
.article-header .label, .blog-header .label, .label--white, .hero .label { color: var(--sky) !important; }
.post-featured__badge { color: #92400e !important; }
a[style*="7dd3fc"] { text-decoration: underline; text-underline-offset: 3px; }

/* Footer links layout on pages that never defined it (blog posts) */
.footer__links { display: flex; gap: 0.5rem 1.5rem; justify-content: center; flex-wrap: wrap; margin: 1rem 0 0.5rem; font-size: 0.85rem; }
.footer { text-align: center; }
