/* Watchfire Books — base styles */

:root {
  --color-teal-deep: #0E3B3A;
  --color-teal: #1B5E59;
  --color-brass: #C08A3E;
  --color-cream: #F4EFE6;
  --color-cream-alt: #ECE4D6;
  --color-white: #FFFFFF;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;

  --max-width: 1120px;
  --radius: 6px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-teal-deep);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--color-teal); }
a:hover { color: var(--color-teal-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  color: var(--color-teal-deep);
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 var(--space-2); }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-teal-deep);
  color: var(--color-cream);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* Buttons */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--color-brass);
  color: var(--color-teal-deep);
}
.btn-primary:hover { background: #A87531; color: var(--color-teal-deep); }

.btn-secondary {
  background: transparent;
  color: var(--color-cream);
  border-color: var(--color-cream);
}
.btn-secondary:hover { background: var(--color-cream); color: var(--color-teal-deep); }

.btn-outline {
  background: transparent;
  color: var(--color-teal-deep);
  border-color: var(--color-teal-deep);
}
.btn-outline:hover { background: var(--color-teal-deep); color: var(--color-cream); }

/* Header / nav */

.site-header {
  background: var(--color-cream);
  border-bottom: 1px solid rgba(14, 59, 58, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo img { height: 64px; width: auto; }
.logo-text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.15;
  color: var(--color-teal-deep);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-teal-deep);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-menu {
  display: flex;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  text-decoration: none;
  color: var(--color-teal-deep);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover,
.nav-menu a.active { border-bottom-color: var(--color-brass); color: var(--color-teal-deep); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--color-cream);
    border-bottom: 1px solid rgba(14, 59, 58, 0.1);
    flex-direction: column;
    gap: 0;
    padding: var(--space-2) var(--space-3) var(--space-3);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { border-top: 1px solid rgba(14, 59, 58, 0.08); }
  .nav-menu li:first-child { border-top: none; }
  .nav-menu a { display: block; padding: 0.9rem 0; }
  .site-header { position: relative; }
}

/* Hero */

.hero {
  background-color: var(--color-teal-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  background-blend-mode: overlay;
  color: var(--color-cream);
  padding: var(--space-5) 0;
  text-align: center;
}
.hero h1 { color: var(--color-cream); }
.hero .subhead {
  font-size: 1.2rem;
  color: var(--color-cream);
  opacity: 0.9;
  max-width: 40rem;
  margin: 0 auto var(--space-3);
}

/* Page header (non-home pages) */

.page-header {
  background: var(--color-teal-deep);
  color: var(--color-cream);
  padding: var(--space-4) 0;
  text-align: center;
}
.page-header h1 { color: var(--color-cream); margin-bottom: var(--space-1); }
.page-header .subhead { color: var(--color-cream); opacity: 0.9; max-width: 38rem; margin: 0 auto; }

section { padding: var(--space-5) 0; }
section.alt { background: var(--color-cream-alt); }

.section-heading { text-align: center; max-width: 40rem; margin: 0 auto var(--space-4); }

/* How it works steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.step { text-align: center; }
.step-icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--space-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon svg { width: 30px; height: 30px; }
.step.brass .step-icon { background: var(--color-brass); }
.step.brass .step-icon svg { stroke: var(--color-cream); fill: none; }
.step.teal .step-icon { background: var(--color-teal); }
.step.teal .step-icon svg { stroke: var(--color-cream); fill: none; }
.step-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-brass);
  margin-bottom: 0.3rem;
}
.step.teal .step-label { color: var(--color-teal); }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* Service cards */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-4);
  border-top: 4px solid var(--color-brass);
}
.card:nth-child(2) { border-top-color: var(--color-teal); }
.card ul { margin: var(--space-2) 0 0; padding-left: 1.2rem; }
.card li { margin-bottom: 0.4rem; }

.closing-line {
  text-align: center;
  font-style: italic;
  font-family: var(--font-head);
  font-size: 1.15rem;
  max-width: 36rem;
  margin: var(--space-4) auto 0;
  color: var(--color-teal);
}

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
}

/* Why Watchfire */

.why-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.why-item h3 { color: var(--color-teal); }

@media (max-width: 760px) {
  .why-list { grid-template-columns: 1fr; }
}

/* Badges */

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4) var(--space-3);
}
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 130px;
  text-align: center;
  text-decoration: none;
}
.badge-item img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: var(--space-1);
}
.badge-item span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-teal-deep);
  line-height: 1.3;
}
.badge-item:hover span { color: var(--color-brass); }

/* CTA */

.cta {
  background: var(--color-teal-deep);
  color: var(--color-cream);
  text-align: center;
}
.cta h2 { color: var(--color-cream); }
.cta .subhead { opacity: 0.9; margin-bottom: var(--space-3); }
.cta .secondary-line { margin-top: var(--space-2); font-size: 0.95rem; opacity: 0.85; }
.cta .secondary-line a { color: var(--color-cream); text-decoration: underline; }

/* Pricing */

.pricing-table-wrap { overflow-x: auto; margin-top: var(--space-4); }
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 560px;
}
.pricing-table th, .pricing-table td {
  padding: var(--space-2) var(--space-2);
  text-align: center;
  border-bottom: 1px solid rgba(14,59,58,0.08);
}
.pricing-table thead th {
  background: var(--color-teal-deep);
  color: var(--color-cream);
  font-family: var(--font-head);
  font-size: 1.1rem;
}
.pricing-table td:first-child, .pricing-table th:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--color-teal);
}
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:nth-child(1) td { font-weight: 700; font-size: 1.05rem; }

.fine-print {
  font-size: 0.9rem;
  color: var(--color-teal);
  max-width: 40rem;
  margin: var(--space-2) auto 0;
  text-align: center;
}

/* FAQ */

.faq-list { max-width: 44rem; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(14,59,58,0.12);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--color-teal-deep);
  padding: var(--space-2) 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.faq-text { flex: 1; }
.faq-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-icon svg { width: 20px; height: 20px; }
.faq-item:nth-child(odd) .faq-icon { background: var(--color-brass); }
.faq-item:nth-child(even) .faq-icon { background: var(--color-teal); }
.faq-icon svg { stroke: var(--color-cream); }
.faq-question .icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  position: relative;
}
.faq-question .icon::before, .faq-question .icon::after {
  content: "";
  position: absolute;
  background: var(--color-brass);
  transition: transform 0.2s ease;
}
.faq-question .icon::before { left: 0; top: 9px; width: 20px; height: 2px; }
.faq-question .icon::after { left: 9px; top: 0; width: 2px; height: 20px; }
.faq-item.is-open .faq-question .icon::after { transform: rotate(90deg); opacity: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { padding-bottom: var(--space-2); color: var(--color-teal-deep); }
.faq-item.is-open .faq-answer { max-height: 30rem; }

/* About */

.about-top {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-4);
  align-items: start;
}
.about-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(14,59,58,0.15);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-byline {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-brass);
  margin-bottom: var(--space-2);
}

.about-block + .about-block { margin-top: var(--space-4); }

@media (max-width: 700px) {
  .about-top { grid-template-columns: 1fr; }
  .about-photo { max-width: 220px; margin: 0 auto; }
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}

.contact-info p { margin-bottom: var(--space-1); }
.contact-info .service-area { color: var(--color-teal); }

.field { margin-bottom: var(--space-3); }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(14,59,58,0.3);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-teal-deep);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--color-brass);
  outline-offset: 1px;
}
.field .optional { font-weight: 400; color: var(--color-teal); font-size: 0.85rem; }

.form-status {
  margin-top: var(--space-2);
  font-weight: 600;
}
.form-status.error { color: #A33; }
.form-status.success { color: var(--color-teal); }

.thank-you {
  text-align: center;
  padding: var(--space-4) 0;
}

.hp-field { position: absolute; left: -9999px; }

@media (max-width: 800px) {
  .contact-layout { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* Footer */

.site-footer {
  background: var(--color-teal-deep);
  color: var(--color-cream);
  padding: var(--space-4) 0 var(--space-3);
  margin-top: var(--space-5);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(244,239,230,0.15);
}
.footer-inner nav ul {
  list-style: none;
  margin: 0; padding: 0;
}
.footer-inner nav a {
  color: var(--color-cream);
  text-decoration: none;
  opacity: 0.9;
  line-height: 2;
}
.footer-inner nav a:hover { opacity: 1; text-decoration: underline; }
.footer-contact a { color: var(--color-cream); }
.footer-contact p { opacity: 0.85; font-size: 0.9rem; }
.footer-social { display: flex; gap: 0.8rem; align-items: flex-start; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(244,239,230,0.12);
  color: var(--color-cream);
}
.footer-social a:hover { background: var(--color-brass); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-legal {
  padding-top: var(--space-2);
  font-size: 0.85rem;
  opacity: 0.75;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
}
.footer-legal a { color: var(--color-cream); }

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
}
