/* United HVAC — Website UI Kit shared styles */
@import url('./colors_and_type.css');

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); font-family: var(--font-body); }
img { display: block; max-width: 100%; }

a { color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-gutter); }
.section { padding: var(--section-pad-y) 0; }
.section.alt { background: var(--bg-alt); }
.section.tinted { background: var(--bg-tinted); }
.section.deep { background: var(--brand-deep); color: var(--fg-inverse); }

/* Reusable utility */
.eyebrow {
  font-size: var(--type-eyebrow-size);
  line-height: var(--type-eyebrow-lh);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.section.deep .eyebrow { color: var(--uh-blue-300); }

.section-headline {
  font-family: var(--font-display);
  font-size: var(--type-display-lg-size);
  line-height: var(--type-display-lg-lh);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 8px;
  max-width: 720px;
  text-wrap: balance;
}

.section-sub {
  margin-top: 12px;
  font-size: var(--type-body-lg-size);
  line-height: var(--type-body-lg-lh);
  color: var(--fg-muted);
  max-width: 640px;
  text-wrap: pretty;
}
.section.deep .section-sub { color: rgba(255,255,255,0.78); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: var(--radius-pill); font-weight: 700; font-size: 14px; transition: all var(--duration) var(--ease); text-decoration: none; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 16px; height: 16px; }
.btn-call { background: var(--accent); color: var(--fg-inverse); box-shadow: var(--shadow-cta-red); }
.btn-call:hover { background: var(--accent-deep); }
.btn-primary { background: var(--brand); color: var(--fg-inverse); box-shadow: var(--shadow-cta-blue); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-secondary { background: transparent; color: currentColor; border: 1.5px solid currentColor; }
.btn-secondary:hover { background: var(--fg); color: var(--fg-inverse); border-color: var(--fg); }
.btn-link { color: var(--brand); padding: 8px 0; }
.btn-link:hover { color: var(--brand-bright); text-decoration: underline; }
.section.deep .btn-link { color: var(--uh-blue-300); }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); font-weight: 600; font-size: 13px; }
.chip-trust { background: rgba(255,255,255,0.08); color: var(--fg-inverse); border: 1px solid rgba(255,255,255,0.18); }
.chip-light { background: var(--bg); border: 1px solid var(--border); color: var(--fg); }
.chip-soft  { background: var(--brand-soft); color: var(--brand-deep); }
.chip-check svg { width: 14px; height: 14px; color: var(--brand); flex-shrink: 0; }

/* Cards (reusable shell) */
.card { background: var(--bg); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 28px; transition: all var(--duration) var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* The icon tile shown on service / why cards */
.icon-tile { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.icon-tile svg { width: 28px; height: 28px; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .grid-3, .grid-6 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--fg); color: var(--fg-inverse); padding: 12px 20px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; z-index: 999; animation: toastIn 200ms var(--ease); }
@keyframes toastIn { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(11,18,32,0.55); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 100; animation: fadeIn 200ms var(--ease); }
.modal { background: var(--bg); border-radius: var(--radius-lg); max-width: 540px; width: 100%; padding: 36px; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); position: relative; }
.modal .close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-alt); color: var(--fg); display: flex; align-items: center; justify-content: center; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
