/* polish.css — Final Visual Refinement Patch */

/* 1. Interactive Elements */
.button:hover,
.button:focus-visible {
  transform: none; /* Removes inherited -2px jump for a grounded, flat interaction */
}

.text-link span {
  display: inline-block;
  transform: translateY(1px); /* Optically center arrow with text baseline */
  transition: transform 160ms ease;
}

.text-link:hover span, 
.text-link:focus-visible span {
  transform: translate(4px, 1px);
}

/* 2. The Equation Band */
@media (min-width: 768px) {
  .compounding-sequence .compounding-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 0;
    margin-top: 1px; /* Optical baseline nudge */
  }
}

/* 3. Vertical Rhythm (3-Column Grids) */
.approach-grid .sequence li span,
.lanes-secondary h3 {
  margin-bottom: 16px;
}

.approach-grid .sequence h3,
.lanes-secondary .lane-item h4 {
  margin-bottom: 12px;
  line-height: 1.25;
}

.lanes-secondary .lane-list {
  gap: 24px;
}

/* 4. Form Focus Craft */
.inquiry-form input:not([type="radio"]),
.inquiry-form textarea,
.inquiry-form select {
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.inquiry-form input:not([type="radio"]):focus-visible,
.inquiry-form textarea:focus-visible,
.inquiry-form select:focus-visible {
  /* Preserves native outline; thickens bottom border for tactile feedback */
  border-bottom-color: var(--signal);
  box-shadow: 0 1px 0 0 var(--signal);
}

/* Reduced Motion Overrides */
@media (prefers-reduced-motion: reduce) {
  .text-link span,
  .inquiry-form input,
  .inquiry-form textarea,
  .inquiry-form select {
    transition: none;
  }
  .text-link:hover span, 
  .text-link:focus-visible span {
    transform: translateY(1px);
  }
}


/* Approved header lockup: 50% larger, with the footer unchanged. */
.site-header .brand { gap: 18px; }
.site-header .brand img { width: 60px; height: 60px; }
.site-header .brand strong { font-size: 1.29rem; }
.site-header .brand small { margin-top: 7.5px; font-size: 1.05rem; }
@media (max-width: 767px) {
  .site-header .brand img { width: 51px; height: 51px; }
}
@media (max-width: 479px) {
  .site-header .brand strong { font-size: 1.2rem; }
}

/* Footer branding matches the enlarged header. */
.site-footer .brand { gap: 18px; max-width: 100%; }
.site-footer .brand img { width: 60px; height: 60px; }
.site-footer .brand strong { font-size: 1.29rem; }
.site-footer .brand small { margin-top: 7.5px; font-size: 1.05rem; }
@media (max-width: 767px) {
  .site-footer .brand img { width: 51px; height: 51px; }
}
@media (max-width: 479px) {
  .site-footer .brand strong { font-size: 1.2rem; }
}

/* Give the equation its own rhythm: inputs, operators, then the outcome. */
.compounding-sequence {
  grid-template-columns: minmax(0,1fr) 48px minmax(0,1fr) 48px minmax(0,1.2fr);
  align-items: center;
  gap: clamp(16px,2.4vw,36px);
  padding: clamp(28px,3vw,44px);
}
.compounding-sequence .compounding-item { padding: 0; border: 0; min-width: 0; }
.compounding-sequence .compounding-label { font-size: clamp(1.1rem,1.5vw,1.45rem); line-height: 1.25; margin-bottom: 10px; }
.compounding-sequence .compounding-plus {
  position: static; transform: none; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; margin: 0; border: 1px solid rgba(214,173,59,.5);
  border-radius: 50%; background: rgba(214,173,59,.07); color: var(--signal);
  font: 400 2rem/1 var(--display);
}
.compounding-sequence .compounding-item:last-child .compounding-label { color: var(--signal); }
@media (max-width:767px) {
  .compounding-sequence { grid-template-columns: minmax(0,1fr); gap: 20px; padding: 28px; }
  .compounding-sequence .compounding-item { text-align: center; }
  .compounding-sequence .compounding-plus { justify-self: center; width: 40px; height: 40px; font-size: 1.7rem; }
}

/* Equal text columns and geometrically centered equation symbols. */
.compounding-sequence { grid-template-columns: minmax(0,1fr) 48px minmax(0,1fr) 48px minmax(0,1fr); }
.compounding-sequence .compounding-item { text-align: center; }
.compounding-sequence .compounding-plus { position: relative; inset: auto; justify-self: center; font-size: 0; flex-shrink: 0; }
.compounding-sequence .compounding-plus:nth-of-type(2) { left: auto; }
.compounding-sequence .compounding-plus::before,
.compounding-sequence .compounding-plus::after { content: ''; position: absolute; width: 18px; height: 2px; background: currentColor; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.compounding-sequence .compounding-plus:first-of-type::after { transform: translate(-50%,-50%) rotate(90deg); }
.compounding-sequence .compounding-plus:nth-of-type(2)::before { margin-top: -4px; }
.compounding-sequence .compounding-plus:nth-of-type(2)::after { margin-top: 4px; }
@media(max-width:767px) { .compounding-sequence { grid-template-columns: minmax(0,1fr); } }
