/* ─────────────────────────────────────────────
   Riverton Farms LLC — Editorial Style Sheet
   Palette: Midnight Blue (#0A1F3F) + Mint (#98D4C8)
   Fonts: Playfair Display (headlines) + Inter (body)
───────────────────────────────────────────── */

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

:root {
  --midnight: #0A1F3F;
  --midnight-light: #132D54;
  --midnight-dark: #061529;
  --mint: #98D4C8;
  --mint-light: #B8E6DC;
  --mint-dark: #6BBFA8;
  --cream: #F7F5F0;
  --white: #FFFFFF;
  --text-dark: #0A1F3F;
  --text-light: #F7F5F0;
  --text-muted: #5A7A9A;
  --text-muted-light: rgba(247, 245, 240, 0.6);
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(10, 31, 63, 0.08);
  --shadow-md: 0 4px 20px rgba(10, 31, 63, 0.12);
  --shadow-lg: 0 12px 48px rgba(10, 31, 63, 0.16);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.938rem;
  font-weight: 500;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background: var(--mint);
  color: var(--midnight);
  border-color: var(--mint);
}

.btn-primary:hover {
  background: var(--mint-light);
  border-color: var(--mint-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn-dark {
  background: var(--midnight);
  color: var(--white);
  border-color: var(--midnight);
}

.btn-dark:hover {
  background: var(--midnight-light);
  border-color: var(--midnight-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-light {
  background: var(--white);
  color: var(--midnight);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--midnight);
  border-color: var(--midnight);
}

.btn-secondary:hover {
  background: var(--midnight);
  color: var(--white);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ─── Section Labels ─── */
.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mint-dark);
  background: rgba(152, 212, 200, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 31, 63, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(152, 212, 200, 0.1);
  transition: background var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logo-mark {
  color: var(--mint);
}

.logo-light {
  color: var(--white);
}

/* ─── Navigation ─── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list a {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(247, 245, 240, 0.75);
  transition: color var(--transition);
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--mint);
  transition: width var(--transition);
}

.nav-list a:hover {
  color: var(--white);
}

.nav-list a::after:hover {
  width: 100%;
}

.nav-cta {
  font-weight: 500 !important;
  color: var(--mint) !important;
  border: 1.5px solid var(--mint);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: all var(--transition) !important;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--mint);
  color: var(--midnight) !important;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--midnight);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 21, 41, 0.92) 0%,
    rgba(10, 31, 63, 0.85) 40%,
    rgba(19, 45, 84, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.813rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-headline .accent {
  color: var(--mint);
  font-style: italic;
  font-weight: 600;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(247, 245, 240, 0.7);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(247, 245, 240, 0.4);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── Services ─── */
.services {
  padding: 100px 0;
  background: var(--cream);
}

.services .container {
  text-align: center;
}

.services .section-sub {
  margin: 0 auto 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid rgba(10, 31, 63, 0.06);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(152, 212, 200, 0.3);
}

.service-icon {
  color: var(--mint-dark);
  margin-bottom: 20px;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.938rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── About ─── */
.about {
  padding: 100px 0;
  background: var(--white);
  overflow: hidden;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image {
  width: 100%;
  height: 720px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: var(--mint);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.4;
}

.about-content .section-label {
  margin-bottom: 16px;
}

.about-content .section-title {
  margin-bottom: 24px;
}

.about-body {
  font-size: 1.063rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin: 32px 0 40px;
  padding: 28px 0;
  border-top: 1px solid rgba(10, 31, 63, 0.08);
  border-bottom: 1px solid rgba(10, 31, 63, 0.08);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.stat-label {
  font-size: 0.813rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ─── Approach ─── */
.approach {
  padding: 100px 0;
  background: var(--midnight);
  color: var(--white);
}

.approach .container {
  text-align: center;
}

.approach .section-label {
  background: rgba(152, 212, 200, 0.15);
  color: var(--mint);
}

.approach .section-title {
  color: var(--white);
  margin-bottom: 16px;
}

.approach .section-sub {
  color: rgba(247, 245, 240, 0.6);
  margin: 0 auto 60px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}

.approach-step {
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.approach-step:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(152, 212, 200, 0.2);
  transform: translateY(-4px);
}

.step-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--mint);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 16px;
}

.approach-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.approach-desc {
  font-size: 0.938rem;
  color: rgba(247, 245, 240, 0.6);
  line-height: 1.7;
}

/* ─── Testimonials ─── */
.testimonials {
  padding: 100px 0;
  background: var(--cream);
}

.testimonials .container {
  text-align: center;
}

.testimonials .section-sub {
  margin: 0 auto 60px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid rgba(10, 31, 63, 0.06);
  position: relative;
  transition: all var(--transition);
}

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

.quote-mark {
  color: var(--mint);
  opacity: 0.4;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  font-style: normal;
}

/* ─── CTA Banner ─── */
.cta-banner {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 21, 41, 0.9) 0%,
    rgba(10, 31, 63, 0.85) 100%
  );
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta-text {
  font-size: 1.125rem;
  color: rgba(247, 245, 240, 0.7);
  line-height: 1.75;
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── Contact ─── */
.contact {
  padding: 100px 0;
  background: var(--white);
}

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

.contact-intro {
  font-size: 1.063rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  color: var(--mint-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.contact-value a {
  color: var(--midnight);
  border-bottom: 1px solid rgba(10, 31, 63, 0.2);
  transition: all var(--transition);
}

.contact-value a:hover {
  color: var(--mint-dark);
  border-color: var(--mint-dark);
}

/* ─── Form ─── */
.contact-form-wrap {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(10, 31, 63, 0.06);
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.813rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.938rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid rgba(10, 31, 63, 0.12);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--mint-dark);
  box-shadow: 0 0 0 3px rgba(152, 212, 200, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.813rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

/* Success State */
.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success hidden,
.form-success[hidden] {
  display: none;
}

.form-success svg {
  color: var(--mint-dark);
  margin: 0 auto 20px;
}

.form-success h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.form-success p {
  font-size: 0.938rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--midnight-dark);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-tagline {
  font-size: 0.938rem;
  color: rgba(247, 245, 240, 0.5);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.938rem;
  color: rgba(247, 245, 240, 0.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--mint);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact p {
  font-size: 0.875rem;
  color: rgba(247, 245, 240, 0.5);
  line-height: 1.6;
}

.footer-contact a {
  color: rgba(247, 245, 240, 0.6);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--mint);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.813rem;
  color: rgba(247, 245, 240, 0.35);
}

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .services-grid,
  .approach-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    height: 480px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

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

  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--midnight-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
  }

  .nav-list.open {
    transform: translateX(0);
  }

  .nav-list a {
    font-size: 1rem;
    color: rgba(247, 245, 240, 0.8);
  }

  .nav-cta {
    margin-top: 8px;
  }

  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 100px 20px 60px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-form-wrap {
    padding: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .services,
  .about,
  .approach,
  .testimonials,
  .cta-banner,
  .contact {
    padding: 64px 0;
  }

  .hero-headline {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
}
