/* ============================================
   UNITRANS — Inner pages styles (services, about, contact)
   ============================================ */

/* ============================================
   Inner page hero (compact)
   ============================================ */
.page-hero {
  position: relative;
  padding: 200px 0 100px;
  background: var(--navy-900);
  color: white;
  overflow: hidden;
  isolation: isolate;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--navy-900);
}
.page-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: contrast(1.05) saturate(0.95) brightness(0.85);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(5, 13, 31, 0.85) 0%, rgba(5, 13, 31, 0.65) 60%, rgba(5, 13, 31, 0.45) 100%),
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(225, 37, 44, 0.18), transparent 60%);
  z-index: -1;
}

.page-hero-content {
  position: relative;
  max-width: 880px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin-top: 16px;
}
.page-hero .lede {
  margin-top: 28px;
  color: rgba(255,255,255,0.85);
  max-width: 60ch;
  font-size: clamp(17px, 1.3vw, 20px);
}
.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.crumbs a:hover { color: var(--red-400); }
.crumbs span.sep { color: rgba(255,255,255,0.3); }

/* ============================================
   Services detail
   ============================================ */
.service-rows { display: flex; flex-direction: column; }
.service-row {
  display: grid;
  grid-template-columns: auto 1.2fr 2fr auto;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--ink-100);
  align-items: center;
  transition: padding-left var(--t-fast);
}
.service-row:hover { padding-left: 12px; }
@media (max-width: 960px) {
  .service-row { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
}
.sr-num {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--ink-200);
  line-height: 1;
  transition: color var(--t-fast);
}
.service-row:hover .sr-num { color: var(--red-500); }
.sr-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.005em;
}
.sr-desc { color: var(--ink-700); font-size: 16px; line-height: 1.65; }
.sr-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--navy-900);
  color: white;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background var(--t), gap var(--t-fast);
}
.sr-cta:hover { background: var(--red-500); gap: 12px; }

/* ============================================
   Process steps — modern timeline
   ============================================ */
.process { background: var(--ink-50); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  counter-reset: step;
}
@media (max-width: 880px) { .process-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 540px) { .process-grid { grid-template-columns: 1fr; } }

.process-step {
  position: relative;
  padding: 32px 28px 28px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--ink-100);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  counter-increment: step;
  overflow: hidden;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -8px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 1;
  color: var(--ink-100);
  pointer-events: none;
  transition: color var(--t);
}
.process-step:hover {
  transform: translateY(-4px);
  border-color: var(--navy-900);
  box-shadow: 0 12px 32px -12px rgba(10, 31, 61, 0.18);
}
.process-step:hover::before { color: var(--red-500); }

.process-bullet {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
  position: relative;
  z-index: 1;
}
.process-bullet svg { width: 22px; height: 22px; }
.process-step:hover .process-bullet { background: var(--red-500); }

.process-step h4 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.process-step p {
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.55;
  position: relative;
  z-index: 1;
  margin: 0;
}

/* Connector arrow between steps (desktop only) */
.process-step + .process-step::after {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--ink-200);
  border-right: 2px solid var(--ink-200);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}
@media (max-width: 880px) {
  .process-step + .process-step::after { display: none; }
}


/* ============================================
   About — story block
   ============================================ */
.story {
  background: white;
  position: relative;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 960px) { .story-grid { grid-template-columns: 1fr; } }
.story-text p + p { margin-top: 18px; }
.story-text p { color: var(--ink-700); font-size: 17px; line-height: 1.7; }
.story-visual {
  position: relative;
  aspect-ratio: 5/6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-900);
}
.story-visual img { width: 100%; height: 100%; object-fit: cover; }
.story-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(225, 37, 44, 0.3));
}

/* Values grid */
.values { background: var(--ink-50); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--ink-100);
  border-left: 1px solid var(--ink-100);
}
@media (max-width: 960px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .values-grid { grid-template-columns: 1fr; } }
.value {
  padding: 48px 32px;
  background: white;
  border-right: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
  position: relative;
  transition: background var(--t);
}
.value:hover { background: var(--navy-900); color: white; }
.value:hover h3 { color: white; }
.value:hover p { color: rgba(255,255,255,0.85); }
.value:hover .value-num { color: var(--red-400); }
.value-num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--red-500);
  margin-bottom: 32px;
  display: block;
}
.value h3 { color: var(--navy-900); margin-bottom: 12px; transition: color var(--t); }
.value p { color: var(--ink-700); font-size: 15px; line-height: 1.6; transition: color var(--t); }

/* Team placeholders */
.team { background: white; }
.team-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 768px) { .team-head { grid-template-columns: 1fr; } }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  color: white;
}
.team-card-inner {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(ellipse at top right, rgba(225, 37, 44, 0.25), transparent 60%),
    linear-gradient(180deg, transparent 50%, rgba(5, 13, 31, 0.8));
}
.team-card .placeholder-portrait {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 96px;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.04em;
}
.team-card h4 { font-weight: 700; font-size: 18px; margin-bottom: 4px; position: relative; }
.team-card .team-role { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.7); position: relative; }

/* ============================================
   Contact page
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.quote-form {
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 540px) { .quote-form { padding: 28px; } }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 540px) { .form-grid { grid-template-columns: 1fr; } }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.field input, .field select, .field textarea {
  padding: 12px 14px;
  background: var(--ink-50);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--navy-900);
  transition: border-color var(--t-fast), background var(--t-fast);
  font-family: inherit;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: white;
  border-color: var(--red-500);
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.form-consent { font-size: 12px; color: var(--ink-500); flex: 1; min-width: 200px; }

.captcha-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--ink-50);
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.captcha-q {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-900);
  letter-spacing: 0.02em;
}
.captcha-q strong { color: var(--red-500); font-size: 22px; font-weight: 700; }
.captcha-row input[name="_cap"] {
  flex: 0 0 110px;
  padding: 12px 14px;
  background: white;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-900);
  text-align: center;
  font-family: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.captcha-row input[name="_cap"]:focus {
  outline: none;
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(225, 37, 44, 0.15);
}
.captcha-refresh {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--ink-200);
  color: var(--ink-700);
  font-size: 18px;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.captcha-refresh:hover {
  background: var(--red-500);
  color: white;
  border-color: var(--red-500);
  transform: rotate(180deg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact-info-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--ink-100);
  align-items: flex-start;
}
.contact-info-item:first-child { padding-top: 0; }
.ci-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink-50);
  color: var(--red-500);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ci-icon svg { width: 22px; height: 22px; }
.ci-text h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 4px;
  font-weight: 600;
}
.ci-text p, .ci-text a {
  color: var(--navy-900);
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-line;
}
.ci-text a:hover { color: var(--red-500); }

/* Map placeholder */
.map-card {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--ink-100);
  position: relative;
  aspect-ratio: 16/9;
  background: var(--ink-100);
}
.map-card iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============================================
   Tweaks panel (typographies)
   ============================================ */
.tw-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  padding: 20px;
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.tw-panel.is-open { display: block; opacity: 1; transform: translateY(0); }
/* Block any rendering of the tweaks panel during initial page load */
body:not(.tw-ready) .tw-panel,
body:not(.tw-ready) .tw-panel.is-open { display: none !important; }
.tw-panel h4 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  color: var(--navy-900);
}
.tw-panel .tw-row { margin-bottom: 14px; }
.tw-panel label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 6px;
  font-weight: 600;
}
.tw-panel select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 14px;
  font-family: inherit;
}
.tw-panel .tw-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--ink-700);
  cursor: pointer;
}
