/* Eleanor McCrary Art Advisory — shared styles */

:root {
  --ivory: #f4f1f0;
  --ivory-deep: #e6e1e0;
  --charcoal: #370924;
  --charcoal-soft: #6b4459;
  --green: #370924;
  --green-deep: #230517;
  --green-tint: #f1e6ec;
  --rust: #8c4a63;
  --line: #e6d9e0;
  --max-width: 1120px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 460; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--charcoal-soft); }

a { color: inherit; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 1.1em;
}

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

/* Nav */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--charcoal);
  white-space: nowrap;
}

.brand span {
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--charcoal-soft);
  transition: color 0.15s ease;
}

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

.nav-cta {
  background: var(--green);
  color: var(--ivory) !important;
  padding: 10px 20px;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.nav-cta:hover {
  background: var(--green-deep);
}

.nav-toggle-input {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 20px;
  cursor: pointer;
}

.nav-toggle-label span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--charcoal);
  border-radius: 2px;
}

.nav-mobile-cta {
  display: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--green-deep); }

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green-deep);
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 1.8em;
}

/* Hero */
.hero {
  padding: 96px 0 80px;
}

.hero .container {
  max-width: 760px;
}

.hero p.lede {
  font-size: 1.15rem;
  max-width: 620px;
}

/* About page: photo beside the name block */
.about-hero .container {
  max-width: 980px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: center;
}

.bio-lead .eyebrow {
  display: block;
  margin-bottom: 3.2rem;
}

.about-photo {
  aspect-ratio: 5 / 4.5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ivory-deep);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
  display: block;
}

@media (max-width: 700px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-photo {
    max-width: 360px;
  }
}

/* Drop-cap style bio lead: name floats, paragraph text wraps in beside it */
.bio-lead {
  overflow: visible;
}

.bio-lead::after {
  content: "";
  display: table;
  clear: both;
}

.bio-lead h1 {
  float: left;
  margin: -0.5em 28px 12px 0;
  line-height: 0.95;
}

.bio-lead p.lede {
  max-width: none;
}

@media (max-width: 700px) {
  .bio-lead h1 {
    float: none;
    margin: 0 0 0.5em;
  }
}

/* Sections */
section {
  padding: 76px 0;
}

section.tight { padding: 48px 0; }

.section-alt {
  background: var(--ivory-deep);
}

.section-green {
  background: var(--green);
  color: var(--ivory);
}
.section-green h2, .section-green h3 { color: var(--ivory); }
.section-green p { color: #d9e2dc; }

.section-head {
  max-width: 680px;
  margin: 0 0 3em;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Card grid */
.grid {
  display: grid;
  gap: 32px;
}

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px 28px;
}

.card .num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--rust);
  margin-bottom: 0.4em;
  display: block;
}

.market-card {
  padding: 0;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.market-card:hover {
  border-color: var(--rust);
  box-shadow: 0 6px 20px rgba(55, 9, 36, 0.1);
  transform: translateY(-2px);
}

.market-card:hover .market-link {
  text-decoration: underline;
}

.market-card .market-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ivory-deep);
}

.market-card .market-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.market-card .market-img-contain {
  aspect-ratio: auto;
  background: #fff;
}

.market-card .market-img-contain img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.market-card > .market-source,
.market-card > h3,
.market-card > p,
.market-card > a {
  margin-left: 28px;
  margin-right: 28px;
}

.market-card > .market-source {
  margin-top: 22px;
}

.market-card > a.market-link {
  margin-bottom: 28px;
}

.market-source {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rust);
  margin-bottom: 0.6em;
}

.market-link {
  display: inline-block;
  margin-top: 0.8em;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-deep);
  text-decoration: none;
}

.market-link:hover {
  text-decoration: underline;
}

/* Service rows */
.service-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: none; }

.service-row .num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--rust);
}

/* Process steps */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.process-step::before {
  content: "";
  position: absolute;
  top: 22px;
  left: -50%;
  width: 100%;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.process-step:first-child::before { display: none; }

.process-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
}

/* Quote / pull */
.pull {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--charcoal);
  max-width: 760px;
  font-weight: 460;
}

/* CTA banner */
.cta-banner {
  background: var(--green);
  color: var(--ivory);
  border-radius: 8px;
  padding: 56px 48px;
  text-align: center;
}
.cta-banner h2 { color: var(--ivory); }
.cta-banner p { color: #d9e2dc; }
.cta-banner .btn-row { justify-content: center; }
.cta-banner .btn-secondary {
  color: var(--ivory);
  border-color: var(--ivory);
}
.cta-banner .btn-secondary:hover {
  background: rgba(255,255,255,0.08);
}

/* Forms */
.form-grid {
  display: grid;
  gap: 20px;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--charcoal);
}

input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.98rem;
  background: #fff;
  color: var(--charcoal);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
}

textarea { resize: vertical; min-height: 120px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Contact info list */
.info-list dt {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-top: 22px;
}
.info-list dt:first-child { margin-top: 0; }
.info-list dd {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  background: var(--ivory-deep);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-grid .brand { margin-bottom: 6px; }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--charcoal-soft);
}
.footer-links a:hover { color: var(--green-deep); }

.footer-meta {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  margin-top: 20px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--charcoal-soft);
  transition: color 0.15s ease, background 0.15s ease;
}

.footer-social a:hover {
  color: var(--ivory);
  background: var(--green);
}

.footer-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Utility */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.small { font-size: 0.9rem; color: var(--charcoal-soft); }
.note {
  border-left: 3px solid var(--rust);
  padding: 4px 0 4px 16px;
  font-size: 0.92rem;
  color: var(--charcoal-soft);
}

/* Responsive */
@media (max-width: 860px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: 28px; }
  .process-step::before { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }

  .nav-toggle-label {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: 8px 32px 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 10px 0;
  }

  .nav-mobile-cta {
    display: block;
    margin-top: 8px;
  }

  .nav-mobile-cta a.nav-cta {
    display: inline-block;
    width: auto;
    padding: 10px 20px;
  }

  .nav-toggle-input:checked ~ .nav-links {
    display: flex;
  }
}
