/* ═══════════════════════════════════════════════════════════════
   Surf & Turf Refrigeration · HVAC — site.css

   Four sections: hero, what we do, about, contact.
   Tokens: obsidian #0F172A · abyss #0B1222 · chalk #F8FAFC
           platinum #94A3B8 · ice #06B6D4
   ═══════════════════════════════════════════════════════════════ */

/* Any element given an explicit `display` beats the browser's built-in
   [hidden] rule, so hiding it from JS silently stops working. Both
   #inquiry-form (grid) and .inquiry-confirm (flex) hit this. */
[hidden] { display: none !important; }

/* ── Layout ────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.wrap--narrow { max-width: 48rem; }

.section {
  padding: 5rem 0;
  border-top: 1px solid rgba(248, 250, 252, 0.07);
  /* Clears the 5rem fixed header when a nav link jumps here */
  scroll-margin-top: 5rem;
}
.section--alt { background-color: rgba(11, 18, 34, 0.5); }

@media (min-width: 768px) {
  .section { padding: 7rem 0; }
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #06B6D4;
}

.section-title {
  font-size: clamp(1.625rem, 3.4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: #F8FAFC;
  max-width: 24ch;
}
#about .section-title { max-width: 20ch; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #0F172A;
}
.hero-glow {
  position: absolute;
  top: -40%;
  right: -15%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.13) 0%, rgba(6, 182, 212, 0.04) 45%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 8.5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .hero-inner { padding-top: 11rem; padding-bottom: 7.5rem; }
}

.hero-title {
  margin-top: 1.5rem;
  max-width: 17ch;
  font-size: clamp(2.125rem, 5.6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.032em;
  color: #F8FAFC;
}

.hero-lede {
  margin-top: 1.75rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 300;
  line-height: 1.7;
  color: #94A3B8;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; align-items: center; gap: 1rem; }
}

/* ── What we do ────────────────────────────────────────────── */
.two-col {
  margin-top: 3rem;
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.col-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #06B6D4;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(248, 250, 252, 0.1);
}

.plain-list {
  list-style: none;
  margin-top: 0.5rem;
}
.plain-list li {
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(248, 250, 252, 0.05);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  color: #CBD5E1;
}
.plain-list li:last-child { border-bottom: 0; }

.brands { margin-top: 3.5rem; }

.brand-list {
  list-style: none;
  margin-top: 0.5rem;
  display: grid;
  gap: 0;
}
@media (min-width: 768px) {
  .brand-list { grid-template-columns: 1fr 1fr; gap: 0 4rem; }
}
.brand-list li {
  padding: 1.125rem 0;
  border-bottom: 1px solid rgba(248, 250, 252, 0.05);
}
.brand-name {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #F8FAFC;
}
.brand-detail {
  display: block;
  margin-top: 0.375rem;
  max-width: 40ch;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.6;
  color: #94A3B8;
}

/* ── About ─────────────────────────────────────────────────── */
.prose { margin-top: 2rem; }
.prose p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: #94A3B8;
}
.prose p + p { margin-top: 1.5rem; }

.badges {
  list-style: none;
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.badges li {
  padding: 0.5rem 0.875rem;
  border: 1px solid rgba(248, 250, 252, 0.12);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #94A3B8;
}

/* ── Contact ───────────────────────────────────────────────── */
.contact-grid {
  margin-top: 3rem;
  display: grid;
  gap: 3rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; }
}

.contact-details { display: grid; gap: 2rem; align-content: start; }

.detail-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #94A3B8;
  margin-bottom: 0.5rem;
}
.detail-value {
  display: inline-block;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: #F8FAFC;
  transition: color 150ms ease;
}
a.detail-value:hover { color: #06B6D4; }
.detail-value--sm { font-size: 1rem; font-weight: 400; }

.detail-note {
  margin-top: 0.75rem;
  max-width: 34ch;
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.6;
  color: #94A3B8;
}

.form-card {
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(248, 250, 252, 0.1);
  background-color: rgba(15, 23, 42, 0.6);
}
@media (min-width: 640px) {
  .form-card { padding: 2.25rem 2rem; }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-platinum,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.9375rem 1.875rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  text-align: center;
  transition: background-color 200ms ease, color 200ms ease,
              border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.8125rem; }

.btn-platinum {
  color: #0F172A;
  border: 0;
  background-image: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 46%, #94A3B8 100%);
  box-shadow: 0 1px 0 rgba(248, 250, 252, 0.45) inset;
}
.btn-platinum:hover {
  background-image: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 46%, #CBD5E1 100%);
  transform: translateY(-1px);
}

.btn-ghost {
  color: #F8FAFC;
  border: 1px solid rgba(248, 250, 252, 0.3);
  background-color: transparent;
}
.btn-ghost:hover {
  border-color: rgba(248, 250, 252, 0.7);
  background-color: rgba(248, 250, 252, 0.05);
  transform: translateY(-1px);
}

/* ── Form ──────────────────────────────────────────────────── */
#inquiry-form { display: grid; gap: 1.375rem; }

/* Spam honeypot — hidden from people, visible to bots that fill everything */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { display: grid; gap: 0.5rem; }

.field-row { display: grid; gap: 1.375rem; }
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #CBD5E1;
}
.field-optional {
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.65);
}

.field-input {
  width: 100%;
  padding: 0.8125rem 1rem;
  font-family: inherit;
  /* 16px minimum — iOS Safari zooms the viewport on focus below this */
  font-size: 1rem;
  font-weight: 300;
  color: #F8FAFC;
  background-color: rgba(11, 18, 34, 0.7);
  border: 1px solid rgba(248, 250, 252, 0.12);
  border-radius: 0;
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}
.field-input::placeholder { color: rgba(148, 163, 184, 0.45); font-weight: 300; }

.field-input:focus {
  outline: none;
  border-color: #06B6D4;
  background-color: rgba(6, 182, 212, 0.04);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.4);
}
.field-input[aria-invalid="true"] { border-color: rgba(248, 113, 113, 0.7); }

.field-textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }

.field-error {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #F87171;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.field-error[data-show="true"] { opacity: 1; transform: translateY(0); }

.inquiry-submit { position: relative; width: 100%; cursor: pointer; margin-top: 0.25rem; }
.inquiry-submit:disabled { cursor: wait; opacity: 0.75; }
.inquiry-submit:disabled:hover {
  transform: none;
  background-image: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 46%, #94A3B8 100%);
}

.inquiry-spinner {
  display: none;
  width: 0.875rem;
  height: 0.875rem;
  border: 1.5px solid rgba(15, 23, 42, 0.3);
  border-top-color: #0F172A;
  border-radius: 9999px;
  animation: spin 620ms linear infinite;
}
.inquiry-submit[data-loading="true"] .inquiry-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.inquiry-status {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #06B6D4;
}
.inquiry-status:empty { display: none; }
.inquiry-status[data-state="error"] { color: #F87171; }

.inquiry-confirm {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms ease, transform 320ms ease;
}
.inquiry-confirm[data-show="true"] { opacity: 1; transform: translateY(0); }
.inquiry-confirm:focus { outline: none; }

.inquiry-confirm-mark { width: 2.5rem; height: 2.5rem; color: #06B6D4; }
.inquiry-confirm-title {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #F8FAFC;
}
.inquiry-confirm-body {
  margin-top: 0.625rem;
  max-width: 38ch;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  color: #94A3B8;
}
.inquiry-confirm-again {
  margin-top: 1.75rem;
  padding: 0 0 0.25rem;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #94A3B8;
  transition: color 200ms ease, border-color 200ms ease;
}
.inquiry-confirm-again:hover { color: #06B6D4; border-color: #06B6D4; }

/* ── Mobile drawer ─────────────────────────────────────────── */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background-color: rgba(2, 6, 16, 0.7);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 320ms ease;
}
.mobile-backdrop[data-open="true"] { opacity: 1; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(21rem, 86vw);
  background-color: #0B1222;
  border-left: 1px solid rgba(248, 250, 252, 0.1);
  box-shadow: -32px 0 64px -32px rgba(0, 0, 0, 0.85);
  transform: translate3d(100%, 0, 0);
  visibility: hidden;
  transition: transform 340ms cubic-bezier(0.32, 0.72, 0.28, 1), visibility 0s linear 340ms;
}
.mobile-drawer[data-open="true"] {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  transition: transform 340ms cubic-bezier(0.32, 0.72, 0.28, 1), visibility 0s;
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid rgba(248, 250, 252, 0.07);
}
.mobile-drawer-brand {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #F8FAFC;
}

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.5rem 2rem;
}

.drawer-link {
  display: block;
  padding: 0.9375rem 0;
  border-bottom: 1px solid rgba(248, 250, 252, 0.07);
  font-size: 1rem;
  font-weight: 500;
  color: #F8FAFC;
}

.mobile-drawer-foot {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(248, 250, 252, 0.07);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.7);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(248, 250, 252, 0.07);
  background-color: #0B1222;
  padding: 3.5rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
@media (min-width: 640px) {
  .footer-inner { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}
.footer-contact {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.8;
  color: #94A3B8;
}
.footer-contact a { color: #94A3B8; transition: color 150ms ease; }
.footer-contact a:hover { color: #F8FAFC; }

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(248, 250, 252, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.7);
}
@media (min-width: 640px) {
  .footer-legal { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ── Motion preferences ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mobile-drawer,
  .mobile-backdrop,
  .field-error,
  .inquiry-confirm,
  .btn-platinum,
  .btn-ghost { transition: none; }
  .field-error,
  .inquiry-confirm { transform: none; }
  .btn-platinum:hover,
  .btn-ghost:hover { transform: none; }
  .inquiry-spinner { animation-duration: 1.4s; }
}

/* Market pages: same hero, smaller headline than the homepage */
.hero--page .hero-title { font-size: clamp(1.875rem, 4.4vw, 3rem); max-width: 20ch; }
.hero--page .hero-inner { padding-bottom: 4rem; }
@media (min-width: 768px) {
  .hero--page .hero-inner { padding-top: 10rem; padding-bottom: 5.5rem; }
}
