/* ============================================================
   ZETRYL.CHEM — sections.css
   About · products index · coverage · services · brands · contact
   ============================================================ */

/* ---------- About ---------- */
#about { padding: 110px 0; }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: start; }
.about-copy p + p { margin-top: 16px; }

/* Company datasheet card */
.datasheet {
  background: var(--paper); border: 1px solid var(--line);
  border-top: 3px solid var(--green); border-radius: var(--r);
}
.datasheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.datasheet-head span {
  font-family: var(--f-mono); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
}
.datasheet-head img { width: 30px; }
.datasheet dl { padding: 6px 24px; }
.datasheet .ds-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.datasheet .ds-row:last-child { border-bottom: none; }
.datasheet dt {
  font-family: var(--f-mono); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mid);
}
.datasheet dd { font-weight: 600; font-size: 0.94rem; text-align: right; }
.datasheet-foot {
  padding: 13px 24px; border-top: 1px solid var(--line); background: var(--mist);
  font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-mid);
  border-radius: 0 0 var(--r) var(--r);
}

/* ---------- Products index ---------- */
#products { padding: 110px 0; background: var(--mist); }
.prod-head { max-width: 640px; margin-bottom: 56px; }
.prod-index { border-top: 1px solid var(--line); counter-reset: none; }
.prod-row {
  display: grid;
  grid-template-columns: 56px 1fr 1.5fr auto;
  gap: 28px; align-items: center;
  padding: 26px 18px;
  border-bottom: 1px solid var(--line);
  background: transparent; position: relative;
  transition: background 0.3s var(--ease);
}
.prod-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--green);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.3s var(--ease);
}
.prod-row:hover, .prod-row:focus-within { background: var(--paper); }
.prod-row:hover::before, .prod-row:focus-within::before { transform: scaleY(1); }
.prod-ico {
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--green); background: var(--paper);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.prod-row:hover .prod-ico, .prod-row:focus-within .prod-ico { background: var(--green); color: #fff; }
.prod-name { font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; line-height: 1.25; }
.prod-desc { font-size: 0.9rem; color: var(--text-mid); line-height: 1.65; }
.prod-inq {
  font-family: var(--f-mono); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mid); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 2px;
  transition: color 0.25s var(--ease);
}
.prod-inq svg { transition: transform 0.25s var(--ease); }
.prod-inq:hover { color: var(--orange-d); }
.prod-inq:hover svg { transform: translateX(4px); }

/* ---------- Coverage (deep green band) ---------- */
#coverage { padding: 110px 0; background: var(--green-d); color: #fff; }
.coverage-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.map-frame { position: relative; }
#phMap { width: 100%; height: auto; display: block; }
#phMap .dot { opacity: 0; transition: opacity 0.6s ease; transition-delay: var(--d, 0s); }
#phMap.live .dot { opacity: var(--o, 0.4); }
#phMap .arc {
  fill: none; stroke: rgba(255,255,255,0.4); stroke-width: 1.2;
  stroke-dasharray: 600; stroke-dashoffset: 600;
}
#phMap.live .arc { animation: arc-draw 1.1s var(--ease) forwards; animation-delay: var(--d, 0.6s); }
@keyframes arc-draw { to { stroke-dashoffset: 0; } }
/* shipment pulses traveling hub → destination along each route */
#phMap .flow {
  fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 7 73; stroke-dashoffset: 0; opacity: 0;
}
#phMap.live .flow {
  animation: flow-in 0.6s ease forwards, flow-run 1.9s linear infinite;
  animation-delay: var(--d, 2s);
}
@keyframes flow-in { to { opacity: 0.85; } }
@keyframes flow-run { to { stroke-dashoffset: -80; } }
/* destination markers pop when their arc lands */
#phMap .dest {
  fill: #fff; opacity: 0;
  transform: scale(0); transform-origin: center; transform-box: fill-box;
}
#phMap.live .dest { animation: dest-pop 0.45s var(--ease) forwards; animation-delay: var(--d, 1.5s); }
@keyframes dest-pop { to { opacity: 1; transform: scale(1); } }
#phMap .hub { fill: #fff; }
#phMap .hub-ring { fill: none; stroke: #fff; stroke-width: 1.4; opacity: 0; transform-origin: center; transform-box: fill-box; }
#phMap.live .hub-ring { animation: hub-pulse 2.6s 1.4s ease-out infinite; }
@keyframes hub-pulse {
  0%   { opacity: 0.9; transform: scale(0.4); }
  70%  { opacity: 0;   transform: scale(1.6); }
  100% { opacity: 0;   transform: scale(1.6); }
}
#phMap text {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 2.5px;
  fill: rgba(255,255,255,0.6); text-transform: uppercase;
}
#phMap .hub-label { fill: #fff; font-size: 10.5px; letter-spacing: 1.5px; }
.map-legend {
  display: flex; gap: 26px; margin-top: 18px;
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
}
.map-legend i {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 8px; font-style: normal;
}

/* office cards */
.offices { display: flex; flex-direction: column; gap: 22px; margin-top: 40px; }
.office {
  border: 1px solid var(--line-inv); border-radius: var(--r);
  padding: 24px 26px;
}
.office h3 {
  font-family: var(--f-mono); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: #fff;
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.office h3::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.office address { font-style: normal; font-size: 0.92rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 12px; }
.office-lines { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.office-lines a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 0.78rem; color: rgba(255,255,255,0.85);
  transition: color 0.25s var(--ease);
}
.office-lines a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Services ---------- */
#services { padding: 110px 0; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 52px; }
.service {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 40px 36px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.service:hover { border-color: var(--green); transform: translateY(-4px); }
.service .prod-ico { margin-bottom: 22px; }
.service h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 10px; }
.service p { font-size: 0.95rem; color: var(--text-mid); line-height: 1.7; }

/* ---------- Brands ---------- */
#brands { padding: 90px 0; background: var(--mist); border-top: 1px solid var(--line); }
.brands-head { text-align: center; margin-bottom: 46px; }
.brands-rail {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.brands-track { display: flex; gap: 22px; width: max-content; animation: ticker-run 52s linear infinite; }
.brands-rail:hover .brands-track { animation-play-state: paused; }
.brand-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  min-width: 220px; height: 120px; padding: 22px 36px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-card img { max-width: 150px; max-height: 72px; object-fit: contain; }

/* ---------- Contact / inquiry ---------- */
#contact { padding: 110px 0; background: var(--green-d); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: start; }
.contact-direct { margin-top: 36px; display: flex; flex-direction: column; gap: 8px; }
.contact-direct a {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 0.86rem; color: rgba(255,255,255,0.85);
  padding: 6px 0; width: fit-content;
  transition: color 0.25s var(--ease);
}
.contact-direct a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-direct svg { flex-shrink: 0; opacity: 0.7; }
.contact-fb { margin-top: 28px; }

/* form card */
.form-card {
  background: var(--paper); color: var(--ink);
  border-radius: var(--r); border-top: 3px solid var(--orange);
  padding: 42px 40px;
}
.form-card h3 { font-family: var(--f-display); font-weight: 900; font-size: 1.45rem; text-transform: uppercase; }
.form-card > p { font-size: 0.9rem; color: var(--text-mid); margin: 6px 0 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fg { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.fg label {
  font-family: var(--f-mono); font-weight: 500; font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
}
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); font-family: var(--f-body); font-size: 0.94rem;
  color: var(--ink); outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(19,106,51,0.12);
}
.fg input.err, .fg textarea.err { border-color: #c0392b; }
.fg textarea { min-height: 120px; resize: vertical; }
.form-card .btn-inquire { width: 100%; justify-content: center; }
.form-status {
  display: none; margin-top: 14px; padding: 12px 16px;
  border-radius: var(--r); font-size: 0.88rem; font-weight: 600;
}
.form-status.err { display: block; background: rgba(192,57,43,0.08); border: 1px solid rgba(192,57,43,0.3); color: #96281b; }
.form-success { display: none; text-align: center; padding: 44px 20px; }
.form-success .mark {
  width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.form-success h4 { font-family: var(--f-display); font-weight: 900; font-size: 1.3rem; text-transform: uppercase; }
.form-success p { font-size: 0.9rem; color: var(--text-mid); margin-top: 8px; }
