/* ==========================================================================
   Ironline Plumbing — shared design system
   Palette: White (#ffffff) + Navy (#0b2545) + Orange (#ea580c)
   Mid-market residential plumbing / trades portfolio demo
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-2: #f6f7f9;            /* soft neutral card bg */
  --bg-3: #ecf0f4;            /* input bg / divider surface */
  --bg-dark: #0b2545;         /* navy for inverted sections */
  --bg-dark-2: #0f2d57;

  --ink: #0b2545;             /* navy ink */
  --ink-soft: #425680;        /* softer navy */
  --ink-mute: #8591a8;        /* light slate */
  --ink-on-dark: #ffffff;
  --ink-on-dark-soft: #b7c4dc;

  --line: #0b254512;
  --line-strong: #0b25451f;
  --line-on-dark: #ffffff1f;

  --accent: #ea580c;          /* orange */
  --accent-hot: #c2410c;      /* deeper orange for hover */
  --accent-soft: #ea580c12;

  --success: #16a34a;         /* for availability dots */

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Archivo", "Inter", sans-serif;  /* chunky display sans */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 1.75rem; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg, video { max-width: 100%; display: block; }

/* ========= UTILITY TOP BAR ========= */
.topbar {
  background: var(--bg-dark);
  color: var(--ink-on-dark-soft);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  gap: 1rem;
}
.topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.topbar-left .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 var(--success);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
  50%      { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
}
.topbar-right { display: flex; gap: 1.5rem; align-items: center; }
.topbar-right a {
  color: #fff;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.topbar-right a:hover { color: var(--accent); }
.topbar-right .phone {
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}
.topbar-right .phone::before {
  content: "☎";
  color: var(--accent);
}

/* ========= HEADER NAV ========= */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

/* Brand mark */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: var(--accent);
  border-radius: 6px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.1rem;
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px;
  border: 2px solid #fff;
}
.brand-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-left: 0.75rem;
  margin-left: 0.25rem;
  border-left: 1px solid var(--line-strong);
  font-weight: 500;
}

.nav-right { display: flex; gap: 2rem; align-items: center; }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 600;
}
.nav-links a {
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
  padding: 0.5rem 0;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  width: 42px; height: 42px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
}
.mobile-toggle svg { width: 18px; height: 18px; }

/* ========= BUTTONS ========= */
.btn {
  background: var(--accent);
  color: white;
  padding: 0.85rem 1.4rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.3s;
  text-decoration: none;
  font-family: var(--sans);
  letter-spacing: 0.01em;
}
.btn:hover {
  background: var(--accent-hot);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.3);
}
.btn svg { width: 16px; height: 16px; }
.btn-lg {
  padding: 1.05rem 1.75rem;
  font-size: 1rem;
  border-radius: 8px;
}
.btn-navy {
  background: var(--ink);
  color: white;
}
.btn-navy:hover {
  background: #0a1f3d;
  box-shadow: 0 10px 24px rgba(11, 37, 69, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: calc(0.85rem - 2px) calc(1.4rem - 2px);
}
.btn-ghost:hover {
  background: var(--ink);
  color: white;
}
.btn-ghost.btn-lg {
  padding: calc(1.05rem - 2px) calc(1.75rem - 2px);
}

/* ========= TYPOGRAPHY ========= */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}
h1 .accent, h2 .accent, h3 .accent { color: var(--accent); }

.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.tag::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
}

/* Trust badge (reusable) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}
.badge svg { width: 13px; height: 13px; color: var(--accent); }

/* ========= PAGE HEADS ========= */
.page-head {
  padding: 5rem 0 3rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-strong);
}
.page-head .tag { margin-bottom: 1.5rem; }
.page-head h1 {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  line-height: 1;
  max-width: 900px;
}
.page-head p {
  font-size: 1.1875rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin-top: 1.5rem;
  line-height: 1.6;
}

/* ========= FOOTER ========= */
footer {
  background: var(--bg-dark);
  color: var(--ink-on-dark-soft);
  padding: 5rem 0 2rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-on-dark);
}
.foot-brand { display: flex; flex-direction: column; gap: 1rem; }
.foot-brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.foot-brand p { color: rgba(255, 255, 255, 0.7); line-height: 1.6; }
.foot-brand-mark {
  width: 38px; height: 38px;
  background: #fff;
  color: var(--accent);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.foot-col h5 {
  font-family: var(--display);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 0.6rem; }
.foot-col a { color: rgba(255, 255, 255, 0.75); transition: color 0.2s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ========= REVEAL ========= */
.r { opacity: 0; transform: translateY(20px); animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.r.d1 { animation-delay: 0.08s; }
.r.d2 { animation-delay: 0.16s; }
.r.d3 { animation-delay: 0.24s; }
.r.d4 { animation-delay: 0.32s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .r { opacity: 1; transform: none; animation: none; } }

/* ========= RESPONSIVE ========= */
@media (max-width: 980px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  .topbar-right { gap: 0.75rem; font-size: 0.75rem; }
  .brand-tag { display: none; }
}
@media (max-width: 560px) {
  .foot-top { grid-template-columns: 1fr; }
  .page-head { padding: 3rem 0 2rem; }
  .topbar-right span:not(.phone):not(:last-child) { display: none; }
}
