/* ===== Free Range Bot Farm — Shared Styles ===== */

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

:root {
  --green: #4ade80;
  --green-dark: #16a34a;
  --orange: #fb923c;
  --orange-dark: #ea580c;
  --sky: #38bdf8;
  --purple: #a78bfa;
  --pink: #f472b6;
  --bg: #fefce8;
  --bg-card: #ffffff;
  --text: #1c1917;
  --text-muted: #57534e;
  --radius: 1rem;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--green-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--orange-dark);
}

img {
  max-width: 100%;
}

/* ===== Navigation ===== */

nav {
  background: var(--bg-card);
  border-bottom: 2px solid var(--green);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

nav .nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

nav .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

nav .logo:hover {
  color: var(--green-dark);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul a {
  font-weight: 500;
  font-size: 1rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

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

/* ===== Main Content ===== */

main {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  width: 100%;
}

/* ===== Hero (Landing) ===== */

.hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
}

.hero-emoji {
  font-size: 5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero h1 .green { color: var(--green-dark); }
.hero h1 .orange { color: var(--orange-dark); }

.hero .tagline {
  font-size: 1.35rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2rem;
}

.hero .cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

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

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 2px solid var(--green);
}

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

/* ===== Intro Section ===== */

.intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.intro-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s;
}

.intro-card:hover {
  transform: translateY(-4px);
}

.intro-card .icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.intro-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.intro-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== About Page ===== */

.about-header {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.about-header .icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.about-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.about-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
}

.about-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.about-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-section p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.value-item {
  text-align: center;
  padding: 1.25rem;
  background: var(--bg);
  border-radius: var(--radius);
}

.value-item .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.value-item h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.value-item p {
  font-size: 0.9rem;
}

/* ===== Products Page ===== */

.products-header {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.products-header .icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.products-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.products-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
  border-top: 4px solid var(--green);
}

.product-card:nth-child(2) {
  border-top-color: var(--orange);
}

.product-card:nth-child(3) {
  border-top-color: var(--sky);
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card .product-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.product-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.product-card .product-desc {
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.product-card .product-link {
  align-self: flex-start;
}

/* ===== Footer ===== */

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid #e7e5e4;
}

footer a {
  color: var(--text-muted);
}

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

/* ===== Responsive ===== */

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero .tagline {
    font-size: 1.1rem;
  }

  .hero-emoji {
    font-size: 3.5rem;
  }

  nav .nav-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  nav ul {
    gap: 1rem;
  }

  .about-header h1,
  .products-header h1 {
    font-size: 1.75rem;
  }
}
