/* ===== 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-h: 76px;
}

* { 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 ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: var(--white);
  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-inner {
  height: 100%;
  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 + name + slogan as one aligned block */
.brand-logo {
  width: auto;
  height: 44px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
/* name letter-spacing is set by JS to match the slogan's width exactly;
   width:max-content stops the flex column stretching the box past the glyphs */
.brand-text strong { font-size: 1.15rem; letter-spacing: 1px; white-space: nowrap; width: max-content; }
.brand-text small { font-size: 0.72rem; color: var(--gold); font-weight: 600; letter-spacing: 0.3px; white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 24px; }

.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--green-800); border-bottom-color: var(--gold); }

.nav-cta { margin-left: 6px; padding: 10px 20px; font-size: 0.82rem; }

.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.32;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.35) 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: var(--gold);
  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);
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  padding: 8px 22px;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  text-transform: uppercase;
  margin: 20px 0 28px;
}

.hero-desc { color: var(--muted); 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); }

/* ===== CTA band ===== */
.cta-band {
  /* work-site photo under a deep green overlay keeps text readable */
  background:
    linear-gradient(120deg, rgba(18, 55, 42, 0.93), rgba(27, 77, 62, 0.9)),
    url("../img/watermark/thi-cong-lap-dat-khung-tran.jpg") center / cover no-repeat;
  padding: 56px 0;
  color: var(--white);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-inner h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; }

/* ===== Footer ===== */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, 0.88); }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
}

.footer-title {
  color: var(--white);
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-logo {
  width: 110px;
  height: auto;
  margin-bottom: 16px;
  /* white plate so the dark-green M stays visible on the dark footer */
  background: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
}

.footer-slogan { color: var(--gold-light); font-weight: 800; letter-spacing: 1.5px; margin-bottom: 6px; }

.contact-list { list-style: none; }
.contact-list li { margin-bottom: 10px; font-size: 0.95rem; }
.contact-list a { color: var(--gold-light); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== 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; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 4%;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .site-nav.open { transform: translateY(0); }
  .nav-link { padding: 14px 4px; border-bottom: 1px solid #eee; }
  .nav-cta { margin: 14px 4px; }

  .services-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta-inner { justify-content: center; text-align: center; }
}
