/* ============================================================
   BR Innovation & Technology — Global Shared Stylesheet
   Black + Gold premium theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&display=swap');

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

:root {
  --navy:        #050505;
  --gold:        #D4AF37;
  --gold-light:  #f0d060;
  --gold-dark:   #B8860B;
  --dark:        #050505;
  --card-bg:     #161616;
  --border:      rgba(212,175,55,0.2);
  --text:        #FFFFFF;
  --text-muted:  #CFCFCF;
  --white:       #FFFFFF;
  --transition:  all 0.3s ease;
  --radius:      12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: #050505;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--gold) !important;
}

p, li, span, label { color: var(--text); }
small, .muted, .text-muted { color: var(--text-muted); }

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: var(--gold); }

/* ── Prevent horizontal scroll ───────────────────────────── */
html, body { max-width: 100%; overflow-x: hidden; }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: rgba(5,5,5,0.96) !important;
  backdrop-filter: blur(12px);
  padding: 0.85rem 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(212,175,55,0.12);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white) !important;
  font-weight: 700;
  font-size: 1.25rem;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
}

.logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--white) !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold) !important;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile hamburger */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white) !important;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.4rem;
  z-index: 1001;
  transition: color 0.3s;
}

.mobile-menu-btn:hover { color: var(--gold) !important; }

/* ── Hero shared ─────────────────────────────────────────── */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2;
  pointer-events: none;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn,
.btn-primary,
.btn-primary2,
.btn-secondary,
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary,
.btn-primary2 {
  background: var(--gold) !important;
  color: #050505 !important;
  border: 2px solid var(--gold) !important;
}

.btn-primary:hover,
.btn-primary2:hover {
  background: #050505 !important;
  color: var(--gold) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212,175,55,0.25);
}

.btn-secondary {
  background: transparent !important;
  color: var(--white) !important;
  border: 2px solid rgba(212,175,55,0.5) !important;
}

.btn-secondary:hover {
  background: rgba(212,175,55,0.12) !important;
  color: var(--gold) !important;
  border-color: var(--gold) !important;
  transform: translateY(-2px);
}

/* Our Services button fix */
.btn.btn-primary2 {
  background: var(--gold) !important;
  color: #050505 !important;
  border: 2px solid var(--gold) !important;
}

.btn.btn-primary2:hover {
  background: #050505 !important;
  color: var(--gold) !important;
}

/* ── Cards ───────────────────────────────────────────────── */
.card,
.service-card,
.featured-card,
.why-us-card,
.founder-card,
.leadership-card,
.team-card,
.value-card,
.contact-card,
.contact-form {
  background: var(--card-bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.card:hover,
.service-card:hover,
.featured-card:hover,
.why-us-card:hover,
.founder-card:hover,
.leadership-card:hover,
.team-card:hover,
.value-card:hover,
.contact-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(212,175,55,0.5) !important;
  box-shadow: 0 16px 35px rgba(0,0,0,0.45) !important;
}

/* ── Section shared ──────────────────────────────────────── */
section,
.section,
main {
  background: #050505;
}

.section-header,
.section-header2 {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

.section-header h2,
.section-header2 h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  color: var(--gold) !important;
  margin-bottom: 0.75rem;
}

.section-header p,
.section-header2 p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer,
footer {
  background: #050505 !important;
  color: var(--white) !important;
  border-top: 1px solid rgba(212,175,55,0.15);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-logo img { height: 44px; width: auto; object-fit: contain; }

.footer-logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white) !important;
}

.footer-description {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-links h4 {
  color: var(--gold) !important;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--gold);
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 0.75rem; }

.footer-links a {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold) !important;
  transform: translateX(4px);
}

.footer-contact-info .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-contact-info h4 {
  color: var(--gold) !important;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-contact-info h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--gold);
}

.contact-item i {
  color: var(--gold);
  font-size: 1rem;
  padding-top: 0.2rem;
  min-width: 18px;
}

.contact-item .contact-label {
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.contact-item .contact-text,
.contact-item .contact-text a {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.9rem;
}

.contact-item .contact-text a:hover {
  color: var(--gold) !important;
}

/* Social links in footer */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(212,175,55,0.25) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link i {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  color: var(--white) !important;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  transform: translateY(-3px);
}

.social-link:hover i {
  color: #050505 !important;
}

/* Footer bottom */
.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-bottom-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-bottom-text {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.5) !important;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover { color: var(--gold) !important; }

/* ── Chat Widget ─────────────────────────────────────────── */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 360px;
  background: #0d0d0d !important;
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  z-index: 9999;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s ease;
}

.chat-header {
  background: #111111 !important;
  color: var(--white) !important;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(212,175,55,0.2);
  user-select: none;
}

.chat-header span {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white) !important;
}

.chat-header i {
  color: var(--gold) !important;
  transition: transform 0.3s ease;
}

.chat-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: contain;
  background: var(--gold);
}

.chat-body {
  height: 380px;
  display: flex;
  flex-direction: column;
  background: #0d0d0d !important;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,175,55,0.3) transparent;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.3); border-radius: 2px; }

.message {
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 82%;
  word-wrap: break-word;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: msgFadeIn 0.2s ease;
}

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.message.sent {
  background: var(--gold) !important;
  color: #050505 !important;
  margin-left: auto;
  border-bottom-right-radius: 3px;
}

.message.received {
  background: #1e1e1e !important;
  color: var(--white) !important;
  border: 1px solid rgba(212,175,55,0.15);
  border-bottom-left-radius: 3px;
}

.message.typing {
  background: #1e1e1e !important;
  color: var(--text-muted) !important;
  border: 1px solid rgba(212,175,55,0.1);
  font-style: italic;
  opacity: 0.8;
}

.chat-input-container {
  padding: 12px 14px;
  border-top: 1px solid rgba(212,175,55,0.15);
  display: flex;
  gap: 8px;
  background: #111111 !important;
}

.chat-input-container input {
  flex: 1;
  padding: 10px 14px;
  background: #1a1a1a !important;
  border: 1px solid rgba(212,175,55,0.25) !important;
  border-radius: 8px;
  color: var(--white) !important;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

.chat-input-container input::placeholder {
  color: rgba(255,255,255,0.35) !important;
}

.chat-input-container input:focus {
  border-color: rgba(212,175,55,0.5) !important;
}

.chat-input-container button {
  background: var(--gold) !important;
  color: #050505 !important;
  border: none !important;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
}

.chat-input-container button:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

/* ── Scrolling marquee ───────────────────────────────────── */
.scroll-track {
  display: flex;
  gap: 1.5rem;
  animation: infiniteScroll 28s linear infinite;
  width: max-content;
}

.scroll-track:hover { animation-play-state: paused; }

@keyframes infiniteScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Forms ───────────────────────────────────────────────── */
input, textarea, select {
  background: #1a1a1a !important;
  color: var(--white) !important;
  border: 1px solid rgba(212,175,55,0.2) !important;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(212,175,55,0.5) !important;
}

input::placeholder, textarea::placeholder {
  color: rgba(255,255,255,0.3) !important;
}

label { color: var(--gold) !important; font-weight: 500; }

/* ── Accessibility ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Lazy loading ────────────────────────────────────────── */
img {
  transition: opacity 0.4s ease;
}

/* ── Responsive Navbar ───────────────────────────────────── */
@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(5,5,5,0.98);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0.5rem 0 1rem;
    border-bottom: 1px solid rgba(212,175,55,0.2);
    z-index: 999;
    backdrop-filter: blur(10px);
  }

  .nav-links.active { display: flex; }

  .nav-links li { width: 100%; text-align: center; }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-links a::after { display: none; }

  /* Chat mobile fullscreen */
  .chat-widget {
    width: 100% !important;
    height: 100dvh !important;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    border-radius: 0 !important;
    display: none;
    flex-direction: column;
  }

  .chat-widget.mobile-open {
    display: flex !important;
  }

  .chat-widget .chat-body {
    flex: 1;
    height: auto !important;
    display: flex !important;
  }

  /* Footer responsive */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0 2rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .logo { font-size: 1rem; }
  .logo img { height: 30px; }

  .nav-container { padding: 0 1rem; }
}

/* Floating chat toggle button for mobile */
.chat-toggle-fab {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: var(--gold);
  color: #050505;
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 4px 20px rgba(212,175,55,0.4);
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chat-toggle-fab:hover {
  background: var(--gold-light);
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .chat-toggle-fab { display: flex; }
  /* Hide desktop widget on mobile */
  .chat-widget:not(.mobile-open) {
    display: none !important;
  }
}

/* Home button - REMOVE this from pages */
.home-btn { display: none !important; }
