/* ============================================================
   Fluffy — site stylesheet
   Reproduces the Fluffy Design System primitives (Button, Card,
   FluffyVerified, Input, Select, Checkbox) and page chrome as
   plain CSS. Design tokens come from css/tokens/*.css.
   ============================================================ */

/* ---- Base ---- */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface-page);
  font-family: var(--font-sans);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
img { max-width: 100%; }
a { color: var(--text-link); }
a:hover { color: var(--navy-700); }
::selection { background: var(--gold-200); }

h1, h2, h3, p { margin: 0; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold-700);
}
.eyebrow--on-navy { color: var(--gold-400); }

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-default);
}
.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
  padding: 0 24px;
}
.brand { display: flex; }
.brand img { height: 34px; width: auto; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: var(--radius-full);
  font-size: 14.5px;
  color: var(--navy-900);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out);
}
.nav-link:hover { background: var(--navy-50); color: var(--navy-900); }
.nav-link.is-active {
  font-weight: 500;
  background: var(--navy-50);
}
.nav-link .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold-500);
  display: inline-block;
}
.header-phone {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-900);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--gold-700); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--border-default);
  background: #fff;
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--navy-900);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              filter var(--duration-fast) var(--ease-out);
  outline: none;
}
.btn:active { filter: brightness(0.92); }
.btn:focus-visible { box-shadow: var(--focus-ring); }
.btn--full { display: flex; width: 100%; }

/* sizes */
.btn--sm { height: 36px; padding: 0 18px; font-size: 13px; gap: 6px; }
.btn--md { height: 44px; padding: 0 24px; font-size: 14.5px; gap: 8px; }
.btn--lg { height: 52px; padding: 0 30px; font-size: 16px; gap: 8px; }

/* variants */
.btn--primary { background: var(--primary); color: var(--text-on-navy); }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }

.btn--accent { background: var(--accent); color: var(--text-on-gold); }
.btn--accent:hover { background: var(--accent-hover); color: var(--navy-900); }

.btn--secondary { background: transparent; color: var(--navy-900); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--navy-50); border-color: var(--navy-400); color: var(--navy-900); }

.btn--ghost { background: transparent; color: var(--navy-800); }
.btn--ghost:hover { background: var(--navy-50); color: var(--navy-800); }

.btn--on-navy { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: var(--border-on-navy); }
.btn--on-navy:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* navy hero chips (Services hero) */
.chip-navy {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-on-navy);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out);
}
.chip-navy:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* ---- Cards ---- */
.card {
  border-radius: var(--radius-lg);
  box-sizing: border-box;
  font-family: var(--font-sans);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  color: var(--text-body);
  box-shadow: var(--shadow-md);
}
.card--gold {
  background: var(--surface-gold-tint);
  border: 1px solid var(--gold-200);
  color: var(--navy-800);
  box-shadow: none;
}

/* ---- FluffyVerified pill ---- */
.verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 13px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  background: #fff;
  border: 1px solid var(--border-default);
  color: var(--navy-900);
}
.verified img { height: 22px; width: auto; display: block; }
.verified svg { width: 13.5px; height: 13.5px; }
.verified--sm { height: 26px; padding: 0 10px; font-size: 12px; gap: 6px; }
.verified--sm img { height: 16px; }
.verified--sm svg { width: 12px; height: 12px; }

/* ---- Form fields ---- */
.field { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-sans); }
.field__label { font-size: 14px; font-weight: var(--weight-medium); color: var(--navy-900); }
.field__control {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}
.field__control:focus-within { border-color: var(--gold-500); box-shadow: var(--focus-ring); }
.field__control input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: 400 15px var(--font-sans);
  color: var(--navy-900);
}
.field__select { position: relative; }
.field__select select {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 14px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font: 400 15px var(--font-sans);
  color: var(--navy-900);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}
.field__select select:focus { border-color: var(--gold-500); box-shadow: var(--focus-ring); }
.field__select svg {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  pointer-events: none;
}
textarea.field__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font: 400 15px var(--font-sans);
  color: var(--navy-900);
  resize: vertical;
  outline: none;
  background: #fff;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}
textarea.field__textarea:focus { border-color: var(--gold-500); box-shadow: var(--focus-ring); }

/* checkbox */
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-sans);
}
.checkbox input {
  position: absolute;
  opacity: 0;
  width: 20px; height: 20px;
  margin: 0;
  cursor: pointer;
}
.checkbox__box {
  position: relative;
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1.5px solid var(--border-strong);
  transition: background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}
.checkbox__box::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2.4px 2.4px 0;
  transform: rotate(45deg) scale(0);
  transition: transform var(--duration-fast) var(--ease-out);
}
.checkbox input:checked + .checkbox__box {
  background: var(--navy-900);
  border-color: var(--navy-900);
}
.checkbox input:checked + .checkbox__box::after { transform: rotate(45deg) scale(1); }
.checkbox input:focus-visible + .checkbox__box { box-shadow: var(--focus-ring); }
.checkbox__label { font-size: 14.5px; color: var(--text-body); }

/* ---- Reusable link + pill helpers ---- */
.link-gold {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gold-700);
  text-decoration: none;
}
.link-gold:hover { color: var(--gold-600); }

.tag-pill {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-800);
  background: var(--navy-50);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out);
}
.tag-pill:hover { background: var(--navy-100); color: var(--navy-800); }

.new-chip {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-700);
  background: var(--gold-100);
  border: 1px solid var(--gold-200);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out);
}
.new-chip:hover { background: var(--gold-200); color: var(--gold-700); }

/* sparkle bullet rows */
.spark { color: var(--gold-500); }

/* client-logo strip marks (SVG recreations; swap for real logo files when available) */
.client-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: block;
  border-radius: 10px;
}

/* ---- Footer ---- */
.site-footer { background: var(--surface-navy-deep); color: #fff; }
.site-footer__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
}
.footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 12px;
}
.footer-col-links { display: flex; flex-direction: column; gap: 6px; }
.footer-link {
  font-size: 13.5px;
  color: var(--text-on-navy-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.footer-link:hover { color: #fff; }
.footer-link--gold { color: var(--gold-400); }
.footer-link--gold:hover { color: #fff; }
.site-footer__bar { border-top: 1px solid var(--border-on-navy); }
.site-footer__bar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-on-navy-muted);
}

/* ---- Scroll reveal (applied by js/reveal.js) ---- */
.reveal { opacity: 0; transform: translateY(16px); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1040px) {
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface-page);
    border-bottom: 1px solid var(--border-default);
    padding: 12px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .site-header__inner { position: relative; gap: 16px; }
  .nav-toggle { display: inline-flex; }
  .header-phone, .site-header .btn { display: none; }

  /* stack the common two/three/four-column grids */
  .grid-2, .grid-3, .grid-4,
  .split { grid-template-columns: 1fr !important; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__bar-inner { flex-direction: column; }
}

@media (max-width: 620px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  h1 { font-size: 34px !important; }
}

/* ---- Service-area interactive map ---- */
.area-map {
  position: relative;
  background: var(--navy-950);
  border-radius: var(--radius-xl);
  height: 480px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.area-map::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  pointer-events: none;
  z-index: 5;
}
.area-map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-route { stroke: rgba(209, 186, 125, 0.30); stroke-width: 1; stroke-dasharray: 4 4; }

.map-overlay { position: absolute; inset: 0; z-index: 2; }
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 2;
}
.map-pin__dot {
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 5px rgba(194, 166, 87, 0.20);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}
.map-pin:hover .map-pin__dot,
.map-pin.is-hot .map-pin__dot {
  transform: scale(1.45);
  box-shadow: 0 0 0 7px rgba(194, 166, 87, 0.35);
}
.map-pin__badge {
  display: block;
  height: 30px; width: auto;
  filter: drop-shadow(0 0 10px rgba(194, 166, 87, 0.55));
  transition: transform var(--duration-fast) var(--ease-out);
}
.map-pin:hover .map-pin__badge,
.map-pin.is-hot .map-pin__badge { transform: scale(1.15); }
.map-pin__lbl {
  position: absolute;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(6, 26, 52, 0.9);
  pointer-events: none;
}
.map-pin[data-side="right"]  .map-pin__lbl { left: calc(100% - 2px); top: 50%; transform: translateY(-50%); }
.map-pin[data-side="left"]   .map-pin__lbl { right: calc(100% - 2px); top: 50%; transform: translateY(-50%); }
.map-pin[data-side="top"]    .map-pin__lbl { bottom: calc(100% - 4px); left: 50%; transform: translateX(-50%); }
.map-pin[data-side="bottom"] .map-pin__lbl { top: calc(100% - 4px); left: 50%; transform: translateX(-50%); }
/* coast view: only Myrtle Beach keeps a label; metro cluster is summarized by the chip */
.area-map[data-view="coast"] .map-pin:not([data-region]) .map-pin__lbl { display: none; }
.area-map[data-view="metro"] .map-pin[data-region] { display: none; }

.map-cluster {
  position: absolute;
  transform: translate(0, -50%);
  z-index: 3;
  font: 500 12px var(--font-sans);
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--border-on-navy);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-out);
}
.map-cluster span { color: var(--gold-400); }
.map-cluster:hover { background: rgba(255, 255, 255, 0.20); }
.area-map[data-view="metro"] .map-cluster { display: none; }

.map-views {
  position: absolute;
  top: 20px; left: 22px;
  z-index: 6;
  display: flex;
  gap: 6px;
}
.map-viewbtn {
  font: 500 12.5px var(--font-sans);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-on-navy);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}
.map-viewbtn:hover { background: rgba(255, 255, 255, 0.18); }
.map-viewbtn.is-active { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); font-weight: 600; }

.map-tip {
  position: absolute;
  z-index: 7;
  transform: translate(-50%, calc(-100% - 14px));
  background: var(--navy-950);
  border: 1px solid var(--gold-500);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-md);
}
.map-tip.is-on { opacity: 1; }
.map-tip b { color: var(--gold-400); font-weight: 600; }
.map-tip small { display: block; color: var(--text-on-navy-muted); font-size: 11.5px; }

.map-cred {
  position: absolute;
  right: 26px; bottom: 22px;
  z-index: 6;
  font-size: 12.5px;
  color: var(--gold-400);
  text-shadow: 0 1px 4px rgba(6, 26, 52, 0.9);
}

.area-item { border-radius: var(--radius-sm); cursor: pointer; transition: color var(--duration-fast) var(--ease-out); }
.area-item:hover, .area-item.is-hot { color: var(--gold-700) !important; }


/* ---- Sticky mobile action bar ---- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(6, 26, 52, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-on-navy);
}
.mobile-cta .btn { flex: 1; }
@media (max-width: 1040px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 74px; }
}

/* ---- Design-review batch 2 ---- */

/* clickable cards: lift on hover, whole card is the target */
.card--link {
  position: relative;
  transition: box-shadow var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card--link .stretch::after { content: ""; position: absolute; inset: 0; }
.card--link .tag-pill,
.card--link .new-chip { position: relative; z-index: 1; }

/* quiet gold dot for dense feature lists (✦ reserved for accents) */
.li-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-500);
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* gold anchor chip (Services hero — Linen Subscription) */
.chip-gold {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
  background: var(--gold-500);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-full);
  padding: 10px 20px;
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out);
}
.chip-gold:hover { background: var(--gold-400); color: var(--navy-900); }

/* partner logos: muted at rest, full color on hover */
.client-item .client-logo {
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter var(--duration-normal) var(--ease-out),
              opacity var(--duration-normal) var(--ease-out);
}
.client-item:hover .client-logo { filter: none; opacity: 1; }

/* announcement bar */
.announce {
  position: relative;
  background: var(--gold-100);
  border-bottom: 1px solid var(--gold-200);
  text-align: center;
  padding: 9px 48px;
  font-size: 13px;
}
.announce a { color: var(--navy-900); font-weight: 500; text-decoration: none; }
.announce a:hover { color: var(--gold-700); }
.announce a span { color: var(--gold-700); }
.announce__x {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border: none;
  background: none;
  color: var(--gold-700);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-full);
}
.announce__x:hover { background: var(--gold-200); }
.announce.is-dismissed { display: none; }

/* branded keyboard focus for everything the .btn ring doesn't cover */
:focus-visible:not(.btn) {
  outline: 3px solid rgba(194, 166, 87, 0.55);
  outline-offset: 2px;
}
