/* ============================================
   VERITECH MECHANICAL — GLOBAL STYLES
   Brand Colors: #ed8223 (orange), #0e1f2b (navy), #1c1c1b (black)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;700;900&display=swap');

/* --- CSS Variables --- */
:root {
  --orange:       #ed8223;
  --orange-dark:  #c96a10;
  --orange-light: #f5a254;
  --navy:         #0e1f2b;
  --navy-mid:     #162c3e;
  --navy-light:   #1e3a50;
  --black:        #1c1c1b;
  --grey-dark:    #2f302f;
  --grey-mid:     #555654;
  --grey-light:   #c8c9c7;
  --off-white:    #f4f2ef;
  --white:        #ffffff;

  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Montserrat', sans-serif;

  --nav-h:        80px;
  --section-pad:  100px;
  --container:    1200px;
  --radius:       4px;

  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.15);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.25);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.35);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Typography Utilities --- */
.label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.section-title span { color: var(--orange); }

.section-sub {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  color: var(--grey-light);
  max-width: 560px;
  line-height: 1.75;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(237,130,35,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--orange);
  padding: 0;
  gap: 8px;
  font-size: 13px;
}
.btn-ghost:hover { gap: 14px; }
.btn-ghost .arrow { transition: var(--transition); }

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-nav.scrolled {
  background: rgba(14, 31, 43, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(237,130,35,0.2);
}

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

.nav-logo img {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  position: relative;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px !important;
  font-size: 12px !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 999;
  padding: 40px 32px;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--orange); }

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(237,130,35,0.2);
  padding: 60px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
  height: 48px;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--grey-light);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: var(--grey-light);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 13px;
  color: var(--grey-mid);
}

/* --- Divider / Ticker --- */
.ticker-bar {
  background: var(--orange);
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  gap: 60px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 60px;
}

.ticker-item::after {
  content: '◆';
  font-size: 8px;
  opacity: 0.6;
}

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

/* --- Stat Card --- */
.stat-card {
  border-left: 3px solid var(--orange);
  padding: 24px 28px;
  background: rgba(255,255,255,0.03);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  color: var(--white);
}

.stat-num span { color: var(--orange); }
.stat-label { font-size: 13px; color: var(--grey-light); margin-top: 6px; letter-spacing: 0.05em; }

/* --- Page Hero (shared) --- */
.page-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(237,130,35,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Photo background for page heroes (about, services) */
.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(14,31,43,0.92) 0%,
    rgba(14,31,43,0.80) 45%,
    rgba(14,31,43,0.45) 100%
  );
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-label { margin-bottom: 16px; }
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 24px;
}
.page-hero-title span { color: var(--orange); }
.page-hero-sub { font-size: 18px; font-weight: 300; color: var(--grey-light); max-width: 560px; line-height: 1.7; }

/* --- Utilities --- */
.text-orange { color: var(--orange); }
.bg-navy { background: var(--navy); }
.bg-dark { background: var(--black); }

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  :root { --section-pad: 64px; }
}

@media (max-width: 580px) {
  .container { padding: 0 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* --- LinkedIn Footer Link --- */
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-mid);
  transition: color var(--transition);
}
.footer-linkedin:hover { color: #0a66c2; }

.footer-r5 { opacity: 0.7; transition: opacity var(--transition); }
.footer-r5:hover { opacity: 1; color: unset; }
.footer-r5-logo {
  height: 22px;
  width: auto;
  display: block;
  filter: brightness(0.85);
  transition: filter var(--transition);
}
.footer-r5:hover .footer-r5-logo { filter: brightness(1); }

/* --- Footer Map --- */
.footer-map {
  margin-bottom: 40px;
  border-top: 3px solid var(--orange);
}

.footer-map-frame {
  width: 100%;
  height: 240px;
  border: none;
  display: block;
  filter: invert(0.9) hue-rotate(180deg) saturate(0.4) brightness(0.85);
}

.footer-map-bar {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-map-details {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-map-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-map-detail-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 3px;
}

.footer-map-detail-value {
  font-size: 13px;
  color: var(--grey-light);
  line-height: 1.4;
}

.footer-map-phone {
  transition: color var(--transition);
}
.footer-map-phone:hover { color: var(--white); }

.footer-map-directions {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .footer-map-bar { flex-direction: column; align-items: flex-start; }
  .footer-map-details { flex-direction: column; gap: 16px; }
  .footer-map-directions { width: 100%; justify-content: center; }
}
