/* ============================================================================
   STYLES — HOW THE SITE LOOKS
   ----------------------------------------------------------------------------
   This file only changes the LOOK of the site (colours, fonts, spacing).
   It never changes the words — those live in client-config.js.

   TO RE-THEME FOR A NEW CLIENT, change only the block below called
   :root. Each line is one colour or font. Change the value after the
   colon, leave the name before it alone. Example: to make the site
   blue instead of green, change --color-primary to a blue colour.

   Colours are written as hex codes: # plus 6 letters/numbers.
   A few safe starting points if you need one:
     dark blue  #1e3a5f     forest green  #2d5a3d     warm brown  #6b4a2f
     burgundy   #7a2e3a     charcoal      #2b2b2b     teal          #14655a
   ========================================================================== */

:root {
  /* --- Rally Point brand theme (set 2026-11-21 at Dee's request:
         navy + gold to match the logo, modern sans headings, cool
         light background — replacing the template's forest green) --- */
  --color-primary: #16324f;      /* Deep navy: buttons, headings, links, hero */
  --color-primary-dark: #0d2036; /* Darker navy, used when you hover a button */
  --color-accent: #c9a227;       /* Rally Point gold: lines, badges, prices */
  --color-background: #f5f7fa;   /* Page background (cool light grey) */
  --color-surface: #ffffff;      /* Cards and boxes sit on this (white) */
  --color-text: #1c2733;         /* Main text colour (blue-charcoal) */
  --color-muted: #5d6b7a;        /* Softer grey text for small details */
  --color-border: #dde3ea;       /* Thin lines around cards and boxes */
  --color-chat-bubble: #16324f;  /* The round chat button, bottom-right */

  /* --- Fonts: built-in system fonts, so the site works with no
         internet connection and nothing to download. Headings use the
         same clean sans as the body for the modern look. --- */
  --font-heading: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* --- Sizes and shapes --- */
  --max-width: 1100px;   /* How wide the content gets on a big screen */
  --radius: 14px;        /* How rounded the corners are (bigger = rounder) */
  --spacing: 4rem;       /* Space between sections on the page */
}

/* --- The rest of this file is the layout. You should not need to
       change anything below this line for a normal client. --- */

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.9rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; }

a { color: var(--color-primary); }
img { max-width: 100%; display: block; }

/* A centered column that keeps the content from stretching too wide. */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* Small label above each section title, in the accent colour. */
.section-label {
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.section-intro { color: var(--color-muted); margin-bottom: 2rem; max-width: 60ch; }

section { padding: var(--spacing) 0; }

/* --- Top bar: business name on the left, links and phone on the right --- */
header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 50;
}
header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.brand { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--color-text); text-decoration: none; }
nav a { margin-left: 1.25rem; text-decoration: none; color: var(--color-text); font-weight: 600; }
nav a:hover { color: var(--color-primary); }
.phone-link { color: var(--color-primary); font-weight: 700; text-decoration: none; white-space: nowrap; }
@media (max-width: 700px) { nav { display: none; } }

/* --- Buttons --- */
.button {
  display: inline-block; padding: 0.8rem 1.6rem; border-radius: var(--radius);
  background: var(--color-primary); color: #fff; text-decoration: none;
  font-weight: 700; border: none; cursor: pointer; font-size: 1rem;
}
.button:hover { background: var(--color-primary-dark); }
.button.secondary { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.button.secondary:hover { background: var(--color-primary); color: #fff; }

/* --- Hero: the big first screen --- */
.hero {
  /* Boise midnight skyline photo under a navy wash, so the white
     headline text stays easy to read (photo: SniperProgrammer,
     CC BY-SA 3.0, via Wikimedia Commons) */
  background:
    linear-gradient(rgba(13, 32, 54, 0.87), rgba(13, 32, 54, 0.78)),
    url("photos/boise-night.jpg") center / cover no-repeat,
    var(--color-primary);
  color: #fff; text-align: center; padding: 5rem 0;
}
.hero h1 { font-size: 2.6rem; margin-bottom: 0.75rem; }
.hero p.tagline { font-size: 1.25rem; opacity: 0.92; max-width: 55ch; margin: 0 auto 0.75rem; }
.hero p.about { opacity: 0.85; max-width: 60ch; margin: 0 auto 1.75rem; }
.hero .button { margin: 0 0.4rem; }
.hero .button.secondary { border-color: #fff; color: #fff; }
.hero .button.secondary:hover { background: #fff; color: var(--color-primary); }
.hero .contact-line { margin-top: 1.5rem; opacity: 0.9; }
.hero .contact-line a { color: #fff; }

/* --- Services: cards in a row that wraps on small screens --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.service-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.5rem;
}
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--color-muted); margin-bottom: 1rem; }
.service-price { color: var(--color-primary); font-weight: 700; font-size: 1.1rem; }

/* --- Gallery: filter buttons + photo grid --- */
.filter-buttons { margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-button {
  padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--color-border);
  background: var(--color-surface); cursor: pointer; font-weight: 600; font-size: 0.95rem;
}
.filter-button.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.gallery-item {
  border: 1px solid var(--color-border); border-radius: var(--radius);
  overflow: hidden; background: var(--color-surface);
}
/* When there is no real photo yet, this grey box shows instead,
   so you can see at a glance what still needs a photo. */
.photo-placeholder {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  background: #e6ebf1; color: var(--color-muted); font-weight: 600; text-align: center; padding: 1rem;
}
.gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery-item figcaption { padding: 0.75rem 1rem; font-size: 0.95rem; }

/* --- Hours and contact: two boxes side by side --- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.info-box { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.info-box p { margin-bottom: 0.5rem; }

/* --- Booking: numbered steps, then the form --- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.step { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; }
.step h3 { margin-bottom: 0.5rem; }
.booking-note { color: var(--color-muted); margin-bottom: 2rem; }

form {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.75rem; max-width: 640px;
}
form label { display: block; font-weight: 600; margin: 1rem 0 0.35rem; }
form input, form select, form textarea {
  width: 100%; padding: 0.7rem; border: 1px solid var(--color-border);
  border-radius: 6px; font: inherit;
}
form textarea { min-height: 110px; resize: vertical; }
form .button { margin-top: 1.25rem; }

/* After the form is sent, this box shows a plain summary of what
   the visitor asked for, so they can check it before calling. */
.form-summary {
  margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--color-accent);
  border-radius: var(--radius); background: #fdf8e7; display: none;
}
.form-summary h3 { margin-bottom: 0.5rem; }
.form-summary p { margin-bottom: 0.25rem; }
.form-summary .note { color: var(--color-muted); font-size: 0.9rem; margin-top: 0.75rem; }

/* --- FAQ: click a question to open its answer --- */
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 1rem 1.25rem; font: inherit; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem;
}
.faq-answer { padding: 0 1.25rem 1.25rem; color: var(--color-muted); display: none; }
.faq-item.open .faq-answer { display: block; }

/* --- Footer --- */
footer { background: var(--color-text); color: #ddd; padding: 2.5rem 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
footer a { color: #fff; }
footer .credit { font-size: 0.85rem; opacity: 0.75; margin-top: 0.5rem; }

/* --- Chat bubble: round button bottom-right, panel pops up above it --- */
.chat-button {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 100;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--color-chat-bubble); color: #fff; font-size: 1.6rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.chat-panel {
  position: fixed; right: 1.25rem; bottom: 5.5rem; z-index: 100;
  width: min(340px, calc(100vw - 2.5rem)); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2); display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-header { background: var(--color-primary); color: #fff; padding: 0.9rem 1rem; font-weight: 700; }
.chat-messages { padding: 1rem; height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.6rem; }
.chat-message { padding: 0.6rem 0.8rem; border-radius: 8px; max-width: 90%; font-size: 0.95rem; }
.chat-message.bot { background: #edf1f6; align-self: flex-start; }
.chat-message.user { background: var(--color-primary); color: #fff; align-self: flex-end; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.75rem; }
.chat-suggestion {
  border: 1px solid var(--color-primary); color: var(--color-primary); background: none;
  border-radius: 999px; padding: 0.35rem 0.8rem; cursor: pointer; font-size: 0.85rem;
}
.chat-input-row { display: flex; border-top: 1px solid var(--color-border); }
.chat-input-row input { flex: 1; border: none; padding: 0.8rem; font: inherit; outline: none; }
.chat-input-row button { border: none; background: var(--color-primary); color: #fff; padding: 0 1.1rem; cursor: pointer; font-weight: 700; }
