/* ============================================================
   抚州赣东电力 — 官网样式表
   结构：Tokens / Base / Header / Hero / Services / Emergency /
         Qualifications / Projects / About / Contact / Footer /
         Dialog / Floating / Responsive
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  --green-900: #04362c;
  --green-800: #00513f;
  --green-700: #006b57;
  --green-600: #0a8a6e;
  --green-050: #eef5f2;

  --gold-600: #a8811c;
  --gold-500: #c9a227;
  --gold-400: #d9b85c;

  --ink: #12211d;
  --body: #33443f;
  --muted: #6b7a75;
  --paper: #f6f5f1;
  --white: #ffffff;

  --line: rgba(0, 82, 64, 0.14);
  --line-strong: rgba(0, 82, 64, 0.26);

  --shadow-sm: 0 2px 10px rgba(4, 54, 44, 0.06);
  --shadow-md: 0 12px 32px rgba(4, 54, 44, 0.1);
  --shadow-lg: 0 24px 60px rgba(4, 54, 44, 0.16);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --container: 1200px;
  --header-h: 78px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1em;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--green-700);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--green-800);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- 3. Layout utilities ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
}

.eyebrow span {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold-500);
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.82);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 800;
}

.section-head > p {
  margin: 0;
  color: var(--muted);
  max-width: 46ch;
}

.light-head h2 {
  color: #fff;
}

.light-head > p {
  color: rgba(255, 255, 255, 0.72);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--body);
  max-width: 52ch;
}

/* 滚动揭示 */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 按钮 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #20180a;
  box-shadow: 0 10px 26px rgba(168, 129, 28, 0.32);
}

.button-gold:hover {
  box-shadow: 0 14px 32px rgba(168, 129, 28, 0.42);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.75);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--green-700);
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.2rem;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}

.text-link:hover {
  gap: 0.8rem;
  color: var(--green-600);
}

/* ---------- 4. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--green-600), var(--green-900));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 107, 87, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--body);
  padding: 0.35rem 0;
  transition: color 0.25s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--green-700);
}

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

.header-hotline {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  padding-left: 1.3rem;
  border-left: 1px solid var(--line);
}

.header-hotline span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.header-hotline strong {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--green-700);
  letter-spacing: 0.02em;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

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

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

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

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  background: linear-gradient(120deg, #04362c 0%, #00513f 46%, #0a8a6e 100%);
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("images/hero-building.jpg");
  background-size: cover;
  background-position: 72% 30%;
  opacity: 0.32;
  filter: saturate(0.9);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(4, 54, 44, 0.94) 0%,
    rgba(4, 54, 44, 0.82) 42%,
    rgba(4, 54, 44, 0.55) 100%
  );
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 30% 40%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 10%, transparent 72%);
}

.hero-inner {
  position: relative;
}

.hero-copy {
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.7rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-400), var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 52ch;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 3rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-trust div {
  display: flex;
  flex-direction: column;
}

.hero-trust strong {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: 0.01em;
}

.hero-trust span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.55);
}

.scroll-cue span {
  width: 1px;
  height: 42px;
  background: linear-gradient(rgba(255, 255, 255, 0.7), transparent);
}

/* ---------- 6. Services ---------- */
.service-intro {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.service-card {
  position: relative;
  padding: 2.2rem 1.8rem 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-number {
  position: absolute;
  top: 0.6rem;
  right: 1.4rem;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(0, 107, 87, 0.09);
  letter-spacing: -0.02em;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.2rem;
  border-radius: 14px;
  background: var(--green-050);
  color: var(--green-700);
  font-size: 1.5rem;
  font-weight: 700;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card:hover .service-icon {
  background: var(--green-700);
  color: #fff;
}

.service-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-card ul {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.service-card ul li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.85rem;
  color: var(--green-800);
  font-weight: 500;
}

.service-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}

.service-card.feature {
  background: linear-gradient(150deg, var(--green-050), #fff 65%);
  border-color: rgba(0, 107, 87, 0.22);
}

.service-card.dark {
  background: linear-gradient(150deg, var(--green-800), var(--green-900));
  border-color: transparent;
}

.service-card.dark h3 {
  color: #fff;
}

.service-card.dark p {
  color: rgba(255, 255, 255, 0.72);
}

.service-card.dark .service-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-400);
}

.service-card.dark .service-number {
  color: rgba(255, 255, 255, 0.1);
}

.service-card.dark a {
  display: inline-block;
  margin-top: 1.3rem;
  color: var(--gold-400);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- 7. Emergency band ---------- */
.emergency-band {
  position: relative;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: linear-gradient(120deg, var(--green-900), var(--green-700) 70%, var(--green-600));
  color: #fff;
  overflow: hidden;
}

.emergency-band::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 184, 92, 0.28), transparent 70%);
}

.emergency-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 2.4rem;
}

.emergency-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-400);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5b5b;
  box-shadow: 0 0 0 0 rgba(255, 91, 91, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(255, 91, 91, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 91, 91, 0);
  }
}

.emergency-inner h2 {
  flex: 0 1 auto;
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: #fff;
}

.emergency-inner > p {
  flex: 0 0 auto;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}

.emergency-inner > a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.emergency-inner > a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.emergency-inner > a span {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- 8. Qualifications ---------- */
.qualifications {
  background: var(--paper);
}

.qualification-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.qualification-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
}

.qualification-copy .brochure-link {
  margin-top: 1.4rem;
}

.qualification-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.qualification-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.qualification-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(0, 107, 87, 0.3);
}

.qualification-item > span {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green-050);
  color: var(--green-700);
  font-weight: 800;
  font-size: 0.95rem;
}

.qualification-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.qualification-item p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- 9. Projects ---------- */
.projects {
  background: linear-gradient(160deg, var(--green-900), #0a5a47 70%, var(--green-800));
  color: rgba(255, 255, 255, 0.82);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.project-card {
  position: relative;
  display: block;
  padding: 0;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.project-card.wide {
  grid-column: span 2;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 184, 92, 0.5);
  box-shadow: var(--shadow-lg);
}

.project-photo {
  display: block;
  position: relative;
  height: 205px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.project-card.wide .project-photo {
  height: 265px;
}

.project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-photo img {
  transform: scale(1.05);
}

.project-photo.crop-left img {
  object-position: center 42%;
}

.project-photo.crop-right img {
  object-position: center 42%;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.3rem 1.4rem 1.5rem;
}

.project-meta small {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gold-400);
  font-weight: 600;
}

.project-meta strong {
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
}

.project-meta em {
  margin-top: 0.3rem;
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.58);
  transition: color 0.25s var(--ease);
}

.project-card:hover .project-meta em {
  color: var(--gold-400);
}

/* ---------- 10. About ---------- */
.about {
  background: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about-visual {
  position: relative;
}

.spread-crop {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.spread-crop img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  object-position: 50% 30%;
}

.about-badge {
  position: absolute;
  right: -1rem;
  bottom: -1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.3rem;
  border-radius: var(--radius);
  background: var(--green-800);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.about-badge strong {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-400);
}

.about-badge span {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.about-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
}

.about-copy > p {
  color: var(--body);
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.values div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.values strong {
  color: var(--green-700);
  font-size: 1rem;
  font-weight: 700;
}

.values span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- 11. Contact ---------- */
.contact {
  background: linear-gradient(150deg, var(--green-900), var(--green-700));
  color: rgba(255, 255, 255, 0.82);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.contact-copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.contact-copy > p {
  max-width: 50ch;
}

.contact-primary {
  margin: 2rem 0;
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-primary span {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.66);
}

.contact-primary a {
  display: inline-block;
  margin: 0.4rem 0 0.3rem;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: 0.03em;
  transition: color 0.25s var(--ease);
}

.contact-primary a:hover {
  color: #fff;
}

.contact-primary small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 2rem;
}

.contact-details span {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.25rem;
}

.contact-details p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.qr-card {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.qr-card img {
  width: min(100%, 240px);
  margin: 0 auto 1rem;
  border-radius: var(--radius-sm);
}

.qr-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
}

.qr-card p {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- 12. Footer ---------- */
.site-footer {
  background: #032a22;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.footer-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2.2rem 0 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-copy strong {
  color: #fff;
}

.footer-brand .brand-copy small {
  color: rgba(255, 255, 255, 0.5);
}

.footer-main > p {
  margin: 0;
  margin-left: auto;
  font-size: 0.88rem;
}

.footer-main > a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.footer-main > a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding: 1.1rem 0 1.6rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- 13. Project modal ---------- */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.project-modal[hidden] {
  display: none;
}

.project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 20, 16, 0.82);
  backdrop-filter: blur(3px);
  animation: modal-fade 0.25s var(--ease);
}

.project-modal__panel {
  position: relative;
  margin: 0;
  max-width: 900px;
  width: 100%;
  border-radius: var(--radius-lg);
  background: #0b1512;
  overflow: visible;
  box-shadow: var(--shadow-lg);
  animation: modal-pop 0.3s var(--ease);
}

.project-modal__panel img {
  width: 100%;
  max-height: calc(84vh - 74px);
  object-fit: contain;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: #0b1512;
}

.project-modal__panel figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 74px;
  padding: 0.9rem 1.2rem 1rem;
  color: #fff;
}

.project-modal__panel figcaption small {
  color: var(--gold-400);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.project-modal__panel figcaption strong {
  font-size: 1rem;
  line-height: 1.45;
}

@keyframes modal-fade {
  from {
    opacity: 0;
  }
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
}

.dialog-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  box-shadow: var(--shadow-md);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.dialog-close:hover {
  background: var(--green-600);
  transform: rotate(90deg);
}

/* ---------- 14. Floating call ---------- */
.floating-call {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 82, 64, 0.34);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.floating-call:hover {
  transform: translateY(-3px);
  background: var(--green-600);
}

.floating-call span {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.floating-call strong {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .project-card.wide {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .menu-toggle {
    display: flex;
    order: 3;
    margin-left: auto;
  }

  .header-hotline {
    order: 2;
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.4rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      visibility 0.25s;
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .section-head,
  .qualification-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-badge {
    right: 1rem;
  }
}

@media (max-width: 640px) {
  .service-grid,
  .project-grid,
  .contact-details,
  .values {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card.wide {
    grid-column: span 1;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 3rem);
  }

  .hero-trust {
    gap: 1.2rem 2rem;
  }

  .emergency-inner > a {
    font-size: 1.25rem;
  }

  .footer-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-main > p {
    margin-left: 0;
  }

  .floating-call {
    right: 0.9rem;
    bottom: 0.9rem;
    padding: 0.6rem 0.9rem;
  }

  .about-badge {
    position: static;
    margin-top: 1rem;
    display: inline-flex;
  }
}

@media (max-width: 520px) {
  .nav-shell {
    gap: 0.75rem;
  }

  .header-hotline {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pulse-dot {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
