/* ===== Samson Tam Construction — shared styles ===== */

:root {
  --navy: #1b2a38;
  --navy-dark: #121c26;
  --amber: #e08a2c;
  --amber-dark: #c46f18;
  --cream: #faf7f2;
  --gray-100: #f2efe9;
  --gray-300: #d9d3c8;
  --gray-500: #8a8478;
  --gray-700: #4a463f;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(27, 42, 56, 0.08);
  --shadow-lg: 0 12px 32px rgba(27, 42, 56, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 64px 0; }

.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber-dark);
  margin-bottom: 0.5rem;
}

.section-intro {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-intro p { color: var(--gray-500); }

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--amber);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover { background: var(--amber-dark); }

.btn-secondary {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-secondary:hover { background: var(--navy); color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-light:hover { background: var(--gray-100); }

.btn-block { display: block; width: 100%; text-align: center; }

/* ---- Header / Nav ---- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--amber-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active { color: var(--amber-dark); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
}

/* ---- Hero ---- */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 80px 0;
}

.hero h1 { color: var(--white); }

.hero .eyebrow {
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  display: block;
}

.hero p.lead {
  color: var(--gray-300);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 1.2rem 0 2rem;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
}

.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero p { color: var(--gray-300); max-width: 620px; }

/* ---- Cards / Grids ---- */

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-300);
}

.service-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(224, 138, 44, 0.12);
  color: var(--amber-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.service-card p { color: var(--gray-500); font-size: 0.94rem; margin-bottom: 0; }

/* ---- Placeholder blocks (photos/testimonials) ---- */

.placeholder-box {
  background: var(--gray-100);
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
  min-height: 160px;
}

.badge-placeholder {
  display: inline-block;
  background: rgba(224, 138, 44, 0.14);
  color: var(--amber-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---- CTA band ---- */

.cta-band {
  background: var(--amber);
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}

.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 520px; margin: 0 auto 1.6rem; }
.cta-band .btn-primary { background: var(--navy); }
.cta-band .btn-primary:hover { background: var(--navy-dark); }

/* ---- Footer ---- */

footer.site-footer {
  background: var(--navy-dark);
  color: var(--gray-300);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

footer.site-footer h4 { color: var(--white); margin-bottom: 12px; font-size: 0.95rem; }
footer.site-footer a { color: var(--gray-300); display: block; margin-bottom: 8px; font-size: 0.92rem; }
footer.site-footer a:hover { color: var(--amber); }
footer.site-footer p { color: var(--gray-300); font-size: 0.9rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--gray-500);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Tables (pricing) ---- */

table.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

table.pricing-table th, table.pricing-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-300);
  font-size: 0.94rem;
}

table.pricing-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

table.pricing-table tr:last-child td { border-bottom: none; }

.note-box {
  background: rgba(224, 138, 44, 0.1);
  border-left: 4px solid var(--amber);
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 0.92rem;
  color: var(--gray-700);
  margin-top: 20px;
}

/* ---- Diagnostic tool ---- */

.diag-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  max-width: 720px;
  margin: 0 auto;
}

.diag-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}

.diag-progress .dot {
  flex: 1;
  height: 5px;
  border-radius: 4px;
  background: var(--gray-300);
}

.diag-progress .dot.done { background: var(--amber); }

.diag-step { display: none; }
.diag-step.active { display: block; }

.diag-options {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.diag-option {
  text-align: left;
  padding: 14px 18px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--navy);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.diag-option:hover { border-color: var(--amber); background: rgba(224,138,44,0.06); }

.diag-option .desc {
  font-weight: 400;
  color: var(--gray-500);
  font-size: 0.84rem;
  margin-top: 3px;
}

#categoryOptions {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
  #categoryOptions { grid-template-columns: 1fr; }
}

.diag-nav { display: flex; justify-content: space-between; margin-top: 24px; }

.diag-field { margin-bottom: 18px; }
.diag-field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: 0.92rem; }
.diag-field textarea, .diag-field input, .diag-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--cream);
}
.diag-field textarea { min-height: 90px; resize: vertical; }

.diag-summary {
  background: var(--gray-100);
  border-radius: 8px;
  padding: 20px;
  margin-top: 16px;
}

.diag-summary dt { font-weight: 700; color: var(--navy); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 12px; }
.diag-summary dt:first-child { margin-top: 0; }
.diag-summary dd { color: var(--gray-700); margin-bottom: 4px; }

.severity-chip {
  display: inline-flex;
  gap: 8px;
  margin-top: 6px;
}

/* ---- Schedule embed placeholder ---- */

.embed-placeholder {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  background: var(--white);
}

.embed-placeholder code {
  display: block;
  background: var(--navy-dark);
  color: #b7ffcb;
  padding: 14px 18px;
  border-radius: 8px;
  margin: 16px auto;
  max-width: 520px;
  font-size: 0.82rem;
  text-align: left;
  overflow-x: auto;
}

/* ---- Responsive ---- */

@media (max-width: 860px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav.main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-300);
    display: none;
    box-shadow: var(--shadow);
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-secondary { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-block-mobile { width: 100%; text-align: center; }
  .diag-wrap { padding: 22px; }
}
