* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body.design-mode .site-header {
  outline: 2px dashed rgba(0,0,0,0.25);
  outline-offset: -2px;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================
   Header / Nav
========================= */

.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid #ddd;
  color: #111; /* base text color, overridden by JS inline color */
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

/* Brand lockup */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

/* Round dude logo (desktop/tablet) */
.brand-logo-main {
  height: 64px;   /* fixed */
  width: auto;
  display: block;
  padding: 4px 0px;
}

/* Curvy text logo (tiny mobile) */
.brand-logo-mobile {
  height: 80px;   /* let the image breathe */
  width: auto;
  display: none;  /* hidden by default */
  padding: 4px 0px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 700;
  font-size: 1.2rem;
  white-space: nowrap;
}

.brand-tagline {
  font-weight: 500;
  font-size: 0.85rem;
  opacity: 0.75;
  white-space: nowrap;
}

/* Two logo roles: main vs mobile wordmark */
.brand-logo-mobile {
  display: none;  /* hidden on desktop */
}

.brand-logo-main {
  display: block; /* shown on desktop */
}

.nav a {
  margin-left: 16px;
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

.nav a,
.nav a:hover {
  color: inherit;
}

.quote-success {
  display: none;
  margin-bottom: 12px;
  color: #155724;
  background: #d4edda;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 6px;
}

.quote-success.show {
  display: block;
}

/* =========================
   Hero
========================= */

.hero {
  padding: 6px 0 56px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 36px;
}

.hero p {
  margin: 0 0 16px;
  max-width: 52ch;
}

.hero-supra-tagline {
  margin: 2px 0 4px;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}

.hero-photo {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
}

.hero-photo.is-fading {
  opacity: 0;
}

/* =========================
   Buttons
========================= */

.btn {
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
  display: inline-block;
  margin-right: 10px;
  min-width: 180px;
  padding: 10px 14px;
  text-align: center;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
}

.btn-ghost {
  border-color: currentColor;
  color: inherit;       /* follow section text color */
}

.cta .btn {
  white-space: nowrap;
}

button:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.phone {
  opacity: 0.85;
}

.reviews-toggle {
  margin: 12px 0;
  padding: 10px 14px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  display: inline-block;
}

.reviews-container {
  margin-bottom: 20px;
}

.review-card {
  margin-bottom: 18px;
}

/* =========================
   Sections
========================= */

.site-header,
.hero,
.section {
  position: relative;
}

.section {
  padding: 40px 0;
  border-top: 1px solid #eee;
}

.section.alt {
  background: #f7f7f7;
}

/* Cards */
.cards {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  border: 1px solid #ddd;
  padding: 14px;
  background: #fff;
}

.card h3 {
  margin: 0 0 6px;
}

.stars {
  color: #d4a017; /* gold */
}

/* =========================
   Footer
========================= */

.site-footer {
  border-top: 1px solid #eee;
  padding: 20px 0;
}

/* =========================
   Palette Control (design-only)
========================= */

#paletteToggle,
#paletteToggleMobile {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

#paletteControl {
  display: none;
}

.palette-control {
  position: fixed;
  top: 72px;
  left: 8px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.65);
  padding: 8px;
  border-radius: 6px;
}

.palette-control button {
  font-size: 12px;
  padding: 6px 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #ffffff;
  color: #111;
}

.palette-control button:hover {
  background: #f0f0f0;
}

#paletteIndexOverlay {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  display: none;
  pointer-events: none;
}

.tone-badge {
  position: absolute;
  top: 6px;
  left: 8px;
  padding: 2px 6px;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border-radius: 3px;
  pointer-events: none;
  z-index: 5000;
  display: none;
}

body.design-mode .tone-badge {
  display: block;
}

/* Desktop: inline nav, no hamburger */
.nav {
  display: flex;
  align-items: center;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  padding: 4px 8px;
  color: inherit;
}

#quoteToggleBtn {
  cursor: pointer;
  transition: all 0.15s ease;
}

#quoteToggleBtn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

#quoteToggleBtn:active {
  transform: translateY(0);
  opacity: 0.9;
}

/* =========================
   Quote panel / scheduler
========================= */

#quotePanel {
  margin-top: 20px;
}

#zipPrompt,
#schedulerPanel {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

#zipPrompt {
  max-width: 420px;
}

#schedulerPanel {
  margin-top: 20px;
}

#onsiteZipInput {
  margin-top: 6px;
  padding: 10px 12px;
  width: 140px;
  border: 1px solid #cfd6dc;
  border-radius: 10px;
  font: inherit;
  line-height: 1.2;
}

#quoteCalendar {
  margin-top: 15px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 12px;
  overflow: hidden;
}

/* =========================
   FullCalendar
========================= */

#quoteCalendar .fc {
  font-family: inherit;
  font-size: 0.95rem;
}

#quoteCalendar .fc-toolbar {
  margin-bottom: 14px;
  gap: 8px;
  flex-wrap: wrap;
}

#quoteCalendar .fc-toolbar-title {
  font-size: 1.2rem;
  font-weight: 700;
}

#quoteCalendar .fc-button {
  border-radius: 10px;
  border: 1px solid #cfd6dc;
  background: #ffffff;
  color: #1f2a33;
  padding: 8px 12px;
  font-weight: 600;
  box-shadow: none;
}

#quoteCalendar .fc-button:hover,
#quoteCalendar .fc-button:focus {
  background: #f4f7f5;
  border-color: #3d6f57;
}

#quoteCalendar .fc-button-primary:not(:disabled).fc-button-active {
  background: #3d6f57;
  border-color: #3d6f57;
  color: #ffffff;
}

#quoteCalendar .fc-scrollgrid,
#quoteCalendar .fc-theme-standard td,
#quoteCalendar .fc-theme-standard th {
  border-color: #dbe3e8;
}

#quoteCalendar .fc-col-header-cell {
  background: #f7faf8;
  padding: 8px 0;
  font-weight: 700;
}

/* open cells start faint green */
#quoteCalendar .fc-timegrid-slot {
  background: rgba(40, 167, 69, 0.09);
}

/* keep grid lines visible */
#quoteCalendar .fc-timegrid-slot-lane {
  background: rgba(40, 167, 69, 0.09);
}

/* hover over empty slots */
#quoteCalendar .fc-timegrid-slot:hover,
#quoteCalendar .fc-timegrid-slot-lane:hover {
  background: rgba(40, 167, 69, 0.12);
  cursor: pointer;
}

#quoteCalendar .fc-timegrid-axis {
  color: #5c6870;
  font-size: 0.88rem;
}

#quoteCalendar .fc-timegrid-now-indicator-line {
  border-color: #b14d4d;
}

#quoteCalendar .fc-timegrid-now-indicator-arrow {
  border-top-color: #b14d4d;
  border-bottom-color: #b14d4d;
}

/* =========================
   Booked (TAKEN SLOTS)
========================= */

#quoteCalendar .fc-event {
  background: #e5535d;
  border: 1px solid #c63c45;
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.85rem;
  padding: 2px 4px;
  opacity: 0.95;
}

#quoteCalendar .fc-event:hover {
  cursor: not-allowed;
  filter: brightness(0.9);
}

/* =========================
   Available (HOVER / SELECT)
========================= */

#quoteCalendar .fc-timegrid-slot:hover {
  background: rgba(40, 167, 69, 0.08);
  cursor: pointer;
}

#quoteCalendar .fc-highlight {
  background: rgba(40, 167, 69, 0.25);
  position: relative;
}

#quoteCalendar .fc-highlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(40, 167, 69, 0.6);
  pointer-events: none;
}

#quoteCalendar .fc-highlight {
  background: rgba(61, 111, 87, 0.18);
}

/* selected time box */
#selectedTimeDisplay {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f7faf8;
  border: 1px solid #d8e6dd;
  border-radius: 12px;
  color: #1f2a33;
}

/* =========================
   Unavailable (DAY OFF / CLOSED)
========================= */

#quoteCalendar .fc-bg-event {
  background: rgba(180, 180, 180, 0.35);
}

#quoteCalendar .fc-bg-event.unavailable {
  background: rgba(120, 120, 120, 0.45);
}

/* =========================
   Reviews
========================= */
.reviews-controls {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Follow-up (customer reply after owner) */
.review-followup {
  margin-top: 16px;
  margin-left: 12px;           /* 👈 indentation */
  padding-left: 16px;
  border-left: 3px solid #ddd; /* subtle thread line */
  /* background: #fafafa;          slight contrast */
  border-radius: 6px;
}

.review-note {
  margin-bottom: 12px;
  padding: 10px 14px;
  background: #f5f5f5;
  border-left: 4px solid #bbb;
  border-radius: 6px;
  font-weight: 600;
}

.owner-reply {
  margin-top: 12px;
  padding: 10px 14px;
  background: #d8d6c3;
  border-left: 3px solid #BDBCA7;
  border-radius: 6px;
}

.review-highlight {
  font-weight: 600;
  color: #2d2d2d;
  border-top: 1px solid #BDBCA7;
  border-bottom: 1px solid #BDBCA7;
}

/* Optional: make follow-up name slightly softer */
.review-followup .review-name {
  font-size: 0.95em;
  opacity: 0.9;
}

/* Special case review (Rachael story) */
.review-case-study .review-content {
  background: #f3efe3;   /* light tan */
  padding: 12px;
  border-radius: 6px;
}

/* Optional: tighten spacing inside */
.review-followup .review-text {
  margin-top: 4px;
}

/*
=========================
 Facebook specific pages
========================= */

#facebook-quote.section {
  padding-top: 8px;
}

#facebook-quote p {
  margin: 0 0 8px 0;
}

#facebook-quote p:first-of-type {
  margin-bottom: 10px;
}

#facebook-quote p:nth-of-type(2) {
  margin-bottom: 20px;
}

#facebook-quote label {
  display: block;
  margin-bottom: 3px;
  line-height: 1.2;
}

#facebook-quote input,
#facebook-quote select,
#facebook-quote textarea {
  display: block;
  margin: 0;
}

#facebook-quote .inline-label {
  display: inline-block;
  margin-right: 8px;
}

#facebook-quote #quote_service {
  display: inline-block;
  vertical-align: middle;
}

#facebook-quote #quote_email {
  margin-bottom: 20px;
}

#facebook-quote .inline-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

/* mobile */
@media (max-width: 767px) {
  .site-header .wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  #zipPrompt,
  #schedulerPanel {
    padding: 14px;
    border-radius: 12px;
  }

  #quoteCalendar {
    padding: 8px;
  }

  #quoteCalendar .fc-toolbar-title {
    font-size: 1rem;
  }

  #quoteCalendar .fc-button {
    padding: 7px 10px;
    font-size: 0.9rem;
  }

  #quoteCalendar .fc-timegrid-slot {
    height: 2.75rem;
  }

  #onsiteZipInput {
    width: 100%;
    max-width: 180px;
  }
}

@media (max-width: 600px) {
  .site-header .wrap {
    padding-left: 8px;
    padding-right: 8px;
  }

  .brand-tagline {
    display: block;
  }

  .hamburger {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 16px;
    margin: 0;
    padding: 8px 16px;
    background: #fff;
    color: #111;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 9000;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    margin-left: 0;
    color: #111;
    padding: 4px 0;
  }

  .nav a:hover {
    color: #111;
  }
}

@media (max-width: 420px) {
  .site-header .wrap {
    gap: 8px;
    min-height: 80px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .brand-logo-main {
    display: none;
  }

  .brand-logo-mobile {
    display: block;
    height: 80px;
    width: auto;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
  }

  .brand-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    line-height: 1.05;
  }

  .brand-name {
    font-size: 1.08rem;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
  }

  .brand-tagline {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    opacity: 0.8;
  }
}

@media (max-width: 360px) {
  .brand-tagline {
    font-size: 0.65rem;
    letter-spacing: 0.2px;
  }
}

.tagline-short {
  display: none;
}

@media (max-width: 340px) {
  .tagline-long {
    display: none;
  }

  .tagline-short {
    display: inline;
  }
}

.brand,
.brand:visited,
.brand:hover,
.brand:active {
  color: inherit;
  text-decoration: none;
}

/* =========================
   Viewport debug overlay
========================= */

body.design-mode::after {
  content: "vw " attr(data-vw)
           " | vh " attr(data-vh)
           " | dpr " attr(data-dpr)
           " | screen " attr(data-sw) "x" attr(data-sh);
  position: fixed;
  bottom: 0;
  left: 0;
  background: #000;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  z-index: 9999;
  opacity: 0.85;
}
