/* =============================================
   LINCOLN'S LEGACY — Main Stylesheet
   Palette: warm cream, forest green, soft gold
   ============================================= */

/* --- Tokens --- */
:root {
  --cream:       #F7F3EE;
  --cream-dark:  #EDE6DA;
  --green:       #3B5E3A;
  --green-light: #5C8A5A;
  --green-pale:  #EBF2EA;
  --gold:        #C08B3A;
  --gold-light:  #F0D9B0;
  --brown:       #6B4C2A;
  --text:        #2C2318;
  --text-mid:    #5A4A38;
  --text-muted:  #8C7A65;
  --white:       #FFFFFF;

  --font-display: 'Lora', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-card: 0 2px 16px rgba(59,94,58,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-light); }

/* --- Layout --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-alt { background: var(--white); }

.section-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.section-two-col.reverse { direction: rtl; }
.section-two-col.reverse > * { direction: ltr; }

/* --- Typography --- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
h1 em { font-style: italic; color: var(--green); }

p { color: var(--text-mid); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.center { text-align: center; }

.section-intro {
  max-width: 580px;
  margin: 0 auto 2.5rem;
  color: var(--text-mid);
}

/* --- Buttons --- */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  margin-top: 1.2rem;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  border: 2px solid var(--green);
}
.btn-primary:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-secondary:hover {
  background: var(--green-pale);
  color: var(--green);
  transform: translateY(-1px);
}

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 238, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.logo:hover { color: var(--green); }

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-nav { display: flex; gap: 32px; }
.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--green); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  padding: 60px 0 70px;
  background: linear-gradient(160deg, var(--cream) 60%, var(--green-pale) 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

.hero-text { max-width: 520px; }

.hero-sub {
  font-size: 1.05rem;
  margin: 1.2rem 0 0;
  color: var(--text-mid);
  max-width: 440px;
}

.hero-photo, .section-photo { width: 100%; }

.photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 480px;
  background: var(--cream-dark);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* =============================================
   MISSION VALUES
   ============================================= */
.mission-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-dark);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.value-icon {
  font-size: 1.4rem;
  color: var(--gold);
  margin-top: 2px;
  flex-shrink: 0;
}

.value-card h3 { color: var(--green); }
.value-card p { font-size: 0.9rem; margin-bottom: 0; }

/* =============================================
   WORK GRID
   ============================================= */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 2rem;
}

.work-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--cream-dark);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s;
}
.work-card:hover { transform: translateY(-3px); }

.work-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: var(--cream-dark);
  border-bottom: 1px dashed var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

.work-card-body { padding: 20px 24px; }

.work-date {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.work-card h3 { color: var(--green); margin-bottom: 0.4rem; font-size: 1rem; }
.work-card p { font-size: 0.9rem; margin-bottom: 0; }

/* =============================================
   CONTACT
   ============================================= */
.contact-inner { max-width: 640px; margin: 0 auto; }

.contact-box {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 2rem;
  box-shadow: var(--shadow-card);
}

.contact-field { margin-bottom: 20px; }

.contact-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  resize: vertical;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(91,138,90,0.15);
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.form-note a { color: var(--green); font-weight: 500; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--green);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  margin-bottom: 24px;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .hero-inner,
  .section-two-col { grid-template-columns: 1fr; gap: 40px; }
  .section-two-col.reverse { direction: ltr; }

  .hero { padding: 48px 0 60px; }
  .hero-text { max-width: 100%; }
  .hero-photo { order: -1; }
  .photo-placeholder { aspect-ratio: 3 / 2; max-height: 260px; }

  .site-nav { display: none; flex-direction: column; gap: 0; }
  .site-nav.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-dark);
    padding: 12px 0;
    z-index: 99;
  }
  .site-nav.open a { padding: 12px 24px; display: block; }

  .nav-toggle { display: flex; }

  .contact-box { padding: 28px 20px; }

  .section { padding: 56px 0; }
}

/* =============================================
   UPCOMING CARDS (no image)
   ============================================= */
.upcoming-card .work-card-body {
  padding: 28px 24px;
  border-left: 4px solid var(--gold);
}

.upcoming-card {
  background: var(--white);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 2rem;
}

/* =============================================
   SOCIAL LINKS
   ============================================= */
.social-nav-link {
  color: var(--text-mid);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.social-nav-link:hover { color: var(--green); }

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

.footer-social {
  margin: 16px 0 20px;
  display: flex;
  justify-content: center;
}

.social-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s;
}
.social-footer-link:hover { opacity: 0.8; }

/* =============================================
   MISSION CARDS
   ============================================= */
.mission-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 2.5rem;
}

.mission-card {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.mission-card-icon {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.mission-card h3 {
  color: var(--green);
  margin-bottom: 0.5rem;
}

/* =============================================
   CONTACT EMAIL
   ============================================= */
.contact-email-box {
  text-align: center;
  margin-top: 1.5rem;
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.contact-email-box p {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-email-link {
  display: inline-block;
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--green);
  margin: 4px 0 16px;
  transition: color 0.2s;
}

.contact-email-link:hover { color: var(--green-light); }

.contact-email-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* =============================================
   INLINE CONTENT LINKS
   ============================================= */
.work-card-body a,
.section-text a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.work-card-body a:hover,
.section-text a:hover {
  color: var(--gold);
}

/* =============================================
   WORK CARD REAL IMAGES
   ============================================= */
.work-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* =============================================
   CAROUSEL
   ============================================= */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--cream-dark);
}

.carousel-track {
  display: flex;
  transition: transform 0.35s ease;
}

.carousel-img {
  min-width: 100%;
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 0.2s;
  z-index: 2;
}
.carousel-btn:hover { background: var(--white); }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

/* Hide arrows when only one image */
.carousel[data-count="1"] .carousel-btn { display: none; }

.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.carousel-dot.active { background: var(--white); }

/* =============================================
   LIGHTBOX
   ============================================= */
.carousel-img {
  cursor: zoom-in;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.lightbox-btn:hover { background: rgba(255,255,255,0.28); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* Hide lightbox nav when only one image in carousel */
.lightbox[data-count="1"] .lightbox-btn { display: none; }

/* =============================================
   HERO / SECTION PHOTOS
   ============================================= */
.hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  display: block;
  aspect-ratio: 1422 / 948;
}

/* Who Is Lincoln photo — show full figure, no cropping */
.lincoln-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: contain;
  display: block;
  background: var(--cream-dark);
}