/* Carriage Advisors — site-specific styles, built on top of the Organic
   design system (organic.css). Load this file after organic.css. */

:root {
  --color-text: #1a3a52; /* navy override — Organic's default text color is near-black */
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

main {
  animation: fadeIn 0.4s ease-out;
}

/* — header / nav — */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  padding: 20px 40px;
  flex-wrap: wrap;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-text);
}

.nav-brand img {
  height: 50px;
  width: auto;
}

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

.nav-cta {
  margin-left: auto;
  text-decoration: none;
}

/* — hero — */
.hero {
  padding: 80px 40px 100px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 48px;
  margin-bottom: 24px;
  line-height: 1.15;
}
.hero p {
  font-size: 18px;
  opacity: 0.85;
  max-width: 550px;
  margin-bottom: 32px;
}
.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* — sections — */
.section {
  padding: 80px 40px;
  background: var(--color-bg);
}
.section.surface {
  background: var(--color-surface);
}
.section-content {
  max-width: 1200px;
  margin: 0 auto;
}
.section h2 {
  font-size: 40px;
  margin-bottom: 48px;
}

/* — opportunity / problem cards — */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.problem-card {
  padding: 32px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-accent);
}
.problem-card h3 {
  color: var(--color-accent);
  margin-bottom: 12px;
}

/* — service / feature cards — */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-card .tag {
  margin-bottom: 12px;
  display: inline-block;
}
.service-card h3 {
  font-size: 17px;
  font-weight: 400;
  margin: 16px 0 12px;
}
.service-card p {
  flex-grow: 1;
  margin-bottom: 0;
}

/* — feature grid (Why Us / About) — */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-grid.top-align {
  align-items: start;
}
.feature-text h3 {
  font-size: 32px;
  margin-bottom: 20px;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 16px;
}
.feature-list li::before {
  content: "\2713";
  color: var(--color-accent);
  font-weight: bold;
  flex: none;
}

/* — credentials box (Why Us) — */
.credentials-box {
  background: var(--color-accent-100);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}
.credentials-box .kicker {
  font-size: 14px;
  color: var(--color-accent-700);
  font-weight: 600;
  margin-bottom: 12px;
}
.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.credentials-list {
  margin-top: 32px;
  font-size: 13px;
  color: var(--color-accent-700);
  opacity: 0.8;
}
.credentials-list div {
  margin-bottom: 8px;
}
.credentials-list div:last-child {
  margin-bottom: 0;
}

/* — About page columns — */
.approach-col {
  display: flex;
  flex-direction: column;
}
.approach-col h3 {
  font-size: 28px;
  margin-bottom: 24px;
}
.approach-col p.lead {
  margin-bottom: 20px;
}
.approach-col p.muted {
  opacity: 0.85;
}

/* — contact — */
.contact-wrap {
  max-width: 600px;
}
.contact-wrap h2 {
  margin-bottom: 24px;
}
.contact-wrap > p.intro {
  font-size: 16px;
  margin-bottom: 32px;
  opacity: 0.85;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form button {
  align-self: flex-start;
}
.form-note {
  font-size: 13px;
  margin-top: 12px;
}

/* — footer — */
.site-footer {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 60px 40px;
  text-align: center;
  margin-top: 80px;
}
.site-footer p {
  margin: 8px 0;
  color: color-mix(in srgb, var(--color-bg) 80%, transparent);
}
.site-footer .copyright {
  margin-top: 24px;
  font-size: 12px;
  opacity: 0.6;
}

/* — responsive — */
@media (max-width: 768px) {
  .hero {
    padding: 60px 24px 80px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .section {
    padding: 60px 24px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cta-group {
    flex-direction: column;
  }
  .cta-group .btn {
    width: 100%;
  }
  .nav {
    padding: 16px 24px;
  }
  .nav-brand {
    margin-right: auto;
  }
}
