/* ============================================================
   E-MALTINGBARLEY.COM — Main Stylesheet
   ============================================================ */

/* 1. Design Tokens
   ============================================================ */
:root {
  /* Deep modern emerald — agriculture & sustainability */
  --green-900: #07271b;
  --green-800: #0c3a28;
  --green-700: #114e37;
  --green-600: #1a6749;
  --green-500: #248861;
  --green-400: #45a682;
  --green-100: #dff1e9;
  --green-50:  #eff8f3;

  /* Refined warm gold — malt & brewing heritage */
  --amber-900: #6e4711;
  --amber-700: #c2870f;
  --amber-600: #e0a82e;
  --amber-500: #edb84a;
  --amber-300: #f4d077;
  --amber-100: #fbf0d6;
  --amber-50:  #fdf8ec;

  /* Clean warm neutrals — grain & background warmth */
  --beige-200: #e8e1d2;
  --beige-100: #f2ede1;
  --beige-50:  #f9f6ef;

  /* Modern cool charcoal — body text */
  --gray-900: #11181c;
  --gray-800: #1f292e;
  --gray-700: #38444a;
  --gray-600: #586168;
  --gray-400: #8a939a;
  --gray-200: #d7dcdf;
  --gray-100: #f1f4f5;

  --white: #ffffff;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(7,39,27,0.06), 0 1px 3px rgba(7,39,27,0.08);
  --shadow-md: 0 4px 14px rgba(7,39,27,0.08), 0 2px 6px rgba(7,39,27,0.06);
  --shadow-lg: 0 12px 32px rgba(7,39,27,0.12), 0 4px 12px rgba(7,39,27,0.07);
  --shadow-xl: 0 24px 56px rgba(7,39,27,0.16);

  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;

  --container: 1200px;
  --nav-height: 72px;
}

/* 2. Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* 3. Typography
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--gray-900);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1.1em; color: var(--gray-700); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--gray-600);
}

strong { font-weight: 600; color: var(--gray-900); }
em { font-style: italic; }

/* 4. Layout
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 800px; }
.container--wide   { max-width: 1400px; }

section { padding: 80px 0; }
section.tight { padding: 48px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }

/* 5. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber-700);
  color: var(--white);
  border: 2px solid var(--amber-700);
}
.btn-primary:hover {
  background: var(--amber-600);
  border-color: var(--amber-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-green {
  background: var(--green-700);
  color: var(--white);
  border: 2px solid var(--green-700);
}
.btn-green:hover {
  background: var(--green-600);
  border-color: var(--green-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--amber-700);
  border: 2px solid var(--amber-700);
}
.btn-ghost:hover {
  background: var(--amber-700);
  color: var(--white);
}

/* 6. Navigation
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--green-800);
  height: var(--nav-height);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-mark {
  width: 38px;
  height: 38px;
  background: var(--amber-700);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.nav-logo .logo-text {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.nav-logo .logo-text span {
  color: var(--amber-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-links a.nav-cta {
  background: var(--amber-700);
  color: var(--white);
  padding: 8px 16px;
  margin-left: 8px;
}
.nav-links a.nav-cta:hover {
  background: var(--amber-600);
}

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown > a::after {
  content: '▾';
  font-size: 0.65rem;
  opacity: 0.7;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--green-900);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

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

/* Mobile menu */
.nav-mobile {
  display: none;
  background: var(--green-900);
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  color: rgba(255,255,255,0.85);
  padding: 10px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--amber-300); }

/* 7. Page Hero / Banner
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 55%, var(--green-600) 100%);
  color: var(--white);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 75% 50%, rgba(224,168,46,0.12) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-300);
  margin-bottom: 16px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  max-width: 700px;
}

.hero h1 span { color: var(--amber-300); }

.hero .lead {
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

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

/* Page header (inner pages) */
.page-header {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 100%);
  padding: 56px 0 52px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(224,168,46,0.08) 0%, transparent 70%);
}

.page-header .breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.page-header .breadcrumb a {
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}

.page-header .breadcrumb a:hover { color: var(--amber-300); }
.page-header .breadcrumb span { color: var(--amber-300); }

.page-header h1 { color: var(--white); margin-bottom: 16px; }
.page-header p { color: rgba(255,255,255,0.72); max-width: 620px; font-size: 1.05rem; margin-bottom: 0; }

/* 8. Cards
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--beige-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--green-100);
}

.card-inner { padding: 28px; }

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--green-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card h3 { font-size: 1.15rem; margin-bottom: 10px; }

.card p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 18px; }

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber-700);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.card-link:hover { gap: 10px; color: var(--amber-600); }
.card-link::after { content: '→'; }

/* Stat Card */
.stat-card {
  background: var(--green-800);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  color: var(--white);
  text-align: center;
}

.stat-card .stat-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--amber-300);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.stat-card .stat-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

/* 9. Section Headers
   ============================================================ */
.section-header {
  margin-bottom: 48px;
}

.section-header.centered { text-align: center; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-700);
  margin-bottom: 12px;
}

.section-header h2 { margin-bottom: 16px; }

.section-header p {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
}

.section-header.centered p { margin: 0 auto; }

.section-divider {
  width: 52px;
  height: 3px;
  background: var(--amber-700);
  border-radius: 2px;
  margin: 16px 0;
}

.section-header.centered .section-divider { margin: 16px auto; }

/* 10. Tables
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--beige-200);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead { background: var(--green-800); color: var(--white); }

thead th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr { border-bottom: 1px solid var(--beige-100); transition: var(--transition); }
tbody tr:hover { background: var(--green-50); }
tbody tr:last-child { border-bottom: none; }

tbody td {
  padding: 14px 18px;
  color: var(--gray-700);
  vertical-align: top;
}

tbody td:first-child { font-weight: 600; color: var(--gray-900); }

.table-tag {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
}

/* 11. Highlight Boxes
   ============================================================ */
.highlight-box {
  background: var(--amber-50);
  border-left: 4px solid var(--amber-700);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.highlight-box p { margin-bottom: 0; color: var(--gray-800); }
.highlight-box strong { color: var(--amber-900); }

.info-box {
  background: var(--green-50);
  border-left: 4px solid var(--green-600);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.info-box p { margin-bottom: 0; color: var(--gray-800); }

/* 12. Timeline
   ============================================================ */
.timeline { position: relative; padding-left: 32px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--beige-200);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
  padding-bottom: 8px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber-700);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--amber-700);
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-700);
  margin-bottom: 6px;
}

.timeline-item h4 { margin-bottom: 8px; }
.timeline-item p { font-size: 0.9rem; color: var(--gray-600); }

/* 13. Process Steps
   ============================================================ */
.process-steps { display: flex; flex-direction: column; gap: 0; }

.process-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 40px;
}

.process-step:last-child { padding-bottom: 0; }

.process-step::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: var(--beige-200);
}

.process-step:last-child::after { display: none; }

.step-number {
  width: 56px;
  height: 56px;
  background: var(--green-800);
  color: var(--amber-300);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-content h4 { margin-bottom: 10px; }
.step-content p { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 0; }
.step-content .step-detail {
  display: inline-block;
  background: var(--beige-100);
  border: 1px solid var(--beige-200);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 10px;
  font-family: var(--font-mono);
}

/* 14. Glossary
   ============================================================ */
.glossary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.glossary-nav a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--beige-100);
  color: var(--gray-600);
  transition: var(--transition);
}

.glossary-nav a:hover,
.glossary-nav a.active {
  background: var(--green-800);
  color: var(--white);
}

.glossary-group { margin-bottom: 48px; }

.glossary-letter {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--green-700);
  border-bottom: 2px solid var(--beige-200);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.glossary-term {
  padding: 18px 0;
  border-bottom: 1px solid var(--beige-100);
}

.glossary-term:last-child { border-bottom: none; }

.glossary-term dt {
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
  font-size: 1rem;
}

.glossary-term dd {
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* 15. Map / Regions
   ============================================================ */
.region-card {
  background: var(--white);
  border: 1px solid var(--beige-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.region-card:hover { box-shadow: var(--shadow-md); }

.region-flag {
  font-size: 2rem;
  margin-bottom: 12px;
}

.region-card h3 { font-size: 1.1rem; margin-bottom: 8px; }

.region-card .region-varieties {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.variety-tag {
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  color: var(--amber-900);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.region-card p { font-size: 0.88rem; color: var(--gray-600); margin-bottom: 0; }

/* 16. Forms
   ============================================================ */
.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-900);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(61,139,61,0.12);
}

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

/* 17. Tags / Badges
   ============================================================ */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag-green  { background: var(--green-100); color: var(--green-700); }
.tag-amber  { background: var(--amber-100); color: var(--amber-900); }
.tag-beige  { background: var(--beige-200); color: var(--gray-700); }
.tag-dark   { background: var(--gray-800); color: var(--white); }

/* 18. Metric Cards
   ============================================================ */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.metric-card {
  background: var(--white);
  border: 1px solid var(--beige-200);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
}

.metric-card:hover { box-shadow: var(--shadow-md); }

.metric-card .metric-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-700);
  line-height: 1.1;
  margin-bottom: 8px;
}

.metric-card .metric-unit {
  font-size: 1rem;
  color: var(--gray-500);
  vertical-align: super;
}

.metric-card .metric-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.metric-card .metric-desc {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* 19. Footer
   ============================================================ */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.75);
  padding-top: 64px;
}

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

.footer-brand .logo-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand .logo-text span { color: var(--amber-400); }

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-300);
  margin-bottom: 18px;
}

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

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}

.footer-col a:hover { color: var(--amber-300); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}

/* 20. Utility Classes
   ============================================================ */
.bg-white   { background: var(--white); }
.bg-beige   { background: var(--beige-50); }
.bg-green   { background: var(--green-800); }
.bg-amber   { background: var(--amber-50); }

.text-center { text-align: center; }
.text-amber  { color: var(--amber-700); }
.text-green  { color: var(--green-700); }
.text-white  { color: var(--white); }
.text-muted  { color: var(--gray-500); }

.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.pt-0 { padding-top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* 21. CTA Sections
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 100%);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(224,168,46,0.1) 0%, transparent 70%);
}

.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.72); max-width: 500px; margin: 0 auto 36px; }

.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* 22. Article / Long Content
   ============================================================ */
.article-content { max-width: 760px; }

.article-content h2 { margin-top: 48px; margin-bottom: 18px; }
.article-content h3 { margin-top: 36px; margin-bottom: 14px; }
.article-content h4 { margin-top: 24px; margin-bottom: 10px; }

.article-content p { font-size: 1rem; line-height: 1.8; color: var(--gray-700); }

.article-content ul,
.article-content ol {
  margin: 16px 0 24px 24px;
  list-style: revert;
  color: var(--gray-700);
}

.article-content li { margin-bottom: 8px; font-size: 0.97rem; line-height: 1.7; }

.article-content .highlight-box,
.article-content .info-box {
  font-size: 0.95rem;
}

/* 23. Sidebar
   ============================================================ */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

.sidebar { position: sticky; top: calc(var(--nav-height) + 24px); }

.sidebar-card {
  background: var(--beige-50);
  border: 1px solid var(--beige-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-card h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber-700);
  margin-bottom: 16px;
}

.sidebar-card ul { display: flex; flex-direction: column; gap: 10px; }

.sidebar-card li a {
  font-size: 0.88rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.sidebar-card li a:hover { color: var(--green-700); }
.sidebar-card li a::before { content: '→'; color: var(--amber-700); font-size: 0.75rem; }

/* 24. Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4       { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  section { padding: 56px 0; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  .hero { padding: 72px 0 64px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .footer-grid  { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .page-header { padding: 44px 0 40px; }

  .process-step { flex-direction: column; gap: 16px; }
  .process-step::after { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { padding: 11px 20px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .stat-card .stat-number { font-size: 2.2rem; }
}

/* 25. Language Switcher
   ============================================================ */
.lang-switch .lang-toggle { cursor: pointer; }
.lang-switch .lang-toggle .lang-current-label { font-weight: 600; }

.lang-menu { left: auto; right: 0; min-width: 190px; }
.lang-menu a { cursor: pointer; }
.lang-menu a.active { background: rgba(255,255,255,0.12); color: var(--amber-300); }

.nav-mobile-lang {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 2px 0 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile-lang .nml-globe { font-size: 1.1rem; margin-right: 2px; }
.nav-mobile-lang a {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  cursor: pointer;
  transition: var(--transition);
}
.nav-mobile-lang a:hover,
.nav-mobile-lang a.active {
  background: var(--amber-700);
  color: #fff;
  border-color: var(--amber-700);
}

/* Neutralize default Google Translate chrome */
#google_translate_element { display: none !important; }
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
.goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
.skiptranslate iframe { visibility: hidden !important; height: 0 !important; }
