/* ========================================================================
   FLOOR STAR — MYTHBUSTERS WHITEBOARD
   Hand-drawn marker feel, sketchy borders, dry-erase palette.
   Brendan Reed, Floor Star
   ======================================================================== */

/* Google Fonts loaded via <link> in base.html for performance (preconnect + non-blocking) */

:root {
  --board:    #f5f3eb;
  --board-2:  #eceade;
  --ink:      #1a1a1a;
  --red:      #c62828;
  --blue:     #1565c0;
  --green:    #2e7d32;
  --grey:     #9e9e9e;
  --grid:     #d8d5c8;
  --tape:     #fffde7;
  --tape-edge:#e6dfa0;
  --shadow:   4px 4px 0 rgba(0,0,0,.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--board);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 600;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration: none; font-weight: 700; }
a:hover { color: var(--red); text-decoration: underline wavy; }

h1, h2, h3 {
  font-family: "Permanent Marker", cursive;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 16px;
}

.wrap { max-width: 520px; margin: 0 auto; padding: 0 18px; }

/* ── MARKER UNDERLINE ── */
.marker-ul {
  display: inline;
  background-image: linear-gradient(transparent 65%, var(--red) 65%, var(--red) 90%, transparent 90%);
  background-size: 100% 100%;
  padding: 0 6px;
}
.marker-ul--blue { background-image: linear-gradient(transparent 65%, var(--blue) 65%, var(--blue) 90%, transparent 90%); }
.marker-ul--green { background-image: linear-gradient(transparent 65%, var(--green) 65%, var(--green) 90%, transparent 90%); }

/* ── EYEBROW ── */
.eyebrow {
  display: inline-block;
  font-family: "Architects Daughter", cursive;
  font-size: .92rem;
  font-weight: 400;
  color: var(--grey);
  border: 2px dashed var(--grey);
  border-radius: 4px;
  padding: 4px 12px;
  margin-bottom: 14px;
  transform: rotate(-1.5deg);
  letter-spacing: .04em;
}

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--board);
  border-bottom: 3px solid var(--ink);
  padding: 10px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  max-width: 520px; margin: 0 auto; padding: 0 18px;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none !important; color: var(--ink) !important;
}
.nav__brand-text .name {
  display: block; font-family: "Permanent Marker", cursive;
  font-size: 1.3rem; color: var(--ink); line-height: 1;
}
.nav__brand-text .tag {
  display: block; font-family: "Architects Daughter", cursive;
  font-size: .7rem; color: var(--grey); margin-top: 2px;
}

.nav-toggle {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 40px; height: 34px; padding: 7px 6px;
  background: transparent; border: 2px solid var(--ink); border-radius: 4px; cursor: pointer;
}
.nav-toggle span { display: block; height: 3px; width: 100%; background: var(--ink); border-radius: 1px; }

.nav-menu {
  display: none; flex-basis: 100%; flex-direction: column; gap: 4px;
  margin-top: 10px; padding: 12px;
  background: var(--tape); border: 2px dashed var(--ink); border-radius: 4px;
}
.nav-menu.is-open { display: flex; }
.nav-menu a {
  display: block; padding: 10px 12px;
  font-family: "Permanent Marker", cursive; font-size: 1rem;
  color: var(--ink) !important; text-decoration: none; border-radius: 4px;
}
.nav-menu a:hover { background: var(--board-2); color: var(--red) !important; }
.nav-menu a.active { color: var(--red) !important; text-decoration: underline wavy var(--red); }
.nav-phone {
  display: block; margin-top: 6px; padding: 10px 14px;
  background: var(--red); color: #fff !important;
  font-family: "Permanent Marker", cursive; font-size: 1rem;
  border-radius: 4px; text-align: center; text-decoration: none !important;
}
.nav-phone:hover { background: var(--ink); }

/* ── SECTIONS ── */
section.sect { padding: 48px 0; position: relative; }
.sect.alt { background: var(--board-2); background-image: none; }
.sect.dark {
  background: var(--ink); color: var(--board);
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.sect.dark h2, .sect.dark h3 { color: var(--board); }
.sect.dark .eyebrow { color: var(--tape-edge); border-color: var(--tape-edge); }

p.lead { font-size: 1.15rem; max-width: 100%; font-weight: 600; margin-top: 14px; line-height: 1.6; }

/* ── HERO ── */
.hero {
  padding: 40px 0 36px; position: relative; overflow: hidden; text-align: center;
}
.hero-headline {
  font-family: "Permanent Marker", cursive;
  font-size: clamp(2rem, 10vw, 3.2rem);
  color: var(--ink); margin: 0 0 12px; line-height: 1;
}
.hero-sub {
  font-family: "Nunito", sans-serif; font-size: 1.2rem;
  color: var(--grey); font-weight: 700; margin: 0 0 22px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 14px 24px;
  font-family: "Permanent Marker", cursive; font-size: 1.05rem;
  text-decoration: none; border-radius: 4px; cursor: pointer; transition: all .12s;
  border: 3px solid var(--ink); min-height: 48px; text-align: center;
}
.btn.big { padding: 16px 28px; font-size: 1.15rem; }
.btn:not(.alt) { background: var(--red); color: #fff; box-shadow: var(--shadow); }
.btn:not(.alt):hover { background: var(--ink); transform: translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(0,0,0,.15); }
.btn.alt { background: var(--board); color: var(--ink); box-shadow: var(--shadow); }
.btn.alt:hover { background: var(--tape); transform: translate(-2px,-2px); }
.btn.bone { background: var(--board); color: var(--ink); }

/* ── CARDS (sticky notes with tape) ── */
.cards { display: grid; gap: 14px; margin-top: 22px; }
.card {
  padding: 20px 18px; background: var(--tape);
  border: 2px solid var(--ink); border-radius: 2px;
  box-shadow: var(--shadow); position: relative;
}
.card::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 12px;
  background: var(--tape-edge); border: 1px solid rgba(0,0,0,.15); border-radius: 2px;
}
.card:nth-child(odd)  { transform: rotate(-.8deg); }
.card:nth-child(even) { transform: rotate(.6deg); }
.card h3 { font-family: "Permanent Marker", cursive; font-size: 1.15rem; margin: 0 0 8px; }
.card p { font-family: "Nunito", sans-serif; font-size: 1rem; margin: 0; line-height: 1.5; font-weight: 600; }

.svc-tile { text-decoration: none !important; color: var(--ink) !important; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.svc-tile:hover { background: var(--board); transform: rotate(0) translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(0,0,0,.15); }
.svc-grid { grid-template-columns: 1fr; }

/* ── PANEL ── */
.panel {
  background: var(--board); border: 3px solid var(--ink); border-radius: 4px;
  padding: 24px 20px; box-shadow: var(--shadow);
}

/* ── ZIGZAG DIVIDER ── */
.zigzag {
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='12' viewBox='0 0 40 12'%3E%3Cpath d='M0 6 L10 2 L20 10 L30 2 L40 6' stroke='%231a1a1a' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 40px 12px; background-repeat: repeat-x; opacity: .25;
}

/* ── SERVICE CHECKLIST ── */
.service-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.service-checklist li {
  position: relative; padding: 14px 16px 14px 44px;
  background: var(--tape); border: 2px solid var(--ink); border-radius: 2px;
  font-weight: 600; font-size: 1rem; line-height: 1.45;
  box-shadow: 3px 3px 0 rgba(0,0,0,.1); font-family: "Nunito", sans-serif;
}
.service-checklist li::before {
  content: "\2713"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-family: "Permanent Marker", cursive; font-size: 1.2rem; color: var(--green);
}

.section-title { font-family: "Permanent Marker", cursive; font-size: 1.6rem; margin-bottom: 8px; }
.section-title.bone { color: var(--board); }

/* ── FAQ ── */
.faq-list { display: grid; gap: 10px; margin-top: 22px; }
.faq {
  background: var(--tape); border: 2px solid var(--ink); border-radius: 2px;
  padding: 0; box-shadow: 3px 3px 0 rgba(0,0,0,.08); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 14px 44px 14px 16px;
  font-family: "Permanent Marker", cursive; font-size: 1rem;
  color: var(--ink); position: relative; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-family: "Permanent Marker", cursive; font-size: 1.5rem; color: var(--blue);
}
.faq[open] { background: var(--board); border-color: var(--red); }
.faq[open] summary::after { content: '\2013'; color: var(--red); }
.faq p { margin: 0; padding: 0 16px 16px; font-family: "Nunito", sans-serif; font-size: 1.05rem; font-weight: 600; line-height: 1.55; }

/* ── CONTACT ── */
.contact-list { display: grid; gap: 10px; margin-top: 22px; }
.contact-row {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--tape); border: 2px solid var(--ink); border-radius: 2px;
  padding: 14px 18px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
}
a.contact-row:hover { background: var(--board); transform: translate(-2px,-2px); }
.contact-row__label { font-family: "Architects Daughter", cursive; font-size: .85rem; color: var(--grey); }
.contact-row__val { font-family: "Permanent Marker", cursive; font-size: 1.2rem; color: var(--ink); word-break: break-word; }

/* ── GALLERY ── */
.polaroids { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.polaroid {
  background: #fff; border: 2px solid var(--ink); padding: 8px 8px 28px; box-shadow: var(--shadow); position: relative;
}
.polaroid:nth-child(odd) { transform: rotate(-1.5deg); }
.polaroid:nth-child(even) { transform: rotate(1.2deg); }
.polaroid img { width: 100%; display: block; }
.polaroid:hover { transform: rotate(0) translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(0,0,0,.12); }

/* ── AREAS ── */
.areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.area-tag {
  background: var(--tape); color: var(--ink); padding: 8px 14px;
  border: 2px dashed var(--ink); border-radius: 2px;
  font-family: "Architects Daughter", cursive; font-size: .9rem;
  box-shadow: 2px 2px 0 rgba(0,0,0,.06);
}
.area-tag:nth-child(3n)   { transform: rotate(-1deg); border-color: var(--red); }
.area-tag:nth-child(3n+1) { transform: rotate(.8deg); }
.area-tag:nth-child(3n+2) { transform: rotate(-.4deg); border-color: var(--blue); }

/* ── ARROW ANNOTATION ── */
.arrow-note {
  font-family: "Architects Daughter", cursive; font-size: .85rem;
  color: var(--red); display: inline-block; transform: rotate(-3deg); margin: 8px 0;
}
.arrow-note::before { content: '\2190 '; }

/* ── FOOTER ── */
footer.foot {
  padding: 28px 0; background: var(--ink); color: var(--board);
  text-align: center; font-family: "Architects Daughter", cursive; font-size: .9rem;
}
footer.foot strong { color: var(--tape); font-family: "Permanent Marker", cursive; font-size: 1.15rem; }
footer.foot p { margin: 4px 0; padding: 0 18px; }
footer.foot a { color: var(--tape-edge); }
.foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 12px; }
.foot__nav a { color: var(--tape) !important; font-family: "Permanent Marker", cursive; font-size: .9rem; text-decoration: none; }

/* ── HALFTONE / DARK SECTIONS ── */
.halftone-navy {
  background: var(--ink); color: var(--board);
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 4px 4px;
}
.halftone-red { background: var(--red); color: #fff; }

.swiper { margin-top: 22px; }
.swiper-slide img { width: 100%; border-radius: 2px; border: 2px solid var(--ink); }
.stars { color: var(--red); font-size: 1.3rem; letter-spacing: 2px; }

/* ── THREAD (conversation-style reviews) ── */
.thread { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.thread__post, .thread__reply {
  display: flex; gap: 12px; align-items: flex-start;
}
.thread__reply { padding-left: 36px; }
.thread__avatar {
  width: 38px; height: 38px; min-width: 38px;
  border-radius: 50%; border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: "Permanent Marker", cursive;
  font-size: 1.1rem; color: #fff;
}
.thread__body {
  background: var(--tape); border: 2px solid var(--ink); border-radius: 4px;
  padding: 14px 16px; box-shadow: 3px 3px 0 rgba(0,0,0,.08);
  flex: 1; position: relative;
}
.thread__reply .thread__body { background: var(--board); border-style: dashed; }
.thread__name {
  font-family: "Permanent Marker", cursive; font-size: .95rem;
  color: var(--ink); margin-bottom: 2px;
}
.thread__time {
  font-family: "Architects Daughter", cursive; font-size: .75rem;
  color: var(--grey); margin-bottom: 8px;
}
.thread__text {
  font-family: "Nunito", sans-serif; font-size: 1.1rem;
  font-weight: 600; line-height: 1.5; margin: 0;
}
.thread__stars { color: var(--red); font-size: 1.1rem; margin-top: 6px; letter-spacing: 2px; }
.thread__meta {
  font-family: "Architects Daughter", cursive; font-size: .8rem;
  color: var(--grey); margin-top: 8px;
}

/* ── MOBILE ONLY ── */

/* stag compatibility */
:root { --bone: var(--board); --mustard: var(--red); --navy: var(--ink); }

/* Fix card heading readability — Nunito bold instead of marker font */
.card h3, .svc-tile h3 {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: .01em;
}
.faq summary {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
}
.service-checklist li {
  font-family: "Nunito", sans-serif;
}

/* FORCE ALL TEXT DARK — no white-on-white anywhere */
* { color: var(--ink); }
.btn:not(.alt) { color: #fff; }
.nav-phone { color: #fff !important; }
footer.foot, footer.foot p, footer.foot a, footer.foot strong,
.foot__nav a { color: var(--board) !important; }
.sect.dark, .sect.dark h1, .sect.dark h2, .sect.dark h3, .sect.dark p,
.halftone-navy, .halftone-navy h1, .halftone-navy h2, .halftone-navy h3, .halftone-navy p,
.halftone-red, .halftone-red h1, .halftone-red h2, .halftone-red p { color: var(--board) !important; }
.sect.dark .card, .sect.dark .card h3, .sect.dark .card p,
.halftone-navy .card, .halftone-navy .card h3, .halftone-navy .card p { color: var(--ink) !important; }
.thread__avatar { color: #fff !important; }

/* ── TIMBER SAMPLES (pinned board swatches) ── */
.samples {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.sample {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  text-align: center;
}
.sample:nth-child(odd) { transform: rotate(-.8deg); }
.sample:nth-child(even) { transform: rotate(.6deg); }
.sample img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.sample span {
  display: block;
  padding: 8px 6px;
  font-family: "Permanent Marker", cursive;
  font-size: .85rem;
  color: var(--ink) !important;
  background: var(--tape);
  border-top: 2px solid var(--ink);
}
.sample:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 50%;
  margin: 0 auto;
}

/* ── REGION ACCORDION (compact service area) ── */
.region {
  background: var(--tape);
  border: 2px solid var(--ink);
  border-radius: 2px;
  margin-bottom: 8px;
  box-shadow: 3px 3px 0 rgba(0,0,0,.08);
}
.region summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 40px 12px 14px;
  font-family: "Permanent Marker", cursive;
  font-size: 1.05rem;
  color: var(--ink) !important;
  position: relative;
}
.region summary::-webkit-details-marker { display: none; }
.region summary::after {
  content: '+';
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  font-family: "Permanent Marker", cursive;
  font-size: 1.3rem;
  color: var(--blue);
}
.region[open] { background: var(--board); }
.region[open] summary::after { content: '\2013'; color: var(--red); }
.region__suburbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 14px;
}
.region__suburbs span {
  font-family: "Nunito", sans-serif;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink) !important;
  background: var(--tape);
  border: 1px solid var(--grey);
  border-radius: 2px;
  padding: 4px 10px;
}
