/* =========================================================================
   Omega Bridge Consulting - Main Stylesheet
   -------------------------------------------------------------------------
   EDIT COLORS HERE: change the variables below to rebrand the whole site.
   ========================================================================= */

:root {
  /* Brand palette */
  --navy-900: #0a1826;   /* darkest background */
  --navy-800: #0e2233;   /* section background */
  --navy-700: #12304a;   /* cards / panels */
  --navy-600: #1a3f5c;   /* borders / hovers */
  --accent:   #3db4e0;   /* primary accent (cyan/blue) */
  --accent-dk:#2a90b8;   /* accent hover */
  --ink:      #e8eef5;   /* main text on dark */
  --muted:    #9fb2c6;   /* muted text on dark */
  --white:    #ffffff;
  --light:    #f4f7fa;   /* light section background */
  --light-ink:#1a2b3c;   /* text on light */
  --light-muted:#5a6b7c; /* muted text on light */
  --radius: 10px;
  --maxw: 1200px;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

/* Light-mode overrides (default is dark). Toggled via [data-theme="light"] on <html>. */
[data-theme="light"] {
  --navy-900: #ffffff;
  --navy-800: #f4f7fa;
  --navy-700: #ffffff;
  --navy-600: #dbe4ee;
  --ink: #14293c;
  --muted: #566b7f;
  --light: #eef3f8;
  --light-ink: #14293c;
  --light-muted: #566b7f;
  --shadow: 0 10px 30px rgba(20,41,60,.10);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--navy-900); }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1rem; color: var(--muted); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-alt { background: var(--navy-800); }
.text-center { text-align: center; }
.accent { color: var(--accent); }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; color: var(--accent); font-family: var(--font-body); font-weight: 600; margin-bottom: .5rem; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); text-align: center; text-wrap: balance; }
.section-intro { text-align: center; max-width: 640px; margin: 0 auto 3rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: var(--radius); font-weight: 600; font-family: var(--font-body); cursor: pointer; border: 1px solid transparent; transition: all .2s ease; font-size: .95rem; }
.btn-primary { background: var(--accent); color: #04121d; }
.btn-primary:hover { background: var(--accent-dk); color: #04121d; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--navy-600); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-arrow { transition: transform .2s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(10,24,38,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--navy-700); }
[data-theme="light"] .site-header { background: rgba(255,255,255,.92); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 0; }
  .nav-logo img { height: 72px; width: auto; }
  /* Theme-aware logo swap: white logo on dark theme, navy logo on light theme */
  .logo-on-light { display: none; }
  [data-theme="light"] .logo-on-dark { display: none; }
  [data-theme="light"] .logo-on-light { display: block; }
.nav-menu { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--ink); font-family: var(--font-body); font-weight: 500; font-size: .93rem; padding: .5rem .6rem; border-radius: 6px; white-space: nowrap; }
.nav-menu a:hover, .nav-menu a.active { color: var(--accent); background: var(--navy-700); }
.has-dropdown { position: relative; }
.dropdown-toggle::after { content: "▾"; margin-left: .3rem; font-size: .7rem; }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--navy-700); border: 1px solid var(--navy-600); border-radius: var(--radius); box-shadow: var(--shadow); padding: .4rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease; list-style: none; margin: 0; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; white-space: nowrap; }
.nav-cta { padding: .55rem 1.2rem; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.theme-toggle { background: var(--navy-700); border: 1px solid var(--navy-600); color: var(--ink); width: 40px; height: 40px; border-radius: 8px; cursor: pointer; font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 1.6rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,24,38,.96) 0%, rgba(10,24,38,.82) 45%, rgba(10,24,38,.35) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: 620px; padding: 80px 0; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: #e8eef5; }
.hero-lead { font-size: 1.15rem; color: #e8eef5; opacity: .9; margin-bottom: 2rem; }
/* Hero sits on a dark image in both themes, so keep its text light always. */
[data-theme="light"] .hero h1,
[data-theme="light"] .hero-lead { color: #e8eef5; }
/* Keep the hero's outline button readable on the dark image in both themes. */
.hero .btn-outline,
[data-theme="light"] .hero .btn-outline { color: #e8eef5; border-color: rgba(232, 238, 245, .5); }
.hero .btn-outline:hover,
[data-theme="light"] .hero .btn-outline:hover { color: var(--accent); border-color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--navy-800); border-top: 1px solid var(--navy-700); border-bottom: 1px solid var(--navy-700); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 28px 0; }
.stat { display: flex; align-items: center; gap: 1rem; }
.stat .icon { color: var(--accent); flex-shrink: 0; }
.stat h3 { font-size: 1.6rem; margin: 0; color: var(--ink); }
.stat .stat-label { font-weight: 700; color: var(--ink); font-family: var(--font-body); font-size: .95rem; }
.stat small { display: block; color: var(--muted); font-size: .82rem; }

/* ---------- Feature / service grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card { background: var(--navy-700); border: 1px solid var(--navy-600); border-radius: var(--radius); padding: 1.6rem; transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .icon { color: var(--accent); margin-bottom: 1rem; }
.card h3 { font-size: 1.1rem; }
.card p { font-size: .9rem; margin: 0; }

.feature-card { text-align: center; background: var(--light); border: 1px solid var(--navy-600); border-radius: var(--radius); padding: 1.8rem 1.2rem; transition: transform .2s ease, border-color .2s ease; }
[data-theme="light"] .feature-card { border-color: var(--navy-600); }
.feature-card:hover { transform: translateY(-4px); }
a.feature-card { display: block; text-decoration: none; }
a.feature-card:hover { border-color: var(--accent); }
.feature-card .icon { color: var(--accent); margin-bottom: 1rem; }
.feature-card h3 { color: var(--light-ink); font-size: 1.05rem; }
.feature-card p { color: var(--light-muted); font-size: .88rem; margin: 0; }

.help-section { background: var(--light); }
.help-section .section-title { color: var(--light-ink); }

/* ---------- Why choose (icons row) ---------- */
.why-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; text-align: center; }
.why-item .icon { color: var(--accent); margin-bottom: .8rem; }
.why-item h4 { text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-body); font-size: .95rem; color: var(--accent); }
.why-item p { font-size: .85rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(90deg, var(--navy-700), var(--navy-600)); border-radius: var(--radius); padding: 2.2rem 2.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band .icon { color: var(--accent); }
.cta-band h3 { margin: 0 0 .3rem; }
.cta-band p { margin: 0; }
.cta-left { display: flex; align-items: center; gap: 1.2rem; }

/* ---------- Knowledge hub ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.filter-tab { background: var(--navy-700); border: 1px solid var(--navy-600); color: var(--muted); padding: .45rem 1.1rem; border-radius: 999px; font-size: .85rem; cursor: pointer; transition: all .2s ease; }
.filter-tab:hover { color: var(--ink); }
.filter-tab.active { background: var(--accent); color: #04121d; border-color: var(--accent); font-weight: 600; }
.article-card { background: var(--navy-700); border: 1px solid var(--navy-600); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, border-color .2s ease; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.article-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card .body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.article-meta { display: flex; justify-content: space-between; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: .6rem; }
.article-meta .cat { color: var(--accent); font-weight: 600; }
.article-meta .date { color: var(--muted); }
.article-card h3 { font-size: 1.05rem; }
.article-card p { font-size: .85rem; flex: 1; }
.read-more { color: var(--accent); font-weight: 600; font-size: .85rem; font-family: var(--font-body); }

/* ---------- Split panels (about + services on home) ---------- */
.panel { background: var(--navy-800); border: 1px solid var(--navy-700); border-radius: var(--radius); overflow: hidden; }
.panel-head { background: var(--navy-700); padding: 1rem 1.4rem; border-bottom: 1px solid var(--navy-600); }
.panel-head h2 { margin: 0; font-size: 1.15rem; letter-spacing: 1px; text-transform: uppercase; font-family: var(--font-body); }
.panel-body { padding: 1.6rem; }
.approach-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; text-align: center; margin-top: 1rem; }
.approach-grid .icon { color: var(--accent); }
.approach-grid h4 { margin: .5rem 0 .2rem; font-family: var(--font-body); font-size: .9rem; }
.approach-grid p { font-size: .75rem; }
.mini-stats { display: grid; grid-template-columns: repeat(3,1fr); text-align: center; border-top: 1px solid var(--navy-600); margin-top: 1.4rem; padding-top: 1.2rem; }
.mini-stats h3 { color: var(--accent); margin: 0; font-size: 1.5rem; }
.mini-stats small { color: var(--muted); font-size: .78rem; }
.about-flex { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.2rem; align-items: start; }
.about-flex img { border-radius: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; }
.contact-info .info-item { display: flex; gap: 1rem; margin-bottom: 1.3rem; }
.contact-info .icon { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.contact-info h4 { margin: 0 0 .2rem; font-family: var(--font-body); font-size: .95rem; }
.contact-info p { margin: 0; font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; }
.form-field.full, .form-grid > .full { grid-column: 1 / -1; }
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.contact-list li { display: flex; gap: 1rem; margin-bottom: 1.3rem; font-size: .92rem; color: var(--muted); }
.contact-list .icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-list strong { color: var(--ink); }
.contact-form-wrap { background: var(--navy-800); border: 1px solid var(--navy-700); border-radius: var(--radius); padding: 1.8rem; }
.muted { color: var(--muted); }
.page-hero-lead { max-width: 620px; margin: .8rem auto 0; color: var(--muted); }
label { font-size: .82rem; margin-bottom: .35rem; color: var(--muted); }
input, select, textarea { background: var(--navy-800); border: 1px solid var(--navy-600); border-radius: 8px; padding: .75rem .9rem; color: var(--ink); font-family: var(--font-body); font-size: .92rem; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .8rem; margin-top: .8rem; }
.form-success { background: rgba(61,180,224,.12); border: 1px solid var(--accent); color: var(--ink); padding: 1rem; border-radius: 8px; margin-bottom: 1rem; display: none; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--navy-800); border-bottom: 1px solid var(--navy-700); padding: 60px 0; text-align: center; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { max-width: 620px; margin: 0 auto; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--accent); }

/* ---------- Tools ---------- */
.tool-card { background: var(--navy-700); border: 1px solid var(--navy-600); border-radius: var(--radius); padding: 1.6rem; }
.tool-output { background: var(--navy-800); border: 1px solid var(--navy-600); border-radius: 8px; padding: 1.2rem; margin-top: 1rem; }
.tool-output strong { color: var(--accent); font-size: 1.4rem; }
.range-row { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); }
input[type="range"] { padding: 0; accent-color: var(--accent); width: 100%; }
.tool-card label { display: block; margin-bottom: .5rem; font-size: .9rem; color: var(--ink); }
.tool-card select { width: 100%; margin-bottom: .5rem; }
.tool-note { font-size: .8rem; color: var(--muted); margin-top: .8rem; }
.check-row { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--navy-600); cursor: pointer; }
.check-row input { accent-color: var(--accent); width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); border-top: 1px solid var(--navy-700); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-grid h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; color: var(--ink); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .55rem; }
.footer-grid a { color: var(--muted); font-size: .9rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand img { height: 76px; margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; }
.footer-bottom { border-top: 1px solid var(--navy-700); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 520px; margin: 0 auto; background: var(--navy-700); border: 1px solid var(--navy-600); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow); z-index: 200; display: none; }
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: .85rem; margin: 0 0 1rem; }
.cookie-actions { display: flex; gap: .6rem; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Prose (articles / legal) ---------- */
.container-narrow { max-width: 800px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose .lead { font-size: 1.15rem; color: var(--ink); margin-bottom: 1.4rem; }
.error-section { text-align: center; padding: 100px 0; }
.error-code { font-family: var(--font-head); font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; color: var(--accent); line-height: 1; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }

/* ---------- Article page ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
.article-body { max-width: 100%; }
.article-lead { width: 100%; border-radius: var(--radius); margin-bottom: 1.6rem; }
.article-body .lead { font-size: 1.15rem; color: var(--ink); }
.article-body h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: .6rem; }
.article-body p, .article-body li { color: var(--muted); }
.article-body ul { padding-left: 1.2rem; margin: 1rem 0; }
.article-body li { margin-bottom: .5rem; }
.article-body blockquote { border-left: 3px solid var(--accent); padding: .4rem 0 .4rem 1.2rem; margin: 1.6rem 0; font-size: 1.1rem; color: var(--ink); font-style: italic; }
.article-aside { display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 100px; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin-bottom: .6rem; }
.link-list a { color: var(--muted); font-size: .92rem; }
.link-list a:hover { color: var(--accent); }
.btn-block { display: inline-flex; width: 100%; justify-content: center; margin-top: .4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4, .grid-5, .why-row { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid, .about-flex { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  }
@media (max-width: 720px) {
  .nav-menu { position: fixed; top: 74px; right: 0; height: calc(100vh - 74px); width: 260px; background: var(--navy-800); flex-direction: column; align-items: flex-start; padding: 1.2rem; gap: .2rem; transform: translateX(100%); transition: transform .25s ease; border-left: 1px solid var(--navy-700); overflow-y: auto; }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu li { width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding-left: 1rem; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .grid-5, .why-row, .approach-grid, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
