/* Phoenix By Design -- style.css
   Design tokens from Phase 07 visual design spec.
   System font stack only. No external loads. ASCII-only (bootstrap-057). */

/* -- Design tokens -- */
:root {
  --color-primary: #1a6b5a;
  --color-primary-dark: #0f4a3d;
  --color-secondary: #c9a96e;
  --color-text: #1a1a1a;
  --color-text-muted: #4a4a4a;
  --color-bg: #f5f2ed;
  --color-bg-alt: #e8e4df;
  --color-surface: #ffffff;
  --color-success: #2d7a4f;
  --color-error: #c0392b;
  --font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --space-unit: 8px;
  --max-width: 1200px;
}

/* -- Reset -- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
ul, ol { list-style: none; }

/* -- Skip to content (a11y) -- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  top: 8px;
}

/* -- Layout -- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* -- Sticky header / nav -- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-bg-alt);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--color-primary);
}
.logo span {
  color: var(--color-secondary);
}
.logo a {
  color: inherit;
  text-decoration: none;
}
.logo a:hover {
  color: inherit;
}
.nav-list {
  display: flex;
  gap: 28px;
}
.nav-list a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--color-primary);
}
.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
}
.nav-cta:hover {
  background: var(--color-primary-dark);
  color: #fff !important;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
  font-size: 24px;
  line-height: 1;
}

/* -- Buttons -- */
.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  min-height: 48px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-hero {
  background: var(--color-secondary);
  color: var(--color-text);
  font-size: 17px;
}
.btn-hero:hover {
  filter: brightness(0.92);
  color: var(--color-text);
}

/* -- Hero section -- */
.hero {
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    linear-gradient(135deg, #2a4a42 0%, #1a3630 50%, #223c35 100%);
  color: #fff;
  padding: 120px 0 100px;
  text-align: center;
}
.hero h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 20px;
}
.hero p {
  font-size: 19px;
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--color-bg-alt);
}

/* -- Page header (non-home pages) -- */
.page-header {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}
.page-header h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 16px;
}
.page-header p {
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto;
  color: #cfe4dd;
}

/* -- Trust bar -- */
.trust-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-bg-alt);
}
.trust-bar .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 32px 24px;
  gap: 16px;
}
.trust-item {
  text-align: center;
}
.trust-item .num {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text);
}
.trust-item .num b {
  color: var(--color-primary);
}
.trust-item .label {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* -- Sections -- */
section {
  padding: 80px 0;
}
h2 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 36px;
}
h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* -- Service cards -- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}
.card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}
.card p {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 14px;
}
.card a {
  color: var(--color-primary);
  font-weight: 600;
}
.center-link {
  text-align: center;
  margin-top: 32px;
}
.center-link a {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 17px;
}

/* -- Service blocks (services page, alternating) -- */
.service-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-bg-alt);
}
.service-block:last-child {
  border-bottom: none;
}
.service-block h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}
.service-block p {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

/* -- Portfolio thumbnails -- */
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid #ddd8d0;
}
.thumb .ph {
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, #d8d2c8 25%, #cfc8bc 25%, #cfc8bc 50%, #d8d2c8 50%, #d8d2c8 75%, #cfc8bc 75%);
  background-size: 28px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 14px;
  transition: transform 0.2s;
  padding: 16px;
  text-align: center;
}
.thumb:hover .ph {
  transform: scale(1.02);
}
.thumb .cap {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--color-text-muted);
}
.thumb .cap b {
  color: var(--color-primary);
}

/* -- Portfolio filter bar -- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  justify-content: center;
}
.filter-bar button {
  background: var(--color-surface);
  border: 1px solid var(--color-bg-alt);
  padding: 8px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
}
.filter-bar button:hover,
.filter-bar button.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* -- CTA banner -- */
.cta-banner {
  background: var(--color-primary-dark);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.cta-banner h2 {
  color: #fff;
  margin-bottom: 12px;
}
.cta-banner p {
  color: #cfe4dd;
  margin-bottom: 28px;
  font-size: 18px;
}

/* -- About page -- */
.about-intro {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.headshot-placeholder {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 14px;
}
.about-commitment {
  background: var(--color-surface);
  border: 1px solid var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 48px;
}
.about-qualities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.quality-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.quality-item p {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* -- Vendor info page -- */
.scope-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px 32px;
  margin-bottom: 48px;
}
.scope-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--color-text);
}
.scope-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}
.checklist {
  margin-bottom: 48px;
}
.checklist li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-bg-alt);
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.checklist li::before {
  content: "[x]";
  color: var(--color-primary);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.step {
  background: var(--color-surface);
  border: 1px solid var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.step .step-num {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  line-height: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* -- Contact page -- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h3 {
  margin-bottom: 16px;
}
.contact-info p {
  margin-bottom: 12px;
  color: var(--color-text-muted);
}
.contact-info a {
  color: var(--color-primary);
  font-weight: 600;
}
.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
  font-size: 15px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-bg-alt);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 16px;
  margin-bottom: 16px;
  background: var(--color-surface);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-color: var(--color-primary);
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.form-success {
  display: none;
  background: var(--color-success);
  color: #fff;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-top: 16px;
}

/* -- Service area list -- */
.service-area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.service-area-list li {
  background: var(--color-bg-alt);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-text-muted);
}

/* -- Footer -- */
.site-footer {
  background: var(--color-primary-dark);
  color: #9dbcb3;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 28px 0;
  font-size: 14px;
  text-align: center;
}
.site-footer b {
  color: #fff;
}
.site-footer a {
  color: #9dbcb3;
}
.site-footer a:hover {
  color: #fff;
}

/* -- Mobile bottom bar -- */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  z-index: 200;
  padding: 0;
}
.mobile-bottom-bar a {
  display: block;
  color: #fff;
  text-align: center;
  padding: 14px;
  font-weight: 600;
  font-size: 16px;
}

/* -- 404 page -- */
.error-page {
  text-align: center;
  padding: 120px 0;
}
.error-page h1 {
  font-size: 42px;
  margin-bottom: 16px;
}
.error-page p {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.error-page .btn {
  margin: 0 8px;
}

/* -- Focus indicators (a11y) -- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* -- Responsive: tablet (768px) -- */
@media (max-width: 1023px) {
  .about-intro {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .headshot-placeholder {
    margin: 0 auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* -- Responsive: mobile (767px and below) -- */
@media (max-width: 767px) {
  .hero h1, .page-header h1 { font-size: 28px; }
  .hero { padding: 72px 0 60px; }
  .page-header { padding: 48px 0 40px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
  section { padding: 48px 0; }
  .cta-banner { padding: 48px 0; }

  .trust-bar .wrap {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mobile nav */
  .nav-list {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    border-bottom: 1px solid var(--color-bg-alt);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .nav-list.open {
    display: flex;
  }
  .nav-list li {
    border-bottom: 1px solid var(--color-bg-alt);
  }
  .nav-list li:last-child {
    border-bottom: none;
  }
  .nav-list a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
  }
  .nav-toggle {
    display: block;
  }
  .nav-cta-desktop {
    display: none;
  }

  /* Mobile bottom bar */
  .mobile-bottom-bar {
    display: block;
  }
  body {
    padding-bottom: 52px;
  }

  .about-intro {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .headshot-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
