/* TWF Shared Styles — matches LSA landing page design system */

:root {
  --ink: #0A0E1A;
  --ink-2: #1A1F30;
  --ink-3: #2A3148;
  --paper: #F5F1EA;
  --paper-warm: #EDE6D8;
  --accent: #D4542C;
  --accent-deep: #B8431E;
  --accent-glow: rgba(212, 84, 44, 0.15);
  --gold: #C8A96A;
  --line: rgba(245, 241, 234, 0.12);
  --muted: rgba(245, 241, 234, 0.68);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.serif { font-family: 'Fraunces', Georgia, serif; font-optical-sizing: auto; }

/* ===== Top trust bar ===== */
.trust-bar {
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

.trust-bar .left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.trust-bar .right { display: flex; align-items: center; gap: 8px; }

.trust-bar a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-bar a:hover { color: var(--accent); }

.pulse {
  width: 8px;
  height: 8px;
  background: #4ADE80;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

/* ===== Header with nav ===== */
header {
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}

.logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-decoration: none;
}

.logo .accent { color: var(--accent); }

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav.primary-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}

nav.primary-nav a:hover,
nav.primary-nav a.active {
  color: var(--paper);
}

.header-phone {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.2s;
}

.header-phone:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ===== Page hero (simpler than LSA hero) ===== */
.page-hero {
  padding: 80px 48px 60px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--accent);
}

h1.page-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: var(--paper);
  max-width: 900px;
  position: relative;
  z-index: 2;
}

h1.page-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.page-subtitle {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 700px;
  position: relative;
  z-index: 2;
}

/* ===== Content containers ===== */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 48px 100px;
}

.content.narrow {
  max-width: 820px;
}

.content h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-top: 56px;
  margin-bottom: 20px;
  color: var(--paper);
}

.content h2:first-child { margin-top: 0; }

.content h2 em { color: var(--accent); font-style: italic; }

.content h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--paper);
}

.content p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 720px;
}

.content p.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--paper);
  font-weight: 400;
}

.content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 84, 44, 0.3);
  transition: border-color 0.15s;
}

.content a:hover {
  border-bottom-color: var(--accent);
}

.content ul, .content ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 720px;
}

.content ul li, .content ol li {
  margin-bottom: 10px;
}

.content ul li::marker { color: var(--accent); }

.content strong { color: var(--paper); font-weight: 600; }

/* ===== FAQ accordion ===== */
.faq-list {
  max-width: 900px;
  margin-top: 40px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--paper);
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  text-align: left;
  padding: 28px 50px 28px 0;
  cursor: pointer;
  position: relative;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color 0.15s;
}

.faq-question:hover { color: var(--accent); }

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 28px;
  font-size: 28px;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.25s;
  line-height: 1;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

.faq-answer-inner {
  padding: 0 0 32px 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 720px;
}

.faq-answer-inner p { margin-bottom: 14px; }
.faq-answer-inner p:last-child { margin-bottom: 0; }

/* ===== Service cards ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px 32px;
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.service-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.service-number {
  font-family: 'Fraunces', serif;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ===== Contact form / split layout ===== */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 100px;
}

.contact-info h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--paper);
  margin-top: 32px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.contact-info h3:first-child { margin-top: 0; }

.contact-info p, .contact-info a {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  text-decoration: none;
  display: block;
}

.contact-info a:hover { color: var(--accent); }

.contact-info .tel {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 10px;
  display: inline-block;
  letter-spacing: -0.01em;
}

.contact-info .tel:hover { color: var(--accent); }

.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  margin-top: 8px;
}

.hours-grid .day { color: var(--paper); font-weight: 500; font-size: 15px; }
.hours-grid .time { color: var(--muted); font-size: 15px; }

/* ===== Form card (contact page version) ===== */
.contact-form-card {
  background: var(--paper);
  color: var(--ink);
  padding: 42px 40px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
}

.contact-form-card::before {
  content: "";
  position: absolute;
  inset: -8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.3;
}

.form-label {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 10px;
}

.contact-form-card h2 {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.contact-form-card .form-sub {
  color: #555;
  font-size: 15px;
  margin-bottom: 28px;
  line-height: 1.5;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #D9D2C3;
  border-radius: 4px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.15s;
}

.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 84, 44, 0.12);
}

.field textarea { resize: vertical; min-height: 100px; }

.form-submit {
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 18px 24px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-submit:hover { background: var(--accent); }

.form-disclaimer {
  font-size: 12px;
  color: #888;
  margin-top: 14px;
  line-height: 1.5;
  text-align: center;
}

/* ===== CTA band ===== */
.cta-band {
  padding: 80px 48px;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta-band h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--paper);
}

.cta-band h3 em { color: var(--accent); font-style: italic; }

.cta-band p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
  padding: 20px 36px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  box-shadow: 0 10px 30px -10px rgba(212, 84, 44, 0.5);
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 15px 40px -10px rgba(212, 84, 44, 0.7);
}

/* ===== Footer ===== */
footer {
  padding: 48px 48px 36px;
  background: var(--ink);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 12px;
}

.footer-brand .accent { color: var(--accent); }

.footer-col h5 {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 700;
}

.footer-col p, .footer-col a {
  color: var(--muted);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.footer-col a:hover { color: var(--accent); }

.disclaimer {
  font-size: 12px;
  color: rgba(245, 241, 234, 0.45);
  line-height: 1.6;
}

/* ===== Default hidden states (shown only via media query) ===== */
.mobile-cta-bar { display: none; }

/* ===== Hamburger button (hidden on desktop) ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  /* Header layout */
  header {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 0;
    position: relative;
  }

  /* Logo stays left, hamburger goes right */
  .logo { flex: 1; }

  .hamburger { display: flex; }

  /* Hide phone pill in header on mobile — we show a sticky bar instead */
  header .header-phone { display: none; }

  /* Nav slides down below header row */
  nav.primary-nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                padding 0.25s ease;
    padding: 0 0;
    border-top: 0px solid var(--line);
  }

  nav.primary-nav.open {
    max-height: 400px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--line);
    margin-top: 12px;
  }

  nav.primary-nav a {
    font-size: 16px;
    font-weight: 500;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    display: block;
  }

  nav.primary-nav a:last-child { border-bottom: none; }

  /* Sticky mobile CTA bar at bottom */
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--ink-2);
    border-top: 1px solid var(--line);
    padding: 12px 16px;
    gap: 10px;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.4);
  }

  .mobile-cta-bar a.mob-call {
    flex: 1;
    background: var(--accent);
    color: var(--paper);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 16px;
    border-radius: 6px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(212,84,44,0.4);
  }

  .mobile-cta-bar a.mob-form {
    background: var(--ink-3);
    color: var(--paper);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 16px;
    border-radius: 6px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border: 1px solid var(--line);
  }

  /* Add bottom padding so sticky bar doesn't cover content */
  body { padding-bottom: 80px; }

  /* Trust bar — hide less important items */
  .trust-bar { padding: 8px 16px; font-size: 12px; }
  .trust-bar .left span:nth-child(2),
  .trust-bar .left span:nth-child(3) { display: none; }

  /* Page sections */
  .page-hero { padding: 40px 20px 32px; }
  .content { padding: 24px 20px 60px; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; gap: 36px; padding: 0 20px 70px; }
  .cta-band { padding: 50px 20px; }
  footer { padding: 36px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .faq-question { font-size: 18px; padding-right: 40px; }
}

/* Desktop — ensure mobile elements stay hidden */
@media (min-width: 769px) {
  .mobile-cta-bar { display: none; }
  .hamburger { display: none; }
}
