/* ======================================================
   Riptide AI for Roofing Contractors — shared site styles
   ====================================================== */

:root {
  --ink: #091524;
  --ink-soft: #3a4658;
  --muted: #6b7686;
  --line: #e3e8ef;
  --bg: #F7F9FC;
  --surface: #F0FAFB;
  --white: #ffffff;
  --orange: #FF5C3A;
  --orange-soft: #ff7a5c;
  --teal: #00C9B1;
  --teal-soft: #1de2cb;
  --navy: #0E2C4F;
  --navy-deep: #07182C;
  --blue: #1F5FB6;
  --sky: #E6F0FB;
  --success: #16a34a;
  --warn: #f59e0b;
  --danger: #dc2626;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', "Times New Roman", serif;
  letter-spacing: -0.015em;
  margin: 0;
}

/* ---------- LAYOUT ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 28px; }

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--navy-deep);
  color: #cfdcef;
  font-size: 12.5px;
  padding: 9px 0;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar strong { color: #fff; font-weight: 600; }
.topbar .pill {
  background: rgba(255,255,255,0.08);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar .pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,201,177,0.25);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0,201,177,0.25); }
  50% { box-shadow: 0 0 0 7px rgba(0,201,177,0); }
}

/* ---------- SITE HEADER ---------- */
header.site {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(8px);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--orange) 0%, #ff8466 100%);
  position: relative;
  box-shadow: inset 0 0 0 1.5px rgba(9, 21, 36, 0.15);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 8px;
  border-radius: 4px; border: 2px solid #fff;
  border-left: 0; border-bottom: 0;
  transform: rotate(45deg);
}
.brand .name {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
}
.brand .tag {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.02em;
}
nav.site { display: flex; gap: 22px; align-items: center; }
nav.site a {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}
nav.site a:hover { color: var(--ink); }
nav.site a.active { color: var(--ink); font-weight: 600; }
nav.site .btn {
  background: var(--orange);
  color: #fff;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease;
}
nav.site .btn:hover { color: #fff; transform: translateY(-1px); }

/* Mobile-first responsive nav (basic) */
@media (max-width: 760px) {
  nav.site { gap: 14px; }
  nav.site a:not(.btn) { display: none; }
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 13px 22px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.2s ease;
  letter-spacing: 0.01em;
}
.btn-primary:hover { transform: translateY(-1px); background: #ff7252; color: #fff; }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.btn-primary.large { font-size: 16px; padding: 16px 28px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 12px 20px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost.on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- ICONS / SHARED VISUALS ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow.on-dark { background: rgba(255,255,255,0.1); }
.eyebrow .dot {
  width: 6px; height: 6px; background: var(--teal); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0, 201, 177, 0.25);
  animation: pulse 1.6s ease-in-out infinite;
}

.section-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-num::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

/* ---------- FOOTER ---------- */
footer.site {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 32px 0;
  font-size: 13.5px;
}
footer.site .wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 820px) {
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  footer.site .wrap { grid-template-columns: 1fr; }
}
footer.site h5 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px 0;
  font-weight: 700;
}
footer.site a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  display: block;
  padding: 4px 0;
}
footer.site a:hover { color: #fff; }
footer.site .brand-block .name { color: #fff; }
footer.site .brand-block .tag { color: rgba(255,255,255,0.55); }
footer.site .legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin-top: 44px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ---------- UTILITY CLASSES ---------- */
.hide { display: none !important; }
.fade-in { animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.spin {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
