/* =============== Gadget Insight — Minimal Brand Layer (v6, formatted) =============== */

/* Tokens */
:root {
  --primary: #007B94;
  --primary-700: #005a6a;
  --primary-800: #004553;
  --primary-600: #006b81;

  --accent: #00CFFF;
  --cta: #FFC107;

  --surface: #ffffff;
  --surface-contrast: #F3F5F7;
  --surface-border: rgba(11,18,32,.08);

  --text: #0B1220;
  --muted: #3E4B5F;

  --dark: #0F172A;
  --on-dark: #F3F5F7;
  --on-dark-soft: rgba(255,255,255,.85);

  --focus: #00CFFF;
  --shadow-sm: 0 2px 12px rgba(11,18,32,.06);
}

/* Base */
html { 
  scroll-behavior: smooth;
 }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--surface);
}

h1, h2, h3, .navbar-brand { font-family: 'Libre Baskerville', serif; }
p { color: var(--muted); }

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover,
a:focus {
  color: var(--primary-700);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px dashed var(--focus);
  outline-offset: 3px;
}

/* Tiny semantic utilities */
.bg-contrast { 
  background: var(--surface-contrast) !important; 
}

.gi-text-primary { 
  color: var(--primary) !important; 
}

.gi-bg-primary { 
  background: var(--primary) !important; 
}

.gi-bg-accent { 
  background: var(--accent) !important; 
}

.gi-muted { 
  color: var(--muted) !important; 
}

/* CTA */
.cta {
  background: var(--cta) !important;
  color: #000 !important; /* contrast-safe on #FFC107 */
}
.cta:hover { filter: brightness(0.95); }

/* Buttons */
.btn-main {
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
}
.btn-main:hover {
  background: #fff;
  color: var(--primary);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* CTA button (site-wide token) */
.btn-cta{
  background: var(--cta);
  color: #000;
  border: 1px solid var(--cta);
}
.btn-cta:hover{
  filter: brightness(0.95);
  color: #000;
  text-decoration: none;
}




/* Base navigation (shared across light/dark) */
.gi-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--surface-border);
  transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.gi-nav.scrolled { box-shadow: var(--shadow-sm); }

.gi-brand { padding: 0; margin: 0; line-height: 1; }
.gi-logo  { height: 42px; width: auto; display: block; }

.gi-toggler {
  padding: 0;
  margin: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: transparent;
}
.gi-toggler .navbar-toggler-icon { filter: invert(25%); }

.gi-nav-list .nav-item { margin: 0 .25rem; }

.gi-link {
  position: relative;
  color: var(--text) !important;
  padding: .5rem .25rem;
  text-decoration: none;
  transition: color .18s;
}
.gi-link:hover,
.gi-link:focus {
  color: var(--primary) !important;
  text-decoration: none;
  outline: none;
}
.gi-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s;
}
.gi-link:hover::after,
.gi-link:focus::after { transform: scaleX(1); }

.gi-link[aria-current="page"] {
  color: var(--primary-700) !important;
  font-weight: 700;
}


/* Dark navigation (only affects the header when .gi-nav--dark is present) */
.gi-nav.gi-nav--dark {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.gi-nav.gi-nav--dark.scrolled { box-shadow: var(--shadow-sm); }

/* Links on dark */
.gi-nav.gi-nav--dark .gi-link {
  color: var(--on-dark-soft) !important;
}
.gi-nav.gi-nav--dark .gi-link:hover,
.gi-nav.gi-nav--dark .gi-link:focus {
  color: var(--on-dark) !important;
  text-decoration: none;
}

.gi-nav.gi-nav--dark .gi-link::after {
  background: var(--accent); /* brighter underline on dark */
}




/* Brand/toggler on dark */
.gi-nav.gi-nav--dark .gi-brand { 
  color: var(--on-dark); 
}
 
.gi-nav.gi-nav--dark .gi-toggler {
  border-color: rgba(255,255,255,.25);
  background: transparent;
}

.gi-nav.gi-nav--dark .gi-toggler .navbar-toggler-icon {
  filter: invert(100%);
  opacity: .9;
}


/* Components */
.gi-card,
.gi-panel {
  background: #fff;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-sm);
}

.gi-callout {
  background: #E8F9FF;
  border: 1px solid #D6F2FF;
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: .5rem;
}
.gi-callout-title {
  color: var(--primary);
  letter-spacing: .04em;
}

.border-start.border-4.gi-emphasis-left {
  border-left-width: 4px !important;
  border-left-color: var(--accent) !important;
}

/* Dark band + Footer */
.gi-section-dark { 
  background: var(--dark); 
}

.gi-text-on-dark { 
  color: var(--on-dark); 
}

.gi-text-on-dark-soft { 
  color: var(--on-dark-soft); 
}

.gi-footer-min {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}

.gi-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.gi-copy { 
  color: rgb(158, 158, 158); 
  margin: 0; 
  font-size: .95rem; 
}

.gi-links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.gi-links li { 
  list-style: none; margin: 0; padding: 0; 
}

.gi-links li::marker { 
  content: none; 
}

.gi-footer-link {
  color: white;
  text-decoration: none;
  font-size: .95rem;
}
.gi-footer-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
