/* =========================================================
   Green Dart Capital — Stylesheet
   Warm, personal, search-fund aesthetic
   ========================================================= */

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

:root {
  --green-900: #143d23;
  --green-700: #1f5132;
  --green-500: #4a7c59;
  --green-100: #e6efe7;

  --cream-50: #faf7f0;
  --cream-100: #f4efe3;
  --cream-200: #e8e2d2;

  --ink-900: #1c1c1c;
  --ink-700: #2a2a2a;
  --ink-500: #6b6b6b;
  --ink-300: #b3b1aa;

  --border: #e5e0d5;
  --shadow-sm: 0 2px 8px rgba(20, 61, 35, 0.06);
  --shadow-md: 0 6px 22px rgba(20, 61, 35, 0.08);

  --serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --radius: 6px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink-700);
  background: var(--cream-50);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--green-700);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--green-500);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink-900);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

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

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-brand img {
  height: 72px;
  width: auto;
  display: block;
}

.nav-brand-text {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--green-700);
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

.nav-links a {
  color: var(--ink-700);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink-900);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  background: var(--green-700);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, transform 0.18s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--green-900);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--green-700);
  border: 1.5px solid var(--green-700);
}

.btn-outline:hover {
  background: var(--green-700);
  color: #fff;
}

/* ---------- Hero (Home) ---------- */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: center;
}

.hero .eyebrow {
  font-size: 1rem;
  letter-spacing: 0.22em;
  margin-bottom: 1.4rem;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-500);
  max-width: 38rem;
  font-style: italic;
  font-family: var(--serif);
}

.hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.hero-card img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--cream-100);
}

.hero-card-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink-900);
  margin-bottom: 0.25rem;
}

.hero-card-title {
  font-size: 0.9rem;
  color: var(--ink-500);
  margin-bottom: 0.75rem;
}

.hero-card-email {
  font-size: 0.88rem;
  word-break: break-all;
}

/* ---------- Pitch section ---------- */
.pitch {
  background: var(--cream-100);
  border-bottom: 1px solid var(--border);
}

.pitch-grid {
  max-width: 780px;
  margin: 0 auto;
}

.pitch h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.pitch-lead {
  font-size: 1.1rem;
  color: var(--ink-700);
}

.criteria {
  background: #fff;
  border-left: 4px solid var(--green-700);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}

.criteria-label {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink-900);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.criteria ul {
  list-style: none;
  padding: 0;
}

.criteria li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  color: var(--ink-700);
}

.criteria li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--green-700);
  border-radius: 50%;
}

.criteria li:last-child {
  margin-bottom: 0;
}

.cta-row {
  text-align: center;
  margin-top: 2.5rem;
}

/* ---------- About page ---------- */
.about-hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.about-headline {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.about-headline h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.3;
}

.about-headline h1 em {
  color: var(--green-700);
  font-style: italic;
}

.about-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3.5rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.about-text {
  min-width: 0;
}

.about-text p {
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
}

.about-text p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.4rem;
  float: left;
  line-height: 0.85;
  margin: 0.25rem 0.55rem 0 0;
  color: var(--green-700);
  font-weight: 700;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "wedding skiing"
    "kilts   kilts"
    "sailing tennis";
  gap: 1rem;
  position: sticky;
  top: 6rem;
}

.about-photos figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  background: var(--cream-100);
}

.about-photos img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.about-photos figure:hover img {
  transform: scale(1.025);
}

.about-photos figure:nth-child(1) { grid-area: wedding; }
.about-photos figure:nth-child(2) { grid-area: skiing;  }
.about-photos figure:nth-child(3) { grid-area: kilts;   }
.about-photos figure:nth-child(4) { grid-area: sailing; }
.about-photos figure:nth-child(5) { grid-area: tennis;  }

.cta-row {
  text-align: center;
  margin-top: 2.5rem;
}

.about-text .cta-row {
  text-align: left;
}

/* ---------- Team page ---------- */
.team-intro {
  max-width: 780px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.team-intro h1 {
  margin-bottom: 1.25rem;
}

.team-intro p {
  font-size: 1.08rem;
  color: var(--ink-500);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.team-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0 auto 1rem;
  border: 3px solid var(--cream-100);
  background: var(--cream-100);
  filter: grayscale(100%);
  transition: filter 0.25s ease;
}

.team-card:hover .team-avatar {
  filter: grayscale(100%) contrast(1.04);
}

.team-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink-900);
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.team-title {
  font-size: 0.85rem;
  color: var(--ink-700);
  margin-bottom: 0.1rem;
}

.team-firm {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-500);
  margin-bottom: 0.9rem;
  flex-grow: 1;
}

.team-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.team-link:hover {
  color: var(--green-900);
}

/* ---------- Contact page ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-intro h1 {
  margin-bottom: 1.25rem;
}

.contact-intro p {
  font-size: 1.05rem;
  color: var(--ink-500);
  margin-bottom: 1.4rem;
}

.contact-direct {
  background: var(--cream-100);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--green-700);
  margin-top: 1.5rem;
}

.contact-direct-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-direct a {
  font-size: 1rem;
  color: var(--ink-900);
  word-break: break-all;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  margin-bottom: 1.2rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-700);
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink-900);
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-700);
  background: #fff;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
  font-family: var(--sans);
}

.form-submit {
  width: 100%;
  padding: 0.95rem;
  font-size: 1rem;
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-top: 1rem;
  text-align: center;
}

.form-success {
  background: var(--green-100);
  border: 1px solid var(--green-500);
  color: var(--green-900);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  display: none;
  margin-bottom: 1.25rem;
}

.form-success.visible {
  display: block;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--green-900);
  color: var(--cream-100);
  padding: 3rem 0 1.5rem;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-tag {
  font-size: 0.95rem;
  color: var(--cream-200);
  max-width: 32rem;
}

.footer-contact {
  text-align: right;
}

.footer-contact a {
  color: var(--cream-100);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.35rem;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--cream-200);
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-card {
    max-width: 320px;
    margin: 0 auto;
  }

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

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

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-contact {
    text-align: center;
  }

  .about-body {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 720px;
  }

  .about-photos {
    position: static;
    max-width: 560px;
    margin: 0 auto;
  }

  .about-photos figure:nth-child(1),
  .about-photos figure:nth-child(2),
  .about-photos figure:nth-child(3),
  .about-photos figure:nth-child(4) {
    transform: none;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 3.5rem 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-50);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: none;
  }

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

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero {
    padding: 3rem 0;
  }
}

@media (max-width: 440px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
