/* ════════════════════════════════════════════════════════════
   ATLAS SHEEP SHOP — Main Stylesheet
   ════════════════════════════════════════════════════════════ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── CSS VARIABLES ────────────────────────────────────────── */
:root {
  --primary:        #2B5F1E;
  --primary-light:  #3E7B2B;
  --primary-dark:   #1A3D10;
  --accent:         #C9A227;
  --accent-light:   #E8BB3A;
  --dark:           #111827;
  --dark-mid:       #1F2937;
  --text:           #1F2937;
  --text-mid:       #4B5563;
  --text-light:     #9CA3AF;
  --bg:             #FAFAF8;
  --bg-alt:         #F3F0E8;
  --bg-card:        #FFFFFF;
  --border:         #E5E7EB;
  --border-light:   #F3F4F6;
  --white:          #FFFFFF;

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

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14), 0 4px 8px rgba(0,0,0,.06);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.18);

  --transition: 0.25s ease;
  --transition-slow: 0.45s ease;
}

/* ── UTILITIES ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad  { padding: 100px 0; }
.bg-alt       { background: var(--bg-alt); }
.bg-dark      { background: var(--dark); }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-align: center;
  justify-content: center;
}

.btn-lg  { padding: 16px 32px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 95, 30, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
  font-weight: 700;
}
.btn-accent:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.4);
}

.btn-nav {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
  font-weight: 700;
  padding: 10px 22px;
  font-size: 0.88rem;
}
.btn-nav:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* ── SECTION TYPOGRAPHY ───────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(43, 95, 30, 0.08);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}
.eyebrow-light { color: var(--accent); background: rgba(201, 162, 39, 0.12); }

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}
.title-light { color: var(--white); }

.section-title em {
  font-style: italic;
  color: var(--primary);
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 600px;
  line-height: 1.7;
}
.sub-light { color: rgba(255,255,255,.65); }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-sub { margin: 0 auto; }

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.30s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.60s; }

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }
.reveal.delay-3 { transition-delay: 0.36s; }

/* ════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition-slow);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08), var(--shadow-sm);
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
  flex-shrink: 0;
}
.navbar.scrolled .nav-logo { color: var(--dark); }
.nav-logo .logo-icon { font-size: 1.5rem; }
.nav-logo strong { font-weight: 800; color: var(--accent); }

.nav-links {
  display: flex;
  gap: 4px;
  margin: 0;
  flex: 1;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.navbar.scrolled .nav-links a {
  color: var(--text-mid);
}
.navbar.scrolled .nav-links a:hover {
  color: var(--primary);
  background: rgba(43, 95, 30, 0.06);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--dark); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(150deg, #1A3D10 0%, #2B5F1E 35%, #3E7B2B 60%, #4A8C32 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(0.7);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 61, 16, 0.85) 0%,
    rgba(43, 95, 30, 0.75) 50%,
    rgba(62, 123, 43, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 80px;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-radius: 99px;
  backdrop-filter: blur(8px);
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 28px;
}
.headline-accent {
  color: var(--accent);
  display: block;
  font-style: italic;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  margin-bottom: 44px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
}
.proof-avatars {
  display: flex;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -8px;
}
.hero-social-proof p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin-left: 16px;
}
.hero-social-proof strong { color: var(--white); }

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.4);
  border-bottom: 2px solid rgba(255,255,255,0.4);
  transform: rotate(45deg);
  animation: scrollBounce 1.6s ease-in-out infinite;
}

/* ════════════════════════════════════════════════════════════
   STATS BAR
   ════════════════════════════════════════════════════════════ */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  box-shadow: var(--shadow-sm);
}
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 48px;
  flex: 1;
  min-width: 160px;
}
.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  font-family: 'Playfair Display', serif;
}
.stat-suffix {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 6px;
  text-align: center;
  letter-spacing: 0.02em;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   TRUSTED BY
   ════════════════════════════════════════════════════════════ */
.trusted-by {
  padding: 48px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}
.trusted-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 24px;
}
.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.trust-logo {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.trust-logo:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(43, 95, 30, 0.04);
}

/* ════════════════════════════════════════════════════════════
   MISSION
   ════════════════════════════════════════════════════════════ */
.mission-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.mission-visual {
  position: relative;
}
.mission-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  box-shadow: var(--shadow-xl);
  position: relative;
}
.mission-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mission-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a3d10 0%, #4A8C32 100%);
}
.big-emoji { font-size: 5rem; }

.mission-badge-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}
.badge-icon { font-size: 1.8rem; }
.mission-badge-card strong { display: block; font-size: 0.88rem; color: var(--text); }
.mission-badge-card span { font-size: 0.75rem; color: var(--text-light); }

.mission-text {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}

.mission-values {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0;
}
.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.value-icon {
  color: var(--accent);
  font-size: 1rem;
}

/* ════════════════════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.service-card:hover::before { opacity: 1; }

.service-card-featured {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: scale(1.03);
  box-shadow: var(--shadow-xl);
}
.service-card-featured::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 1 !important;
}
.service-card-featured:hover {
  transform: scale(1.03) translateY(-6px);
  background: var(--primary-light);
}
.service-card-featured h3 { color: var(--white); }
.service-card-featured p  { color: rgba(255,255,255,.8); }
.service-card-featured .service-features li { color: rgba(255,255,255,.85); }
.service-card-featured .service-link { color: var(--accent); }

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(43, 95, 30, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-card-featured .service-icon-wrap { background: rgba(255,255,255,.12); }
.service-icon { font-size: 1.75rem; }

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 24px;
}
.service-features {
  margin-bottom: 28px;
}
.service-features li {
  font-size: 0.88rem;
  color: var(--text-mid);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}
.service-card-featured .service-features li { border-color: rgba(255,255,255,.12); }
.service-features li:last-child { border-bottom: none; }
.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.service-link:hover { gap: 12px; }

/* ════════════════════════════════════════════════════════════
   FLOCK (SHEEP PROFILES)
   ════════════════════════════════════════════════════════════ */
.flock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sheep-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
}
.sheep-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.sheep-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e8f5e0, #c8e6b0);
  overflow: hidden;
}
.sheep-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.sheep-card:hover .sheep-img-wrap img { transform: scale(1.05); }
.sheep-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, #d4edba 0%, #a8d580 100%);
}

.sheep-status {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sheep-status.available { background: #D1FAE5; color: #065F46; }
.sheep-status.premium   { background: #FEF3C7; color: #92400E; }
.sheep-status.limited   { background: #FEE2E2; color: #991B1B; }
.sheep-status.sold-out  { background: #F3F4F6; color: #6B7280; }

.sheep-body { padding: 24px; }

.sheep-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sheep-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
  font-family: 'Playfair Display', serif;
}
.sheep-breed {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}
.sheep-rating {
  text-align: right;
  flex-shrink: 0;
}
.stars { font-size: 0.9rem; color: var(--accent); display: block; }
.rating-num { font-size: 0.78rem; color: var(--text-light); font-weight: 600; }

.sheep-bio {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 18px;
  font-style: normal;
}

.sheep-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
}
.spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spec-key {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.spec-val {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 700;
}

.sheep-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.trait {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(43, 95, 30, 0.07);
  color: var(--primary);
  border: 1px solid rgba(43, 95, 30, 0.12);
}

/* ════════════════════════════════════════════════════════════
   FEATURES
   ════════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  transition: all var(--transition-slow);
}
.feature-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(201, 162, 39, 0.3);
  transform: translateY(-4px);
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(201, 162, 39, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(201, 162, 39, 0.2);
}
.feature-icon { font-size: 1.6rem; }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.35;
}
.feature-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin-bottom: 18px;
}
.feature-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.2);
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.04em;
}

.features-cta {
  text-align: center;
  padding: 48px;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
}
.features-cta p {
  font-size: 1.4rem;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  font-family: 'Playfair Display', serif;
  margin-bottom: 28px;
}

/* ════════════════════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 5rem;
  font-family: 'Playfair Display', serif;
  color: var(--border);
  line-height: 1;
  pointer-events: none;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.testimonial-featured {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
}
.testimonial-featured::before { color: rgba(255,255,255,.15); }
.testimonial-featured .testimonial-stars { color: var(--accent-light); }
.testimonial-featured .testimonial-text  { color: rgba(255,255,255,.9); }
.testimonial-featured .testimonial-author strong { color: var(--white); }
.testimonial-featured .testimonial-author span   { color: rgba(255,255,255,.6); }
.testimonial-featured .author-avatar {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--text); }
.testimonial-author span   { font-size: 0.78rem; color: var(--text-light); }

/* ════════════════════════════════════════════════════════════
   PRESS
   ════════════════════════════════════════════════════════════ */
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.press-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
}
.press-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.press-logo {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--border-light);
  letter-spacing: 0.02em;
}
.press-quote {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
  font-style: italic;
}

/* ════════════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════════════ */
.contact { background: var(--dark); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-copy .section-eyebrow { color: var(--accent); background: rgba(201, 162, 39, 0.12); }
.contact-copy .section-title { color: var(--white); }

.contact-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-feat {
  display: flex;
  align-items: center;
  gap: 16px;
}
.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-feat strong { display: block; color: var(--white); font-size: 0.95rem; margin-bottom: 2px; }
.contact-feat span   { font-size: 0.82rem; color: rgba(255,255,255,.45); }

/* Form Card */
.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
}

.form-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1.5px solid var(--border-light);
}
.form-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  font-family: 'Playfair Display', serif;
}
.form-header p {
  font-size: 0.88rem;
  color: var(--text-light);
}

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

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(43, 95, 30, 0.1);
  background: var(--white);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

/* Checkbox */
.form-checkbox { margin-bottom: 24px; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  margin-top: 1px;
  background: var(--bg);
}
.checkbox-label input:checked ~ .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox-label input:checked ~ .checkmark::after {
  content: '✓';
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

/* reCAPTCHA container */
.recaptcha-wrap {
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-start;
}
.recaptcha-wrap .g-recaptcha {
  transform-origin: left top;
}
/* Scale down on very narrow screens */
@media (max-width: 360px) {
  .recaptcha-wrap .g-recaptcha {
    transform: scale(0.88);
  }
}

.form-disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 16px;
  line-height: 1.5;
}
.form-disclaimer a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 24px;
}
.form-success.show { display: block; }
.success-icon { font-size: 4rem; margin-bottom: 16px; animation: float 2s ease-in-out infinite; }
.form-success h3 { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.form-success p  { color: var(--text-mid); font-size: 0.95rem; line-height: 1.7; }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.footer { background: var(--dark-mid); color: rgba(255,255,255,.65); }

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-logo .logo-icon { font-size: 1.6rem; }
.footer-logo strong { font-weight: 800; color: var(--accent); }

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,.45);
  margin-bottom: 24px;
}

.footer-funding {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.funding-badge {
  background: rgba(201, 162, 39, 0.15);
  color: var(--accent);
  border: 1px solid rgba(201, 162, 39, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.06em;
}
.funding-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,.4);
}
.footer-backer {
  font-size: 0.82rem;
  color: rgba(255,255,255,.4);
}
.footer-backer strong { color: rgba(255,255,255,.65); }

.footer-links-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.45);
  transition: color var(--transition);
}
.footer-links-col a:hover { color: var(--white); }

.footer-bottom {
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px;
}
.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,.3);
}
.footer-disclaimer {
  font-size: 0.82rem;
  color: rgba(255,255,255,.3);
  text-align: right;
}
.footer-disclaimer strong { color: rgba(255,255,255,.5); }
.footer-disclaimer em { font-style: italic; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .flock-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .section-pad { padding: 72px 0; }

  .mission-layout { grid-template-columns: 1fr; gap: 48px; }
  .mission-visual { order: -1; }
  .mission-badge-card { bottom: -16px; right: 16px; }

  .services-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .service-card-featured { transform: scale(1); }
  .service-card-featured:hover { transform: translateY(-6px); }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .press-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  /* ── Navbar: always dark on mobile, stay fixed ─────────── */
  .navbar,
  .navbar.scrolled {
    background: rgba(17, 24, 39, 0.97) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255,255,255,.06);
    padding: 14px 0;
  }
  /* Logo text always white on the dark mobile bar */
  .nav-logo { color: var(--white) !important; }
  /* Hamburger lines always white */
  .hamburger span { background: var(--white) !important; }

  /* ── Nav links (mobile drawer) ──────────────────────────── */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 16px 20px;
    gap: 2px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open a {
    color: rgba(255,255,255,.8);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }
  .nav-links.open a:hover { background: rgba(255,255,255,.08); color: var(--white); }
  .btn-nav   { display: none; }
  .hamburger { display: flex; }

  /* ── Hero ───────────────────────────────────────────────── */
  .hero-content { padding-top: 110px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-social-proof { flex-wrap: wrap; gap: 10px; }
  /* background-attachment: fixed breaks on iOS — disable */
  .features-with-bg::before { background-attachment: scroll; }

  /* ── Stats ──────────────────────────────────────────────── */
  .stats-grid { flex-direction: column; gap: 0; }
  .stat-item { padding: 20px 0; border-bottom: 1px solid var(--border); width: 100%; }
  .stat-item:last-child { border-bottom: none; }
  .stat-divider { display: none; }

  /* ── Grids ──────────────────────────────────────────────── */
  .flock-grid       { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .features-grid    { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* ── Mission badge: don't overflow ─────────────────────── */
  .mission-badge-card { right: 0; bottom: -12px; }

  /* ── Footer ─────────────────────────────────────────────── */
  .footer-top-grid  { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-disclaimer { text-align: center; }

  /* ── Form ───────────────────────────────────────────────── */
  .form-card { padding: 28px 20px; }
  .form-row  { grid-template-columns: 1fr; }

  /* ── reCAPTCHA: scale to fit narrow screens ─────────────── */
  .recaptcha-wrap { overflow: hidden; }
  .recaptcha-wrap .g-recaptcha { transform: scale(0.9); transform-origin: left top; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .section-pad { padding: 56px 0; }
  /* hero-content padding-top kept at 110px from 768px rule — don't reduce it here */
  .contact-layout { gap: 36px; }
  .trusted-logos  { gap: 8px; }
  .trust-logo { font-size: 0.78rem; padding: 6px 14px; }
  /* Sheep cards: slightly less side padding on very small screens */
  .sheep-body { padding: 18px; }
  /* Stats numbers slightly smaller */
  .stat-number { font-size: 2.1rem; }
}

/* ════════════════════════════════════════════════════════════
   SECTION BACKGROUND IMAGES
   ════════════════════════════════════════════════════════════ */

/* Features section — flock-rams-group.jpg as deep background */
.features-with-bg {
  position: relative;
  background: var(--dark);
}
.features-with-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/flock-rams-group.jpg');
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.features-with-bg > * { position: relative; z-index: 1; }

/* Testimonials section — flock-portrait.jpg as subtle background */
.testimonials-with-bg {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
.testimonials-with-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/flock-portrait.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}
.testimonials-with-bg > * { position: relative; z-index: 1; }

/* Mission image — ensure it fills the container richly */
.mission-img-wrap img {
  object-position: center 30%;
}

/* Sheep card images — optimise focal point per sheep */
.sheep-card:nth-child(1) .sheep-img-wrap img { object-position: center 20%; }
.sheep-card:nth-child(2) .sheep-img-wrap img { object-position: center 25%; }
.sheep-card:nth-child(3) .sheep-img-wrap img { object-position: center 15%; }
.sheep-card:nth-child(4) .sheep-img-wrap img { object-position: center 20%; }

/* ── UTILITY: Remove fallback when real image loads ──────── */
.sheep-img-wrap img:not([src=""]):not([src*="placeholder"]) + .sheep-img-fallback,
.mission-img-wrap img:not([src=""]) + .mission-img-fallback { display: none; }

/* ── Scrollbar styling ───────────────────────────────────── */
::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Selection color ─────────────────────────────────────── */
::selection { background: rgba(43, 95, 30, 0.2); color: var(--primary-dark); }
