/* ============================================================
   STYLE.CSS — MasterPower Technical Services LLC
   Edit color tokens in :root to rebrand instantly
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --navy: #0A1628;
  --navy-mid: #112040;
  --blue: #1565C0;
  --blue-mid: #1976D2;
  --blue-light: #42A5F5;
  --blue-pale: #E3F2FD;
  --steel: #2C3E50;
  --off-white: #E6EBF2;
  --text-dark: #1A1A2E;
  --text-muted: #6B7280;
  --border: #DDE3ED;
  --white: #DDE4ED;

  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.08);
  --shadow-md: 0 8px 32px rgba(10, 22, 40, 0.14);
  --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.18);

  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.25s ease;

  --container: 1200px;
  --section-gap: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

p {
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── LAYOUT UTILITIES ───────────────────────────────────── */
.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

.section {
  padding: var(--section-gap) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 16px;
}


.section-header {
  max-width: 580px;
  margin-bottom: 48px;
}

.section-header p {
  margin-top: 16px;
  font-size: 1.05rem;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header.centered .section-label {
  justify-content: center;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--steel);
  transform: translateY(-1px);
}

/* ── NAVIGATION ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  max-width: 280px;
}

.nav-logo-sub {
  display: block; /* "Technical Services" on its own line — matches mobile style */
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.75;
}

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 22px;
  font-size: 0.85rem;
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

.navbar.scrolled .hamburger span {
  background: rgba(255, 255, 255, 0.95);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  background: var(--navy);
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 14px 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color var(--transition), padding var(--transition);
}

.mobile-nav a:hover {
  color: var(--blue-light);
  padding-left: 32px;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  z-index: 0;
}

/* Blue diagonal accent — matches MTS brand feel */
.hero-slash {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 38%, rgba(21, 101, 192, 0.12) 38%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 180px 0 160px;
  max-width: 740px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(66, 165, 245, 0.15);
  border: 1px solid rgba(66, 165, 245, 0.35);
  color: var(--blue-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 2px;
  margin-bottom: 28px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue-light);
}

.hero .hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  margin-bottom: 44px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.notable-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Stats bar */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: var(--blue);
}

.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 28px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ── SERVICES ────────────────────────────────────────────── */
.services {
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--white);
  padding: 40px 32px;
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--blue);
  transition: width 0.35s ease;
}

.service-card:hover {
  background: var(--navy);
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .service-icon {
  color: var(--white);
}

.service-card:hover p {
  color: rgba(255, 255, 255, 0.6);
}

.service-card:hover::before {
  width: 100%;
}

.service-icon {
  font-size: 1.8rem;
  color: var(--blue);
  margin-bottom: 18px;
  transition: color var(--transition);
}

.service-card h3 {
  margin-bottom: 10px;
  transition: color var(--transition);
}

.service-card p {
  font-size: 0.9rem;
  transition: color var(--transition);
}

/* ── WHY US ──────────────────────────────────────────────── */
.why-us {
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-image-block {
  position: relative;
}

.why-image-block img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.why-image-accent {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 160px;
  height: 160px;
  background: var(--blue);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.15;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
}

.why-feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.why-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--blue-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--blue);
}

.why-feature h4 {
  margin-bottom: 5px;
}

.why-feature p {
  font-size: 0.9rem;
  margin: 0;
}

/* ── CLIENTS / PROJECTS STRIP ────────────────────────────── */
.clients {
  background: var(--navy);
  padding: 60px 0;
}

.clients h3 {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 36px;
}

.clients-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}

.client-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: all var(--transition);
}

.client-tag:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  cursor: pointer;
}

a.client-tag {
  text-decoration: none;
  display: inline-block;
}

/* ── PROCESS ─────────────────────────────────────────────── */
.process {
  background: var(--off-white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, var(--blue), rgba(21, 101, 192, 0.2), var(--blue));
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  text-align: center;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 28px;
}

.process-step h4 {
  color: var(--navy);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.88rem;
}

/* ── SPECIALISATIONS (what makes MTS unique) ─────────────── */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.spec-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 20px;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.spec-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-light);
}

.spec-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: var(--blue-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--blue);
}

.spec-card h4 {
  margin-bottom: 8px;
}

.spec-card p {
  font-size: 0.88rem;
  margin: 0;
}

/* ── CTA BANNER ──────────────────────────────────────────── */
.cta-banner {
  background: var(--blue);
  padding: 72px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  color: var(--white);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  padding: 72px 0 0;
}

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

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

.footer-brand p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.social-link:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  padding: 6px 0;
  transition: color var(--transition), padding var(--transition);
}

.footer-links a:hover {
  color: var(--blue-light);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.footer-contact-item .icon {
  color: var(--blue-light);
  font-size: 0.9rem;
  margin-top: 3px;
}

.footer-contact-item span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  margin: 0;
}

.footer-bottom a {
  color: var(--blue-light);
}

/* ── GALLERY PAGE ────────────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 50%, rgba(21, 101, 192, 0.08) 50%);
  pointer-events: none;
}

.page-hero h1 {
  color: var(--white);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin-top: 16px;
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.breadcrumb a {
  color: var(--blue-light);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.2);
}

/* Gallery */
.gallery-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 9px 22px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.gallery-grid {
  columns: 3;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-overlay span {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color var(--transition);
}

.lightbox-close:hover {
  color: var(--blue-light);
}

.gallery-placeholder {
  background: var(--off-white);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  min-height: 200px;
}

.gallery-placeholder .icon {
  font-size: 2rem;
  color: var(--border);
  margin-bottom: 4px;
}

/* ── CONTACT PAGE ────────────────────────────────────────── */
.contact-section {
  background: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.contact-info-block {
  position: sticky;
  top: 100px;
}

.contact-channel {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.contact-channel:last-of-type {
  border-bottom: none;
}

.channel-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.channel-icon.phone {
  background: var(--blue-pale);
  color: var(--blue);
}

.channel-icon.email {
  background: var(--blue-pale);
  color: var(--blue-mid);
}

.channel-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.channel-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.channel-value a {
  color: var(--navy);
  transition: color var(--transition);
}

.channel-value a:hover {
  color: var(--blue);
}

.channel-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.hours-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-top: 32px;
}

.hours-card h4 {
  color: var(--blue-light);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.88rem;
}

.hours-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hours-day {
  color: rgba(255, 255, 255, 0.55);
}

.hours-time {
  color: var(--white);
  font-weight: 500;
}

.contact-form-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.contact-form-card h3 {
  margin-bottom: 8px;
  color: var(--white);
}

.contact-form-card>p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #B0B5BC;
}

.form-submit {
  width: auto;
  padding: 16px 48px;
  font-size: 1rem;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 14px;
}

.form-msg {
  display: none;
  padding: 15px 18px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-msg.success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
}

.form-msg.error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
}



/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --section-gap: 72px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .why-grid {
    gap: 48px;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 56px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-logo img {
    height: 32px;
  }
  
  .nav-logo-text {
    font-size: 1.1rem;
    white-space: normal;
    line-height: 1.2;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .notable-projects-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .hero-content {
    padding-top: 120px;
    padding-bottom: 48px;
  }

  .hero-stats {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
  }

  .hero-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    padding: 18px 14px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-image-accent {
    display: none;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process-steps::before {
    display: none;
  }

  .gallery-grid {
    columns: 2;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info-block {
    position: static;
  }

  .contact-form-card {
    padding: 30px 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-inner .btn {
    align-self: center;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    columns: 1;
  }

  .hero-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── CAROUSEL (mobile portfolio gallery) ──────────────────── */
.projects-carousel-wrapper {
  position: relative;
}

.carousel-btn {
  display: none !important;
}

.carousel-dots {
  display: none;
}

@media (max-width: 768px) {

  /* ── Mobile nav logo fix ── */
  .nav-logo {
    max-width: calc(100% - 60px);
    overflow: hidden;
  }

  .nav-logo-text {
    font-size: 0.95rem !important;
    white-space: normal;
    line-height: 1.2;
    max-width: 200px;
  }

  .nav-logo-sub {
    display: block; /* "Technical Services" on its own line */
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.75;
  }

  /* ── Hero buttons - stack vertically ── */
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* ── Portfolio carousel ── */
  .projects-carousel-wrapper {
    position: relative;
    overflow: hidden;
  }

  #projectsGrid.notable-projects-grid {
    display: flex !important;
    flex-direction: row;
    transition: transform 0.4s ease;
    will-change: transform;
    gap: 0;
    width: max-content;
  }

  #projectsGrid.notable-projects-grid > div {
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    flex-shrink: 0;
    margin: 0;
    border-radius: var(--radius);
    box-sizing: border-box;
  }

  /* Services carousel on mobile */
  #servicesGrid.services-grid {
    display: flex !important;
    flex-direction: row;
    transition: transform 0.4s ease;
    will-change: transform;
    gap: 0;
    width: max-content;
  }

  #servicesGrid.services-grid > .service-card {
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    flex-shrink: 0;
    margin: 0;
    box-sizing: border-box;
  }

  /* Disable the dark hover effect on touch/mobile carousels */
  #servicesGrid .service-card:hover {
    background: var(--white);
  }

  #servicesGrid .service-card:hover h3,
  #servicesGrid .service-card:hover p,
  #servicesGrid .service-card:hover .service-icon {
    color: inherit;
  }

  #servicesGrid .service-card:hover::before {
    width: 0;
  }

  .carousel-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(10, 22, 40, 0.75);
    border: 1.5px solid rgba(66, 165, 245, 0.6);
    color: #fff;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(4px);
    line-height: 1;
    padding: 0;
    transition: background var(--transition);
  }

  .carousel-btn:hover {
    background: rgba(21, 101, 192, 0.85);
    border-color: var(--blue-light);
  }

  .carousel-btn-prev {
    left: 8px;
  }

  .carousel-btn-next {
    right: 8px;
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 4px 0;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background var(--transition), width var(--transition);
  }

  .carousel-dot.active {
    background: var(--blue-light);
    width: 24px;
    border-radius: 5px;
  }

  /* Services dots sit on the light off-white section — use dark colours */
  #servicesDots .carousel-dot {
    background: rgba(10, 22, 40, 0.25);
  }

  #servicesDots .carousel-dot.active {
    background: var(--blue);
  }
}

/* ── SERVICES DETAIL (portfolio.html) ───────────────────── */
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.svc-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 28px 28px 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.svc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-left-color: var(--blue-light);
}

.svc-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--blue-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--blue);
  transition: background var(--transition), color var(--transition);
}

.svc-card:hover .svc-icon-wrap {
  background: var(--blue);
  color: #fff;
}

.svc-body h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: var(--navy);
}

.svc-body p {
  font-size: 0.88rem;
  line-height: 1.75;
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .services-detail-grid {
    grid-template-columns: 1fr;
  }

  .svc-card {
    flex-direction: column;
    gap: 14px;
  }
}