/* ============================================
   LEGROUPEMLC — REDESIGNED BRAND STYLESHEET
   Premium design system — 2026
   ============================================ */

:root {
  --navy: #0A1628;
  --navy-light: #122240;
  --navy-mid: #1A2D4A;
  --gold: #C8A55A;
  --gold-light: #D4B76E;
  --gold-dim: rgba(200, 165, 90, 0.15);
  --white: #FFFFFF;
  --off-white: #F5F3EF;
  --warm-gray: #E8E4DD;
  --text: #2B2B2B;
  --text-secondary: #6B6B6B;
  --text-light: #9A9A9A;
  --border: rgba(200, 165, 90, 0.2);

  /* Subsidiary accents */
  --tech: #4A4F55;
  --invest: #0F5E5A;
  --prop: #8A6A3A;
  --agric: #6B7D3A;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', 'Helvetica Neue', sans-serif;

  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 16px 48px rgba(10, 22, 40, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; font-weight: 500; }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================
   HEADER
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 42px;
  width: auto;
}

.logo-text {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.02em;
}

.logo-text strong {
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  padding: 8px 16px;
  border-radius: 6px;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200, 165, 90, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(15, 94, 90, 0.06) 0%, transparent 50%),
    linear-gradient(170deg, var(--navy) 0%, #0D1E36 40%, #0F2840 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8A55A' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 720px;
  padding: 120px 0 80px;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 24px;
}

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

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
  max-width: 560px;
}

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

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.3);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 6px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 165, 90, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 64px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ============================================
   SUBSIDIARIES GRID
   ============================================ */

.subsidiaries {
  background: var(--off-white);
}

.sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sub-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.sub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent, var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-card:hover {
  border-color: rgba(0,0,0,0.06);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.sub-card:hover::before {
  transform: scaleX(1);
}

.sub-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.sub-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent, var(--gold));
}

.sub-card h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--navy);
}

.sub-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.sub-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent, var(--gold));
  margin-top: 20px;
  transition: var(--transition);
}

.sub-card:hover .sub-card-link {
  gap: 10px;
}

/* ============================================
   VALUES
   ============================================ */

.values {
  background: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
}

.value-item {
  position: relative;
}

.value-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-dim);
  line-height: 1;
  margin-bottom: 12px;
  color: rgba(200, 165, 90, 0.2);
}

.value-item h3 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--navy);
}

.value-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   STATS
   ============================================ */

.stats {
  background: var(--navy);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   CTA
   ============================================ */

.cta {
  background: var(--off-white);
}

.cta-content {
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--navy);
  padding: 80px 0 40px;
  color: rgba(255,255,255,0.5);
}

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

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-brand .logo img {
  height: 36px;
}

.footer-brand .logo-text {
  font-size: 1rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.75rem;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  padding: 4px 0;
  transition: var(--transition);
}

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

.footer-bottom {
  padding-top: 32px;
  text-align: center;
  font-size: 0.8rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.sub-card.fade-up:nth-child(2) { transition-delay: 0.1s; }
.sub-card.fade-up:nth-child(3) { transition-delay: 0.2s; }
.sub-card.fade-up:nth-child(4) { transition-delay: 0.3s; }

.value-item.fade-up:nth-child(2) { transition-delay: 0.1s; }
.value-item.fade-up:nth-child(3) { transition-delay: 0.2s; }
.value-item.fade-up:nth-child(4) { transition-delay: 0.3s; }

.stat.fade-up:nth-child(2) { transition-delay: 0.1s; }
.stat.fade-up:nth-child(3) { transition-delay: 0.2s; }
.stat.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   ABOUT PAGE
   ============================================ */

.page-hero {
  background: var(--navy);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200, 165, 90, 0.06) 0%, transparent 60%);
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero .section-label { margin-bottom: 16px; }

.page-hero h1 {
  color: var(--white);
  max-width: 640px;
}

.page-hero p {
  color: rgba(255,255,255,0.55);
  font-size: 1.1rem;
  max-width: 560px;
  margin-top: 16px;
  line-height: 1.7;
}

/* Content sections */
.content-section {
  padding: 80px 0;
}

.content-section:nth-child(even) {
  background: var(--off-white);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.content-grid h2 {
  margin-bottom: 24px;
}

.content-grid p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

/* Mission/Vision boxes */
.highlight-box {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
}

.highlight-box h3 {
  font-family: var(--font-body);
  color: var(--gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.highlight-box p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.7;
}

/* Values list */
.values-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.values-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}

.values-list li strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 4px;
}

.values-list li span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   SUBSIDIARIES PAGE
   ============================================ */

.sub-detail {
  padding: 80px 0;
  border-bottom: 1px solid var(--warm-gray);
}

.sub-detail:last-of-type {
  border-bottom: none;
}

.sub-detail:nth-child(odd) {
  background: var(--off-white);
}

.sub-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.sub-detail-grid.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.sub-detail-info .section-label {
  color: var(--accent, var(--gold));
}

.sub-detail-info h2 {
  margin-bottom: 20px;
}

.sub-detail-info p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.sub-detail-info .btn {
  margin-top: 8px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.service-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--gold-dim);
  color: var(--navy);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.contact-detail h4 {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-detail p,
.contact-detail a {
  font-size: 1rem;
  color: var(--navy);
  font-weight: 500;
}

.contact-detail a:hover {
  color: var(--gold);
}

.contact-form {
  background: var(--off-white);
  padding: 48px;
  border-radius: var(--radius-lg);
}

.contact-form h3 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--navy);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

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

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .sub-grid { gap: 16px; }
  .values-grid { gap: 36px 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 4px;
    transition: right 0.35s ease;
    box-shadow: -8px 0 32px rgba(0,0,0,0.3);
  }

  .nav.open { right: 0; }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .hero-content { padding: 140px 0 60px; }

  .sub-grid { grid-template-columns: 1fr; }
  .sub-card { padding: 28px; }

  .values-grid { grid-template-columns: 1fr; gap: 32px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .section { padding: 64px 0; }
  .stats { padding: 48px 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .content-grid,
  .sub-detail-grid,
  .sub-detail-grid.reverse,
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .stat-number { font-size: 2.2rem; }
  .value-number { font-size: 2.2rem; }
  .contact-form { padding: 28px; }
}
