/* ===================================================
   TMA Technology - Static Site Stylesheet
   Clean rebuild - no WordPress / malware dependencies
   =================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: #676767;
  background-color: #ffffff;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: 'Lato', sans-serif;
  color: #2B2F33;
  font-weight: 700;
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Utilities ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }
.text-center { text-align: center; }
.text-white { color: #ffffff !important; }
.bg-light  { background-color: #f5f6f7; }
.bg-dark   { background-color: #1a2032; }
.bg-blue   { background-color: #003DA5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background-color: #003DA5;
  color: #ffffff;
  border-color: #003DA5;
}
.btn-primary:hover {
  background-color: #002d7a;
  border-color: #002d7a;
}
.btn-outline {
  background-color: transparent;
  color: #003DA5;
  border-color: #003DA5;
}
.btn-outline:hover {
  background-color: #003DA5;
  color: #ffffff;
}
.btn-white {
  background-color: #ffffff;
  color: #003DA5;
  border-color: #ffffff;
}
.btn-white:hover {
  background-color: transparent;
  color: #ffffff;
}

/* ===================================================
   HEADER / NAV
   =================================================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo */
.logo img { height: 54px; width: auto; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 0; }

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav > ul > li { position: relative; }

.main-nav > ul > li > a {
  display: block;
  padding: 10px 16px;
  color: #2B2F33;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: #003DA5;
  background-color: #f0f4ff;
}

/* Dropdown arrow */
.has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7em;
  opacity: 0.6;
}

/* Dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 230px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 8px 0;
  z-index: 2000;
}
.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #2B2F33;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu li a:hover {
  background: #f0f4ff;
  color: #003DA5;
}

/* Sub-dropdown */
.dropdown-menu .has-dropdown { position: relative; }
.dropdown-menu .has-dropdown > a::after { content: ' ›'; }
.dropdown-menu .sub-dropdown-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 8px 0;
}
.dropdown-menu .has-dropdown:hover .sub-dropdown-menu { display: block; }

.has-dropdown:hover > .dropdown-menu { display: block; }

/* Header CTA button */
.header-cta { margin-left: 16px; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #2B2F33;
  transition: all 0.3s;
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero-section {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: #1a2032;
  overflow: hidden;
}

/* Video background */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay so text reads cleanly over video */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 40, 0.58);
  z-index: 1;
}

/* Watermark logo */
.hero-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}
.hero-watermark img {
  width: min(80%, 700px);
  opacity: 0.12;
  filter: grayscale(1);
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #ffffff;
  padding: 80px 24px;
  max-width: 800px;
  margin: 0 auto;
}
.hero-content h1 {
  color: #ffffff;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 32px;
}

/* ===================================================
   PAGE HERO (inner pages)
   =================================================== */
.page-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a2032 0%, #003DA5 100%);
  background-size: cover;
  background-position: center top;
  padding: 80px 0 60px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 40, 0.62);
  z-index: 0;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 { color: #ffffff; margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 680px; margin: 0 auto; }

/* ===================================================
   ABOUT / INTRO SECTION  (homepage)
   =================================================== */
.about-section {
  padding: 90px 0;
  background: #ffffff;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-col-left,
.about-col-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.about-photo {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
}
.about-text-left h2 { margin-bottom: 12px; font-size: clamp(1.3rem, 3vw, 2rem); }
.about-text-left p  { color: #676767; font-size: 1rem; }
.about-text-right h3 { color: #003DA5; margin-bottom: 12px; }
.about-text-right p  { color: #676767; }

/* ===================================================
   SERVICES SECTION (homepage)
   =================================================== */
.services-section {
  padding: 90px 0;
  background: #f5f6f7;
}
.services-section .section-header {
  text-align: center;
  margin-bottom: 56px;
}
.services-section .section-header p {
  max-width: 560px;
  margin: 16px auto 0;
  color: #676767;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.13);
}
.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.service-card-body {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card-body h3 { margin-bottom: 12px; font-size: 1.15rem; }
.service-card-body p  { color: #676767; font-size: 0.93rem; flex: 1; }
.service-card-body .btn { margin-top: 20px; align-self: flex-start; }

.services-cta { text-align: center; margin-top: 48px; }

/* ===================================================
   EQUIPMENT SECTION (homepage)
   =================================================== */
.equipment-section {
  padding: 90px 0;
  background: #ffffff;
}
.equipment-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}
.equipment-badge {
  display: inline-block;
  background: #e8f0ff;
  color: #003DA5;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.equipment-text h2 { margin-bottom: 20px; }
.equipment-text p  { color: #676767; margin-bottom: 12px; }
.equipment-checklist { margin: 24px 0; }
.equipment-checklist li {
  padding: 7px 0 7px 28px;
  position: relative;
  color: #676767;
  font-size: 0.95rem;
}
.equipment-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #003DA5;
  font-weight: 700;
}
.equipment-img { border-radius: 10px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.equipment-img img { width: 100%; height: 380px; object-fit: cover; }

/* ===================================================
   FEATURED EQUIPMENT CAROUSEL
   =================================================== */
.featured-section {
  padding: 90px 0;
  background: #f5f6f7;
  overflow: hidden;
}
.featured-intro {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 56px;
}
.featured-intro h2 { margin-bottom: 16px; }
.featured-intro p  { color: #676767; margin-bottom: 12px; }
.featured-intro .btn { margin-top: 12px; }

/* Carousel */
.carousel-wrapper {
  overflow: hidden;
  margin: 0 -24px;
}
.carousel-track {
  display: flex;
  gap: 24px;
  padding: 8px 24px;
  animation: carousel-scroll 28s linear infinite;
  width: max-content;
}
.carousel-track:hover {
  animation-play-state: paused;
}
@keyframes carousel-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.product-card {
  flex: 0 0 220px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.product-card img { width: 100%; height: 180px; object-fit: contain; padding: 16px; background: #fafafa; }
.product-card-body { padding: 16px; }
.product-card-body h4 { font-size: 0.9rem; color: #2B2F33; }

/* ===================================================
   CONTACT / FOOTER SECTION
   =================================================== */
.contact-section {
  padding: 90px 0;
  background: #1a2032;
  color: #ffffff;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info h2 { color: #ffffff; margin-bottom: 10px; }
.contact-info .subtitle {
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  font-size: 1rem;
}
.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-detail-text strong { display: block; color: #ffffff; margin-bottom: 4px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.8px; }
.contact-detail-text span, .contact-detail-text a { color: rgba(255,255,255,0.75); font-size: 0.95rem; display: block; }
.contact-detail-text a:hover { color: #ffffff; }

/* Contact form */
.contact-form { background: rgba(255,255,255,0.05); border-radius: 10px; padding: 36px; }
.contact-form h3 { color: #ffffff; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }

/* ===================================================
   FOOTER BAR
   =================================================== */
.footer-bar {
  background: #111827;
  padding: 20px 0;
}
.footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bar p { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-bar a { color: rgba(255,255,255,0.5); font-size: 0.85rem; transition: color 0.2s; }
.footer-bar a:hover { color: #ffffff; }

/* ===================================================
   TERMS & CONDITIONS LINK BAR
   =================================================== */
.terms-bar {
  background: #f5f6f7;
  padding: 12px 0;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}
.terms-bar a { color: #003DA5; font-size: 0.85rem; font-weight: 600; }
.terms-bar a:hover { text-decoration: underline; }

/* ===================================================
   ACCESS CONTROL EQUIPMENT PAGE
   =================================================== */
.provide-section {
  padding: 90px 0;
  background: #ffffff;
}
.provide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.provide-text h2 { margin-bottom: 20px; }
.provide-text p  { color: #676767; margin-bottom: 16px; }
.provide-img img { border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); }

.what-we-provide {
  padding: 90px 0;
  background: #f5f6f7;
}
.what-we-provide h2 { margin-bottom: 16px; }
.what-we-provide .lead { font-size: 1.05rem; color: #676767; margin-bottom: 40px; }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Nav mobile */
  .nav-toggle  { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 16px 0 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-top: 1px solid #eeeeee;
  }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; width: 100%; gap: 0; }
  .main-nav > ul > li > a { padding: 12px 24px; border-radius: 0; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    display: none;
  }
  .has-dropdown.open > .dropdown-menu { display: block; }
  .has-dropdown > a::after { float: right; }
  .header-cta { display: none; }

  /* Layouts */
  .about-grid,
  .equipment-grid,
  .contact-grid,
  .provide-grid { grid-template-columns: 1fr; gap: 40px; }

  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .hero-section { min-height: 420px; }
  .section-pad { padding: 60px 0; }

  .footer-bar-inner { flex-direction: column; text-align: center; }

  /* Carousel cards smaller on mobile */
  .product-card { flex: 0 0 160px; }
  .product-card img { height: 140px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .product-card { flex: 0 0 140px; }
}
