/* JC Project Services — bilingual static site
   Domain: fangewindows.com */
:root {
  --bg: #0f1419;
  --bg-elevated: #1a222c;
  --bg-soft: #243040;
  --surface: #ffffff;
  --text: #1a222c;
  --text-muted: #5a6570;
  --text-on-dark: #f4f6f8;
  --text-on-dark-muted: #a8b3bf;
  --accent: #c45c26;
  --accent-hover: #a84a1c;
  --accent-soft: rgba(196, 92, 38, 0.12);
  --border: #e2e6ea;
  --border-dark: #2c3848;
  --success: #2d6a4f;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(15, 20, 25, 0.08);
  --max: 1120px;
  --font: "Segoe UI", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: #f7f8fa;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  flex-direction: column;
  color: var(--text-on-dark);
  text-decoration: none;
  line-height: 1.2;
}
.logo:hover { color: var(--text-on-dark); }
.logo-en {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.logo-zh {
  font-size: 0.78rem;
  color: var(--text-on-dark-muted);
  font-weight: 500;
}

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

.nav a {
  color: var(--text-on-dark-muted);
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:hover,
.nav a.active {
  color: var(--text-on-dark);
  background: rgba(255,255,255,0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8rem;
}
.lang-switch a {
  color: var(--text-on-dark-muted);
  padding: 0.35rem 0.7rem;
  text-decoration: none;
}
.lang-switch a.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.lang-switch a:hover:not(.active) {
  color: var(--text-on-dark);
  background: rgba(255,255,255,0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.btn-outline-dark {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-whatsapp {
  background: #25d366;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #1ebe57;
  color: #fff;
}
.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-dark);
  color: var(--text-on-dark);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 1.25rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(15,20,25,0.92) 0%, rgba(36,48,64,0.85) 55%, rgba(196,92,38,0.55) 100%),
    linear-gradient(160deg, #1a222c 0%, #2c3848 100%);
  color: var(--text-on-dark);
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(196,92,38,0.25), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: #f0c4a8;
  border: 1px solid rgba(196,92,38,0.35);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.55rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  font-weight: 750;
}
.hero-lead {
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin-bottom: 1.75rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--text-on-dark-muted);
  font-size: 0.88rem;
}
.hero-meta strong {
  color: var(--text-on-dark);
  display: block;
  font-size: 1.05rem;
}
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}
.hero-card h3 {
  font-size: 1rem;
  margin-bottom: 0.85rem;
  color: #fff;
}
.hero-card ul li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  display: flex;
  gap: 0.55rem;
}
.hero-card ul li:last-child { border-bottom: none; }
.hero-card ul li::before {
  content: "▸";
  color: var(--accent);
  font-weight: 700;
}

/* Sections */
.section {
  padding: 4rem 0;
}
.section-alt { background: #fff; }
.section-dark {
  background: var(--bg);
  color: var(--text-on-dark);
}
.section-header {
  margin-bottom: 2rem;
  max-width: 40rem;
}
.section-kicker {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.section-header h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.section-header p {
  color: var(--text-muted);
}
.section-dark .section-header p { color: var(--text-on-dark-muted); }

/* Cards / grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.card p, .card li {
  color: var(--text-muted);
  font-size: 0.94rem;
}
.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
}

.product-card .ph {
  height: 140px;
  margin: -1.4rem -1.4rem 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
}

.placeholder {
  background:
    repeating-linear-gradient(
      -45deg,
      #d9dee5,
      #d9dee5 8px,
      #e8ecf0 8px,
      #e8ecf0 16px
    );
  border: 1px dashed #b7c0ca;
  color: #5a6570;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 140px;
  padding: 1rem;
  border-radius: 8px;
}
.placeholder.tall { min-height: 220px; }
.placeholder.dark {
  background:
    repeating-linear-gradient(
      -45deg,
      #2a3544,
      #2a3544 8px,
      #334155 8px,
      #334155 16px
    );
  border-color: #445163;
  color: #a8b3bf;
}

.timeline {
  display: grid;
  gap: 1rem;
}
.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.timeline-year {
  font-weight: 750;
  color: var(--accent);
  font-size: 1.05rem;
}
.timeline-item p { color: var(--text-muted); font-size: 0.95rem; }

.note {
  background: #fff8f3;
  border: 1px solid #f0d4c2;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  color: #5a4030;
  font-size: 0.92rem;
  margin-top: 1.5rem;
}

.cta-band {
  background: linear-gradient(120deg, #1a222c, #2c3848 60%, #4a2e1f);
  color: var(--text-on-dark);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.cta-band h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.cta-band p {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  max-width: 32rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
}
.contact-list dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd {
  font-size: 1rem;
  color: var(--text);
}
.contact-list dd a { color: var(--accent); font-weight: 600; }

.form-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  margin-top: 0.9rem;
}
.form-card label:first-of-type { margin-top: 0; }
.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.form-card textarea { min-height: 120px; resize: vertical; }
.form-card .form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

/* Page hero (inner) */
.page-hero {
  background: var(--bg);
  color: var(--text-on-dark);
  padding: 2.75rem 0 2.25rem;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: var(--text-on-dark-muted);
  max-width: 40rem;
}
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: #d0b09a; }

/* Footer */
.site-footer {
  background: #0b1015;
  color: var(--text-on-dark-muted);
  padding: 2.75rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer h4 {
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.site-footer a {
  color: var(--text-on-dark-muted);
}
.site-footer a:hover { color: #fff; }
.footer-brand .logo-en { color: #fff; margin-bottom: 0.15rem; }
.footer-brand p { margin-top: 0.75rem; max-width: 28rem; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid #1c2530;
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* Utilities */
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .contact-grid,
  .footer-grid,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #121820;
    flex-direction: column;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-dark);
  }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { flex-wrap: wrap; }
  .header-actions { margin-left: auto; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.35rem; }
  .hero { padding: 3rem 0 2.75rem; }
}

/* Facebook links */
.fb-link { display: inline-flex; align-items: center; gap: 0.4rem; }
.fb-icon { flex-shrink: 0; }
.footer-social { margin-top: 0.75rem; }
.btn-facebook { display: inline-flex; align-items: center; gap: 0.45rem; background: #1877f2; color: #fff; border-color: #1877f2; }
.btn-facebook:hover { background: #145fc4; color: #fff; }

/* Project / gallery photos */
.card-media {
  margin: -1.4rem -1.4rem 0.9rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #1a2330;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card .tag { margin-top: 0.15rem; }
.projects-note { margin-top: 1.25rem; }

/* Clovelly / project journey timeline */
.journey-timeline {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.journey-step {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 1rem 1.25rem;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.journey-media {
  margin: 0;
  min-height: 140px;
  background: #1a2330;
  overflow: hidden;
}
.journey-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 140px;
}
.journey-body {
  padding: 1rem 1.15rem 1.1rem 0;
}
.journey-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.journey-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.journey-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.journey-thumbs {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.journey-thumbs a {
  display: block;
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.journey-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.journey-note {
  margin: -1.25rem 0 2.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.journey-note img.poster {
  display: block;
  width: min(360px, 100%);
  height: auto;
  border-radius: 8px;
  margin-top: 0.65rem;
  border: 1px solid var(--border);
}
@media (max-width: 900px) {
  .journey-step { grid-template-columns: 1fr; }
  .journey-media { aspect-ratio: 16 / 10; max-height: 220px; }
  .journey-body { padding: 0 1rem 1rem; }
}


/* Legal / BR certificate placeholder */
.docs-block { margin-top: 1rem; }
.docs-block h3 { font-size: 1rem; margin-bottom: 0.55rem; }
.doc-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 140px;
  padding: 1rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: #fafbfc;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.88rem;
  text-decoration: none;
}
.doc-placeholder:hover { border-color: var(--accent); color: var(--accent); }
.doc-placeholder strong { color: var(--text); font-weight: 600; }
.about-br { margin-top: 0.55rem; color: var(--text); font-size: 0.95rem; }
.footer-br { margin-top: 0.55rem; font-size: 0.85rem; color: var(--text-on-dark-muted); }

/* ===== Homepage redesign (clean B2B) ===== */
.hero-home {
  padding: 5.5rem 0 4.5rem;
}
.hero-grid-visual {
  grid-template-columns: 1.15fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero-copy .hero-lead {
  margin-bottom: 2rem;
  max-width: 34rem;
}
.hero-visual {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 16 / 10;
  background: #1a2330;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Trust strip */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.35rem 0;
}
.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.trust-item {
  text-align: center;
  padding: 0.35rem 0.75rem;
}
.trust-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.15rem;
  letter-spacing: 0.01em;
}
.trust-item span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Section rhythm */
.section {
  padding: 5rem 0;
}
.section-header-wide {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}
.section-header h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
}
.section-cta {
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
}

/* Product cards — consistent 16/10 media */
.product-grid .card-media,
.product-card .card-media {
  aspect-ratio: 16 / 10;
}
.product-card {
  padding-bottom: 1.5rem;
  transition: box-shadow 0.2s, transform 0.15s;
}
.product-card:hover {
  box-shadow: 0 14px 40px rgba(15, 20, 25, 0.1);
  transform: translateY(-2px);
}
.card-quiet {
  box-shadow: none;
  background: #fafbfc;
}
.why-grid .card {
  height: 100%;
}

/* Featured project */
.featured-project {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}
.featured-project-media {
  margin: 0;
  min-height: 280px;
  background: #1a2330;
  overflow: hidden;
}
.featured-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}
.featured-project-body {
  padding: 2rem 2.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-project-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.featured-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}
.featured-project-body > p:not(.featured-meta) {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.35rem;
  line-height: 1.55;
}

/* Gallery entry trigger */
.gallery-entry {
  margin-top: 0.25rem;
}
.gallery-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  padding: 1.5rem 1.75rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #fff 0%, #f4f6f8 100%);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.2s;
}
.gallery-trigger:hover,
.gallery-trigger:focus-visible {
  border-color: rgba(196, 92, 38, 0.45);
  box-shadow: 0 10px 32px rgba(15, 20, 25, 0.08);
  outline: none;
}
.gallery-trigger-kicker {
  display: block;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
.gallery-trigger-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.gallery-trigger-desc {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 36rem;
  line-height: 1.45;
}
.gallery-trigger-meta {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
  white-space: nowrap;
}

/* Markets — compact, little imagery */
.markets-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
}
.market-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}
.market-item p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 32rem;
}

/* Gallery modal */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.gallery-modal[hidden] {
  display: none !important;
}
.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
}
.gallery-modal-panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 14px;
  width: min(960px, 100%);
  max-height: min(88vh, 920px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.gallery-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}
.gallery-modal-header h2 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.gallery-modal-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 36rem;
}
.gallery-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f7f8fa;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}
.gallery-close:hover,
.gallery-close:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}
.gallery-modal-body {
  padding: 1.15rem 1.5rem 1.75rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.gallery-group-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 1.1rem 0 0.65rem;
  font-weight: 700;
}
.gallery-group-title:first-child {
  margin-top: 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}
.gallery-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #1a2330;
  border: 1px solid var(--border);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}
.gallery-thumb:hover img,
.gallery-thumb:focus-visible img {
  transform: scale(1.04);
}
.gallery-footer-link {
  margin-top: 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}
body.gallery-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero-home { padding: 3.5rem 0 3rem; }
  .hero-grid-visual { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-visual { max-width: 100%; }
  .trust-strip-inner { grid-template-columns: 1fr; gap: 0.85rem; }
  .trust-item { text-align: left; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
  .trust-item:last-child { border-bottom: none; }
  .featured-project { grid-template-columns: 1fr; }
  .featured-project-media { min-height: 0; aspect-ratio: 16 / 10; }
  .featured-project-media img { min-height: 0; }
  .featured-project-body { padding: 1.35rem 1.25rem 1.5rem; }
  .gallery-trigger {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
  }
  .markets-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 3.5rem 0; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.cta-address {
  margin: 0.65rem 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.cta-address strong { color: var(--text); font-weight: 600; }

.doc-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}
.doc-card img {
  width: 100%;
  height: auto;
  display: block;
  background: #fafafa;
}
.doc-caption {
  display: block;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.doc-card:hover .doc-caption { color: var(--accent); }
