/* Miles Advisory, LLC — Site Stylesheet */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #041c37;
  --navy-light: #10405f;
  --teal: #3a8686;
  --teal-text: #2f6e6e;
  --teal-on-dark: #5fb2b2;
  --body-text: #47596b;
  --muted: #78899a;
  --border: #dde4e8;
  --canvas: #f4f7f8;
  --white: #ffffff;
  --max-width: 1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--body-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-text); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 2.6rem; letter-spacing: -0.02em; }
h2 { font-size: 1.8rem; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

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

/* ── Eyebrow Labels ── */
.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.eyebrow-light {
  color: var(--teal-on-dark);
}

/* ── Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-nav .logo img {
  height: 46px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--body-text);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--navy); }

.nav-links .nav-cta:hover,
.nav-links .nav-cta.active { color: var(--white); }

.nav-links .nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 0.55rem 1.3rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-links .nav-cta:hover { background: var(--navy-light); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.2s;
}

/* ── Hero Sections ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 5rem 0;
}

.hero h1 { color: var(--white); margin-bottom: 1.25rem; }

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 640px;
  line-height: 1.75;
}

.hero-compact { padding: 3.5rem 0; }
.hero-compact h1 { font-size: 2.2rem; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-text); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline-dark:hover { border-color: var(--navy); }

.btn-group { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* ── Sections ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--canvas); }

.section-header {
  max-width: 680px;
  margin-bottom: 3rem;
}

.section-header p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--canvas);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.5rem;
  line-height: 1.4;
}

.stats-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ── Service / Industry Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.25rem;
  transition: border-color 0.2s;
}

.card:hover { border-color: var(--teal); }

.card h3 { margin-bottom: 0.75rem; }

.card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--body-text);
}

.card-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-text);
}

.card-link:hover { color: var(--navy); }

/* ── Case Study Cards ── */
.case-study {
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.case-study:last-child { border-bottom: none; }

.case-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.case-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(58, 134, 134, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
}

.case-study h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.case-study > p {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.case-metrics {
  display: flex;
  gap: 2.5rem;
  flex-wrap: nowrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.case-metric {
  min-width: 0;
  max-width: 160px;
}

.case-metric .metric-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.case-metric .metric-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── Detail Section (Services, Industries expanded) ── */
.detail-block {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

.detail-block:last-child { border-bottom: none; }

.detail-block h2 { margin-bottom: 0.75rem; }

.detail-block > p {
  max-width: 720px;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.detail-list {
  list-style: none;
  columns: 2;
  column-gap: 2.5rem;
}

.detail-list li {
  font-size: 0.92rem;
  padding: 0.4rem 0;
  padding-left: 1.1rem;
  position: relative;
  break-inside: avoid;
}

.detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
}

.detail-outcomes {
  margin-top: 2rem;
  padding: 1.75rem;
  background: var(--canvas);
  border-radius: 6px;
}

.detail-outcomes h4 { margin-bottom: 0.75rem; }

/* ── About Page ── */
.about-intro {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-photo {
  width: 240px;
  height: 240px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.about-photo-placeholder {
  width: 240px;
  height: 240px;
  border-radius: 6px;
  background: var(--canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.about-photo-placeholder img {
  width: 80px;
  height: auto;
  opacity: 0.6;
}

.timeline { margin-top: 1rem; }

.timeline-entry {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.timeline-entry:last-child { border-bottom: none; }

.timeline-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

.timeline-entry h3 { margin-bottom: 0.15rem; }

.timeline-role {
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
}

.timeline-entry > p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* ── Credentials ── */
.credentials-list {
  list-style: none;
}

.credentials-list li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.credentials-list li:last-child { border-bottom: none; }

/* ── Convictions ── */
.convictions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.conviction h4 { margin-bottom: 0.5rem; }
.conviction p { font-size: 0.92rem; }

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-block {
  margin-bottom: 2rem;
}

.contact-info-block h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.contact-info-block p,
.contact-info-block a {
  font-size: 1.05rem;
}

.contact-form label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--body-text);
  margin-bottom: 1.25rem;
  transition: border-color 0.2s;
  background: var(--white);
}

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

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

.contact-form .btn { width: 100%; text-align: center; }

/* ── FAQ ── */
.faq-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-item h4 { margin-bottom: 0.5rem; color: var(--navy); }
.faq-item p { font-size: 0.95rem; }

/* ── CTA Band ── */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255, 255, 255, 0.8); max-width: 580px; margin: 0 auto; }

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0 2rem;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
}

.footer-brand img { height: 28px; margin-bottom: 0.75rem; }

.footer-brand p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 300px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; }

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  display: block;
  padding: 0.2rem 0;
}

.footer-col a:hover { color: var(--teal-on-dark); }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .card-grid,
  .convictions-grid { grid-template-columns: 1fr; }

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

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .about-intro { grid-template-columns: 1fr; }
  .about-photo, .about-photo-placeholder { width: 180px; height: 180px; }

  .detail-list { columns: 1; }

  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 1.25rem; }
  .section { padding: 3rem 0; }
  .hero { padding: 3rem 0; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    gap: 1rem;
  }

  .mobile-toggle { display: block; }

  .case-metrics { flex-wrap: wrap; gap: 1.25rem; }
  .case-metric { max-width: none; }
}

/* ── Print ── */
@media print {
  .site-nav, .site-footer, .cta-band { display: none; }
  .hero { background: none; color: var(--navy); padding: 2rem 0; }
  .hero h1 { color: var(--navy); }
  .hero p { color: var(--body-text); }
}
