/* Acquire HVAC — Global Styles */

/* ── Base ── */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
}

h2 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
}

h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}

h4 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

.overline {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent);
}

.text-muted {
  color: var(--color-text-muted);
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: 800px;
}

/* ── Section spacing ── */
.section {
  padding: var(--space-3xl) 0;
}

.section--sm {
  padding: var(--space-2xl) 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-text-inverse);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn--primary .btn-arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn--primary:hover .btn-arrow {
  transform: translateX(6px);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

/* ── Cards ── */
.card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ── Pill tags ── */
.pill {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  transition: background-color var(--duration-fast);
}

.pill:hover {
  background-color: #d1eaec;
}

/* ── Callout boxes ── */
.callout {
  background-color: rgba(15, 82, 87, 0.08);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  transition: border-left-width var(--duration-fast);
}

.callout:hover {
  border-left-width: 5px;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ── Pull quotes ── */
.pull-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--color-primary);
  padding: var(--space-xl) 0;
  border-top: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  margin: var(--space-xl) 0;
}

/* ── Checklist ── */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  cursor: pointer;
}

.checklist li .check-box {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-base);
  margin-top: 2px;
}

.checklist li.checked .check-box {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.checklist li.checked .check-box svg {
  opacity: 1;
}

.checklist li .check-box svg {
  opacity: 0;
  width: 14px;
  height: 14px;
  stroke: white;
  stroke-width: 3;
  fill: none;
  transition: opacity var(--duration-base);
}

.checklist li.checked span {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

/* ── CSS Patterns ── */
.pattern-diagonal {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.05) 0px,
    rgba(255,255,255,0.05) 1px,
    transparent 1px,
    transparent 10px
  );
}

.pattern-dot-grid {
  background-image: radial-gradient(
    circle,
    var(--color-border) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
}

.pattern-radial-mesh {
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(15, 82, 87, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(242, 107, 44, 0.06) 0%, transparent 60%);
}

/* ── Scroll animation base states ── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-moderate) var(--ease-out), transform var(--duration-moderate) var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .slide-left, .scale-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .fade-up.visible, .slide-left.visible, .scale-in.visible {
    transform: none;
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-xl);
  }

  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-2xl) 0;
  }
}

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: var(--weight-semibold);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ── Image styles ── */
.img-rounded {
  border-radius: var(--radius-lg);
}

.img-shadow {
  box-shadow: var(--shadow-md);
}

/* ── Comparison tables ── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
}

.comparison-table th {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  text-align: left;
  padding: var(--space-md);
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
}

.comparison-table th:first-child {
  border-radius: var(--radius-md) 0 0 0;
}

.comparison-table th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
}

.comparison-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.comparison-table tr:last-child td:first-child {
  border-radius: 0 0 0 var(--radius-md);
}

.comparison-table tr:last-child td:last-child {
  border-radius: 0 0 var(--radius-md) 0;
}

.comparison-table tr:hover td {
  background-color: var(--color-surface);
}

/* ── Numbered steps ── */
.step-block {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.step-block:last-child {
  border-bottom: none;
}

.step-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  min-width: 48px;
}

/* ── Horizontal rule ── */
.chapter-divider {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-xl) 0;
}
