/* ============================================================
   Lidera Consulting Group — Shared Stylesheet
   Design tokens, global resets, layout primitives,
   header, footer, cookie banner, back-to-top, toast
   ============================================================ */

/* ── Custom Properties ── */
:root {
  --navy:       #1C3557;
  --navy-dark:  #15294a;
  --navy-light: #2a4f7c;
  --gold:       #B8862E;
  --gold-dark:  #9a6f24;
  --terra:      #D4563C;
  --terra-dark: #b84028;
  --bg-light:   #F8F5F0;
  --text-dark:  #1E1E2E;
  --white:      #ffffff;
  --border:     #e6e2db;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.14);
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --font-head:  'Cormorant Garamond', Georgia, serif;
  --font-body:  'Jost', system-ui, sans-serif;
  --header-h:   72px;
  --transition: 0.2s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; }

address { font-style: normal; }

/* ── Typography utilities ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--navy);
}

/* ── Accessibility ── */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--navy-dark);
  border-top: 3px solid var(--gold);
  padding: 1.2rem 2rem;
  transform: translateY(0);
  transition: transform 0.4s ease;
}
.cookie-banner.hidden {
  transform: translateY(110%);
}
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-content p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
  flex: 1;
  min-width: 260px;
}
.cookie-content p a {
  color: var(--gold);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-btn-accept {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-btn-accept:hover { background: var(--gold-dark); }
.cookie-btn-config {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.cookie-btn-config:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

/* ============================================================
   STICKY HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s, background 0.3s;
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--navy);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.logo-text strong {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Nav */
.main-nav { display: flex; }
.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-list > li > a:hover { color: var(--navy); background: rgba(28,53,87,0.05); }
.nav-list > li > a.nav-active { color: var(--navy); font-weight: 700; }
.nav-list > li > a.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-left: 0.5rem;
}
.nav-list > li > a.nav-cta:hover { background: var(--navy-dark); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-dark);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.dropdown li a:hover {
  background: var(--bg-light);
  color: var(--navy);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background var(--transition);
  flex-shrink: 0;
}
.hamburger:hover { background: rgba(0,0,0,0.05); }
.hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 999;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    width: 100%;
  }
  .nav-list > li > a {
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
  }
  .nav-list > li > a.nav-cta { margin: 0.5rem 0 0; padding: 0.9rem 1rem; text-align: center; justify-content: center; }
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--bg-light);
    opacity: 1;
    pointer-events: all;
    transform: none;
    border-radius: 8px;
    margin-top: 0.3rem;
  }
  .has-dropdown .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.3rem;
  align-items: center;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}
.breadcrumb li::before {
  content: '/';
  margin-right: 0.3rem;
  opacity: 0.5;
}
.breadcrumb li:first-child::before { display: none; }
.breadcrumb li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--transition);
}
.breadcrumb li a:hover { color: var(--white); }
.breadcrumb li[aria-current="page"] { color: rgba(255,255,255,0.9); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #111827;
  color: rgba(255,255,255,0.75);
  margin-top: auto;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4.5rem 2rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  text-decoration: none;
}
.footer-logo .logo-mark {
  background: var(--gold);
}
.footer-logo span:not(.logo-mark) {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}
.footer-logo strong { color: var(--white); }
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.5rem;
}
.footer-social {
  display: flex;
  gap: 0.7rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--white);
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
  line-height: 1.5;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-col address p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.footer-col address a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col address a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 46px;
  height: 46px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--gold); }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-notification {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  z-index: 8000;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 340px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  line-height: 1.5;
}
.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.toast-notification.success { background: #1a6b3a; border-left: 4px solid #4ade80; }
.toast-notification.error   { background: #8b1a1a; border-left: 4px solid #f87171; }
.toast-notification.info    { background: var(--navy); border-left: 4px solid var(--gold); }

/* ============================================================
   MAIN CONTENT OFFSET (for sticky header)
   ============================================================ */
main { padding-top: var(--header-h); }

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.section-padded {
  padding: 5rem 2rem;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================================
   RESPONSIVE UTILITY
   ============================================================ */
@media (max-width: 480px) {
  :root { --header-h: 64px; }
  .cookie-content { flex-direction: column; gap: 1rem; }
  .cookie-actions { width: 100%; justify-content: stretch; }
  .cookie-btn-accept, .cookie-btn-config { flex: 1; text-align: center; }
  .back-to-top { bottom: 1rem; right: 1rem; }
  .toast-notification { right: 1rem; left: 1rem; max-width: unset; bottom: 5rem; }
}
