/* =========================================================
   CVC Engineers — DRAWING THEME
   SVG line-art architectural drawings + path-draw animations
   ========================================================= */

/* All drawables share these stroke defaults */
.draw-svg {
  width: 100%; height: auto;
  display: block;
  color: var(--accent);
  overflow: visible;
}
.draw-svg path,
.draw-svg line,
.draw-svg rect,
.draw-svg circle,
.draw-svg polyline,
.draw-svg polygon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}
.draw-svg .fill { fill: currentColor; opacity: 0; }
.draw-svg .ink-mute { stroke: var(--ink-mute); }
.draw-svg .accent  { stroke: var(--accent); }
.draw-svg .yellow  { stroke: #fbbf24; }              /* construction grid / dimension */
.draw-svg .red     { stroke: #ef4444; }              /* callouts / critical zones */
.draw-svg .green   { stroke: #22c55e; }              /* approved / verified */
.draw-svg .orange  { stroke: #fb923c; }              /* proposed works */
.draw-svg .white   { stroke: #ffffff; }              /* primary outlines */
.draw-svg .grey    { stroke: rgba(255,255,255,0.35); } /* existing context */
.draw-svg .heavy   { stroke-width: 1.6; }
.draw-svg .heavier { stroke-width: 2.2; }
.draw-svg .dim     { stroke-dasharray: 4 6; }
.draw-svg .dim-fine { stroke-dasharray: 2 4; }
.draw-svg .fill-grey { fill: rgba(255,255,255,0.04); stroke: rgba(255,255,255,0.25); }
.draw-svg .fill-blue { fill: rgba(0,153,255,0.08); stroke: var(--accent); }
.draw-svg .fill-orange { fill: rgba(251,146,60,0.12); stroke: #fb923c; }
.draw-svg .fill-red { fill: rgba(239,68,68,0.15); stroke: #ef4444; }
.draw-svg text {
  font-family: var(--mono); font-size: 9px;
  fill: var(--ink-mute); stroke: none;
  letter-spacing: 0.04em;
}
.draw-svg .annot text { opacity: 0.7; }

/* =========================================================
   HERO drawing replaces flat SVG — full elevation
   ========================================================= */
.hero-drawing {
  position: absolute;
  right: -120px; bottom: -40px;
  width: min(720px, 55%);
  z-index: 1;
  pointer-events: none;
  color: rgba(0, 153, 255, 0.45);
}
@media (max-width: 1024px) {
  .hero-drawing {
    position: relative; right: auto; bottom: auto;
    width: 100%; max-width: 520px;
    margin: 40px auto 0;
    color: rgba(0, 153, 255, 0.5);
  }
}

/* =========================================================
   MEGA CONNECTOR — multi-floor descending section
   Shows you descending through the building between sections
   ========================================================= */
.connector {
  position: relative;
  height: 280px;
  display: flex; justify-content: center; align-items: center;
  background: var(--bg);
  pointer-events: none;
  padding: 0;
}
.connector svg {
  width: 100%;
  max-width: 900px;
  height: 100%;
  color: rgba(0, 153, 255, 0.55);
  overflow: visible;
}
.connector-frame {
  position: absolute; inset: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  pointer-events: none;
}
.connector-label {
  position: absolute;
  top: 18px; left: 32px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}
.connector-label-r {
  position: absolute;
  top: 18px; right: 32px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--accent);
}
@media (max-width: 720px) {
  .connector { height: 200px; }
}

/* =========================================================
   Section drawings — embedded illustrations
   ========================================================= */

/* Big drawing block that sits inside a section */
.section-drawing {
  margin-top: 60px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-sub);
  position: relative;
  overflow: hidden;
}
.section-drawing-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line);
}
.section-drawing-head .title {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-mute);
}
.section-drawing-head .scale {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.02em;
  color: var(--accent);
}

.section-drawing.full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.drawing-cell {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  min-height: 220px;
  background: rgba(0,0,0,0.4);
  position: relative;
}
.drawing-cell .dwg {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  color: rgba(0,153,255,0.6);
}
.drawing-cell .dwg svg { max-height: 160px; width: 100%; }
.drawing-cell .label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  color: var(--ink-mute);
  display: flex; justify-content: space-between;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.drawing-cell .label strong {
  color: var(--ink); font-weight: 500;
}

@media (max-width: 720px) {
  .section-drawing.full { grid-template-columns: 1fr; }
}

/* Why section building cells — CAD sheet style */
.why-buildings {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.bld-card {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #050505;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.bld-card:hover { border-color: var(--accent); }
/* Title block on top — like a real CAD sheet */
.bld-card .bld-title {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px dashed var(--line);
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}
.bld-card .bld-title .ref {
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0,153,255,0.3);
  border-radius: 4px;
  padding: 4px 8px;
}
.bld-card .bld-title .scale {
  color: #fbbf24;
}
.bld-card .dwg {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  background:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px) 0 0/20px 20px,
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px) 0 0/20px 20px,
    #000000;
  min-height: 320px;
}
.bld-card .dwg svg {
  width: 100%;
  height: auto;
  max-height: 360px;
}
/* Footer bar — name + meta + price */
.bld-card .bld-foot {
  padding: 18px 22px;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  background: rgba(0,0,0,0.5);
}
.bld-card .name {
  font-family: var(--sans); font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.bld-card .meta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin-top: 4px;
}
.bld-card .price {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--accent);
  text-align: right;
}
.bld-card .price strong { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }
@media (max-width: 720px) {
  .why-buildings { grid-template-columns: 1fr; }
  .bld-card .dwg { min-height: 260px; padding: 12px; }
}

/* About section — large isometric */
.about-drawing {
  margin-top: 50px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-sub);
  color: rgba(0,153,255,0.6);
}
.about-drawing .dwg-title {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin-bottom: 18px;
  display: flex; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

/* Process — racing line that draws between steps */
.process { position: relative; }
.process-trail {
  position: absolute;
  top: 0; left: 0; right: 0;
  pointer-events: none;
  z-index: 0;
  color: rgba(0,153,255,0.35);
}
.process .container { position: relative; z-index: 1; }

/* =========================================================
   AREAS WE SERVE (Singapore districts)
   ========================================================= */
.areas { padding: 140px 0; background: var(--bg); }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.area-region {
  padding: 24px 22px;
  background: var(--frost);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  display: flex; flex-direction: column;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-med);
  backdrop-filter: blur(8px);
}
.area-region:hover {
  border-color: var(--accent);
  background: var(--frost-hi);
  transform: translateY(-3px);
}
.area-region-head {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.area-num {
  grid-row: 1 / span 2;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0,153,255,0.3);
  border-radius: var(--r-pill);
  padding: 6px 10px;
  align-self: flex-start;
  text-align: center;
  white-space: nowrap;
}
.area-region-head h3 {
  font-family: var(--sans); font-weight: 500;
  font-size: 17px; line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
  grid-column: 2;
}
.area-meta {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.02em;
  color: var(--ink-mute);
  grid-column: 2;
  margin-top: 4px;
}
.area-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 0;
}
.area-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--ink-mute);
  letter-spacing: -0.01em;
  border-bottom: 1px dashed transparent;
  transition: color var(--t-fast);
}
.area-list li:hover { color: var(--ink); }
.area-list li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--accent);
  flex-shrink: 0;
}
.areas-footnote {
  margin-top: 32px;
  padding: 22px 26px;
  background: var(--bg-sub);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-card);
  font-size: 14.5px;
  color: var(--ink-mute);
  line-height: 1.6;
  letter-spacing: -0.012em;
}
.areas-footnote strong { color: var(--ink); font-weight: 500; }

@media (max-width: 1024px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .areas-grid { grid-template-columns: 1fr; } }

/* =========================================================
   INDUSTRIES SERVED
   ========================================================= */
.industries { padding: 140px 0; background: var(--bg); }
.industries::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(0,153,255,0.10), transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 90%, rgba(0,153,255,0.08), transparent 60%);
  pointer-events: none;
}
.industries .container { position: relative; z-index: 1; }
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.ind-card {
  position: relative;
  padding: 32px 28px;
  background: var(--frost);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-med);
  backdrop-filter: blur(8px);
}
.ind-card:hover {
  border-color: var(--accent);
  background: var(--frost-hi);
  transform: translateY(-3px);
}
.ind-icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg-sub);
  color: var(--accent);
  flex-shrink: 0;
}
.ind-icon svg { width: 38px; height: 38px; }
.ind-card h3 {
  font-family: var(--sans); font-weight: 500;
  font-size: 21px; line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.ind-card p {
  color: var(--ink-mute);
  font-size: 14.5px; line-height: 1.55;
  letter-spacing: -0.01em;
}
.ind-list {
  list-style: none;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 5px;
}
.ind-list li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: -0.01em;
}
.ind-list li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--accent); border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 1024px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .industries-grid { grid-template-columns: 1fr; } }

/* =========================================================
   KNOWLEDGE BASE / GLOSSARY
   ========================================================= */
.knowledge { padding: 140px 0; background: var(--bg); }
.glossary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 40px;
}
.gloss-item {
  padding: 26px 24px;
  border-top: 1px solid var(--line);
  transition: background var(--t-fast);
}
.gloss-item:hover { background: var(--frost); }
.gloss-item dt {
  font-family: var(--sans); font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex; align-items: baseline; gap: 12px;
  flex-wrap: wrap;
}
.gloss-acronym {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0,153,255,0.3);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  white-space: nowrap;
}
.gloss-item dd {
  font-size: 14.5px;
  color: var(--ink-mute);
  line-height: 1.6;
  letter-spacing: -0.012em;
}

@media (max-width: 720px) { .glossary { grid-template-columns: 1fr; } }
