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

:root {
  --gold: #c9a227;
  --gold-dark: #8b6914;
  --gold-darker: #5c4610;
  --gold-light: #e8c84a;
  --gold-pale: #fbf6e8;
  --gold-warm: #d4af37;
  --charcoal: #1c1c1c;
  --charcoal-light: #2a2520;
  --white: #ffffff;
  --cream: #fffbf2;
  --gray-50: #fbf6e8;
  --gray-100: #f3ebd4;
  --gray-300: #d9c99a;
  --gray-500: #7a6f56;
  --gray-700: #4a4235;
  --text: #2a2520;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(92, 70, 16, 0.12);
  --transition: 0.25s ease;
  --header-height: 92px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--cream);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 251, 242, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--gold);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 10px 0;
}

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

.logo-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.logo-text {
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1.1;
  color: var(--gold-dark);
  text-align: center;
  white-space: nowrap;
}

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

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition);
}

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

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ── Hero ── */
.hero {
  padding: calc(var(--header-height) + 88px) 0 100px;
  background: linear-gradient(160deg, var(--gold-darker) 0%, var(--gold-dark) 45%, var(--gold-warm) 100%);
  color: var(--white);
  text-align: center;
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ── Sections ── */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.05rem;
}

/* ── About ── */
.about {
  background: var(--gray-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text p {
  color: var(--gray-700);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 3px solid var(--gold);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Companies ── */
.company-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.company-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 36px 28px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.company-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--gold);
}

.company-logo-link {
  display: flex;
  align-items: center;
  height: 90px;
  margin-bottom: 20px;
}

.company-logo {
  height: 80px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.company-logo-link:has(.company-logo--arifund) {
  height: 90px;
}

.company-logo--arifund {
  height: 80px;
  max-width: 220px;
}

.company-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.company-card h3 a {
  transition: color var(--transition);
}

.company-card h3 a:hover {
  color: var(--gold-warm);
}

.company-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-dark);
  transition: color var(--transition);
}

.company-link:hover {
  color: var(--gold-warm);
}

.company-card > p {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.company-features {
  list-style: none;
  border-top: 1px solid var(--gray-100);
  padding-top: 16px;
}

.company-features li {
  font-size: 0.88rem;
  color: var(--gray-700);
  padding: 5px 0;
  padding-left: 18px;
  position: relative;
}

.company-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ── Contact ── */
.contact {
  background: var(--gray-50);
}

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

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

.contact-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.contact-item a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gold-dark);
  transition: color var(--transition);
}

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

.contact-item span:not(.contact-label) {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gold-dark);
}

.contact-form {
  background: var(--white);
  border-radius: 12px;
  padding: 36px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.form-row textarea {
  resize: vertical;
}

/* ── Footer ── */
.footer {
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 36px 0;
  border-top: 3px solid var(--gold);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.88rem;
  transition: color var(--transition);
}

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

/* ── Mobile Nav ── */
.nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--cream);
  padding: 20px 4%;
  gap: 16px;
  border-bottom: 2px solid var(--gold);
  box-shadow: var(--shadow);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .company-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-direction: row;
  }

  .stat {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .company-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: calc(var(--header-height) + 56px) 0 72px;
  }

  section {
    padding: 60px 0;
  }

  .about-stats {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}
