/* ==========================================================================
   Farm Fayre Calculator - Shared styles
   Used by /, /seller, /buyer
   ========================================================================== */

@font-face { font-family: 'Carlito'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/carlito-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Carlito'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/fonts/carlito-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Carlito'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/fonts/carlito-latin-400-italic.woff2') format('woff2'); }

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/fonts/poppins-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 500; font-display: swap;
  src: url('/fonts/poppins-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2'); }

:root {
  --brand-blue: #21285D;
  --brand-green: #76BC43;
  --brand-green-dark: #5FA032;
  --brand-grey: #4A4F54;
  --brand-grey-light: #8B8E93;
  --cream: #F4EFE3;
  --cream-deep: #EBE4D1;
  --rule: #D8D0BC;
  --ink: #1A1A1A;
  --white: #FFFFFF;
  --amber: #B45309;
}

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

html, body {
  background: var(--cream);
  font-family: 'Carlito', Calibri, Arial, sans-serif;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 15% 5%, rgba(33,40,93,0.04) 0%, transparent 45%),
    radial-gradient(circle at 90% 95%, rgba(118,188,67,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Page wrapper */
.page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 32px 40px;
  position: relative;
  z-index: 1;
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img { height: 44px; width: auto; display: block; }

.brand-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--brand-blue);
  letter-spacing: -0.01em;
}

.brand-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-green-dark);
}

.topbar-meta {
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-blue);
  font-weight: 700;
  line-height: 1.5;
}
.topbar-meta .sub {
  display: block;
  color: var(--brand-grey-light);
  font-weight: 400;
  letter-spacing: 0.18em;
  margin-top: 3px;
}

/* Footer */
.footer-line {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--brand-grey-light);
  letter-spacing: 0.04em;
}

.footer-line .other-side {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.15s ease;
}
.footer-line .other-side:hover {
  border-bottom-color: var(--brand-green);
}

.footer-line .other-side::after {
  content: ' →';
  color: var(--brand-green-dark);
}

.footer-attr {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--brand-grey-light);
}

/* ==========================================================================
   MOBILE STICKY FIX
   On narrow viewports, layout stacks single-column. Sticky form-card would
   glue to the top and let the infographic slide under it. Disable sticky.
   ========================================================================== */
@media (max-width: 980px) {
  .form-card {
    position: static !important;
    top: auto !important;
  }
}
