/* ==========================================================================
   Remodel Advocate — Design Tokens
   ========================================================================== */
:root {
  --navy:        #1B2A4A;
  --navy-800:    #142038;
  --navy-tint:   #E8EBF1;
  --gold:        #B8924A;
  --gold-tint:   #F3E9D6;
  --beige:       #F2EFEA;
  --slate:       #44505E;
  --white:       #FFFFFF;
  --ink:         #2B2B2B;
  --border:      #D9D2C4;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1180px;
  --radius: 4px;
  --shadow-card: 0 1px 2px rgba(27,42,74,0.06), 0 8px 24px rgba(27,42,74,0.08);

  color-scheme: light;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  line-height: 1.15;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
p { margin: 0 0 1rem; max-width: 62ch; }
.section-lead {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 46ch;
}
.eyebrow-plain {
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.hl { color: var(--gold); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  min-height: 48px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--navy-800); }
.btn-primary:hover { background: #a67f3d; }
.btn-ghost { color: var(--navy); border-color: var(--border); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-outline { color: var(--navy); border-color: var(--navy); background: transparent; width: 100%; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-small { padding: 0.6rem 1.1rem; font-size: 0.9rem; min-height: 40px; }
.btn-full { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  flex-shrink: 0;
}
.logo-mark-img {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.logo-word em { font-style: normal; color: var(--gold); }

.primary-nav {
  display: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.primary-nav a { color: var(--slate); transition: color 0.15s ease; margin-right: 1.75rem; }
.primary-nav a:last-child { margin-right: 0; }
.primary-nav a:hover { color: var(--navy); }

.header-actions { display: none; align-items: center; }
.header-actions > * { margin-right: 1.25rem; }
.header-actions > *:last-child { margin-right: 0; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem;
}
.primary-nav.is-open a { margin-right: 0; margin-bottom: 1rem; }
.primary-nav.is-open a:last-child { margin-bottom: 0; }

@media (min-width: 900px) {
  .primary-nav { display: flex; }
  .header-actions { display: flex; }
  .nav-toggle { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--navy-tint);
  padding: 3rem 0 3.5rem;
  overflow: hidden;
}
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}
.hero-sub-strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); font-weight: 600; margin-bottom: 0.75rem; }
.hero-sub { color: var(--slate); font-size: 1.05rem; max-width: 50ch; }
.hero-distinction { font-size: 1.1rem; color: var(--navy); }
.hero-distinction strong { color: var(--gold); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 1.5rem 0 1rem; }
.hero-note { font-size: 0.9rem; color: var(--slate); margin-bottom: 0; }

.hero-visual { position: relative; padding: 1.5rem 0.5rem 0; }
.bid-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: 240px;
  margin-bottom: 1rem;
}
.bid-card:nth-child(2) { margin-left: 1.5rem; }
.bid-card:nth-child(3) { margin-left: 3rem; }
.bid-label { font-size: 0.78rem; font-weight: 600; color: var(--slate); }
.bid-amount { font-family: var(--font-display); font-size: 1.55rem; color: var(--navy); font-weight: 600; }
.bid-tag { font-size: 0.78rem; color: var(--gold); font-weight: 600; }
.hero-visual-caption { font-size: 0.9rem; color: var(--slate); margin: 1rem 0 0; max-width: 240px; }

@media (min-width: 900px) {
  .hero { padding: 5rem 0 6rem; }
  .hero-grid { flex-direction: row; align-items: center; }
  .hero-grid > .hero-copy { flex: 1.15; padding-right: 1.5rem; }
  .hero-grid > .hero-visual { flex: 0.85; }
  .hero-visual { padding-top: 0; }
}

/* ==========================================================================
   Problem
   ========================================================================== */
.problem { padding: 3.25rem 0; border-bottom: 1px solid var(--border); }
.problem-grid { display: flex; flex-direction: column; gap: 1.75rem; }
.problem-quote {
  margin: 0;
  padding: 1.5rem 1.5rem 1.5rem 1.35rem;
  border-left: 3px solid var(--gold);
  background: var(--beige);
}
.problem-quote p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
  max-width: none;
}
.problem-quote cite { font-style: normal; color: var(--slate); font-size: 0.9rem; }
.problem-answer-lead { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); font-weight: 600; }

@media (min-width: 900px) {
  .problem-grid { flex-direction: row; gap: 3rem; align-items: center; }
  .problem-grid > * { flex: 1; }
}

/* ==========================================================================
   You Don't Need Another Contractor
   ========================================================================== */
.advocate-need { padding: 4rem 0; background: var(--white); }
.advocate-need-grid { display: flex; flex-direction: column; gap: 2.5rem; }
.advocate-need-emphasis { font-weight: 600; color: var(--navy); margin-bottom: 0; }
.advocate-need-list-lead { font-weight: 600; color: var(--navy); margin-bottom: 0.9rem; }
.check-items li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.98rem;
  color: var(--ink);
}
.check-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}

@media (min-width: 900px) {
  .advocate-need-grid { flex-direction: row; gap: 3.5rem; }
  .advocate-need-grid > .advocate-need-copy { flex: 1; }
  .advocate-need-grid > .advocate-need-list { flex: 0.85; background: var(--beige); padding: 1.75rem 2rem; border-radius: var(--radius); }
}

/* ==========================================================================
   Method
   ========================================================================== */
.method { padding: 4rem 0; background: var(--beige); }
.method-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 2.25rem;
}
.method-list li { display: flex; gap: 1.1rem; align-items: flex-start; width: 100%; }
.method-num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 600;
  min-width: 2.4rem;
}
.method-list h3 { margin-bottom: 0.25rem; }
.method-list p { color: var(--slate); margin-bottom: 0; font-size: 0.98rem; }

@media (min-width: 700px) {
  .method-list li { width: calc(50% - 0.875rem); }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding: 4rem 0; background: var(--white); }
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.25rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.service-card--featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-card);
  position: relative;
}
.service-flag {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}
.service-tagline { color: var(--slate); font-style: italic; font-size: 0.95rem; margin-bottom: 0.5rem; }
.service-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.service-desc { color: var(--slate); font-size: 0.97rem; }
.service-list { margin-bottom: 1.5rem; flex-grow: 1; }
.service-list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.5rem;
  font-size: 0.94rem;
  color: var(--ink);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.services-note { text-align: center; color: var(--slate); font-size: 0.92rem; margin: 2rem auto 0; max-width: none; }

@media (min-width: 900px) {
  .service-grid { flex-wrap: nowrap; }
  .service-card { width: calc(33.333% - 1rem); }
  .service-card--featured { transform: translateY(-8px); }
}

/* ==========================================================================
   Why
   ========================================================================== */
.why { padding: 4rem 0; background: var(--beige); }
.why-list { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.25rem; }
.why-list h3 { color: var(--navy); font-size: 1.05rem; }
.why-list p { color: var(--slate); font-size: 0.95rem; margin-bottom: 0; }
.why-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 100%;
}

@media (min-width: 700px) {
  .why-list li { width: calc(50% - 0.75rem); }
}
@media (min-width: 1000px) {
  .why-list li { width: calc(33.333% - 1rem); }
}

/* ==========================================================================
   Checklist
   ========================================================================== */
.checklist { background: var(--navy); color: var(--white); padding: 3.5rem 0; }
.checklist h2 { color: var(--white); margin-bottom: 0.5rem; }
.checklist-lead { color: var(--gold); font-weight: 600; margin-bottom: 1.75rem; }
.checklist-grid { display: flex; flex-wrap: wrap; gap: 0.9rem 2rem; margin-bottom: 1.75rem; }
.checklist-grid p {
  margin: 0;
  padding-left: 1.4rem;
  position: relative;
  color: #E4E8F0;
  max-width: none;
  width: 100%;
}
.checklist-grid p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--gold);
  border-radius: 2px;
}
.checklist-cta { color: var(--white); font-weight: 600; margin: 0; }
.checklist-cta a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.checklist-guide { margin-top: 1rem; font-weight: 400; color: #E4E8F0; }

@media (min-width: 700px) {
  .checklist-grid p { width: calc(50% - 1rem); }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: 4rem 0 4.5rem; background: var(--white); }
.contact-grid { display: flex; flex-direction: column; gap: 2.5rem; }
.contact-details { display: flex; flex-direction: column; gap: 0.9rem; margin: 1.75rem 0; }
.contact-details li { display: flex; align-items: center; gap: 0.7rem; color: var(--navy); font-weight: 600; }
.contact-details svg { color: var(--gold); flex-shrink: 0; }
.contact-disclaimer { font-size: 0.88rem; color: var(--slate); border-top: 1px solid var(--border); padding-top: 1.25rem; }

.contact-form {
  background: var(--beige);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.form-row { margin-bottom: 1.1rem; }
.form-row--split { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.form-row--split > div { flex: 1 1 100%; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  min-height: 48px;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.form-status { margin: 0.85rem 0 0; font-size: 0.9rem; min-height: 1.2em; }
.form-status[data-state="success"] { color: #2E7D4F; }
.form-status[data-state="error"] { color: #B3261E; }

@media (min-width: 640px) {
  .form-row--split > div { flex: 1 1 0; }
}
@media (min-width: 900px) {
  .contact-grid { flex-direction: row; gap: 3.5rem; }
  .contact-grid > .contact-info { flex: 0.9; }
  .contact-grid > .contact-form { flex: 1.1; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-800); color: #C7CEDC; padding: 2.75rem 0 1.75rem; }
.footer-top { text-align: center; margin-bottom: 1.75rem; }
.footer-logo-plate {
  display: inline-flex;
  background: var(--beige);
  border-radius: 12px;
  padding: 1rem 1.35rem;
  margin-bottom: 1.1rem;
}
.footer-logo-plate img { display: block; width: 110px; height: auto; }
.footer-tagline { color: var(--gold); font-size: 0.98rem; margin: 0 0 0.2rem; }
.footer-subtagline { color: #97A2B8; font-size: 0.88rem; margin: 0; }
.footer-row {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.footer-row > *:not(:last-child) { margin-bottom: 0.6rem; }
.footer-copyright { font-size: 0.82rem; margin: 0; color: #97A2B8; }
.footer-link { font-size: 0.82rem; color: #97A2B8; text-decoration: underline; text-underline-offset: 2px; }
.footer-link:hover { color: var(--gold); }

@media (min-width: 700px) {
  .footer-row { flex-direction: row; justify-content: center; }
  .footer-row > *:not(:last-child) { margin-bottom: 0; margin-right: 1.25rem; }
}
