/* ==========================================================================
   BayConnect — Design Tokens
   An MSE Subsidiary of Bay Datacom Solutions
   ========================================================================== */

:root {
  /* Color — aligned to Bay Datacom's live palette: medium blue + coral-red accent */
  --navy-900: #1b3b6f;   /* deep blue, used sparingly (footer, dark bands) */
  --navy-800: #2f5fad;   /* primary brand blue — headings, links, active nav */
  --navy-700: #3d6fc0;   /* hover state */
  --steel-600: #5b6670;  /* body copy grey, matches Bay Datacom's paragraph grey */
  --steel-300: #aab2ba;  /* borders, muted */
  --grey-100: #f4f6f8;   /* section backgrounds */
  --grey-050: #fafbfc;   /* card backgrounds */
  --white: #ffffff;
  --gold-600: #e2503b;   /* coral-red CTA accent, matches Bay Datacom's "Enquire Today" button */
  --gold-050: #fdece8;
  --ink-900: #333d47;    /* body text */
  --success-700: #1e6b45;
  --border: #e2e6ea;

  /* Type — rounded, friendly headings (Baloo 2) + clean body (Open Sans), matching Bay Datacom's type feel */
  --font-display: 'Baloo 2', 'Arial Rounded MT Bold', sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Layout */
  --container: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-card: 0 1px 3px rgba(13,35,64,0.08), 0 1px 2px rgba(13,35,64,0.06);
  --shadow-hover: 0 8px 24px rgba(13,35,64,0.12);
}

/* ---- Reset ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy-800);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { color: var(--ink-900); }
.lede { font-size: 1.15rem; color: var(--steel-600); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-alt { background: var(--grey-100); }
.section-navy { background: var(--navy-900); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  display: block;
  margin-bottom: 10px;
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin-top: 12px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: all 0.18s ease;
}
.btn-primary { background: var(--gold-600); color: var(--white); }
.btn-primary:hover { background: #c9432f; transform: translateY(-1px); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-navy { border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline-navy:hover { background: var(--navy-800); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* ---- Top bar ---- */
.topbar {
  background: var(--grey-100);
  color: var(--steel-600);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
}
.topbar-links { display: flex; gap: 22px; }
.topbar-links a:hover { color: var(--navy-800); }
.topbar-contact { display: flex; gap: 22px; }
.topbar-contact span { display: inline-flex; align-items: center; gap: 6px; }

/* ---- Header / Nav ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 90px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 30px 15px;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #4a5563;
  border-bottom: 2px solid transparent;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { color: var(--navy-800); border-bottom-color: var(--navy-800); }
.main-nav .cta-link a {
  background: var(--gold-600);
  color: var(--white) !important;
  padding: 11px 22px !important;
  border-radius: var(--radius-sm);
  margin-left: 8px;
  letter-spacing: 0.03em;
}
.main-nav .cta-link a:hover { background: #c9432f; }

.has-dropdown > a::after { content: "▾"; margin-left: 5px; font-size: 0.7em; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 300px;
  box-shadow: var(--shadow-hover);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border-top: 3px solid var(--navy-800);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.16s ease;
  padding: 10px 0;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: block;
  padding: 12px 24px;
  font-size: 0.9rem;
  color: var(--ink-900);
  border-left: 3px solid transparent;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}
.dropdown li a:hover { background: var(--grey-100); border-left-color: var(--navy-800); color: var(--navy-800); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  position: relative;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--navy-900);
}
.nav-toggle::before { top: 13px; }
.nav-toggle span { top: 19px; }
.nav-toggle::after { top: 25px; }

/* ---- Hero ---- */
.hero {
  background-image: linear-gradient(180deg, rgba(19,40,77,0.62) 0%, rgba(19,40,77,0.78) 100%), url('../assets/hero/hero-main.webp');
  background-size: cover;
  background-position: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero-copy .eyebrow { color: #ff9d85; }
.hero h1 { color: var(--white); max-width: 680px; }
.hero p.lede { color: #dbe6f5; max-width: 600px; margin: 20px 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-graphic { display: none; }

.hero-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 56px;
  padding-top: 28px;
  position: relative;
}
.hero-stats div { flex: 1; border-left: 1px solid rgba(255,255,255,0.14); padding-left: 20px; }
.hero-stats div:first-child { border-left: none; padding-left: 0; }
.hero-stats strong { font-family: var(--font-mono); font-size: 1.5rem; display: block; color: var(--white); }
.hero-stats span { font-size: 0.82rem; color: #b7c2d2; }

/* ---- Cards ---- */
.card-grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--steel-600); font-size: 0.95rem; }
.card-link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 0.88rem; color: var(--navy-800); border-bottom: 1.5px solid var(--gold-600); }

/* ---- Who we are / stats strip ---- */
.stat-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 44px; }
.stat-strip .stat { text-align: center; padding: 20px 10px; border-left: 1px solid var(--border); }
.stat-strip .stat:first-child { border-left: none; }
.stat-strip strong { font-family: var(--font-mono); font-size: 1.15rem; color: var(--navy-800); display: block; margin-bottom: 6px; }
.stat-strip span { font-size: 0.85rem; color: var(--steel-600); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ---- Backed-by band ---- */
.backed-band {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
}
.backed-mark {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--gold-050);
  border: 1px solid #f6c7ba;
  border-radius: var(--radius-md);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 1.5rem; }

.card-flat { border: none; box-shadow: none; background: transparent; padding: 0; }
.card-flat:hover { transform: none; }
.card-flat img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 18px; }

/* ---- Tables / lists ---- */
.check-list li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink-900); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success-700); font-weight: 700; }

/* ---- Image band (inner pages) — matches Bay Datacom's slim photo banner ---- */
.image-band {
  height: 230px;
  background-size: cover;
  background-position: center;
  background-color: var(--navy-900);
  position: relative;
}
.image-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,59,111,0.15) 0%, rgba(27,59,111,0.35) 100%);
}

/* ---- Page heading block (sits below the image band, on white) ---- */
.page-hero {
  padding: 40px 0 8px;
}
.page-hero .eyebrow { color: var(--gold-600); }
.page-hero h1 { color: var(--navy-800); }
.breadcrumb { font-size: 0.85rem; color: var(--steel-600); margin-top: 10px; }
.breadcrumb a:hover { color: var(--navy-800); }

/* ---- Tabs / filters (projects) ---- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; justify-content: center; }
.filter-btn {
  background: var(--grey-100);
  border: none;
  padding: 12px 26px;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy-800);
  transition: all 0.15s ease;
}
.filter-btn:hover { background: #e4ecf8; }
.filter-btn.active { background: var(--navy-800); color: var(--white); }

.project-card { display: flex; flex-direction: column; height: 100%; }
.project-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--grey-100);
  color: var(--navy-800);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}

/* ---- Photo-topped cards (Solutions / Services grids) — flat, borderless, image-led ---- */
.card-photo {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}
.card-photo:hover { transform: none; box-shadow: none; }
.card-photo .card-photo-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}
.card-photo h3 { margin-bottom: 8px; }
.card-photo p { color: var(--steel-600); font-size: 0.95rem; }

/* ---- Image filmstrip (Featured Projects style) ---- */
.filmstrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.filmstrip img { width: 100%; height: 220px; object-fit: cover; display: block; }

/* ---- Sector cards (clients) ---- */
.sector-card { border-left: 4px solid var(--gold-600); }
.sector-card ul { margin-top: 14px; }
.sector-card ul li { font-size: 0.9rem; color: var(--steel-600); padding: 4px 0; }

/* ---- Partner grid ---- */
.partner-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.partner-logo {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  height: 100px;
  display: flex; align-items: center; justify-content: center;
  color: var(--steel-300);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: center;
  padding: 10px;
}

/* ---- Forms ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--navy-900); }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-900);
  background: var(--white);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--navy-800);
  outline: none;
}
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.checkbox-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.checkbox-item input { width: 16px; height: 16px; }
.radio-row { display: flex; gap: 20px; flex-wrap: wrap; }
.radio-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }

.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 20px; }
.contact-info-row { display: flex; gap: 14px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-info-row:last-child { border-bottom: none; }
.contact-info-row strong { display: block; font-size: 0.82rem; color: #b7c2d2; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }

.form-note {
  background: var(--grey-100);
  border-left: 3px solid var(--gold-600);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--steel-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 16px;
}

/* ---- About-page sidebar (matches Bay Datacom's "ABOUT OUR FIRMS" / "QUICK CONTACT" pattern) ---- */
.about-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-box { background: var(--grey-100); border-radius: var(--radius-md); overflow: hidden; }
.sidebar-box-head {
  padding: 16px 22px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.sidebar-box ul li a {
  display: block;
  padding: 15px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-800);
  border-bottom: 1px solid var(--border);
}
.sidebar-box ul li:last-child a { border-bottom: none; }
.sidebar-box ul li a:hover { background: var(--white); }
.sidebar-quick-contact { padding: 24px 22px; }
.sidebar-quick-contact h3 { color: var(--navy-800); margin-bottom: 10px; font-size: 1.1rem; }
.sidebar-quick-contact p { color: var(--steel-600); font-size: 0.9rem; margin-bottom: 16px; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-900); color: #b7c2d2; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { color: #93a1b5; font-size: 0.9rem; margin-top: 14px; max-width: 320px; }
.footer-tag { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #ff9d85; border: 1px solid rgba(255,157,133,0.4); padding: 5px 10px; border-radius: 3px; }
.site-footer h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 18px; letter-spacing: 0.02em; }
.site-footer ul li { margin-bottom: 11px; font-size: 0.9rem; }
.site-footer ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #7f8fa6;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Utility ---- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
