/* ============================================================
   The Blakely Group — Bold & Editorial
   ============================================================ */

:root {
  --bg:            #111214;
  --text:          #e8e6df;
  --text-muted:    #9a988f;
  --accent:        #d4af6a;
  --panel:         #1c1c1f;
  --panel-border:  #2c2c31;

  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --sans:    'Inter', -apple-system, system-ui, sans-serif;

  --max: 1180px;
  --pad: clamp(1.125rem, 5vw, 2.75rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* Nav
   ============================================================ */
.site-nav {
  border-bottom: 1px solid var(--panel-border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-home {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  height: 56px;
  width: auto;
  display: block;
}

.nav-divider {
  width: 1px;
  height: 32px;
  background: var(--panel-border);
}

.nav-title {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 200ms var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

/* Buttons
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 200ms var(--ease), background 200ms var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #111214;
}

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

/* Sections
   ============================================================ */
section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-label {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.15;
  margin-bottom: 2.5rem;
}

/* Hero
   ============================================================ */
.hero {
  padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem);
}

.hero-headline {
  font-family: var(--display);
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1.05;
  max-width: 16ch;
  margin-bottom: 1.5rem;
}

.hero-subhead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 2.25rem;
}

/* Stat tiles
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--panel-border);
  border: 1px solid var(--panel-border);
}

.stat-tile {
  background: var(--panel);
  padding: 2rem 1.5rem;
  text-align: center;
}

.stat-value {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .stats-row { grid-template-columns: 1fr; }
}

/* Areas we serve
   ============================================================ */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.area-chip {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* Team cards
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 2rem;
}

.avatar-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8a6a3a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1.5rem;
  color: #111214;
  margin-bottom: 1.25rem;
}

.team-hero {
  position: relative;
  min-height: 85vh;
  padding: 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.team-hero-media {
  position: absolute;
  inset: 0;
  background-image: url('../images/team-photo.jpg');
  background-size: cover;
  background-position: center top;
}

.team-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17, 18, 20, 0) 0%, rgba(17, 18, 20, 0.1) 55%, rgba(17, 18, 20, 0.85) 82%, var(--bg) 100%);
}

.team-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.team-hero-content .section-title {
  margin-bottom: 0;
}

.team-card-name {
  font-family: var(--display);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.team-card-specialty {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.team-card-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.team-card-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.team-card-contact a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 200ms var(--ease);
}

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

.team-card-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Testimonial
   ============================================================ */
.testimonial {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.testimonial-quote {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.testimonial-attribution {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: normal;
}

/* CTA footer / site footer
   ============================================================ */
.cta-footer {
  text-align: center;
  border-top: 1px solid var(--panel-border);
}

.cta-footer .section-title { margin-bottom: 1rem; }

.cta-footer p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Placeholder panel (listings coming soon)
   ============================================================ */
.placeholder-panel {
  background: var(--panel);
  border: 1px dashed var(--panel-border);
  padding: clamp(3rem, 8vw, 5rem) 2rem;
  text-align: center;
}

.placeholder-panel-title {
  font-family: var(--display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.placeholder-panel p {
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0 auto 1.5rem;
}

/* Contact form
   ============================================================ */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-input,
.form-textarea {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  border-radius: 2px;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-textarea { resize: vertical; min-height: 140px; }

.form-status {
  font-size: 0.9rem;
  display: none;
}

.form-status.is-visible { display: block; }
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: #e08a6a; }

.form-submit { align-self: flex-start; }
