/* ===== FONTS ===== */
/* Playfair Display for headings, Nunito Sans for body */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== TOKENS ===== */
:root {
  --bg:        #f5f0e8;
  --bg-alt:    #ede8de;
  --green:     #1a3a2a;
  --amber:     #c9963c;
  --amber-lt:  #e8c97a;
  --ink:       #1a1a18;
  --ink-soft:  #3a3830;
  --ink-muted: #6b6860;
  --white:     #fdfcfa;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Nunito Sans', system-ui, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid rgba(26, 58, 42, 0.12);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.01em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  padding: var(--space-xl) 2rem var(--space-lg);
  background: var(--green);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201, 150, 60, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-lt);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--white);
}
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(253, 252, 250, 0.75);
  max-width: 440px;
}

/* Bridge Art */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.bridge-art {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1.6;
}
.bridge-arch {
  position: absolute;
  bottom: 25%;
  left: 10%;
  right: 10%;
  height: 60%;
  border: 3px solid var(--amber);
  border-bottom: none;
  border-radius: 100% 100% 0 0;
  opacity: 0.9;
}
.bridge-deck {
  position: absolute;
  bottom: 20%;
  left: 5%;
  right: 5%;
  height: 3px;
  background: var(--amber);
}
.bridge-light {
  position: absolute;
  bottom: 21%;
  height: 2px;
  background: linear-gradient(to right, var(--amber-lt), transparent);
  border-radius: 2px;
}
.beam-1 { left: 15%; width: 35%; opacity: 0.5; }
.beam-2 { right: 15%; width: 35%; opacity: 0.5; transform: scaleX(-1); }

.bridge-nodes {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 5% 22%;
}
.node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.node::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber-lt);
  box-shadow: 0 0 12px var(--amber-lt);
}
.node-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-lt);
  opacity: 0.8;
}

/* ===== PHILOSOPHY ===== */
.philosophy {
  padding: var(--space-xl) 2rem;
  background: var(--bg);
}
.philosophy-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.philosophy-mark {
  width: 1px;
  height: 60px;
  background: var(--amber);
  margin: 0 auto 2.5rem;
}
.philosophy-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--green);
  margin-bottom: 2.5rem;
  font-weight: 400;
}
.philosophy-body {
  max-width: 640px;
  margin: 0 auto;
}
.philosophy-body p {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ===== SECTION LABEL ===== */
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===== SERVICES ===== */
.services {
  padding: var(--space-xl) 2rem;
  background: var(--bg-alt);
}
.services-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.services-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--green);
  margin-bottom: var(--space-md);
  font-weight: 600;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--bg);
  padding: 2rem;
  border: 1px solid rgba(26, 58, 42, 0.08);
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(26, 58, 42, 0.1);
}
.service-icon {
  margin-bottom: 1.25rem;
}
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--green);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.service-card p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ===== EQUITY ===== */
.equity {
  padding: var(--space-xl) 2rem;
  background: var(--green);
  color: var(--white);
}
.equity-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.equity-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--white);
}
.equity-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.equity-card {
  border: 1px solid rgba(255,255,255,0.15);
  padding: 1.75rem 2rem;
  border-radius: 4px;
}
.equity-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--amber-lt);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.equity-card p {
  font-size: 0.875rem;
  color: rgba(253,252,250,0.7);
  line-height: 1.7;
}

/* ===== REVIEWS ===== */
.reviews {
  padding: var(--space-xl) 2rem;
  background: var(--bg);
}
.reviews-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(26, 58, 42, 0.1);
}
.reviews-stars {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--amber);
  font-size: 1.2rem;
  letter-spacing: 2px;
}
.reviews-rating {
  font-size: 0.875rem;
  color: var(--ink-muted);
  letter-spacing: 0;
  font-weight: 600;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.review-card {
  border: 1px solid rgba(26, 58, 42, 0.08);
  padding: 2rem;
  border-radius: 4px;
  background: var(--white);
}
.review-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.review-author {
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== CLOSING ===== */
.closing {
  padding: var(--space-xl) 2rem;
  background: var(--bg-alt);
  text-align: center;
}
.closing-inner {
  max-width: 680px;
  margin: 0 auto;
}
.closing-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--green);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.closing-body {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.closing-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 500;
}
.closing-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
}

/* ===== FOOTER ===== */
.footer {
  padding: 2.5rem 2rem;
  background: var(--green);
  color: rgba(253,252,250,0.5);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}
.footer-desc {
  font-size: 0.8rem;
  color: rgba(253,252,250,0.45);
}
.footer-contact {
  display: flex;
  gap: 2rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: -1; }
  .bridge-art { max-width: 280px; }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .equity-inner {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
  }
  .closing-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  .closing-dot { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: 4rem 1.5rem 3rem; }
  .philosophy { padding: 5rem 1.5rem; }
  .services, .reviews { padding: 5rem 1.5rem; }
  .equity { padding: 5rem 1.5rem; }
  .closing { padding: 5rem 1.5rem; }
}

/* ===== INTAKE DASHBOARD ===== */
.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  background: var(--green);
  padding: 0.45rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--ink-soft); }

.app-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.app-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--green);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.app-subtitle {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  transition: background 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: #152e22; }
.btn-outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: rgba(26,58,42,0.06); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }

.badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-new       { background: rgba(201,150,60,0.15); color: #8a6520; }
.badge-scheduled { background: rgba(26,58,42,0.1); color: var(--green); }
.badge-active    { background: var(--green); color: var(--white); }
.badge-closed    { background: var(--bg-alt); color: var(--ink-muted); }

.client-table-wrap { overflow-x: auto; }
.client-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.client-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  border-bottom: 2px solid rgba(26,58,42,0.1);
}
.client-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(26,58,42,0.06);
  font-size: 0.875rem;
  color: var(--ink-soft);
  vertical-align: middle;
}
.client-table tr:last-child td { border-bottom: none; }
.client-table tbody tr:hover td { background: rgba(26,58,42,0.03); }
.client-name-cell { font-weight: 600; color: var(--ink); }
.client-phone { font-size: 0.8rem; color: var(--ink-muted); }
.client-ref { font-size: 0.8rem; color: var(--ink-muted); }

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--ink-muted);
}
.empty-state h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.empty-state p { font-size: 0.9rem; margin-bottom: 1.5rem; }

/* Form */
.form-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.form-card {
  background: var(--white);
  border: 1px solid rgba(26,58,42,0.1);
  border-radius: 6px;
  padding: 2.5rem;
}
.form-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}
.form-subtitle { font-size: 0.875rem; color: var(--ink-muted); margin-bottom: 2rem; }
.form-row { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(26,58,42,0.15);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-actions { display: flex; gap: 1rem; align-items: center; margin-top: 0.5rem; flex-wrap: wrap; }
.form-error { color: #c0392b; font-size: 0.85rem; font-weight: 600; margin-top: -0.5rem; }

/* Client detail */
.detail-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.detail-name {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--green);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.detail-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.875rem; color: var(--ink-soft); }
.detail-meta span { display: flex; flex-direction: column; gap: 0.2rem; }
.detail-meta strong { font-weight: 600; color: var(--ink); }
.status-select {
  padding: 0.5rem 0.8rem;
  border: 1.5px solid rgba(26,58,42,0.15);
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  background: var(--white);
  cursor: pointer;
}
.detail-section {
  background: var(--white);
  border: 1px solid rgba(26,58,42,0.1);
  border-radius: 6px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.detail-section h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 1rem;
  font-weight: 600;
}
.notes-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(26,58,42,0.15);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  resize: vertical;
  min-height: 140px;
}
.notes-textarea:focus { outline: none; border-color: var(--green); background: var(--white); }
.notes-save {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.notes-save .btn { margin-left: auto; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.15s;
}
.back-link:hover { color: var(--green); }

@media (max-width: 640px) {
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem; }
  .client-table { font-size: 0.8rem; }
  .app-page, .form-page, .detail-page { padding: 2rem 1rem; }
  .detail-header { flex-direction: column; }
}