/* ============================================================
   Utah Bladeworks — style.css
   Shared stylesheet for every page on the site.

   EASY CUSTOMIZATION:
   · Colors  → edit the CSS variables in :root below
   · Fonts   → swap the Google Fonts @import URL + the --ff-* variables
   · Contact → find [YOUR PHONE] and [YOUR EMAIL] in contact.html
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Lora:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ────────────────────────────────────────────
   CSS Variables — change these to retheme the whole site at once
   ──────────────────────────────────────────── */
:root {
  /* Main palette */
  --clr-bg:        #f8f7f5;   /* page background */
  --clr-bg-alt:    #eeecea;   /* alternating section background */
  --clr-text:      #222220;   /* primary body text */
  --clr-muted:     #6b6b65;   /* secondary / lighter text */
  --clr-accent:    #2e5e4e;   /* buttons, links, checkmarks */
  --clr-accent-dk: #234939;   /* button hover */
  --clr-border:    #dddbd6;   /* card borders, dividers */

  /* Navigation & footer */
  --clr-nav:      #1a1a18;
  --clr-nav-txt:  #f0eeea;
  --clr-foot-sub: #9a9a94;

  /* Typography */
  --ff-head: 'Lora', Georgia, serif;           /* headings */
  --ff-body: 'Inter', system-ui, sans-serif;   /* body copy */

  /* Layout */
  --max-w:  900px;
  --sec-y:  4rem;   /* section vertical padding */
}

/* ────────────────────────────────────────────
   Reset & Base
   ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
}
h1, h2, h3 { font-family: var(--ff-head); line-height: 1.25; }
a  { color: var(--clr-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* ────────────────────────────────────────────
   Layout helpers
   ──────────────────────────────────────────── */

/* Full-width background band — wrap a .section inside to constrain content */
.bg-alt { background: var(--clr-bg-alt); }

/* Centered content block: max-width + vertical padding */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sec-y) 1.5rem;
}

/* Small uppercase label shown above a section heading */
.eyebrow {
  display: block;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.45rem;
}

/* Reusable section heading + description */
.section-title { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 600; margin-bottom: 0.45rem; }
.section-desc  { color: var(--clr-muted); margin-bottom: 2.25rem; }

/* ────────────────────────────────────────────
   Navigation
   ──────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-nav);
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-nav-txt);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo:hover { color: #fff; text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  color: var(--clr-nav-txt);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.72;
  transition: opacity 0.15s;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; text-decoration: none; }

/* Hamburger button — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--clr-nav-txt);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  flex-shrink: 0;
}

/* ────────────────────────────────────────────
   Footer
   ──────────────────────────────────────────── */
.footer {
  background: var(--clr-nav);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.footer-name {
  font-family: var(--ff-head);
  font-size: 1rem;
  color: var(--clr-nav-txt);
  margin-bottom: 0.2rem;
}
.footer-loc  { color: var(--clr-foot-sub); font-size: 0.875rem; }
.footer-copy { color: var(--clr-foot-sub); font-size: 0.8rem; margin-top: 0.9rem; }

/* ────────────────────────────────────────────
   Buttons
   ──────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  border-radius: 4px;
  font-family: var(--ff-body);
  font-size: 0.97rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
}
.btn-primary:hover { background: var(--clr-accent-dk); border-color: var(--clr-accent-dk); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--clr-accent);
  border-color: var(--clr-accent);
}
.btn-outline:hover { background: var(--clr-accent); color: #fff; }

/* Row of buttons centered */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

/* ────────────────────────────────────────────
   Page header — used on inner pages (about, pricing, faq, contact)
   ──────────────────────────────────────────── */
.page-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  border-bottom: 1px solid var(--clr-border);
}
.page-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.page-header p  { color: var(--clr-muted); }

/* ────────────────────────────────────────────
   Hero — index.html
   ──────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 4.5rem 1.5rem 3.5rem;
  border-bottom: 1px solid var(--clr-border);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.hero-tag {
  font-size: 1.1rem;
  color: var(--clr-muted);
  margin: 0 auto 2rem;
  max-width: 400px;
}

/* ────────────────────────────────────────────
   Value Props grid — index.html
   ──────────────────────────────────────────── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.value-card {
  text-align: center;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  background: var(--clr-bg);
}
.value-icon { font-size: 1.75rem; margin-bottom: 0.7rem; }
.value-card h3 { font-size: 0.97rem; font-weight: 600; margin-bottom: 0.3rem; }
.value-card p  { font-size: 0.88rem; color: var(--clr-muted); }

/* ────────────────────────────────────────────
   How It Works steps — index.html
   ──────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.step { display: flex; gap: 1rem; }
.step-num {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--clr-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.93rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
}
.step-body h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.3rem; }
.step-body p  { font-size: 0.88rem; color: var(--clr-muted); }

/* ────────────────────────────────────────────
   Teaser / CTA block — index.html
   ──────────────────────────────────────────── */
.teaser-block { text-align: center; max-width: 560px; margin: 0 auto; }
.teaser-block h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-bottom: 0.75rem; }
.teaser-block p  { color: var(--clr-muted); margin-bottom: 1.75rem; }

/* ────────────────────────────────────────────
   Prose text — about.html
   ──────────────────────────────────────────── */
.prose p { color: var(--clr-muted); margin-bottom: 1rem; max-width: 64ch; }
.prose p:last-child { margin-bottom: 0; }

/* Callout box with left accent bar */
.callout {
  border-left: 3px solid var(--clr-accent);
  background: var(--clr-bg-alt);
  padding: 1.1rem 1.4rem;
  border-radius: 0 4px 4px 0;
  margin-top: 1.5rem;
}
.callout p { color: var(--clr-muted); font-size: 0.93rem; margin-bottom: 0; max-width: none; }
.callout p + p { margin-top: 0.5rem; }

/* Checkmark bullet list */
.check-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; }
.check-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.93rem;
  color: var(--clr-muted);
  align-items: flex-start;
}
.check-list li::before {
  content: '✓';
  color: var(--clr-accent);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.7;
}

/* ────────────────────────────────────────────
   Pricing cards — pricing.html
   ──────────────────────────────────────────── */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 0.875rem;
}
.price-card {
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  padding: 1.1rem 1.2rem;
  background: var(--clr-bg);
}
/* Cards on alt-bg sections get white background for contrast */
.bg-alt .price-card { background: #fff; }

.price-name   { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; }
.price-amount {
  font-family: var(--ff-head);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--clr-accent);
  margin-bottom: 0.15rem;
  line-height: 1.2;
}
.price-note { font-size: 0.78rem; color: var(--clr-muted); }

/* Bundle deal cards */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.bundle-card {
  background: var(--clr-accent);
  color: #fff;
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.bundle-label {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 0.4rem;
}
.bundle-price {
  font-family: var(--ff-head);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.bundle-desc { font-size: 0.875rem; opacity: 0.85; }

/* Info / note box */
.info-box {
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  padding: 1.25rem 1.4rem;
  font-size: 0.92rem;
  background: var(--clr-bg);
  margin-top: 1.5rem;
}
.bg-alt .info-box { background: #fff; }
.info-box p + p { margin-top: 0.5rem; color: var(--clr-muted); }

.pricing-footer {
  text-align: center;
  border-top: 1px solid var(--clr-border);
  padding-top: 2rem;
  margin-top: 2rem;
  font-size: 0.93rem;
  font-style: italic;
  color: var(--clr-muted);
}

/* ────────────────────────────────────────────
   FAQ accordion — faq.html
   ──────────────────────────────────────────── */
.faq-list { border-top: 1px solid var(--clr-border); }
.faq-item { border-bottom: 1px solid var(--clr-border); }

.faq-btn {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--ff-body);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--clr-text);
  transition: color 0.15s;
}
.faq-btn:hover         { color: var(--clr-accent); }
.faq-item.open .faq-btn { color: var(--clr-accent); }

/* Chevron icon — rotates when item is open */
.faq-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--clr-muted);
  transition: transform 0.25s ease;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }

/* Animate open/close with max-height */
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-body { max-height: 500px; }

.faq-body p {
  padding-bottom: 1.25rem;
  font-size: 0.93rem;
  color: var(--clr-muted);
  max-width: 64ch;
  line-height: 1.8;
}

/* ────────────────────────────────────────────
   Contact form — contact.html
   ──────────────────────────────────────────── */
.contact-intro { max-width: 600px; margin-bottom: 2.5rem; }
.contact-intro p { color: var(--clr-muted); }

.contact-form { max-width: 520px; }
.contact-form .hidden { display: none; }

.form-field { margin-bottom: 1.2rem; }
.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.72rem 1rem;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--clr-text);
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(46, 94, 78, 0.1);
}
.form-field textarea { height: 130px; resize: vertical; }

.form-note { margin-top: 0.875rem; font-size: 0.85rem; color: var(--clr-muted); }

/* ────────────────────────────────────────────
   Responsive — mobile breakpoint
   ──────────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --sec-y: 3rem; }

  /* Show hamburger */
  .nav-toggle { display: block; }

  /* Let nav-inner wrap: logo + toggle sit in a 62px row,
     nav-links expand below as a full-width column */
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 0;
    padding-bottom: 0;
  }
  .nav-logo   { height: 62px; display: flex; align-items: center; }
  .nav-toggle { height: 62px; display: flex; align-items: center; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding-bottom: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li   { width: 100%; }
  .nav-links a    { display: block; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }

  /* Tighten padding */
  .hero        { padding: 3rem 1.25rem 2.5rem; }
  .page-header { padding: 2rem 1.25rem 1.75rem; }
  .section     { padding-left: 1.25rem; padding-right: 1.25rem; }

  .bundle-price { font-size: 2rem; }
}
