/* ===== Cơ Điện Mạnh Cường — landing page styles (per PPT mockup) ===== */

:root {
  --green-900: #12372a;
  --green-800: #1b4d3e;
  --green-700: #24604c;
  --green-50: #f0f5f2;
  --gold: #bf9a4a;
  --gold-light: #d9b96e;
  --ink: #21272a;
  --muted: #5b6660;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(18, 55, 42, 0.12);
  --radius: 12px;
  --header-top-h: 74px;
  --header-bar-h: 52px;
  --header-h: calc(var(--header-top-h) + var(--header-bar-h));
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
}

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

a, button { touch-action: manipulation; }

/* Visible keyboard focus (a11y) */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* Skip link — hidden until focused */
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 200;
  background: var(--green-800);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Lucide sprite icons */
.icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ===== Buttons — dark green fill, gold border/text, like the mockup ===== */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }

.btn-cta {
  background: var(--green-800);
  color: var(--gold-light);
  border: 2px solid var(--gold);
}
.btn-cta:hover { background: var(--green-700); color: var(--white); }

.btn-lg { padding: 15px 32px; font-size: 0.98rem; }

/* ===== Header — white identity row above a deep-green nav bar ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s ease;
  z-index: 100;
}
.site-header.scrolled { box-shadow: 0 3px 16px rgba(0, 0, 0, 0.12); }

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

.header-top-inner {
  height: var(--header-top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-800); }

/* Brand lockup: transparent MC monogram + company name */
.brand-logo {
  width: auto;
  height: 46px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 1.15rem; letter-spacing: 1px; white-space: nowrap; }

/* Hotline pill, mirroring the reference header's phone block */
.header-hotline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px 8px 10px;
  border: 1px solid #e0e5e2;
  border-radius: 999px;
  color: var(--green-800);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header-hotline:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.header-hotline-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--gold);
}
.header-hotline-icon .icon { width: 17px; height: 17px; }

.header-bar { background: var(--green-900); }

.header-bar-inner {
  height: var(--header-bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-nav { display: flex; align-items: stretch; height: 100%; }

/* Hairline separators between links, as in the reference bar */
.nav-link {
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}
.nav-link:first-child { padding-left: 0; }
.nav-link:last-child { border-right: 0; }
.nav-link:hover, .nav-link.active { color: var(--gold-light); }

/* Solid pill CTA at the end of the bar */
.nav-cta {
  padding: 9px 24px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--green-900);
  font-size: 0.82rem;
}
.nav-cta:hover { background: var(--gold-light); color: var(--green-900); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--green-800); border-radius: 2px; transition: 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero — light watermark style (client feedback: solid green too heavy) ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--green-50) 100%);
  color: var(--ink);
  padding: calc(var(--header-h) + 88px) 0 96px;
  text-align: center;
}

/* real work-site photo as watermark behind the copy — kept sharp, legibility
   protected by a soft white scrim that fades into the next section */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/watermark/thi-cong-tran-nha-xuong.jpg") center / cover no-repeat;
  opacity: 0.58;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 42% at 50% 40%, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.16) 45%, var(--green-50) 100%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

/* faint hexagons echoing the MC logo */
.hero-watermark {
  position: absolute;
  color: var(--green-800);
  opacity: 0.07;
  pointer-events: none;
}
.hero-watermark-right {
  width: 520px;
  height: 520px;
  right: -140px;
  top: -80px;
  color: var(--gold);
  opacity: 0.14;
}
.hero-watermark-left {
  width: 340px;
  height: 340px;
  left: -110px;
  bottom: -120px;
}

.hero-inner { position: relative; }

.hero-copy { display: flex; flex-direction: column; align-items: center; }

.hero-kicker {
  color: #9a7529;
  font-weight: 700;
  letter-spacing: 5px;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.hero-title {
  color: var(--green-800);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.12;
  margin: 6px 0 10px;
}

.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); margin-bottom: 0; }

.hero-slogan {
  display: block;
  width: fit-content;
  color: var(--green-800);
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  text-transform: uppercase;
  margin: 18px 0 0;
}

.hero-desc { color: #37413c; max-width: 560px; }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-tint { background: var(--green-50); }

.section-title {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  color: var(--green-800);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 18px;
}
/* gold accent bar under section titles (visual hierarchy) */
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--gold);
  margin-top: 10px;
}
.section-title-center { text-align: center; }
.section-title-center::after { margin-inline: auto; }

.section-desc { color: var(--muted); max-width: 720px; margin-bottom: 36px; }
.section-desc-center { margin-inline: auto; text-align: center; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 42px;
  align-items: center;
  margin-bottom: 60px;
}

.about-quote {
  border-left: 4px solid var(--gold);
  padding: 6px 0 6px 18px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green-800);
  font-style: italic;
  margin-bottom: 20px;
}

.about-story p { margin-bottom: 16px; color: #37413c; }

.about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.about-photo figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.subsection-title {
  font-size: 1.3rem;
  color: var(--green-800);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.subsection-desc { color: var(--muted); max-width: 760px; margin-bottom: 28px; }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.audience-card {
  background: var(--white);
  border: 1px solid #e3e8e5;
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 4px 16px rgba(18, 55, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.audience-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--green-50);
  color: var(--green-800);
}
.audience-icon .icon { width: 24px; height: 24px; }
.audience-card h4 { color: var(--green-800); margin: 10px 0 6px; font-size: 1rem; }
.audience-card p { font-size: 0.88rem; color: var(--muted); }

/* ===== Services — solid green tiles with gold icons (mockup) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--green-800);
  border-radius: var(--radius);
  padding: 30px 24px;
  color: var(--white);
  text-align: center;
  box-shadow: 0 6px 18px rgba(18, 55, 42, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}
.service-card:hover { transform: translateY(-5px); background: var(--green-700); }

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(191, 154, 74, 0.16);
  color: var(--gold-light);
  transition: background 0.2s, transform 0.2s;
}
.service-card:hover .service-icon { background: rgba(191, 154, 74, 0.3); transform: scale(1.06); }
.service-icon .icon { width: 30px; height: 30px; }
.service-card h3 { margin: 14px 0 8px; font-size: 1.08rem; color: var(--gold-light); }
.service-card p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }

/* ===== Strengths ===== */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.strength-card {
  background: var(--white);
  border: 1px solid #e3e8e5;
  border-left: 4px solid var(--green-800);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 16px rgba(18, 55, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.strength-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.strength-card h3 { color: var(--green-800); font-size: 1.08rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.strength-card p { font-size: 0.94rem; color: #37413c; }

.strength-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-900);
}
.strength-badge .icon { width: 16px; height: 16px; stroke-width: 3; }

/* ===== Partners — logo slider with arrows like the mockup ===== */
.partners-slider {
  display: flex;
  align-items: center;
  gap: 12px;
}

.partners-track {
  list-style: none;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none; /* arrows + auto-scroll are the controls */
  flex: 1;
  padding: 6px 2px;
}
.partners-track::-webkit-scrollbar { display: none; }

.partners-track li {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 160px;
  height: 76px;
  padding: 14px 20px;
  border: 1px solid #d8ddda;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 3px 10px rgba(18, 55, 42, 0.05);
}

.partners-track img {
  max-height: 42px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
}

/* Text wordmarks for partners whose official logo files are pending */
.partner-name {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.25;
}
.partner-binh-minh { color: #0054a6; }
.partner-hochiki { color: #c8102e; }

.slider-arrow {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #d8ddda;
  background: var(--white);
  color: var(--green-800);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(18, 55, 42, 0.08);
  transition: background 0.2s, color 0.2s;
}
.slider-arrow:hover { background: var(--green-800); color: var(--gold-light); }

/* ===== Footer — brand card + link columns on a light ground ===== */
.site-footer { background: var(--white); color: var(--ink); border-top: 1px solid #e3e8e5; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 330px) 1fr 1fr;
  gap: 34px 48px;
  padding: 60px 0 28px;
  align-items: start;
}

/* Dark green identity card, mirroring the print name-card */
.footer-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--green-900) 0%, var(--green-800) 100%);
  border-radius: 16px;
  padding: 28px 22px 32px;
  color: var(--white);
  box-shadow: var(--shadow);
}
.footer-card-deco {
  position: absolute;
  right: -46px;
  bottom: -56px;
  width: 220px;
  height: 220px;
  color: var(--gold);
  opacity: 0.16;
  pointer-events: none;
}
.footer-card > *:not(.footer-card-deco) { position: relative; z-index: 1; }

.footer-logo {
  width: 96px;
  height: auto;
  margin: 0 auto 18px;
  /* white plate so the dark-green M stays visible on the card */
  background: var(--white);
  padding: 8px 12px;
  border-radius: 10px;
}

.footer-company {
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Address is justified (not centred) per client feedback */
.footer-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}
.footer-address .icon { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--gold-light); }
.footer-address span { flex: 1; text-align: justify; text-align-last: left; }

.footer-title {
  color: var(--green-900);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-list { list-style: none; }
.footer-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #37413c;
}
.footer-list .icon { flex: none; width: 15px; height: 15px; margin-top: 5px; color: var(--gold); stroke-width: 2.5; }
.footer-list a { color: inherit; text-decoration: none; }
.footer-list a:hover { color: var(--green-800); text-decoration: underline; }

.footer-zalo { display: inline-block; margin-top: 6px; transition: transform 0.2s ease; }
.footer-zalo:hover { transform: translateY(-2px); }
.footer-zalo img { width: 66px; height: 66px; }

.footer-bottom {
  grid-column: 2 / -1;
  border-top: 1px solid #e3e8e5;
  padding-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== Floating Zalo button ===== */
.zalo-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #0068ff;
  color: var(--white);
  font-weight: 800;
  font-size: 0.8rem;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 104, 255, 0.45);
  animation: zalo-pulse 2.2s infinite;
}

@keyframes zalo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(0, 104, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 104, 255, 0); }
}

/* ===== Reveal animation (scoped to .js so content stays visible without JS) ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .zalo-float { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; margin-inline: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .strengths-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  :root { --header-h: var(--header-top-h); }

  .nav-toggle { display: flex; }
  .header-hotline { font-size: 0.92rem; padding: 5px 13px 5px 5px; gap: 7px; }
  .header-hotline-icon { width: 27px; height: 27px; }

  .header-bar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .header-bar.open { transform: translateY(0); }

  .header-bar-inner {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 16px;
  }
  .site-nav { flex-direction: column; height: auto; }
  .nav-link { padding: 13px 4px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .nav-link:first-child { padding-left: 4px; }
  .nav-cta { margin-top: 14px; align-self: flex-start; }

  .services-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

@media (max-width: 460px) {
  /* the monogram alone carries the brand once the row gets tight */
  .brand-text { display: none; }
}
