/* ==========================================================================
   Lynstar Consulting site styles — built on the Raiven tradie-site design
   system (warm neutral light base, swappable accent, ink dark bands for
   rhythm, serif/sans pairing), re-themed to Lynstar's own brand instead of
   one of the 5 stock trade schemes: deep navy ink (from the logo wordmark),
   warm orange as the primary accent, and a secondary purple used sparingly
   (the --accent-2 pair below) to echo the gradient in the logo's "A" and
   underline. Everything still reads from these custom properties.
   ========================================================================== */

:root {
  /* Accent — Lynstar orange, pulled from the logo. --accent-rgb must stay in
     sync with --accent (same color, comma-separated R,G,B) since box-shadow
     rgba() below needs the components separately — it's not derived
     automatically from the hex value. */
  --accent: #f2811f;
  --accent-rgb: 242, 129, 31;
  --accent-deep: #b85a0c;   /* for text-on-light, needs better contrast than raw accent */
  --accent-tint: #fdeee0;   /* very light backgrounds */

  /* Secondary accent — Lynstar purple, used sparingly (brand bar, a couple
     of gradient touches) to echo the logo's underline, never as the primary
     button/link colour. Keep --accent as the workhorse accent throughout. */
  --accent-2: #6d2fa0;
  --accent-2-rgb: 109, 47, 160;

  /* Ink — deep navy from the logo wordmark, used as the dark band color for
     the CTA bar, reviews-turned-credentials section, and brand mark. Also
     doubles as the base text colour via --text below. */
  --ink: #14294f;
  --ink-2: #1e3a6e;         /* raised surface on dark bands */
  --ink-border: #2c4c82;
  --ink-soft: #4c5c7e;      /* muted body copy on light bg */
  --ink-faint: #8894ac;

  /* Base surfaces */
  --bg: #ffffff;
  --bg-soft: #f6f8f6;
  --border: #e3e8e3;

  --text: var(--ink);
  --text-dim: var(--ink-soft);
  --text-faint: var(--ink-faint);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 10px -4px rgba(16, 21, 18, 0.08);
  --shadow: 0 24px 48px -24px rgba(16, 21, 18, 0.22);
  --max-width: 1120px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* Thin gradient bar across the very top of every page, echoing the orange-to-
   purple underline in the Lynstar logo. Sits above the header, not part of it. */
.brand-bar { height: 4px; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%); }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 16px;
}

a { color: inherit; }
img, svg { max-width: 100%; display: block; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-tint);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* Shared tick icon — reused in hero trust row, about "why choose us" list,
   and service cards, so every checkmark on the site is visually identical. */
.tick {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tick svg { width: 12px; height: 12px; color: var(--accent-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 10px 24px -10px rgba(var(--accent-rgb), 0.55);
}
.btn-primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.btn-block { width: 100%; }
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  /* 3 items (logo, center CTAs, nav) — space-between splits leftover space into
     two equal gaps, so logo-to-CTAs and CTAs-to-nav stay evenly spaced no matter
     how wide the logo or nav end up being. */
  justify-content: space-between;
  height: 88px;
}
.logo {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  flex-shrink: 0;
  width: 51px; height: 51px;
  border-radius: 13px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 27px; height: 27px; color: var(--accent); }

/* Call + Book a Consultation, side by side, centered horizontally in the header */
.header-center { display: flex; align-items: center; gap: 18px; }

.header-actions { display: flex; align-items: center; gap: 22px; }
.header-cta { padding: 10px 18px; font-size: 14px; white-space: nowrap; }
.header-cta .btn-icon { width: 19px; height: 19px; flex-shrink: 0; }

@media (max-width: 1024px) {
  /* Compact header: the desktop-size logo + full-text Call + Book a Consultation
     button + inline nav genuinely don't fit in one row below ~1024px — not just
     portrait phones, this covers phone landscape and tablet portrait too, which
     looked cramped/wrapped at the old 820px cutoff. Nav has already dropped to
     the hamburger by this width, so this isn't a "mostly desktop" layout
     anymore — shrink the logo and go icon-only on Call to fit reliably down
     to ~320px, rather than fine-tuning full-size elements to barely fit. */
  .header-quote-cta { display: none; }
  .logo { font-size: 20px; gap: 10px; }
  .logo-mark { width: 34px; height: 34px; border-radius: 10px; }
  .logo-mark svg { width: 18px; height: 18px; }
  .header-center .cta-text { display: none; }
  .header-center .header-cta { padding: 10px 14px; }
}

/* Inline top nav — visible on wider screens, replaced by the hamburger below on mobile */
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-size: 14.5px; font-weight: 600;
  color: var(--text-dim); text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--accent-deep); }
@media (max-width: 1024px) {
  .site-nav { display: none; }
}

.nav-menu { position: relative; display: none; }
@media (max-width: 1024px) {
  .nav-menu { display: block; }
}
.nav-menu-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.nav-menu-toggle:hover { border-color: var(--accent-deep); background: var(--accent-tint); }

.nav-menu-panel {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 180px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-menu.open .nav-menu-panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.nav-menu-panel a {
  display: block; padding: 10px 12px; border-radius: 7px;
  font-size: 14.5px; font-weight: 600;
  color: var(--text); text-decoration: none;
}
.nav-menu-panel a:hover { background: var(--accent-tint); color: var(--accent-deep); }

/* Chatbot placeholder button and its CSS were removed once the real
   GoHighLevel chat widget (loader.js, see the HTML before script.js) went
   in — that script injects its own floating bubble, so our own placeholder
   button would just sit there duplicating/colliding with it. */

/* ---------- Back to top (floating, bottom-center, appears after scrolling) ---------- */
.back-to-top {
  position: fixed; bottom: 20px; left: 50%; z-index: 149;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--accent); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 24px -10px rgba(16, 21, 18, 0.4);
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.15s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateX(-50%) translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Mobile sticky quote pill (bottom-left, paired with the chatbot icon) ----------
   Desktop already has Call + Book a Consultation in the header, so this is mobile-only —
   phones benefit from an always-reachable quote CTA more than desktop does. */
.mobile-quote-cta { display: none; }
@media (max-width: 1024px) {
  .mobile-quote-cta {
    display: inline-flex; align-items: center; justify-content: center;
    position: fixed; bottom: 20px; left: 20px; z-index: 150;
    background: var(--accent); color: var(--ink);
    padding: 14px 22px; border-radius: 999px;
    font-weight: 700; font-size: 14.5px; text-decoration: none;
    box-shadow: 0 12px 24px -10px rgba(var(--accent-rgb), 0.55);
  }
  .mobile-quote-cta:hover { background: var(--accent-deep); color: #fff; }

  /* Lift back-to-top above the quote pill + chatbot row so the three don't collide */
  .back-to-top { bottom: 90px; }

  /* Reserve space so the fixed mobile cluster never covers footer content —
     you can scroll past the page's natural end and still see the brand/social
     links and copyright above where the pill and chatbot icon sit. */
  body { padding-bottom: 96px; }
}

/* ---------- Hero ---------- */
/* Single-column hero on every page. This used to be a 2-column grid (text +
   a right-hand widget slot) for the home page's GoHighLevel form embed —
   removed once that form moved to its own bookameeting.html page. Note that
   the old grid rule lived on the shared `.hero .container` selector, so it
   was silently also squeezing About/Contact/bookameeting's heading+paragraph
   into two side-by-side columns (420px-wide second column) any time the
   viewport was 900px or wider, even though those pages never had second-
   column content — a real bug, not just a home-page cleanup. */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 64px 0 76px; }
.hero-content { max-width: 560px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); }
.hero p { font-size: 1.1rem; color: var(--text-dim); max-width: 46ch; margin-bottom: 26px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }

.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 26px; row-gap: 16px;
  margin-top: 30px; padding-top: 26px;
  border-top: 1px solid var(--border);
}
.hero-trust-item {
  display: flex; align-items: center; gap: 11px;
  font-size: 17px; color: var(--text-dim); font-weight: 600;
}
.hero-trust-item .tick { width: 22px; height: 22px; background: var(--accent); }
.hero-trust-item .tick svg { width: 15px; height: 15px; color: var(--ink); }
@media (max-width: 480px) {
  /* 2 columns gets cramped on a phone at this text/icon size — stack instead */
  .hero-trust { grid-template-columns: 1fr; }
}

.rating-line { margin-top: 18px; font-weight: 700; font-size: 14.5px; color: var(--ink-soft); }
.rating-line .stars { color: #f2a83d; letter-spacing: 1px; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.alt { background: var(--bg-soft); }
.section-title { font-size: clamp(28px, 3.6vw, 36px); text-align: center; margin: 0 auto 12px; max-width: 700px; }
.section-subtitle { text-align: center; color: var(--text-dim); max-width: 600px; margin: 0 auto 44px; font-size: 16.5px; }

/* Services grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.service-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: var(--accent-deep); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.service-card .tick { width: 34px; height: 34px; margin-bottom: 16px; }
.service-card .tick svg { width: 16px; height: 16px; }
.service-card h3 { font-family: var(--font-body); font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.service-card p { color: var(--text-dim); font-size: 14.5px; margin: 0; }

/* Testimonials / reviews (dark band) */
.reviews { background: var(--ink); color: #fff; }
.reviews .section-title { color: #fff; }
.reviews .section-subtitle { color: #a9b3ac; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.testimonial-card {
  background: var(--ink-2); border: 1px solid var(--ink-border);
  border-radius: var(--radius); padding: 26px;
}
.testimonial-card p.quote { font-size: 15px; color: #e7ebe8; font-style: normal; margin-bottom: 20px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12.5px;
}
.testimonial-person .name { font-weight: 700; font-size: 14px; color: #fff; }
.testimonial-person .role { font-size: 12.5px; color: #909a93; }
.testimonial-placeholder {
  border: 1px dashed var(--ink-border); border-radius: var(--radius); padding: 26px;
  color: #a9b3ac; text-align: center;
}

/* FAQ */
.faq-list { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 22px;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 18px 0;
  font-weight: 700; font-size: 15.5px; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 20px; line-height: 1; color: var(--accent-deep);
  flex-shrink: 0; transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-dim); font-size: 14.5px; margin: 0; padding: 0 0 20px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.gallery-grid .placeholder-img {
  aspect-ratio: 4 / 3; background: var(--accent-tint); border: 1px dashed var(--border);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 0.85rem; text-align: center; padding: 8px;
}

/* Below ~700px the auto-fit grid would collapse to one full-width card per row —
   a long stack of services/reasons/testimonials/job photos makes for a very
   long scroll. Swap to a horizontal swipe carousel instead (services,
   why-choose-us, testimonials, and the job-photo gallery all share this
   pattern via .services-grid / .testimonials-grid / .gallery-grid).
   Bleeds to the screen edge via negative margin so there's a natural "peek" of
   the next card — a visual cue that it scrolls, without a visible scrollbar.
   Must come after all three base grid rules above — CSS resolves same-specificity
   ties by source order, so an earlier media query here would just get overridden
   by their plain unconditional `display: grid`. (Learned this the hard way — see
   the 2026-08-15 mobile-pass bug where testimonials/gallery silently stayed a
   vertical grid despite this exact media query existing, just in the wrong spot.)
   Breakpoint matches the header's compact-mode cutover (1024px, not just phone
   widths) — phone landscape and tablet portrait need this too, not only narrow
   phones, or you get a long vertical stack in exactly the range this is meant
   to fix. Card width is clamp()'d rather than a flat 78%, since 78% of a
   ~1000px tablet-landscape screen would be one oversized ~780px card instead
   of a proper multi-card swipe — clamp keeps it sane across the whole range. */
@media (max-width: 1024px) {
  .services-grid, .testimonials-grid, .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    margin: 0 -24px;
    padding: 4px 24px 8px;
  }
  .services-grid::-webkit-scrollbar, .testimonials-grid::-webkit-scrollbar, .gallery-grid::-webkit-scrollbar { display: none; }
  .services-grid .service-card, .testimonials-grid .testimonial-card, .gallery-grid .placeholder-img {
    flex: 0 0 clamp(250px, 78vw, 320px);
    scroll-snap-align: start;
  }
}

/* Two-column layout (about teaser, service area, etc.) */
.two-col { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* The custom quote/contact-form card system (.quote-card, .contact-form,
   .form-row-split, .form-confirmation) was removed once every "Book a
   Consultation" CTA started linking to the GoHighLevel booking page
   (bookameeting.html) instead of a local HTML form — see git history if
   that pattern is ever needed again. .contact-details (below) is still
   used on contact.html. */
.contact-details { display: grid; gap: 12px; }

/* Booking calendar embed (bookameeting.html) — GoHighLevel's booking widget
   has no fixed height of its own; form_embed.js resizes the iframe to fit
   its content via postMessage once it loads, so this container deliberately
   has no height set, just a comfortable reading width and card framing. */
.booking-embed {
  max-width: 960px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  padding: 4px;
}
.booking-embed iframe { display: block; }

/* Map embed — keyless Google Maps iframe (no API key required) */
.map-embed {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); aspect-ratio: 16 / 6;
}
.map-embed iframe { width: 100%; height: 100%; display: block; border: 0; }
@media (max-width: 640px) { .map-embed { aspect-ratio: 4 / 3; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 36px 0; }
.site-footer .container {
  display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center;
}
@media (min-width: 640px) {
  .site-footer .container { flex-direction: row; justify-content: flex-start; text-align: left; }
}
/* Brand/contact info plus social icons, grouped together on the left */
.footer-left {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center;
}
@media (min-width: 640px) {
  .footer-left { justify-content: flex-start; }
}
.site-footer .brand { font-size: 16px; }
.site-footer a { text-decoration: none; color: var(--text-dim); }
.site-footer a:hover { color: var(--accent-deep); }
.footer-copy { font-size: 12.5px; color: var(--text-faint); }
.social-links { display: flex; gap: 14px; align-items: center; }
.social-icon { display: flex; color: var(--text-dim); transition: color 0.15s ease; }
.social-icon svg { width: 40px; height: 40px; }
.social-icon:hover { color: var(--accent-deep); }

/* Future integration slots — styled but empty until wired up */
.chat-widget-slot, .social-embed-slot { display: none; }
