﻿:root {
  /* ERGOVALL SAGE & FOREST GREEN PALETTE */
  --bg-main: #fbfbfa;
  --bg-alt: #f2f5ec;
  --card-bg: #ffffff;
  --card-border: rgba(167, 175, 136, 0.35);
  --card-shadow: 0 8px 24px rgba(44, 54, 30, 0.04), 0 1px 3px rgba(44, 54, 30, 0.03);
  --card-shadow-hover: 0 18px 40px rgba(44, 54, 30, 0.09), 0 0 25px rgba(167, 175, 136, 0.22);

  --text-primary: #151a14;
  --text-body: #3c4438;
  --text-muted: #647060;

  /* Ergovall Greens */
  --green-sage: #a7af88;          /* Ergovall official brand theme-color */
  --green-sage-light: #cdd4b8;    /* Soft sage highlight */
  --green-sage-soft: #eef2e6;     /* Light sage background tint */
  --green-forest: #495834;        /* Deep forest sage for primary buttons & titles */
  --green-dark: #2c361e;          /* Deep olive charcoal for footer & text accents */
  --green-glow: rgba(167, 175, 136, 0.3);
  --line-green: rgba(167, 175, 136, 0.45);
  --line: rgba(0, 0, 0, 0.08);

  /* Gold aliases mapped to Ergovall green system for compatibility */
  --gold: #495834;
  --gold-dark: #2c361e;
  --gold-light: #a7af88;
  --gold-glow: rgba(167, 175, 136, 0.25);
  --line-gold: rgba(167, 175, 136, 0.45);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max: 1360px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-body);
  background-color: var(--bg-main);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

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

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

/* TYPOGRAPHY */
h1, h2, h3, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.text-gold {
  color: var(--gold-dark);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #151a14 15%, #3e4c2b 65%, #6a7c4f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.section-tag::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 40px;
}

.container {
  width: 90%;
  max-width: var(--max);
  margin: 0 auto;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn-gold {
  background: linear-gradient(135deg, #495834, #364223);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(54, 66, 35, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #5b6d41, #42512a);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(54, 66, 35, 0.35);
  color: #ffffff;
}

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

.btn-outline-gold:hover {
  background: rgba(167, 175, 136, 0.16);
  color: #6a4f15;
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5%;
  background: rgba(252, 251, 250, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

header.scrolled {
  padding: 12px 5%;
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(167, 175, 136, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-img-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(167, 175, 136, 0.5);
  overflow: hidden;
}

.logo-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  line-height: 1.1;
}

.logo-tagline {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--gold-dark);
  font-weight: 600;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  font-size: 0.88rem;
  color: #4b5563;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

nav a:hover, nav a.active {
  color: var(--gold-dark);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 3px 5px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #6b7280;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.lang-btn.active {
  background: var(--gold);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(167, 175, 136, 0.5);
}

.lang-btn:hover:not(.active) {
  color: var(--text-primary);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px;
}

/* HERO SECTION */
.hero {
  min-height: min(88vh, 860px);
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 70px;
  overflow: hidden;
  background: radial-gradient(circle at 85% 20%, rgba(167, 175, 136, 0.22) 0%, transparent 55%),
              radial-gradient(circle at 10% 80%, rgba(225, 220, 210, 0.45) 0%, transparent 55%),
              linear-gradient(180deg, #fcfbfa 0%, #f7f6f2 100%);
}

.hero-bg-accent {
  position: absolute;
  top: -10%;
  right: 0;
  max-width: 100%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167, 175, 136, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: rgba(179, 142, 68, 0.09);
  border: 1px solid var(--line-gold);
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
  margin-bottom: 24px;
  max-width: 100%;
}

.hero-eyebrow span.dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--gold);
}

.hero-title {
  font-size: clamp(2.5rem, 4.8vw, 4.2rem);
  line-height: 1.12;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.15rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 50px;
}

/* STATS */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* HERO EMBLEM / 3D CARD SHOWCASE */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-emblem-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid rgba(167, 175, 136, 0.4);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06), 0 2px 10px rgba(167, 175, 136, 0.16);
}

.hero-emblem-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-logo-img {
  width: 220px;
  margin: 0 auto 25px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(167, 175, 136, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.hero-card-meta {
  font-size: 0.88rem;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-card-title {
  font-size: 1.45rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.hero-companies-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.pill-item {
  background: #f7f6f2;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  padding: 6px 13px;
  font-size: 0.78rem;
  color: #4b5563;
  transition: var(--transition);
}

.pill-item:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: rgba(167, 175, 136, 0.16);
}

/* MARQUEE BRAND STRIP */
.brand-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  position: relative;
  overflow: hidden;
}

.brand-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.strip-item:hover {
  background: #ffffff;
  border-color: var(--line-gold);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.strip-logo-box {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.strip-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.strip-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.strip-item-meta {
  font-size: 0.75rem;
  color: var(--gold-dark);
}

/* SECTION PADDING */
.section {
  padding: 100px 0;
  position: relative;
}

.section-darker {
  background-color: var(--bg-alt);
}

/* COMPANIES SECTION */
.companies-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px;
}

.companies-header .section-tag {
  justify-content: center;
}
.companies-header .section-tag::before {
  display: none;
}

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 50px;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #555555;
  padding: 9px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--green-forest);
  color: #ffffff;
  border-color: var(--green-forest);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(20, 24, 36, 0.15);
}

/* COMPANY CARDS GRID */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
}

.company-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  overflow: hidden;
}

.company-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: var(--transition);
}

.company-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08), 0 0 25px rgba(167, 175, 136, 0.2);
}

.company-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.card-logo-container {
  width: 90px;
  height: 90px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(167, 175, 136, 0.4);
}

.card-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

a.card-logo-container {
  cursor: pointer;
  transition: var(--transition);
}

a.card-logo-container:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(167, 175, 136, 0.4);
  border-color: var(--gold);
}

.card-title a:hover {
  color: var(--gold-dark);
}

a.innov-logo {
  cursor: pointer;
  transition: var(--transition);
}

a.innov-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(167, 175, 136, 0.4);
  border: 1px solid var(--gold);
}

.card-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.badge-year {
  background: rgba(167, 175, 136, 0.18);
  border: 1px solid rgba(167, 175, 136, 0.4);
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.badge-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-title {
  font-size: 1.65rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

.card-desc {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.card-tag {
  background: #f1f4eb;
  color: #3d4a2d;
  border: 1px solid rgba(167, 175, 136, 0.35);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.link-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-dark);
  font-size: 0.88rem;
  font-weight: 600;
}

.link-external:hover {
  color: var(--text-primary);
  gap: 9px;
}

/* TIMELINE SECTION (HISTÒRIA & TERRITORI) */
.timeline-section {
  position: relative;
  background: #ffffff;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 30px;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(167, 175, 136, 0.6);
  border: 3px solid #ffffff;
  z-index: 5;
}

.timeline-item.left .timeline-dot {
  right: -8px;
}

.timeline-item.right .timeline-dot {
  left: -8px;
}

.timeline-box {
  background: #fcfbfa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 26px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  position: relative;
}

.timeline-box:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.timeline-place {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.timeline-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* INNOVATION & PATENTS (ERGOVALL & FLEXIPEUS FEATURE) */
.innovation-section {
  background: radial-gradient(circle at 20% 50%, rgba(167, 175, 136, 0.14) 0%, transparent 60%),
              #f8f7f4;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.innovation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.innovation-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.innovation-card.featured {
  border-color: var(--line-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06), 0 0 20px rgba(167, 175, 136, 0.18);
}

.innovation-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.innov-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(167, 175, 136, 0.18);
  color: var(--gold-dark);
  border: 1px solid rgba(167, 175, 136, 0.45);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  align-self: flex-start;
}

.innov-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.innov-logo {
  width: 76px;
  height: 76px;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 8px;
  border: 1px solid rgba(167, 175, 136, 0.35);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.innov-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.innov-features {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.innov-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.93rem;
  color: var(--text-body);
}

.innov-features li svg {
  color: var(--gold-dark);
  flex-shrink: 0;
  margin-top: 4px;
}

/* VALUES / COMMITMENT SECTION */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.value-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

.value-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(167, 175, 136, 0.18);
  border: 1px solid rgba(167, 175, 136, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  margin-bottom: 24px;
}

.value-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.value-desc {
  font-size: 0.93rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* CONTACT SECTION */
.contact-section {
  background: #f7f6f2;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 50px;
  margin-top: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.contact-card-title {
  font-size: 1.15rem;
  color: var(--gold-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-card p {
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.contact-card strong {
  color: var(--text-primary);
}

.contact-form-box {
  background: #ffffff;
  border: 1px solid rgba(167, 175, 136, 0.45);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: #fbfbfb;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(167, 175, 136, 0.25);
  background: #ffffff;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-feedback {
  display: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(167, 175, 136, 0.18);
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  font-size: 0.9rem;
  margin-bottom: 18px;
  text-align: center;
}

/* FOOTER (ELEGANT DEEP SLATE ANCHOR) */
footer {
  background: #151c12;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 80px 0 30px;
  color: #9ca3af;
  font-size: 0.88rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: #9ca3af;
  margin: 18px 0 24px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-title {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom a {
  color: var(--gold-light);
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 24px;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .innovation-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  header {
    padding: 10px 14px;
    height: 60px;
    max-width: 100vw;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo-container {
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
  }
  .logo-img-wrapper {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }
  .logo-brand {
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .logo-tagline {
    display: none;
  }
  .header-right {
    margin-left: auto;
    gap: 8px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .header-right .btn-sm {
    display: none !important;
  }
  .lang-switch {
    padding: 2px 3px;
    gap: 1px;
    flex-shrink: 0;
  }
  .lang-btn {
    padding: 3px 5px;
    font-size: 0.65rem;
  }
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
  }

  nav {
    position: fixed;
    top: 60px;
    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(--line-gold);
    padding: 24px;
    transform: translateY(-150%);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
  }
  nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  nav a {
    display: block;
    font-size: 1.05rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
  }
  nav a:hover, nav a.active {
    color: var(--gold-dark);
  }

  .hero {
    min-height: auto;
    padding-top: 86px;
    padding-bottom: 40px;
  }
  .hero-bg-accent {
    display: none;
  }
  .hero-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-title {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
    margin-bottom: 14px;
  }
  .hero-desc {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 22px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 30px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding-top: 20px;
    text-align: center;
  }
  .stat-item {
    align-items: center;
  }
  .stat-num {
    font-size: 1.75rem;
  }
  .stat-label {
    font-size: 0.7rem;
    line-height: 1.25;
    max-width: 130px;
  }

  .hero-emblem-card {
    padding: 28px 18px;
    margin-top: 10px;
  }
  .hero-logo-img {
    width: 180px;
    margin-bottom: 18px;
  }

  .brand-strip {
    padding: 18px 0;
  }
  .brand-strip-inner {
    gap: 12px;
    justify-content: center;
  }
  .strip-item {
    padding: 6px 12px;
  }
  .strip-logo-box {
    width: 36px;
    height: 36px;
  }

  .section {
    padding: 60px 0;
  }

  .companies-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .company-card {
    padding: 26px 18px;
  }
  .card-logo-container {
    width: 76px;
    height: 76px;
    padding: 8px;
  }
  .card-footer {
    flex-direction: column;
    gap: 10px;
  }
  .card-footer .btn {
    width: 100%;
  }

  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
  }
  .timeline-item.left, .timeline-item.right {
    left: 0;
    text-align: left;
  }
  .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot {
    left: 12px;
  }
  .timeline-box {
    padding: 20px 18px;
  }

  .innovation-card {
    padding: 26px 18px;
  }
  .innov-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .contact-form-box {
    padding: 24px 18px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 92%;
  }
  .hero-eyebrow {
    font-size: 0.68rem;
    padding: 5px 10px;
  }
  .filter-bar {
    gap: 6px;
  }
  .filter-btn {
    font-size: 0.78rem;
    padding: 7px 12px;
  }
  .hero-stats {
    gap: 12px;
  }
  .stat-num {
    font-size: 1.6rem;
  }
}

/* LEGAL MODAL STYLES (LIGHT LUXURY) */
.legal-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.legal-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.legal-modal-card {
  width: 100%;
  max-width: 840px;
  max-height: 88vh;
  background: #ffffff;
  border: 1px solid rgba(167, 175, 136, 0.45);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18), 0 0 35px rgba(167, 175, 136, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.legal-modal-backdrop.active .legal-modal-card {
  transform: translateY(0) scale(1);
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fcfbfa;
}

.legal-modal-close {
  background: transparent;
  border: none;
  color: #666;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  transition: var(--transition);
}

.legal-modal-close:hover {
  color: var(--gold-dark);
}

.legal-modal-tabs {
  display: flex;
  background: #f5f4f0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  overflow-x: auto;
}

.legal-tab-btn {
  background: transparent;
  border: none;
  color: #555555;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.legal-tab-btn:hover {
  color: var(--text-primary);
}

.legal-tab-btn.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
  background: #ffffff;
}

.legal-modal-body {
  padding: 26px 28px;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #404553;
}

.legal-tab-content {
  display: none;
}

.legal-tab-content.active {
  display: block;
}

.legal-modal-body h4 {
  font-family: 'Playfair Display', serif;
  color: var(--gold-dark);
  font-size: 1.25rem;
  margin: 22px 0 10px;
}

.legal-modal-body h4:first-child {
  margin-top: 0;
}

.legal-modal-body p {
  margin-bottom: 14px;
}

.legal-modal-body ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-modal-body li {
  margin-bottom: 6px;
}

.legal-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fcfbfa;
  flex-wrap: wrap;
  gap: 10px;
}

