/* ==========================================================================
   Alfa Agro Industries - Core Design Tokens & Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Brand Color Palette */
  --color-navy: #0B3D5C;
  --color-navy-dark: #07263A;
  --color-navy-deep: #051A28;
  --color-navy-light: #15557E;
  --color-navy-muted: rgba(11, 61, 92, 0.08);

  --color-teal: #1BA6C9;
  --color-teal-dark: #12829F;
  --color-teal-light: #38BDF8;
  --color-teal-soft: #E0F2FE;
  --color-teal-glow: rgba(27, 166, 201, 0.25);

  --color-green: #16A34A;
  --color-green-light: #22C55E;
  --color-green-soft: #DCFCE7;
  --color-green-glow: rgba(34, 197, 94, 0.2);

  --color-amber: #F59E0B;
  --color-amber-soft: #FEF3C7;

  /* Surfaces & Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-subtle: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-dark: #071E2E;
  --bg-dark-card: #0B2B40;

  /* Typography Colors */
  --text-main: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-inverse: #FFFFFF;
  --text-inverse-muted: #CBD5E1;

  /* Borders & Dividers */
  --border-light: #E2E8F0;
  --border-subtle: #EDF2F7;
  --border-focus: #1BA6C9;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(11, 61, 92, 0.06), 0 1px 2px rgba(11, 61, 92, 0.04);
  --shadow-md: 0 4px 12px rgba(11, 61, 92, 0.08), 0 2px 4px rgba(11, 61, 92, 0.04);
  --shadow-lg: 0 12px 30px rgba(11, 61, 92, 0.12), 0 4px 8px rgba(11, 61, 92, 0.06);
  --shadow-xl: 0 20px 40px rgba(11, 61, 92, 0.16), 0 8px 16px rgba(11, 61, 92, 0.08);
  --shadow-glow: 0 0 25px rgba(27, 166, 201, 0.35);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1240px;
  --header-height: 80px;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-pad {
  padding-top: 96px;
  padding-bottom: 96px;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--color-teal-soft);
  color: var(--color-teal-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-teal);
  box-shadow: 0 0 8px var(--color-teal);
}

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-navy-light) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--color-teal-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #22B6DC 0%, var(--color-navy) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 166, 201, 0.4);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--color-navy);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--color-teal);
  color: var(--color-teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: #FFFFFF;
  color: var(--color-navy);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn-white:hover {
  background: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-navy);
}

.btn-outline:hover {
  background: var(--color-navy);
  color: #FFFFFF;
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

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

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20BA59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

/* Wave Curve Motif Section Dividers */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  display: block;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 52px;
}

.wave-divider.wave-top {
  transform: rotate(180deg);
}

.wave-fill-surface {
  fill: var(--bg-surface);
}

.wave-fill-subtle {
  fill: var(--bg-subtle);
}

.wave-fill-white {
  fill: #FFFFFF;
}

.wave-fill-dark {
  fill: var(--bg-dark);
}

/* Scroll Animation Utilities */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Pulse animation */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(27, 166, 201, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(27, 166, 201, 0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 0.8s linear infinite;
}
