/* ==========================================================================
   TWINFORCE TECHNOLOGIES - 100% RESPONSIVE INDUSTRIAL STYLESHEET
   Mobile-First Architecture + Tablet + Ultra-Wide Desktop (1440px)
   ========================================================================== */

:root {
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Brand Palette */
  --brand-navy: #1E3A6D;
  --brand-navy-dark: #122547;
  --brand-navy-light: #2D5499;
  --brand-orange: #C84B26;
  --brand-orange-hover: #B23D1A;
  --orange: #C84B26;

  /* Neutrals */
  --bg-canvas: #F8FAFC;
  --bg-surface: #FFFFFF;
  --steel: #64748B;
  --text-main: #0F172A;
  --text-muted: #475569;
  --border-subtle: #E2E8F0;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-pod: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 30px -10px rgba(30, 58, 109, 0.14);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1400px;
}

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

html {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-canvas);
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
}

body {
  overflow-x: hidden !important;
  min-height: 100vh;
  width: 100%;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }

/* Real Social Brand Colors */
.brand-wa { color: #25D366 !important; }
.soc-fb:hover { color: #1877F2 !important; }
.soc-in:hover { color: #0A66C2 !important; }
.soc-yt:hover { color: #FF0000 !important; }
.soc-ig:hover { color: #E1306C !important; }

/* ==========================================================================
   TOP BAR (DESKTOP ONLY - AUTO HIDDEN ON MOBILE/TABLET)
   ========================================================================== */
.top-bar {
  background: var(--brand-navy-dark);
  color: #E2E8F0;
  font-size: 0.8125rem;
  padding: 0.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-left a {
  margin-right: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #F8FAFC;
  font-weight: 500;
}

.top-bar-right.socials a {
  margin-left: 0.85rem;
  color: #CBD5E1;
  font-size: 0.95rem;
}

/* ==========================================================================
   NAVBAR & LOGO (ZOOMED BRAND WIDTH & TYPOGRAPHY)
   ========================================================================== */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 88px; /* Breathing space for larger logo & bold text */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Side by side alignment container */
.nav-brand {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1rem !important; /* Spacing between logo and title */
  text-decoration: none;
  min-width: 0;
}

/* Desktop Logo Zoom */
.brand-logo {
  height: 56px !important;
  width: auto;
  max-width: 65px !important;
  object-fit: contain;
  display: block !important;
  flex-shrink: 0 !important;
}

.brand-titles {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  line-height: 1.15;
}

/* Desktop Company Name Zoom */
.brand-name {
  font-family: var(--font-display);
  font-size: 1.75rem !important;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--brand-navy);
  white-space: nowrap !important;
  display: block;
}

/* Desktop UEN Zoom */
.brand-sub {
  font-family: var(--font-body);
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--steel);
  margin-top: 3px;
  white-space: nowrap !important;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.nav-links a:hover { color: var(--brand-orange); }

.nav-cta {
  background: var(--brand-orange);
  color: #FFFFFF !important;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(200, 75, 38, 0.35);
  transition: transform var(--transition), background-color var(--transition);
}

.nav-cta:hover {
  background: var(--brand-orange-hover);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--brand-navy);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-surface);
  border-bottom: 2px solid var(--border-subtle);
  padding: 1.5rem;
  box-shadow: var(--shadow-pod);
}

.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
#hero {
  position: relative;
  background: linear-gradient(135deg, rgba(14, 28, 54, 0.88) 0%, rgba(18, 37, 71, 0.82) 100%), 
              url('homepage.png') center/cover no-repeat;
  padding: 6.5rem 2.5rem;
  color: #FFFFFF;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: center;
}

/* FLOATING BIZSAFE BADGE */
.bizsafe-badge {
  display: inline-block;
  background: #FFFFFF;
  padding: 6px 14px;
  border-radius: 8px;
  border: 2px solid var(--brand-orange);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
  animation: bizsafeFloat 3.2s ease-in-out infinite;
}

.bizsafe-badge img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

@keyframes bizsafeFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800; 
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #C84B26 !important; 
  margin-bottom: 0.85rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: normal;
  color: #C84B26 !important; 
}

.hero-sub {
  font-size: 1.15rem;
  color: #E2E8F0;
  margin-bottom: 2.25rem;
  max-width: 620px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-orange);
  color: #FFFFFF;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(200, 75, 38, 0.45);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--brand-orange-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-navy);
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #FFFFFF;
  color: var(--brand-orange);
  transform: translateY(-2px);
}

.hero-right-box {
  background: rgba(255, 255, 255, 0.96);
  padding: 2.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  color: var(--text-main);
}

.hero-expertise-title {
  color: var(--brand-orange);
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  letter-spacing: 1.5px;
  font-size: 1.7rem;
  font-weight: 800;
}

.hero-points li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.95rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.hero-points li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--brand-orange);
  font-weight: 900;
}

/* ==========================================================================
   HERITAGE / INTEGRATION SECTION
   ========================================================================== */
.heritage-integration-section {
  padding: 3rem 2.5rem 4rem;
  background: var(--bg-canvas);
  width: 100%;
}

.heritage-pod-card {
  max-width: var(--max-width);
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-pod);
  padding: 3.5rem 4rem;
  width: 100%;
}

.heritage-grid {
  display: grid;
  grid-template-columns: 1fr 140px 1.25fr;
  gap: 3rem;
  align-items: center;
}

.heritage-col {
  min-width: 0;
}

.heritage-tag {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--steel);
  display: block;
  margin-bottom: 0.4rem;
}

.heritage-tag.modern-tag { color: var(--brand-orange); }

.heritage-brand-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 0.85rem;
  letter-spacing: 0.5px;
  word-wrap: break-word;
}

.heritage-para {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
  line-height: 1.65;
}

.heritage-bullets li {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.heritage-bullets li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--steel);
  font-weight: 700;
  font-size: 0.95rem;
}

.heritage-bullets.star-bullets li::before {
  content: "★";
  color: var(--brand-orange);
  font-weight: 700;
  font-size: 0.95rem;
}

.heritage-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.heritage-arrow { font-size: 2.5rem; color: var(--brand-orange); line-height: 1; }
.heritage-divider-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--steel);
  margin-top: 0.35rem;
}

/* ==========================================================================
   SECTIONS SHARED
   ========================================================================== */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5.5rem 2.5rem;
  width: 100%;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-navy-dark);
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.section-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 700px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4.5rem;
  align-items: center;
}

.about-image-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-pod);
  width: 100%;
}

.about-image-box img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

.about-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--brand-navy);
  color: #FFFFFF;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: var(--font-display);
  box-shadow: var(--shadow-md);
}

.about-badge strong { display: block; font-size: 1.6rem; line-height: 1; }

.about-points { margin-top: 1.75rem; }
.about-points li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
}
.about-points li::before { content: "✔"; position: absolute; left: 0; color: var(--brand-orange); }

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  margin-top: 3.5rem;
}

.service-card {
  background: #FFFFFF;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(30, 58, 109, 0.25);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(30, 58, 109, 0.08);
  color: var(--brand-navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.35rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.75rem;
}

.service-card p { font-size: 0.95rem; color: var(--text-muted); }

/* Projects */
.project-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.projects-tabs { display: flex; gap: 0.65rem; }
.tab-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active {
  background: var(--brand-navy);
  color: #FFFFFF;
  border-color: var(--brand-navy);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  margin-top: 3rem;
}

.project-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.project-thumb { height: 230px; overflow: hidden; }
.proj-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .proj-img { transform: scale(1.05); }

.project-info {
  padding: 1.6rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 0.35rem;
}

.project-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.25;
}

/* ==========================================================================
   LEADERSHIP TEAM
   ========================================================================== */
.team-cards-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.75rem;
  margin-top: 3.5rem;
}

.leader-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pod);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  width: 100%;
}

.leader-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.leader-visual {
  height: 280px;
  background: #1C355E;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.leader-initial {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 2px;
}

.leader-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.leader-actions-bar {
  position: absolute;
  bottom: 0;
  background: #FFFFFF;
  padding: 6px 14px;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 12px;
}

.leader-actions-bar a {
  color: var(--brand-orange);
  font-size: 1.05rem;
  transition: transform 0.2s;
}

.leader-actions-bar a:hover { transform: scale(1.15); }

.leader-meta {
  padding: 1.75rem 1rem;
  text-align: center;
  background: #FFFFFF;
}

.leader-meta h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-navy-dark);
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.leader-meta p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-orange);
}

/* Blogs */
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1050px;
  margin: 3.5rem auto 0;
}

.blog-heading {
  font-size: 1.25rem !important;
  line-height: 1.4 !important;
  margin-bottom: 1rem;
}

.blog-read-link {
  color: var(--brand-orange);
  font-weight: 700;
  font-size: 0.925rem;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* ==========================================================================
   CONTACT FORM & CLEAN SELECT DROPDOWN
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.35rem;
  margin-bottom: 2rem;
}

.contact-item-icon {
  width: 52px;
  height: 52px;
  background: rgba(200, 75, 38, 0.1);
  color: var(--brand-orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; color: var(--steel); }
.contact-item-text { font-size: 1rem; font-weight: 600; color: var(--text-main); }

.contact-form {
  background: #FFFFFF;
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-pod);
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}

.form-group { margin-bottom: 1.35rem; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.45rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  color: var(--text-main);
  transition: border-color var(--transition);
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%231E3A6D'%20stroke-width='2.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='6%209%2012%2015%2018%209'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 14px 14px;
  cursor: pointer;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 109, 0.12);
}

.compact-file-group { margin-bottom: 1.5rem; }
.compact-file-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.45rem;
}

.form-submit {
  width: 100%;
  background: var(--brand-orange);
  color: #FFFFFF;
  padding: 1.1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(200, 75, 38, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: var(--transition);
}

.form-submit:hover { background: var(--brand-orange-hover); transform: translateY(-1px); }

.submit-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  border-top-color: #FFFFFF;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
  text-align: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  width: 100% !important;
  background: var(--brand-navy-dark) !important;
  color: #94A3B8;
  padding: 5rem 0 2rem !important;
  box-sizing: border-box !important;
}

.footer-container {
  width: 100% !important;
  max-width: var(--max-width) !important;
  margin: 0 auto !important;
  padding: 0 2.5rem !important;
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr 1fr !important;
  gap: 3.5rem !important;
  box-sizing: border-box !important;
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.footer-col p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 0.65rem; }
.footer-col a:hover { color: #FFFFFF; }
.footer-col ul li { margin-bottom: 0.5rem; font-size: 0.9rem; }

.footer-social { display: flex; gap: 0.9rem; }
.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1rem;
  transition: var(--transition);
}
.footer-social a:hover { transform: translateY(-2px); }

.footer-bottom {
  width: 100% !important;
  max-width: var(--max-width) !important;
  margin: 0 auto !important;
  padding: 2rem 2.5rem 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
  box-sizing: border-box !important;
}

/* SMART SCROLL BUTTON */
.scroll-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background: #F59E0B;
  color: #122547;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.55), 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.scroll-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.75), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.fab-icon-wrapper i {
  font-size: 1.55rem;
  transition: transform 0.3s ease;
}

.fab-tooltip {
  position: absolute;
  right: 70px;
  background: #122547;
  color: #FFFFFF;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.scroll-fab:hover .fab-tooltip { opacity: 1; }

/* MODALS */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.active { display: flex; }
.lightbox-content {
  background: #FFFFFF;
  max-width: 520px;
  width: 100%;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: var(--shadow-pod);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--steel);
}
.lightbox-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
}
.lightbox-tag {
  color: var(--brand-orange);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.lightbox-desc { font-size: 0.95rem; color: var(--text-muted); }

/* TABLET RESPONSIVE */
@media (max-width: 1200px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .team-cards-row { grid-template-columns: repeat(3, 1fr); }
  .footer-container { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   MOBILE RESPONSIVE (MAX-WIDTH: 991px)
   ========================================================================== */
@media (max-width: 991px) {
  .top-bar {
    display: none !important;
  }

  .nav-inner {
    padding: 0 1rem;
    height: 76px;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  
  /* SINGLE LINE SIDE-BY-SIDE MOBILE HEADER WITH CLEAR ZOOM */
  .nav-brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.65rem !important;
    max-width: calc(100% - 46px);
  }

  .brand-logo {
    height: 44px !important;
    max-width: 48px !important;
    flex-shrink: 0 !important;
  }
  
  .brand-titles {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0;
  }

  .brand-name {
    font-size: 1.15rem !important;
    white-space: nowrap !important;
    letter-spacing: -0.2px;
    line-height: 1.15;
  }
  
  .brand-sub {
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    margin-top: 2px;
    line-height: 1.15;
    font-weight: 700;
  }

  #hero {
    padding: 3.5rem 1.25rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-title {
    font-size: 2.85rem;
    line-height: 1.1;
  }
  .hero-sub {
    font-size: 1rem;
    line-height: 1.6;
  }
  .hero-right-box {
    padding: 1.75rem 1.25rem;
  }

  .heritage-integration-section {
    padding: 2rem 1rem;
  }
  .heritage-pod-card {
    padding: 2.2rem 1.25rem;
    border-radius: var(--radius-md);
  }
  .heritage-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .heritage-brand-title {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .heritage-divider {
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem;
    margin: 1.25rem 0;
  }
  .heritage-divider-label {
    order: 1;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--steel);
    font-weight: 800;
    margin: 0;
  }
  .heritage-arrow {
    order: 2;
    font-size: 2.2rem;
    color: var(--brand-orange);
    line-height: 1;
    transform: rotate(90deg);
    display: inline-block;
  }

  .heritage-bullets {
    text-align: left;
    display: inline-block;
  }

  .section-inner {
    padding: 3.5rem 1.25rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-image-box img {
    height: 280px;
    width: 100%;
  }
  .section-title {
    font-size: 2.25rem;
  }

  .team-cards-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 360px;
    margin: 2.5rem auto 0;
  }
  .leader-card {
    margin: 0 auto;
  }
  .leader-visual {
    height: 320px;
  }

  .services-grid, 
  .projects-grid, 
  .blog-preview-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-form {
    padding: 1.75rem 1.25rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-container {
    grid-template-columns: 1fr !important;
    padding: 0 1.5rem !important;
    gap: 2.5rem !important;
  }
  .footer-col {
    text-align: left !important;
  }
  .footer-bottom {
    padding: 2rem 1.5rem 2rem !important;
    flex-direction: column !important;
    text-align: center !important;
    justify-content: center !important;
    gap: 1.25rem !important;
  }
  .footer-bottom p {
    justify-content: center !important;
    margin: 0 !important;
  }

  .scroll-fab {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
  }
}

/* SMARTPHONES BELOW 480PX (BALANCED PROMINENCE) */
@media (max-width: 480px) {
  .nav-inner {
    padding: 0 0.85rem;
    height: 72px;
  }
  .nav-brand {
    gap: 0.55rem !important;
  }
  .brand-logo {
    height: 42px !important;
    max-width: 46px !important;
  }
  .brand-name {
    font-size: 1.05rem !important;
    letter-spacing: -0.2px;
  }
  .brand-sub {
    font-size: 0.68rem !important;
    font-weight: 700;
  }
  .hero-title {
    font-size: 2.35rem;
  }
}

/* ULTRA NARROW BELOW 360PX */
@media (max-width: 360px) {
  .brand-logo {
    height: 38px !important;
  }
  .brand-name {
    font-size: 0.94rem !important;
  }
  .brand-sub {
    font-size: 0.62rem !important;
  }
}
