/*
Theme Name: G CAPITAL Theme
Theme URI: https://example.com/gcapital
Author: G CAPITAL
Author URI: https://example.com
Description: Custom one-page bilingual (Arabic/English) theme for G CAPITAL based on G-Nation identity.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gcapital
*/

:root {
  --primary: #1F1B62;
  --accent:  #FFD601;
  --bg:      #F4F2F1;
  --muted-bg:#E1DFE6;
  --border:  #DBDBDB;
  --muted:   #6b7280;
  --light:   #ffffff;
}

/* FONTS – update src URLs after you upload font files in /fonts */
@font-face {
  font-family: "DINNextLTW23";
  src: url("fonts/DINNextLTW23-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MontserratAlternates";
  src: url("fonts/MontserratAlternates-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

body {
  font-family: "MontserratAlternates", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: #222;
  line-height: 1.6;
}

/* Arabic font + RTL */
[lang="ar"] {
  font-family: "DINNextLTW23", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  direction: rtl;
}

/* Language visibility */
body.lang-en .text-ar { display: none; }
body.lang-ar .text-en { display: none; }

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

header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-bar {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 0.4rem 4vw;
  font-size: 0.85rem;
  background: #151038;
  opacity: 0.98;
}

.top-bar a {
  color: #e5e7eb;
}

.lang-switch {
  font-size: 0.85rem;
  opacity: 0.7;
}
body.lang-en .lang-switch[data-lang="en"],
body.lang-ar .lang-switch[data-lang="ar"] {
  opacity: 1;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 4vw;
}

.logo-block {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo span {
  color: var(--accent);
}

.logo-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #e5e7eb;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #111827;
  font-weight: 600;
  font-size: 0.85rem;
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  padding: 3.5rem 4vw 3rem;
  background:
    radial-gradient(circle at top left, #30298d 0, #1F1B62 40%, #110f35 100%);
  color: #f9fafb;
}

.hero-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #d1d5db;
  margin-bottom: 0.4rem;
}

.hero-tag span span {
  color: var(--accent);
}

.hero-sub-identity {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #c7d2fe;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.3rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

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

.hero-lead {
  max-width: 40rem;
  color: #e5e7eb;
  font-size: 0.98rem;
  margin-bottom: 1.4rem;
}

.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.hero-bullets span::before {
  content: "•";
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.35rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #111827;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.btn-outline {
  background: transparent;
  color: #e5e7eb;
  border-radius: 999px;
  border: 1px solid #4b5563;
  padding: 0.7rem 1.6rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #e5e7eb;
}

.metric {
  border-left: 2px solid rgba(209, 213, 219, 0.5);
  padding-left: 0.8rem;
}

.metric strong {
  display: block;
  color: #f9fafb;
  font-size: 1.1rem;
}

/* Forms used in hero and contact */
.hero-form {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1rem;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.6);
  color: #f9fafb;
}

.hero-form h2 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.hero-form p {
  font-size: 0.86rem;
  color: #d1d5db;
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  gap: 0.65rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
  color: #d1d5db;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid #4b5563;
  background: rgba(15, 23, 42, 0.85);
  color: #f9fafb;
  font-size: 0.85rem;
  outline: none;
}

.form-group input::placeholder {
  color: #6b7280;
}

/* SECTIONS */

section {
  padding: 3.5rem 4vw;
}

.section-header {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  color: #111827;
}

.section-header p {
  color: var(--muted);
  font-size: 0.96rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--light);
  border-radius: 1rem;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.chip {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
}

/* Investors pills */
.investor-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.pill {
  border-radius: 999px;
  background: #e5e7eb;
  color: #111827;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  text-align: center;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.process-step {
  background: var(--light);
  border-radius: 1rem;
  padding: 1.3rem 1.2rem;
  border: 1px solid var(--border);
  position: relative;
}

.process-step::before {
  content: attr(data-step);
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

/* Callout */
.callout {
  background: linear-gradient(135deg, #1F1B62, #111827);
  color: #f9fafb;
  border-radius: 1.2rem;
  padding: 2rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.callout h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.callout p {
  font-size: 0.93rem;
  color: #e5e7eb;
  max-width: 32rem;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.news-item {
  background: var(--light);
  border-radius: 1rem;
  padding: 1.2rem 1.2rem;
  border: 1px solid var(--border);
}

.news-item h3 {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.news-item small {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.news-item p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.news-item a {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

/* Contact & footer */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 2rem;
}

.contact-details h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-details p {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-details strong {
  color: #111827;
}

footer {
  background: #111827;
  color: #9ca3af;
  padding: 2.5rem 4vw 1.5rem;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 0.65rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.3rem;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.83rem;
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom a {
  color: #9ca3af;
  margin-right: 1rem;
  font-size: 0.8rem;
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
  nav ul {
    display: none; /* simple: hide full nav on mobile, can be replaced with burger later */
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 2.5rem;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  section {
    padding: 2.5rem 5vw;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
