/* ============================================================
   OFCO GROUP — components.css
   Navbar · Footer · Buttons · Cards · Hero · Timeline
   ============================================================ */

/* ══════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  padding: 0 24px;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.transparent { background: transparent; }
#navbar.solid {
  background: var(--color-navy);
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
}

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

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-link svg  { width: 12px; height: 12px; opacity: .7; flex-shrink: 0; }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--color-navy);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 100;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: .84rem;
  color: rgba(255,255,255,.8);
  transition: color var(--transition), background var(--transition);
}
.dropdown a:hover { color: #fff; background: rgba(255,255,255,.06); }
.dropdown a:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.dropdown a:last-child  { border-radius: 0 0 var(--radius) var(--radius); }

/* CTA button in nav */
.nav-cta {
  margin-left: 16px;
  padding: 9px 18px;
  background: var(--color-blue);
  color: #fff !important;
  border-radius: 30px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.nav-cta:hover {
  background: var(--color-blue-lt);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,111,196,.45);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-navy);
  z-index: 999;
  padding: calc(var(--navbar-h) + 24px) 32px 40px;
  overflow-y: auto;
  flex-direction: column;
  gap: 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  font-weight: 500;
}
.nav-mobile a:hover { color: #fff; }
.nav-mobile .mob-section-title {
  padding: 18px 0 6px;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
  border-bottom: none;
}

@media (max-width: 1100px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
#footer {
  background: var(--color-navy);
  color: rgba(255,255,255,.75);
  padding: 64px 0 32px;
  font-size: .87rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col h5 {
  font-family: var(--font-heading);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 18px;
}
.footer-logo { height: 36px; margin-bottom: 16px; }
.footer-copy  { font-size: .8rem; color: rgba(255,255,255,.4); margin-top: 12px; }
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  transition: color var(--transition);
}
.footer-linkedin:hover { color: #fff; }
.footer-linkedin svg { width: 18px; height: 18px; }

.footer-col p { margin-bottom: 8px; line-height: 1.5; }
.footer-col a { color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: .86rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.3);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
}
.btn--primary:hover {
  background: var(--color-blue-lt);
  border-color: var(--color-blue-lt);
  box-shadow: 0 6px 20px rgba(26,111,196,.4);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  box-shadow: 0 4px 14px rgba(255,255,255,.15);
}

.btn--white {
  background: #fff;
  color: var(--color-navy);
  border-color: #fff;
}
.btn--white:hover {
  background: var(--color-off-white);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

.btn--sm {
  padding: 9px 20px;
  font-size: .78rem;
}

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero--page {
  min-height: 38vh;
  padding-top: var(--navbar-h);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,31,58,.55);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: calc(var(--navbar-h) + 40px) 0 80px;
}
.hero--page .hero__content {
  padding: 60px 0 48px;
}
.hero__label { color: var(--color-gold); }
.hero__title { margin-bottom: 16px; }
.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.82);
  max-width: 600px;
  margin-bottom: 36px;
}
.hero__btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════
   STATS BAND
   ══════════════════════════════════════════════ */
.stats-band {
  background: var(--color-blue);
  padding: 60px 0;
}
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item__icon {
  width: 56px; height: 56px;
  object-fit: contain;
  margin: 0 auto 16px;
  filter: brightness(0) invert(1);
}
.stat-item__number {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-item__label {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  margin-top: 8px;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .stats-band__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ══════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════ */
.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 400ms ease;
}
.card:hover .card__img { transform: scale(1.04); }
.card__body {
  padding: 28px;
}
.card__title {
  margin-bottom: 10px;
}
.card__text {
  color: var(--color-muted);
  font-size: .9rem;
  margin-bottom: 20px;
}

/* Nav card (about hub) */
.nav-card {
  background: #fff;
  border-radius: 10px;
  padding: 32px 28px;
  border-left: 3px solid var(--color-gold);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.nav-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-blue);
}
.nav-card__desc { font-size: .87rem; color: var(--color-muted); }
.nav-card__arrow { color: var(--color-blue); font-size: 1.1rem; margin-top: 8px; }

/* Value card */
.value-card {
  background: var(--color-navy-mid);
  border-radius: 10px;
  padding: 36px 32px;
  color: #fff;
  border-top: 3px solid var(--color-gold);
}
.value-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--color-gold);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.value-card__text { color: rgba(255,255,255,.78); font-size: .92rem; }

/* Service card (inspection/consulting) */
.service-item {
  padding: 36px 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.service-item:last-child { border-bottom: none; }

/* Team card */
.team-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card__photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top;
}
.team-card__body { padding: 22px; }
.team-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}
.team-card__role {
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 12px;
}
.team-card__bio { font-size: .84rem; color: var(--color-muted); margin-bottom: 10px; }
.team-card__degree {
  font-size: .78rem;
  font-style: italic;
  color: var(--color-muted);
  padding-top: 10px;
  border-top: 1px solid var(--color-off-white);
}

/* ══════════════════════════════════════════════
   TIMELINE (history page)
   ══════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--color-gold);
  opacity: .4;
}
.timeline-item {
  position: relative;
  padding: 0 0 56px 40px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 2px solid var(--color-navy);
}
.timeline-item__year {
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 6px;
}
.timeline-item__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.timeline-item__img {
  width: 100%;
  max-width: 480px;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.timeline-item__text { color: var(--color-muted); font-size: .9rem; }

/* ══════════════════════════════════════════════
   TESTIMONIAL
   ══════════════════════════════════════════════ */
.testimonial-card {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 48px 52px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-gold);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px; left: 28px;
  font-size: 5rem;
  color: var(--color-gold);
  opacity: .2;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card__text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 24px;
}
.testimonial-card__author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .9rem;
  color: var(--color-blue);
}
.testimonial-card__company {
  font-size: .82rem;
  color: var(--color-muted);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .testimonial-card { padding: 32px 24px; }
  .hero__btns { flex-direction: column; }
  .hero--page { min-height: 28vh; }
}

/* ══════════════════════════════════════════════
   SPLIT SECTION (2 col: img + text)
   ══════════════════════════════════════════════ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.split__img {
  height: 480px;
  object-fit: cover;
}
.split__body {
  padding: 64px 56px;
}
.split--reverse .split__img { order: 2; }
.split--reverse .split__body { order: 1; }
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
  .split__img { height: 280px; width: 100%; }
  .split__body { padding: 40px 24px; }
  .split--reverse .split__img, .split--reverse .split__body { order: unset; }
}

/* ══════════════════════════════════════════════
   CTA BAND
   ══════════════════════════════════════════════ */
.cta-band {
  background: var(--color-blue);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}
.cta-band h2 { margin-bottom: 20px; color: #fff; }
.cta-band p  { color: rgba(255,255,255,.85); max-width: 680px; margin: 0 auto 32px; font-size: 1.05rem; }

/* ══════════════════════════════════════════════
   PAGE LOADER (anti-FOUC)
   ══════════════════════════════════════════════ */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .4s ease;
}
#page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}
.loader-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-blue);
  margin: 0 4px;
  animation: bounce .7s ease infinite alternate;
}
.loader-dot:nth-child(2) { animation-delay: .15s; }
.loader-dot:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-12px); } }

/* ══════════════════════════════════════════════
   COMING SOON
   ══════════════════════════════════════════════ */
.coming-soon {
  padding: 100px 0;
  text-align: center;
  color: var(--color-muted);
}
.coming-soon h2 { color: var(--color-navy); margin-bottom: 16px; }
