
/* =========================================================
   3S ENGINEERING SERVICE
   Premium Corporate Website — Main Stylesheet
   Theme: Deep Navy, Warm Gold & Ivory
   ========================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */

:root {
  --navy: #091827;
  --navy-light: #10273a;
  --navy-soft: #17354b;
  --gold: #c9a45c;
  --gold-light: #e5cc91;
  --ivory: #f8f6f0;
  --white: #ffffff;
  --text: #263747;
  --muted: #687783;
  --border: rgba(15, 36, 52, 0.12);
  --shadow: 0 18px 55px rgba(9, 24, 39, 0.11);
  --shadow-hover: 0 24px 65px rgba(9, 24, 39, 0.17);
  --container: 1200px;
  --header-height: 88px;
  --transition: 260ms ease;
}

/* ---------- 2. RESET & BASE ---------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea,
select {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

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

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

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

ul {
  list-style: none;
}

::selection {
  color: var(--navy);
  background: var(--gold-light);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 112px 0;
  scroll-margin-top: 95px;
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.035em;
}

h1,
h2,
.serif-text {
  font-family: Georgia, "Times New Roman", serif;
}

p {
  margin-bottom: 16px;
}

p:last-child {
  margin-bottom: 0;
}

.gold-text {
  color: var(--gold-light);
}

.gold-divider {
  display: block;
  width: 62px;
  height: 3px;
  margin: 23px 0;
  background: var(--gold);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 21px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  line-height: 1.6;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.light-eyebrow {
  color: var(--gold-light);
}

/* ---------- 3. ANNOUNCEMENT BAR ---------- */

.announcement {
  position: relative;
  z-index: 1002;
  color: rgba(255, 255, 255, 0.84);
  background: #06121e;
  font-size: 0.75rem;
}

.announcement-inner {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.announcement p {
  margin: 0;
}

.announcement a {
  color: var(--gold-light);
  transition: color var(--transition);
}

.announcement a:hover {
  color: var(--white);
}

/* ---------- 4. HEADER & NAVIGATION ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(9, 24, 39, 0.07);
  box-shadow: 0 5px 25px rgba(9, 24, 39, 0.035);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-container {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand-logo {
  width: 57px;
  height: 57px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 8px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-name {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  line-height: 1.2;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.5;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 27px;
}

.main-nav > a {
  position: relative;
  padding: 10px 0;
  color: #344453;
  font-size: 0.79rem;
  font-weight: 650;
  transition: color var(--transition);
}

.main-nav > a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.main-nav > a:hover,
.main-nav > a.active {
  color: var(--gold);
}

.main-nav > a:hover::after,
.main-nav > a.active::after {
  transform: scaleX(1);
}

.main-nav .nav-contact {
  padding: 12px 19px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.main-nav .nav-contact:hover {
  color: var(--navy);
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  background: var(--ivory);
  border: 1px solid var(--border);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  background: var(--navy);
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- 5. HERO SECTION ---------- */

.hero {
  position: relative;
  display: flex;
  min-height: min(760px, calc(100svh - 110px));
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  isolation: isolate;
}

.hero-background,
.hero-overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.hero-background {
  background-color: var(--navy);
  background-image: url("../images/industrial-plant.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(5, 17, 29, 0.96) 0%,
      rgba(5, 17, 29, 0.88) 43%,
      rgba(5, 17, 29, 0.52) 75%,
      rgba(5, 17, 29, 0.42) 100%
    ),
    linear-gradient(
      0deg,
      rgba(5, 17, 29, 0.55),
      transparent 45%
    );
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: 55px;
  padding-top: 95px;
  padding-bottom: 115px;
}

.hero-text {
  max-width: 730px;
  animation: riseIn 850ms ease both;
}

.hero .eyebrow {
  color: var(--gold-light);
}

.hero h1 {
  max-width: 800px;
  color: var(--white);
  font-size: clamp(2.75rem, 5.4vw, 5.1rem);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -0.055em;
}

.hero-description {
  max-width: 590px;
  margin-top: 25px;
  color: rgba(255, 255, 255, 0.77);
  font-size: 1.03rem;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 14px 24px;
  border: 1px solid transparent;
  font-size: 0.81rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-gold {
  color: var(--navy);
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 8px 25px rgba(201, 164, 92, 0.15);
}

.btn-gold:hover {
  background: var(--white);
  border-color: var(--white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.17);
}

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

.btn-outline:hover {
  color: var(--navy);
  background: var(--white);
  border-color: var(--white);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 25px;
  margin-top: 39px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-highlights span::before {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  content: "";
}

/* Decorative circular emblem */

.hero-emblem {
  position: relative;
  display: grid;
  width: min(100%, 365px);
  aspect-ratio: 1;
  align-items: center;
  justify-items: center;
  justify-self: center;
  border: 1px solid rgba(229, 204, 145, 0.25);
  border-radius: 50%;
  animation: emblemFloat 6s ease-in-out infinite;
}

.emblem-ring {
  position: absolute;
  inset: 17px;
  border: 1px solid rgba(229, 204, 145, 0.36);
  border-radius: 50%;
}

.emblem-ring::before,
.emblem-ring::after {
  position: absolute;
  border: 1px solid rgba(229, 204, 145, 0.18);
  border-radius: 50%;
  content: "";
}

.emblem-ring::before {
  inset: 17px;
}

.emblem-ring::after {
  inset: 35px;
}

.emblem-center {
  display: flex;
  width: 47%;
  height: 47%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(201, 164, 92, 0.1);
  border: 1px solid rgba(229, 204, 145, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 65px rgba(201, 164, 92, 0.1);
}

.emblem-number {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 6vw, 4.5rem);
  line-height: 1;
}

.emblem-caption {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.emblem-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--gold-light);
  border: 2px solid var(--navy);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(229, 204, 145, 0.65);
}

.emblem-dot:nth-of-type(1) {
  top: 8%;
  left: 50%;
}

.emblem-dot:nth-of-type(2) {
  top: 50%;
  right: 8%;
}

.emblem-dot:nth-of-type(3) {
  bottom: 8%;
  left: 50%;
}

.emblem-dot:nth-of-type(4) {
  top: 50%;
  left: 8%;
}

.emblem-note {
  position: absolute;
  right: -20px;
  bottom: 24px;
  max-width: 190px;
  padding: 15px 18px;
  color: var(--white);
  background: rgba(9, 24, 39, 0.86);
  border-left: 3px solid var(--gold);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  font-size: 0.74rem;
  line-height: 1.7;
  backdrop-filter: blur(12px);
}

.hero-bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 17, 29, 0.28);
}

.hero-bottom-inner {
  display: flex;
  min-height: 61px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.71rem;
  letter-spacing: 0.025em;
}

/* ---------- 6. INTRODUCTION ---------- */

.intro-section {
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 90px;
}

.intro-heading h2,
.section-heading h2,
.dark-copy h2,
.safety-content h2 {
  font-size: clamp(2.1rem, 4vw, 3.45rem);
  font-weight: 500;
  line-height: 1.18;
}

.serif-text {
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.8;
}

.side-note {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 35px;
  padding: 18px;
  background: var(--ivory);
  border-left: 3px solid var(--gold);
}

.side-note::before {
  color: var(--gold);
  font-size: 1.35rem;
  line-height: 1;
  content: "✦";
}

.side-note p {
  margin: 0;
  color: var(--navy);
  font-size: 0.83rem;
  font-weight: 650;
}

.intro-content {
  padding-top: 37px;
}

.intro-content p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.95;
}

.intro-content .lead {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 550;
  line-height: 1.85;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
  padding-bottom: 5px;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  transition:
    color var(--transition),
    gap var(--transition);
}

.text-link:hover {
  gap: 17px;
  color: #98702e;
}

/* ---------- 7. SECTION HEADINGS ---------- */

.section-heading {
  max-width: 730px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
}

.section-heading .gold-divider {
  margin: 23px auto;
}

.section-heading > p:last-child {
  max-width: 590px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.9;
}

/* ---------- 8. SERVICES CARDS ---------- */

.services-section {
  background: var(--ivory);
}

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

.service-card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 33px 30px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(9, 24, 39, 0.075);
  box-shadow: 0 7px 25px rgba(9, 24, 39, 0.035);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.service-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 350ms ease;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(201, 164, 92, 0.45);
  box-shadow: var(--shadow);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 30px;
}

.service-number {
  color: #b6bec4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.service-icon {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  color: var(--gold);
  background: var(--ivory);
  border: 1px solid rgba(201, 164, 92, 0.27);
  font-size: 1.5rem;
  transition:
    color var(--transition),
    background var(--transition),
    transform var(--transition);
}

.service-card:hover .service-icon {
  color: var(--navy);
  background: var(--gold-light);
  transform: rotate(-5deg);
}

.service-card h3 {
  margin-bottom: 14px;
  font-size: 1.26rem;
  letter-spacing: -0.025em;
}

.service-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.9;
}

.service-card .text-link {
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.76rem;
}

/* ---------- 9. DARK APPROACH SECTION ---------- */

.dark-section {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.75);
  background:
    radial-gradient(
      circle at 95% 10%,
      rgba(201, 164, 92, 0.1),
      transparent 28%
    ),
    var(--navy);
}

.dark-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 90px;
}

.dark-copy h2 {
  margin-bottom: 25px;
  color: var(--white);
}

.dark-copy > p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
  line-height: 1.95;
}

.approach-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.approach-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 17px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.approach-item > span:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--gold-light);
  border: 1px solid rgba(229, 204, 145, 0.38);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
}

.approach-item h3 {
  margin-bottom: 7px;
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.approach-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.83rem;
  line-height: 1.8;
}

/* ---------- 10. INDUSTRIES ---------- */

.industries-section {
  background: var(--white);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.industry-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}

.industry-card > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.industry-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(5, 17, 29, 0.95) 0%,
    rgba(5, 17, 29, 0.44) 52%,
    rgba(5, 17, 29, 0.08) 100%
  );
  content: "";
}

.industry-card:hover > img {
  transform: scale(1.09);
}

.industry-overlay {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
  transition: border-color var(--transition);
}

.industry-card:hover .industry-overlay {
  border-color: rgba(229, 204, 145, 0.85);
}

.industry-caption {
  position: absolute;
  right: 22px;
  bottom: 23px;
  left: 22px;
}

.industry-caption span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-light);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.industry-caption h3 {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;
}

.industry-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- 11. SAFETY & QUALITY ---------- */

.safety-section {
  background: var(--ivory);
}

.safety-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 85px;
}

.safety-image {
  position: relative;
  min-height: 440px;
  background: #d8dedf;
  overflow: visible;
}

.safety-image > img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.image-stamp {
  position: absolute;
  right: -22px;
  bottom: 27px;
  max-width: 205px;
  padding: 20px 23px;
  color: var(--white);
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow);
}

.image-stamp strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.image-stamp span {
  display: block;
  font-size: 0.73rem;
  line-height: 1.65;
}

.safety-content h2 {
  margin-bottom: 24px;
}

.safety-content > p {
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.9;
}

.safety-content .lead {
  color: var(--navy);
  font-size: 1.03rem;
}

.safety-content .text-link {
  margin-top: 12px;
}

/* ---------- 12. FINAL CALL TO ACTION ---------- */

.final-cta-section {
  padding: 80px 0;
  background: var(--white);
}

.final-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 55px 60px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(201, 164, 92, 0.17),
      transparent 36%
    ),
    var(--navy);
}

.final-cta::after {
  position: absolute;
  top: -100px;
  right: 15%;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(229, 204, 145, 0.17);
  border-radius: 50%;
  box-shadow:
    0 0 0 25px rgba(229, 204, 145, 0.025),
    0 0 0 50px rgba(229, 204, 145, 0.025);
  content: "";
  pointer-events: none;
}

.final-cta > div {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.final-cta h2 {
  margin-bottom: 15px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 500;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.final-cta > .btn {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ---------- 13. FOOTER ---------- */

.site-footer {
  color: rgba(255, 255, 255, 0.68);
  background: #06121e;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr;
  gap: 70px;
  padding-top: 75px;
  padding-bottom: 65px;
}

.footer-brand-area .brand {
  margin-bottom: 22px;
}

.footer-brand-area .brand-name {
  color: var(--white);
}

.footer-brand-area .brand-subtitle {
  color: rgba(255, 255, 255, 0.55);
}

.footer-brand-area > p {
  max-width: 390px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  line-height: 1.9;
}

.footer-links h3 {
  margin-bottom: 24px;
  color: var(--white);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.footer-links ul {
  display: grid;
  gap: 13px;
}

.footer-links li,
.footer-links a {
  font-size: 0.81rem;
  line-height: 1.7;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.64);
  overflow-wrap: anywhere;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.73rem;
}

.footer-bottom p {
  margin: 0;
}

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

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-weight: 700;
  transition: color var(--transition);
}

.back-top:hover {
  color: var(--gold-light);
}

.floating-top {
  position: fixed;
  z-index: 900;
  right: 23px;
  bottom: 23px;
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  color: var(--navy);
  background: var(--gold-light);
  border: 1px solid rgba(9, 24, 39, 0.1);
  box-shadow: 0 8px 24px rgba(9, 24, 39, 0.16);
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity var(--transition),
    visibility var(--transition),
    transform var(--transition),
    background var(--transition);
}

.floating-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-top:hover {
  background: var(--white);
}

/* ---------- 14. REVEAL ANIMATIONS ---------- */

/*
  JavaScript can add .reveal to elements and .is-visible
  when they enter the viewport.
  Without JavaScript, content stays visible.
*/

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 100ms !important;
}

.reveal-delay-2 {
  transition-delay: 200ms !important;
}

.reveal-delay-3 {
  transition-delay: 300ms !important;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.06);
  }
}

@keyframes emblemFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

/* ---------- 15. RESPONSIVE: TABLETS ---------- */

@media (max-width: 1080px) {
  :root {
    --header-height: 78px;
  }

  .main-nav {
    gap: 17px;
  }

  .main-nav > a {
    font-size: 0.75rem;
  }

  .main-nav .nav-contact {
    padding: 11px 14px;
  }

  .brand-logo {
    width: 49px;
    height: 49px;
  }

  .brand-name {
    font-size: 0.96rem;
  }

  .brand-subtitle {
    font-size: 0.56rem;
  }

  .hero-content {
    gap: 35px;
  }

  .hero-emblem {
    width: min(100%, 300px);
  }

  .intro-grid,
  .dark-grid,
  .safety-grid {
    gap: 55px;
  }

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

  .industry-card {
    min-height: 340px;
  }

  .footer-main {
    gap: 40px;
  }
}

/* ---------- 16. RESPONSIVE: MOBILE NAV ---------- */

@media (max-width: 820px) {
  .container {
    width: min(var(--container), calc(100% - 36px));
  }

  .announcement-inner {
    justify-content: center;
    text-align: center;
  }

  .announcement-inner > *:not(:first-child) {
    display: none;
  }

  .nav-container {
    position: relative;
    min-height: 74px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: -18px;
    left: -18px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px 22px 22px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 28px rgba(9, 24, 39, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity var(--transition),
      visibility var(--transition),
      transform var(--transition);
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav > a {
    padding: 13px 4px;
    border-bottom: 1px solid rgba(9, 24, 39, 0.07);
    font-size: 0.86rem;
  }

  .main-nav > a:not(.nav-contact)::after {
    display: none;
  }

  .main-nav .nav-contact {
    margin-top: 14px;
    padding: 14px 18px;
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 85px;
    padding-bottom: 115px;
  }

  .hero-text {
    max-width: 680px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 9vw, 4.6rem);
  }

  .hero-emblem {
    width: 240px;
    justify-self: start;
    margin-left: 10px;
  }

  .emblem-note {
    right: -35px;
  }

  .hero-bottom-inner {
    min-height: 55px;
    font-size: 0.66rem;
  }

  .section {
    padding: 82px 0;
  }

  .intro-grid,
  .dark-grid,
  .safety-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .intro-content {
    padding-top: 0;
  }

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

  .service-card {
    min-height: 285px;
    padding: 27px 23px;
  }

  .dark-grid {
    gap: 30px;
  }

  .safety-image {
    max-width: 620px;
    width: calc(100% - 15px);
  }

  .safety-content {
    padding-top: 15px;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 42px 32px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 30px;
    padding-top: 58px;
    padding-bottom: 50px;
  }

  .footer-brand-area {
    grid-column: 1 / -1;
  }
}

/* ---------- 17. RESPONSIVE: SMALL PHONES ---------- */

@media (max-width: 520px) {
  .container {
    width: calc(100% - 32px);
  }

  .announcement {
    font-size: 0.68rem;
  }

  .announcement-inner {
    min-height: 34px;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 43px;
    height: 43px;
  }

  .brand-name {
    font-size: 0.85rem;
  }

  .brand-subtitle {
    max-width: 190px;
    font-size: 0.48rem;
    letter-spacing: 0.045em;
  }

  .menu-toggle {
    width: 41px;
    height: 41px;
  }

  .hero-content {
    gap: 42px;
    padding-top: 65px;
    padding-bottom: 105px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.5rem);
  }

  .hero-description {
    margin-top: 20px;
    font-size: 0.91rem;
    line-height: 1.85;
  }

  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-highlights {
    flex-direction: column;
    gap: 11px;
    margin-top: 27px;
  }

  .hero-emblem {
    width: 205px;
  }

  .emblem-note {
    right: -43px;
    bottom: 12px;
    max-width: 155px;
    padding: 11px 12px;
    font-size: 0.65rem;
  }

  .hero-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 0.63rem;
  }

  .section {
    padding: 67px 0;
  }

  .intro-heading h2,
  .section-heading h2,
  .dark-copy h2,
  .safety-content h2 {
    font-size: 2.25rem;
  }

  .serif-text {
    font-size: 1.03rem;
  }

  .section-heading {
    margin-bottom: 36px;
  }

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

  .service-card {
    min-height: auto;
    padding: 26px;
  }

  .service-top {
    margin-bottom: 21px;
  }

  .service-card p {
    margin-bottom: 20px;
  }

  .industries-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .industry-card {
    min-height: 285px;
  }

  .safety-image {
    min-height: 310px;
  }

  .safety-image > img {
    height: 310px;
  }

  .image-stamp {
    right: -8px;
    bottom: 15px;
    max-width: 175px;
    padding: 14px 17px;
  }

  .image-stamp strong {
    font-size: 1.3rem;
  }

  .final-cta-section {
    padding: 48px 0;
  }

  .final-cta {
    gap: 20px;
    padding: 32px 24px;
  }

  .final-cta h2 {
    font-size: 2rem;
  }

  .final-cta > .btn {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 33px;
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .footer-brand-area {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .floating-top {
    right: 14px;
    bottom: 14px;
    width: 41px;
    height: 41px;
  }
}

/* ---------- 18. ACCESSIBILITY & REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-reveal .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 19. PRINT ---------- */

@media print {
  .announcement,
  .site-header,
  .hero-buttons,
  .floating-top,
  .final-cta-section,
  .site-footer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding: 25px 0;
    break-inside: avoid;
  }

  .hero {
    min-height: auto;
    color: #000;
    background: #fff;
  }

  .hero h1,
  .hero-description {
    color: #000;
  }

  .hero-emblem {
    display: none;
  }
}



/* =========================================================
   3S ENGINEERING SERVICE
   ADDITIONAL FIXES — KEEP ALL ORIGINAL CSS ABOVE
   ========================================================= */

/* Ensure page content remains visible if reveal JavaScript fails */
.reveal,
.js-reveal .reveal,
.js-reveal .reveal.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Industries page */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.industry-card {
    position: relative;
    min-height: 300px;
}

/* Manpower page */
.manpower-table-wrapper,
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.manpower-table-wrapper table,
.table-responsive table {
    width: 100%;
    border-collapse: collapse;
}

.manpower-table-wrapper th,
.manpower-table-wrapper td,
.table-responsive th,
.table-responsive td {
    padding: 14px 16px;
    text-align: left;
    border: 1px solid var(--border);
}

.manpower-table-wrapper th,
.table-responsive th {
    color: var(--white);
    background: var(--navy);
}

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.contact-grid > *,
.contact-card {
    min-width: 0;
}

.contact-card {
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.contact-card p,
.contact-card a {
    overflow-wrap: anywhere;
}

/* Keep page content above decorative layers */
main,
main section,
.page-hero,
.contact-grid,
.manpower-table-wrapper,
.table-responsive {
    position: relative;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .industries-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .industry-card {
        min-height: 260px;
    }

    .manpower-table-wrapper table,
    .table-responsive table {
        min-width: 600px;
    }
}






/* ===== Animated World Map ===== */

.world-map-animation {
  position: relative;
  width: 100%;
  max-width: 650px;
  aspect-ratio: 800 / 460;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.world-map-animation::before {
  content: "";
  position: absolute;
  inset: 12%;
  background: radial-gradient(
    ellipse,
    rgba(215, 180, 103, 0.10),
    transparent 68%
  );
  z-index: -1;
}

.world-map {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(217, 189, 123, .06));
}

/* 3S badge moves continuously across the world map */
.orbit-track {
  position: absolute;
  width: 84%;
  height: 60%;
  left: 8%;
  top: 20%;
  border: 1px solid rgba(218, 188, 119, .48);
  border-radius: 50%;
  animation: world-orbit 18s linear infinite;
  pointer-events: none;
}

.orbit-badge {
  position: absolute;
  width: 88px;
  height: 88px;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  border: 1px solid #dfc17d;
  border-radius: 50%;
  background: #0a1b2a;
  box-shadow:
    0 0 0 7px rgba(223, 193, 125, .07),
    0 0 28px rgba(223, 193, 125, .22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.orbit-3s {
  color: #e8cc8b;
  font-family: "Playfair Display", serif;
  font-size: 35px;
  line-height: 1;
  font-weight: 600;
}

.orbit-caption {
  margin-top: 5px;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}

@keyframes world-orbit {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.world-map-note {
  position: absolute;
  right: 0;
  bottom: 3%;
  padding: 14px 18px;
  background: #0a1b2a;
  border-left: 3px solid #d9bd7b;
  color: #e8cc8b;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.world-map-note small {
  display: block;
  margin-top: 7px;
  color: #cbd2da;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .3px;
}

.world-map-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #e8cc8b;
  box-shadow: 0 0 10px #e8cc8b;
}

@media (max-width: 768px) {
  .world-map-animation {
    width: 100%;
    max-width: 500px;
    margin-top: 35px;
  }

  .orbit-badge {
    width: 64px;
    height: 64px;
  }

  .orbit-3s {
    font-size: 27px;
  }

  .orbit-caption {
    font-size: 6px;
  }

  .world-map-note {
    right: 0;
    bottom: -4%;
    padding: 10px 12px;
    font-size: 9px;
  }

  .world-map-note small {
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-track {
    animation-duration: 60s;
  }
}
