/* IvyFeeder Inc. — single-page styles (GitHub Pages) */

:root {
  --cream: #faf8f3;
  --cream-dark: #f0ebe0;
  --forest: #1b4332;
  --forest-light: #2d6a4f;
  --forest-muted: #40916c;
  --slate: #344e41;
  --text: #1a1a1a;
  --text-muted: #4a5568;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(27, 67, 50, 0.08);
  --shadow-hover: 0 8px 32px rgba(27, 67, 50, 0.12);
  --radius: 0.75rem;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}

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

a {
  color: var(--forest-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--forest);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius);
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27, 67, 50, 0.08);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.logo-link img {
  height: 44px;
  width: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(27, 67, 50, 0.2);
  background: var(--white);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--forest);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--slate);
  font-weight: 500;
  font-size: 0.9375rem;
}

.site-nav a:hover {
  color: var(--forest);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    width: 100%;
    order: 3;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .site-nav.is-open {
    max-height: 320px;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0 0.5rem;
    gap: 0.75rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--forest-light), var(--forest));
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--forest);
  border: 2px solid rgba(27, 67, 50, 0.25);
}

.btn-secondary:hover {
  border-color: var(--forest-muted);
  background: var(--cream-dark);
  transform: translateY(-1px);
  color: var(--forest);
}

/* Sections */
.section {
  padding: 4.5rem 1.5rem;
}

.section-alt {
  background: var(--cream-dark);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--forest);
  margin: 0 0 0.5rem;
}

.section-lead {
  max-width: 640px;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  font-size: 1.0625rem;
}

/* Hero */
.hero {
  padding: 3rem 1.5rem 5rem;
  background: linear-gradient(
    165deg,
    var(--cream) 0%,
    var(--cream-dark) 45%,
    #e8f0ea 100%
  );
  border-bottom: 1px solid rgba(27, 67, 50, 0.06);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

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

.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest-muted);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--forest);
  margin: 0 0 1rem;
}

.hero p.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 36ch;
}

@media (max-width: 900px) {
  .hero p.lead {
    max-width: none;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(27, 67, 50, 0.06);
}

.hero-card img {
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.hero-card figcaption {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

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

.about-grid p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.facts {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(27, 67, 50, 0.06);
}

.facts dt {
  font-weight: 700;
  color: var(--forest);
  font-size: 0.875rem;
  margin-top: 1rem;
}

.facts dt:first-child {
  margin-top: 0;
}

.facts dd {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Services — three columns */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(27, 67, 50, 0.08);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #d8f3dc, #b7e4c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: var(--forest);
}

.service-card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* Partners */
.partners-intro {
  max-width: 720px;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

@media (max-width: 700px) {
  .partner-cards {
    grid-template-columns: 1fr;
  }
}

.partner-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(27, 67, 50, 0.08);
  box-shadow: var(--shadow);
}

.partner-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
}

.partner-card .body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.partner-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--forest);
}

.partner-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

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

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

.contact-details {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(27, 67, 50, 0.08);
  box-shadow: var(--shadow);
}

.contact-details p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.contact-details p:last-of-type {
  margin-bottom: 0;
}

.contact-details strong {
  color: var(--forest);
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-details a {
  font-weight: 600;
}

.contact-note {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 1.5rem;
}

.site-footer a {
  color: #b7e4c7;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  height: 40px;
  width: auto;
  filter: brightness(1.12) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

.footer-brand span {
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-meta {
  font-size: 0.875rem;
  opacity: 0.85;
  max-width: 28rem;
  line-height: 1.6;
}

.footer-copy {
  width: 100%;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8125rem;
  opacity: 0.75;
}
