@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:root {
  --primary-hue: 51;
  --primary: hsl(var(--primary-hue), 100%, 48%);
  --primary-light: hsl(var(--primary-hue), 100%, 65%);
  --primary-dark: hsl(38, 100%, 22%);
  --primary-glow: hsla(var(--primary-hue), 100%, 48%, 0.15);
  
  --secondary: hsl(210, 24%, 16%);
  --secondary-light: hsl(210, 16%, 28%);
  
  --bg-main: hsl(35, 25%, 98%);
  --bg-surface: hsl(0, 0%, 100%);
  --bg-surface-alt: hsl(var(--primary-hue), 20%, 94%);
  --bg-dark: hsl(210, 24%, 11%);
  
  --text-main: hsl(210, 24%, 16%);
  --text-muted: hsl(210, 15%, 38%);
  --text-light: hsl(0, 0%, 100%);
  
  --success: hsl(142, 60%, 45%);
  --success-glow: hsla(142, 60%, 45%, 0.15);
  --warning: hsl(38, 92%, 50%);
  --danger: hsl(354, 70%, 54%);
  --danger-glow: hsla(354, 70%, 54%, 0.15);
  
  --border-color: hsl(210, 14%, 90%);
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --border-radius-sm: 6px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px rgba(30, 20, 0, 0.08);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--secondary);
  color: var(--text-light);
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--secondary);
  font-weight: 700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  isolation: isolate;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  color: var(--secondary);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}

.logo-name {
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-name [data-i18n="logo_span"] {
  color: var(--primary-dark);
}

.logo-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
}

.logo svg {
  fill: var(--primary);
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo:hover svg {
  animation: hover-buzz 4s ease-in-out infinite;
}

nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

nav a:hover, nav a.active {
  color: var(--primary-dark);
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-mobile-actions {
  display: none;
}

/* Hamburger Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.hamburger .bar {
  height: 3px;
  width: 100%;
  background-color: var(--secondary);
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* Hamburger active animation */
.hamburger.active .bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.btn-header {
  background: var(--secondary);
  color: var(--text-light);
  padding: 8px 18px;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.btn-header:hover {
  background: var(--primary-dark);
  color: var(--secondary);
}

.btn-header-primary {
  background: var(--primary);
  color: var(--secondary);
  border: none;
  cursor: pointer;
}

.btn-header-primary:hover {
  background: var(--primary-dark);
  color: var(--text-light);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px 0;
  background: linear-gradient(135deg, hsla(38, 40%, 96%, 0.95) 0%, hsla(0, 0%, 100%, 0.9) 100%), url('images/elgin_valley.webp') no-repeat center center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-content h1 span {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  margin: -8px 0 16px 0;
  max-width: 600px;
}

.hero-content > p:not(.hero-tagline) {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 600px;
}

.cta-group {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--secondary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--secondary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-surface-alt);
  transform: translateY(-2px);
}

.hero-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--primary-glow);
  color: var(--primary-dark);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid hsla(var(--primary-hue), 95%, 52%, 0.2);
}

/* Quick Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -30px;
  position: relative;
  z-index: 10;
}

.stat-item {
  background: var(--bg-surface);
  padding: 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-dark);
  font-family: 'Outfit', sans-serif;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Standard Section */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-header h2 {
  font-size: 38px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

.section-title-highlight {
  position: relative;
  display: inline-block;
}

.section-title-highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--primary-glow);
  z-index: -1;
}

/* Standard Cards */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.standard-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 35px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.standard-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.standard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--primary-dark);
  opacity: 0;
  transition: var(--transition-smooth);
}

.standard-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--border-radius-md);
  background: var(--primary-glow);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
}

.standard-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.standard-card p {
  color: var(--text-muted);
  font-size: 15px;
}

.standard-list {
  margin-top: 16px;
  list-style: none;
}

.standard-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-main);
}

.standard-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Interactive Tabs Section */
.interactive-panel {
  background: var(--bg-surface);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 550px;
}

.tab-nav {
  background: var(--bg-surface-alt);
  border-right: 1px solid var(--border-color);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tab-nav-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 10px;
  padding-left: 10px;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 14px 20px;
  border-radius: var(--border-radius-md);
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--secondary);
}

.tab-btn.active {
  background: var(--bg-surface);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-dark);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.tab-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.tab-content-wrapper {
  padding: 40px;
  position: relative;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.tab-panel.active {
  display: block;
}

/* Tool Grid / Form styles */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--secondary);
}

.form-select, .form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-main);
  background-color: var(--bg-surface);
  transition: var(--transition-smooth);
}

.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.range-slider-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.range-slider {
  flex-grow: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 5px;
  background: var(--border-color);
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-dark);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-value {
  font-weight: 700;
  font-size: 16px;
  width: 50px;
  text-align: right;
  color: var(--secondary);
}

/* Estimator Results Card */
.results-card {
  background: var(--bg-surface-alt);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.results-title {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.result-row:last-of-type {
  margin-bottom: 0;
  border-top: 1px dashed var(--border-color);
  padding-top: 16px;
  margin-top: 16px;
}

.result-label {
  font-size: 15px;
  color: var(--text-muted);
}

.result-val {
  font-weight: 700;
  font-size: 18px;
  color: var(--secondary);
  text-align: right;
  white-space: nowrap;
}

.result-val.highlight {
  font-size: 32px;
  color: var(--primary-dark);
  font-family: 'Outfit', sans-serif;
}

.result-val.discount {
  color: var(--text-main);
}

.cost-estimate {
  font-size: 24px;
  color: var(--secondary);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

/* Weather flight widget */
.flight-gauge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-surface);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: 30px;
  height: 100%;
}

.flight-dial {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flight-dial-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.flight-dial-bg {
  fill: none;
  stroke: var(--bg-surface-alt);
  stroke-width: 12;
}

.flight-dial-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.6s ease;
}

.flight-dial-value {
  position: absolute;
  font-size: 36px;
  font-weight: 800;
  color: var(--secondary);
  font-family: 'Outfit', sans-serif;
}

.flight-status-badge {
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.flight-status-optimal {
  background: var(--success-glow);
  color: var(--success);
}

.flight-status-suboptimal {
  background: var(--primary-glow);
  color: var(--primary-dark);
}

.flight-status-danger {
  background: var(--danger-glow);
  color: var(--danger);
}

.flight-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 250px;
}

/* Audit Checklist layout */
.audit-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
}

.audit-groups {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.audit-group {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
}

.audit-group-title {
  font-size: 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.audit-group-title svg {
  width: 22px;
  height: 22px;
  fill: var(--primary-dark);
}

.checklist {
  list-style: none;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.checklist-item:hover {
  background: var(--bg-main);
}

.checklist-checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.checklist-item.checked .checklist-checkbox {
  background: var(--success);
  border-color: var(--success);
}

.checklist-checkbox::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: none;
}

.checklist-item.checked .checklist-checkbox::after {
  display: block;
}

.checklist-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.checklist-item.checked .checklist-label {
  color: var(--text-muted);
  text-decoration: line-through;
}

.checklist-detail {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Audit Score panel */
.score-panel {
  background: var(--bg-surface-alt);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: 30px;
  text-align: center;
  align-self: flex-start;
  position: sticky;
  top: 100px;
}

.score-dial {
  font-size: 64px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--secondary);
  line-height: 1;
  margin: 20px 0;
}

.score-progress-bar {
  height: 10px;
  background: var(--border-color);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 20px;
}

.score-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--success));
  border-radius: 5px;
  transition: width 0.5s ease-out, background 0.3s ease;
}

.audit-grade {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Contract Creator */
.contract-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contract-preview {
  background: white;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  border-radius: 6px;
  padding: 40px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
  max-height: 500px;
  overflow-y: auto;
  border-top: 8px solid var(--secondary);
}

.contract-header {
  text-align: center;
  margin-bottom: 24px;
  font-weight: bold;
}

.contract-section {
  margin-bottom: 18px;
}

.contract-section-title {
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 6px;
  border-bottom: 1px solid #ccc;
}

.contract-preview-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: flex-end;
}

/* Info Alert box */
.info-alert {
  background: var(--primary-glow);
  border-left: 4px solid var(--primary-dark);
  padding: 16px;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--primary-dark);
}

.info-alert strong {
  color: var(--secondary);
}

.calc-disclaimer {
  margin-top: 20px;
  padding: 14px 16px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.calc-disclaimer svg {
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
  flex-shrink: 0;
  margin-top: 1px;
}


/* Footer styling */
body > footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 0 30px 0;
  border-top: 4px solid var(--primary);
}

body > footer a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}

body > footer a:hover {
  color: var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: var(--transition-smooth);
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* Compliance & Accreditation Bar */
.compliance-section {
  padding: 40px 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.compliance-grid {
  display: grid;
  grid-template-columns: 1fr repeat(3, 1.2fr);
  gap: 24px;
  align-items: center;
}

.compliance-title-box h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.25;
}

.compliance-title-box p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.compliance-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-main);
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.compliance-badge:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  background: var(--bg-surface);
}

.badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon svg {
  width: 22px;
  height: 22px;
}

.badge-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary);
}

.badge-text p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Crop Specialisations */
.section-crops {
  background-color: var(--bg-main);
}

.crops-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1200px) {
  .crops-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.crop-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.crop-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.crop-card-image-box {
  background: linear-gradient(135deg, hsl(38, 30%, 94%) 0%, hsl(0, 0%, 100%) 100%);
  padding: 30px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.crop-icon-wrap {
  width: 60px;
  height: 60px;
  background: var(--primary-glow);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crop-icon-wrap svg {
  width: 30px;
  height: 30px;
}

.crop-card-image-box h3 {
  font-size: 20px;
  color: var(--secondary);
}

.crop-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.crop-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.crop-meta {
  background: var(--bg-main);
  padding: 16px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crop-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.meta-label {
  color: var(--text-muted);
  font-weight: 500;
}

.meta-val {
  color: var(--secondary);
  font-weight: 700;
}

/* Strategic Bio-Deployment Protocol Timeline */
.protocol-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.protocol-timeline::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border-color);
}

.protocol-step {
  position: relative;
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.protocol-step:last-child {
  margin-bottom: 0;
}

.protocol-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 4px solid var(--primary);
  color: var(--secondary);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.protocol-step:hover .protocol-badge {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--bg-surface);
  transform: scale(1.1);
}

.protocol-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  flex-grow: 1;
}

.protocol-step:hover .protocol-content {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

.protocol-content h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--secondary);
}

.protocol-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Pollination Calendar Section */
.section-calendar {
  background-color: var(--bg-surface);
}

.calendar-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-main);
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

.control-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-buttons {
  display: flex;
  gap: 8px;
}

.filter-btn {
  background: transparent;
  border: none;
  padding: 6px 16px;
  border-radius: 30px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  color: var(--secondary);
}

.filter-btn.active {
  background: var(--secondary);
  color: var(--text-light);
}

.calendar-wrapper {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-surface);
}

.calendar-scroll {
  overflow-x: auto;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.calendar-table th, .calendar-table td {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  font-size: 14px;
}

.calendar-table th:last-child, .calendar-table td:last-child {
  border-right: none;
}

.calendar-table th {
  background: var(--bg-main);
  color: var(--secondary);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

.calendar-table td {
  color: var(--text-muted);
}

.region-cell {
  text-align: left !important;
  width: 250px;
  background: var(--bg-main);
  position: sticky;
  left: 0;
  z-index: 5;
  border-right: 2px solid var(--border-color) !important;
}

.region-cell strong {
  display: block;
  font-size: 15px;
  color: var(--secondary);
  font-family: 'Outfit', sans-serif;
}

.region-cell span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.active-month {
  font-weight: 600;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

.active-month.berries {
  background: rgba(230, 81, 0, 0.08);
  color: hsl(20, 90%, 45%);
}

.active-month.stone-fruit {
  background: var(--primary-glow);
  color: var(--primary-dark);
}

.active-month.seed-crop {
  background: rgba(46, 125, 50, 0.08);
  color: hsl(120, 45%, 35%);
}

.active-month.berries.stone-fruit {
  background: linear-gradient(180deg, rgba(230, 81, 0, 0.04) 0%, var(--primary-glow) 100%);
  color: var(--primary-dark);
}

.crop-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.legend-color {
  width: 24px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.legend-color.berries {
  background: hsl(20, 90%, 65%);
}

.legend-color.stone-fruit {
  background: var(--primary-light);
}

.legend-color.seed-crop {
  background: hsl(120, 45%, 60%);
}

.calendar-row.dimmed {
  opacity: 0.25;
  filter: grayscale(50%);
}

.active-month.dimmed-cell {
  opacity: 0.15;
}

/* Peak Demand Highlight styling */
.calendar-table th.peak-month-header {
  position: relative;
  background: var(--primary-glow) !important;
  color: var(--primary-dark) !important;
  border-top: 3px solid var(--primary) !important;
  padding-top: 28px !important; /* space for badge */
}

.calendar-table th.peak-month-header::after {
  content: attr(data-badge);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 800;
  color: var(--text-light);
  background-color: var(--primary-dark);
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  line-height: 1;
}

.calendar-table td.peak-month-cell {
  background-color: rgba(245, 124, 0, 0.02) !important;
  border-left: 1px dashed rgba(245, 124, 0, 0.12) !important;
  border-right: 1px dashed rgba(245, 124, 0, 0.12) !important;
}

.calendar-table tr:hover td.peak-month-cell {
  background-color: rgba(245, 124, 0, 0.05) !important;
}

/* Orchard FAQ Accordion */
.section-faq {
  background-color: var(--bg-main);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.faq-item[open] {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  outline: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--text-muted);
  transition: background-color 0.3s ease;
}

.faq-icon::before {
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
}

.faq-icon::after {
  top: 0;
  left: 8px;
  width: 2px;
  height: 18px;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after {
  background-color: var(--primary-dark);
}

.faq-answer {
  padding: 0 24px 24px 24px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border-color);
  margin-top: 0;
  padding-top: 16px;
  animation: slideDown 0.3s ease-out;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hover-buzz {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(3deg); }
}

/* Responsive breakdowns */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  nav.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  nav a {
    padding: 14px 24px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 16px;
    text-align: left;
  }

  nav a:last-of-type {
    border-bottom: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
    padding: 0 10px;
  }
  .standards-grid {
    grid-template-columns: 1fr;
  }
  .interactive-panel {
    grid-template-columns: 1fr;
  }
  .tab-nav {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    padding: 15px;
    gap: 8px;
  }
  .tab-btn {
    white-space: nowrap;
    padding: 10px 16px;
  }
  .tab-btn.active {
    border-left: none;
    border-bottom: 4px solid var(--primary-dark);
  }
  .tool-grid, .audit-container, .contract-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Compliance responsive */
  .compliance-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .compliance-title-box {
    text-align: center;
  }
  
  /* Crops responsive */
  .crops-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Protocol timeline responsive */
  .protocol-timeline::before {
    left: 25px;
  }
  .protocol-step {
    gap: 16px;
  }
  .protocol-badge {
    width: 54px;
    height: 54px;
    font-size: 18px;
    border-width: 3px;
  }
  
  /* Calendar responsive */
  .calendar-legend {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .logo-tagline {
    display: none;
  }

  .logo-name {
    font-size: 20px;
  }

  .header-actions {
    display: none !important;
  }

  .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 36px;
  }
  .hero-tagline {
    font-size: 18px;
    margin-bottom: 12px;
  }
  .cta-group {
    flex-direction: column;
  }
  .stats-bar {
    grid-template-columns: 1fr;
  }
  .tab-nav {
    padding: 10px;
  }
  .tab-content-wrapper {
    padding: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  /* Protocol extra small responsive */
  .protocol-timeline::before {
    display: none;
  }
  .protocol-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .protocol-badge {
    margin-bottom: 8px;
  }
  
  /* Calendar extra small responsive */
  .calendar-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .control-group {
    flex-direction: column;
    border-radius: var(--border-radius-md);
    padding: 15px;
  }
  .filter-buttons {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .filter-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Image Assets & Banner Styles */
.logo-img {
  height: 38px;
  width: auto;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.crop-card-banner {
  height: 180px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.crop-card:hover .crop-card-banner {
  transform: scale(1.02);
}

.protocol-img-container {
  margin-top: 20px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  max-width: 480px;
  box-shadow: var(--shadow-sm);
}

.protocol-img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.protocol-img:hover {
  transform: scale(1.02);
}

/* --- CONTACT A BEEKEEPER MODAL & FAB --- */

/* Crop Card Inquire Button */
.btn-crop-inquire {
  margin-top: 16px;
  background: transparent;
  border: 1.5px solid var(--primary-dark);
  color: var(--primary-dark);
  padding: 10px 16px;
  border-radius: var(--border-radius-md);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
  text-align: center;
}

.btn-crop-inquire:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(220, 140, 10, 0.15);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

/* Modal Card */
.modal-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--bg-surface-alt);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 36px;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: var(--secondary);
  color: white;
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.modal-header h2 {
  font-size: 32px;
  color: var(--secondary);
  margin-bottom: 6px;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Modal Form styling */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .modal-card {
    padding: 24px;
  }
}

.helper-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* Success Screen styling */
.success-screen {
  text-align: center;
  padding: 20px 0;
  animation: fadeIn 0.5s ease-in-out;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--success-glow);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.success-screen h3 {
  font-size: 26px;
  color: var(--secondary);
  margin-bottom: 12px;
}

.success-screen p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto 30px auto;
}

.success-summary {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  text-align: left;
  max-width: 550px;
  margin: 0 auto;
}

.success-summary h4 {
  font-size: 16px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  font-weight: 700;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
  padding-bottom: 8px;
  font-size: 14px;
}

.summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-row strong {
  color: var(--text-muted);
}

.summary-row span {
  font-weight: 600;
  color: var(--secondary);
}

/* Floating Action Button (FAB) */
.fab-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3), 0 8px 10px -6px rgba(15, 23, 42, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
}

.fab-contact svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
  transition: var(--transition-smooth);
}

.fab-contact span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.4s ease, opacity 0.3s ease;
}

.fab-contact:hover {
  transform: translateY(-4px) scale(1.02);
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.4);
}

.fab-contact:hover svg {
  fill: white;
  animation: hover-buzz 0.5s ease-in-out infinite alternate;
}

.fab-contact:hover span {
  max-width: 150px;
  opacity: 1;
}

/* Modal form adjustments */
textarea.form-input {
  resize: vertical;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- PREMIUM FORM INPUT WRAPPER & ICON STYLES --- */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-wrapper .form-input,
.input-wrapper .form-select {
  padding-left: 46px !important;
  height: 48px;
  box-sizing: border-box;
}

.input-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-smooth);
  z-index: 5;
}

/* focus states */
.input-wrapper:focus-within .input-icon {
  fill: var(--primary-dark);
  transform: scale(1.1);
}

.input-wrapper:focus-within .form-input,
.input-wrapper:focus-within .form-select {
  border-color: var(--primary-dark) !important;
  box-shadow: 0 0 0 4px var(--primary-glow) !important;
}

/* Modal text input placeholders */
.form-input::placeholder {
  color: hsl(210, 8%, 70%);
  font-size: 14px;
}

/* Modal form label enhancements */
.form-group label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--secondary-light);
  margin-bottom: 6px;
}

/* Textarea extra styling */
textarea.form-input {
  line-height: 1.5;
  min-height: 80px;
  padding: 14px 16px;
  box-sizing: border-box;
  transition: var(--transition-smooth);
}

textarea.form-input:focus {
  border-color: var(--primary-dark) !important;
  box-shadow: 0 0 0 4px var(--primary-glow) !important;
  outline: none;
}

/* submit button extra style */
#btn-submit-inquiry {
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: var(--transition-smooth);
}

#btn-submit-inquiry:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

#btn-submit-inquiry svg {
  transition: var(--transition-smooth);
}

#btn-submit-inquiry:hover svg {
  transform: translateX(4px) translateY(-1px);
}

/* Custom Language Dropdown Styling */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--border-radius-md);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.lang-dropdown-trigger:hover {
  border-color: var(--primary);
  background: var(--bg-surface-alt);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.lang-dropdown-trigger svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.lang-dropdown-trigger:hover svg {
  color: var(--primary-dark);
}

.lang-dropdown-trigger svg.caret-icon {
  width: 12px;
  height: 12px;
}

.lang-dropdown.active .lang-dropdown-trigger svg.caret-icon {
  transform: rotate(180deg);
}

/* Glassmorphic Dropdown Menu (Light theme matching header) */
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

.lang-dropdown.active .lang-dropdown-menu {
  display: flex;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-align: left;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-dropdown-item:hover {
  background: var(--primary-glow);
  color: var(--primary-dark);
}

.lang-dropdown-item.active {
  background: var(--primary);
  color: var(--secondary);
  font-weight: 700;
}

/* Mobile Language Dropdown */
.lang-dropdown-mobile {
  width: 100%;
  margin-bottom: 12px;
}

.lang-dropdown-mobile .lang-dropdown-trigger {
  width: 100%;
  justify-content: space-between;
  box-sizing: border-box;
}

.lang-dropdown-mobile .lang-dropdown-menu {
  width: 100%;
  left: 0;
  box-sizing: border-box;
}

/* Card Source Footnote */
.card-source {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
  line-height: 1.4;
}

.card-source::before {
  content: 'ⓘ';
  font-weight: bold;
  color: var(--primary-dark);
}

/* Crop Metrics Data Table & Direct Answer Buffers for AEO */
.crops-table-container {
  margin: 30px auto 40px auto;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-surface);
  max-width: 900px;
}

.crops-table-scroll {
  overflow-x: auto;
}

.crops-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.crops-table th, .crops-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.crops-table tr:last-child td {
  border-bottom: none;
}

.crops-table th {
  background: var(--bg-main);
  color: var(--secondary);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  border-bottom: 2px solid var(--border-color);
}

.crops-table td {
  color: var(--text-muted);
}

.crops-table tr:hover {
  background-color: rgba(251, 192, 45, 0.03);
}

.direct-answer-buffer {
  background: var(--bg-surface);
  border-left: 4px solid var(--primary-dark);
  padding: 16px 20px;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  margin: 20px auto 30px auto;
  max-width: 900px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.direct-answer-buffer strong {
  color: var(--secondary);
  display: inline-block;
  margin-right: 4px;
}

/* Trust & Social Proof */
.trust-section {
  background: var(--bg-surface);
}

.availability-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--primary-glow), hsla(var(--primary-hue), 100%, 48%, 0.08));
  border: 1px solid hsla(var(--primary-hue), 100%, 48%, 0.25);
  border-radius: var(--border-radius-lg);
  flex-wrap: wrap;
}

.availability-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.availability-banner h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.availability-banner p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.availability-banner .btn {
  margin-left: auto;
  white-space: nowrap;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  margin: 0;
  box-shadow: var(--shadow-sm);
}

.testimonial-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.testimonial-card footer strong {
  color: var(--secondary);
}

.testimonial-card footer span {
  color: var(--text-muted);
}

.trust-credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.trust-credential {
  padding: 24px;
  background: var(--bg-surface-alt);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
}

.trust-credential h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.trust-credential p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.trust-credential a {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.trust-credential a:hover {
  text-decoration: underline;
}

/* Form error state */
.form-error {
  background: var(--danger-glow);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}

.form-error[hidden] {
  display: none;
}

#btn-submit-inquiry:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .availability-banner {
    flex-direction: column;
    text-align: center;
  }

  .availability-banner .btn {
    margin-left: 0;
    width: 100%;
  }
}

/* Contract print — only the agreement preview is printed */
@media print {
  body.printing-contract * {
    visibility: hidden;
  }

  body.printing-contract #contractDocument,
  body.printing-contract #contractDocument * {
    visibility: visible;
  }

  body.printing-contract #contractDocument {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    border: none;
    padding: 0;
    font-size: 12pt;
  }
}

