/* =========================================================
   SG Tec Engineering — Theme / Design System
   Premium, modern, light. Engineering-blue accent.
   ========================================================= */

:root {
  /* Color tokens */
  --bg:           #ffffff;
  --bg-soft:      #f8fafc;
  --bg-softer:    #f1f5f9;
  --text:         #0f172a;
  --text-muted:   #475569;
  --text-subtle:  #64748b;
  --accent:       #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft:  #eff6ff;
  --border:       #e2e8f0;
  --white:        #ffffff;
  --navy:         #0b1b3a;

  /* Typography */
  --font-head: "Poppins", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Radii & shadows */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow:    0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .25);
  --shadow-accent: 0 14px 30px -12px rgba(37, 99, 235, .5);

  /* Layout */
  --container: 1180px;
  --gutter: 24px;
}

/* ---------- Reset-lite ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.12;
  margin: 0 0 .4em;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; color: var(--text-muted); }

ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head p { font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow--pill {
  background: var(--accent-soft);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
}

.text-muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .98rem;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.btn-light {
  background: #fff;
  color: var(--accent);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-lg { padding: 16px 32px; font-size: 1.02rem; }

.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Floating contact actions ---------- */
.floating-contact-actions {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 12px;
}
.floating-contact-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #fff;
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, .2));
}
.floating-contact-action svg {
  order: 2;
  width: 56px;
  height: 56px;
  flex: none;
  padding: 15px;
  border-radius: 50%;
  background: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.floating-contact-action span {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.25;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.floating-contact-action:hover span,
.floating-contact-action:focus-visible span { opacity: 1; transform: translateX(0); }
.floating-contact-action:hover svg { transform: translateY(-3px) scale(1.04); box-shadow: 0 10px 18px rgba(15, 23, 42, .2); }
.floating-contact-action:focus-visible { outline: none; }
.floating-contact-action:focus-visible svg { outline: 3px solid #fff; outline-offset: 3px; }
.floating-contact-action--whatsapp svg { background: #25d366; }
.floating-contact-action--whatsapp:hover svg { background: #1ebe5a; }
.floating-contact-action--call:hover svg { background: var(--accent-hover); }

@media (max-width: 640px) {
  .floating-contact-actions { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); gap: 10px; }
  .floating-contact-action svg { width: 52px; height: 52px; padding: 14px; }
}

/* =========================================================
   Navbar
   ========================================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, .7);
  /* Raised 3D effect: inner top highlight + hairline edge + drop shadow */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    0 1px 0 rgba(15, 23, 42, .06),
    0 10px 28px -14px rgba(15, 23, 42, .35);
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-nav.is-scrolled {
  border-color: var(--border);
  background: rgba(255, 255, 255, .92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 1px 0 rgba(15, 23, 42, .08),
    0 16px 36px -16px rgba(15, 23, 42, .45);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  flex: none;
}
.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}
.brand-logo--full { height: 54px; }
.brand-logo--icon { display: none; width: 52px; height: 52px; }
.brand-logo--footer { height: 64px; max-width: 100%; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .96rem;
  color: var(--text-muted);
  position: relative;
  transition: color .18s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--text); }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-dropdown-toggle .chevron { transition: transform .2s ease; }
.nav-dropdown:hover .nav-dropdown-toggle .chevron,
.nav-dropdown:focus-within .nav-dropdown-toggle .chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  transform: translateX(-50%) translateY(6px);
  min-width: 230px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 16px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-links .nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .92rem;
  white-space: nowrap;
}
.nav-links .nav-dropdown-menu a::after { display: none; }
.nav-links .nav-dropdown-menu a:hover { background: var(--accent-soft); color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.site-nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.site-footer h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer p { color: #94a3b8; font-size: .96rem; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #cbd5e1; font-size: .96rem; transition: color .18s ease; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; color: #cbd5e1; font-size: .95rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.footer-contact a { color: inherit; transition: color .18s ease; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .88rem;
  color: #94a3b8;
}
.site-footer .footer-credit { margin: 6px 0 0; font-size: .84rem; }
.footer-credit a { color: #cbd5e1; font-weight: 600; transition: color .18s ease; }
.footer-credit a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  transition: background .18s ease, transform .18s ease;
}
.footer-social a:hover { background: var(--accent); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; color: #fff; }

/* ---------- Certifications ---------- */
.certifications-section { background: linear-gradient(180deg, #f8fbff 0%, #fff 100%); }
.certification-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.certification-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.certification-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.certification-card--environment { border-top-color: #059669; }
.certification-card--safety { border-top-color: #ea580c; }
.certificate-image { display: block; padding: 16px; background: #f1f5f9; overflow: hidden; }
.certificate-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .13);
  transition: transform .3s ease;
}
.certification-card:hover .certificate-image img { transform: scale(1.025); }
.certification-card__body { padding: 22px 24px 24px; }
.certification-card__label {
  margin-bottom: 7px;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.certification-card--environment .certification-card__label { color: #047857; }
.certification-card--safety .certification-card__label { color: #c2410c; }
.certification-card h3 { margin-bottom: 4px; font-size: 1.38rem; }
.certification-card__body > p:not(.certification-card__label) { margin-bottom: 15px; }
.certification-scope { max-width: 850px; margin: 32px auto 0; text-align: center; font-size: .91rem; }

.bizsafe-band {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
  padding: 26px 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid #dc2626;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.bizsafe-band:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.bizsafe-band__logo {
  display: grid;
  place-items: center;
  padding: 18px;
  background: #f1f5f9;
  border-radius: 10px;
}
.bizsafe-band__logo img {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}
.bizsafe-band__label {
  margin-bottom: 7px;
  color: #b91c1c;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.bizsafe-band__body h3 { margin-bottom: 8px; font-size: 1.38rem; }
.bizsafe-band__body > p:not(.bizsafe-band__label) { margin-bottom: 0; font-size: .95rem; }

.footer-certifications {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-certifications > p {
  flex: none;
  margin: 0;
  color: #94a3b8;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-certifications__badges { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-certification {
  display: flex;
  min-width: 194px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  transition: transform .18s ease, box-shadow .18s ease;
}
.footer-certification:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .25); }
.footer-certification__check { padding: 13px 0 13px 12px; color: var(--accent); font-size: 1.05rem; font-weight: 700; }
.footer-certification__copy { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 9px; }
.footer-certification__copy small { color: #475569; font-size: .64rem; font-weight: 600; line-height: 1.15; }
.footer-certification__copy strong { color: var(--navy); font-family: var(--font-head); font-size: .95rem; white-space: nowrap; }
.footer-certification__tab { display: flex; align-items: center; padding: 7px 5px; background: var(--accent); color: #fff; font-size: .56rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.footer-certification--environment .footer-certification__check { color: #059669; }
.footer-certification--environment .footer-certification__tab { background: #059669; }
.footer-certification--safety .footer-certification__check { color: #ea580c; }
.footer-certification--safety .footer-certification__tab { background: #ea580c; }

/* ---------- Responsive: nav + footer ---------- */
@media (max-width: 900px) {
  .brand-logo--full { display: none; }
  .brand-logo--icon { display: block; }
  .nav-toggle { display: flex; }
  .nav-links,
  .nav-cta .btn { display: none; }
  .site-nav .nav-links {
    position: absolute;
    left: 0; right: 0; top: 76px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #fff;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open .nav-links { display: flex; }
  .site-nav .nav-links a { width: 100%; padding: 12px 0; font-size: 1.05rem; }
  .site-nav .nav-links a::after { display: none; }

  /* Dropdown becomes an always-visible sub-list inside the mobile menu */
  .nav-dropdown { width: 100%; }
  .nav-dropdown::before { display: none; }
  .nav-dropdown-toggle { justify-content: space-between; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    border: none;
    box-shadow: none;
    padding: 0 0 4px 16px;
    max-height: 42vh;
  }
  .site-nav .nav-links .nav-dropdown-menu a { padding: 9px 0; font-size: .98rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-certifications { align-items: flex-start; flex-direction: column; gap: 14px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .certification-grid { grid-template-columns: 1fr; }
  .bizsafe-band { grid-template-columns: 1fr; gap: 20px; padding: 22px; text-align: center; }
  .bizsafe-band__logo { justify-self: center; width: 100%; }
  .footer-certifications__badges { display: grid; grid-template-columns: 1fr; width: 100%; }
  .footer-certification { width: 100%; }
}

@media (min-width: 561px) and (max-width: 900px) {
  .certification-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(78px, 10vw, 128px) 0 clamp(64px, 8vw, 96px);
  min-height: 400px;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: #fff;
}
/* Photo sits on its own layer so contrast can be restored without touching the text. */
.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/contactus-985a95ff.jpg") center 35% / cover no-repeat;
  filter: contrast(1.14) saturate(1.12);
  image-rendering: auto;
}
.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11, 27, 58, .94) 0%, rgba(11, 27, 58, .84) 32%, rgba(11, 27, 58, .5) 54%, rgba(11, 27, 58, .22) 78%, rgba(11, 27, 58, .16) 100%);
}
.contact-intro { position: relative; z-index: 2; max-width: var(--container); }
.contact-intro h1 { color: #fff; max-width: 700px; }
.contact-intro h1 .accent { color: #9fc1ff; }
.contact-intro p { max-width: 650px; color: rgba(255, 255, 255, .84); font-size: clamp(1.05rem, 2vw, 1.2rem); }
.contact-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.contact-hero-points li {
  padding: 8px 16px;
  border: 1px solid rgba(159, 193, 255, .35);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .9);
  font-size: .9rem;
  font-weight: 600;
}
.contact-section { padding-top: 64px; }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(500px, 1.45fr);
  gap: clamp(42px, 7vw, 88px);
  align-items: start;
}
.contact-details > p { max-width: 430px; }
.contact-detail-list { display: grid; gap: 24px; margin-top: 34px; }
.contact-detail { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.contact-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: #17436f;
  font-size: 1.25rem;
}
.contact-icon--whatsapp { color: #08a856; background: #ecfdf5; }
.contact-detail small { display: block; color: var(--text-muted); line-height: 1.35; margin-bottom: 2px; }
.contact-detail a,
.contact-detail strong,
.contact-detail address {
  display: block;
  color: #064781;
  font-style: normal;
  font-weight: 600;
  line-height: 1.48;
}
.contact-detail a:hover { color: var(--accent); }
.contact-form-card {
  padding: clamp(28px, 4vw, 48px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.contact-form-card > p { margin-bottom: 30px; }
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.contact-form-wide { grid-column: 1 / -1; }
.contact-form .form-field input,
.contact-form .form-field textarea {
  width: 100%;
  background: var(--bg-soft);
}
.contact-form .btn { border: 0; }
.contact-map { height: clamp(360px, 42vw, 520px); background: var(--bg-softer); }
.contact-map iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-hero::before { background-position: center 40%; }
  .contact-hero::after {
    background: linear-gradient(165deg, rgba(11, 27, 58, .9) 0%, rgba(11, 27, 58, .74) 55%, rgba(11, 27, 58, .6) 100%);
  }
}

@media (max-width: 560px) {
  .contact-hero { min-height: 360px; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .contact-form-wide { grid-column: auto; }
  .contact-form-card { padding: 24px 20px; border-radius: var(--radius); }
}
