/* ============================================================
   INDIPENDENT.ME — Global Stylesheet
   ============================================================ */

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

:root {
  --navy:       #0d1b3e;
  --navy-light: #162347;
  --navy-mid:   #1e3160;
  --gold:       #b8c0cc;
  --gold-light: #d4dae4;
  --white:      #ffffff;
  --light:      #f0f2f5;
  --gray:       #8a9bb5;
  --text:       #d4dae8;
  --font:       'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.3s ease;
  --radius:     6px;
  --shadow:     0 4px 24px rgba(0,0,0,0.35);
  --linen: url('../images/linen-texture.jpg');
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--navy);
  background-image: var(--linen);
  background-size: 300px;
  background-blend-mode: overlay;
  background-repeat: repeat;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a  { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background-color: #f0ebe3;
  background-image: var(--linen);
  background-size: 200px;
  background-blend-mode: multiply;
  background-repeat: repeat;
  border-bottom: 1px solid #d8d0c4;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-brand img {
  height: 38px;
  width: auto;
  display: block;
}

.footer-brand .navbar-brand img {
  background: #ffffff;
  border-radius: 4px;
  padding: 3px 6px;
}


.nav-links {
  display: flex;
  list-style: none;
  gap: 0.2rem;
}

.nav-links a {
  color: #2a3550;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  background: rgba(13, 27, 62, 0.07);
}

/* Language selector */
.lang-selector {
  display: flex;
  gap: 2px;
  margin-left: 0.8rem;
}
.lang-btn {
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 4px;
  padding: 3px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
  width: 30px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-btn img {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  display: block;
}
.lang-btn:hover {
  background: rgba(13,27,62,0.07);
}
.lang-btn.active {
  border-color: var(--navy);
  background: rgba(13,27,62,0.07);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background-color: #f0ebe3;
    background-image: var(--linen);
    background-size: 200px;
    background-blend-mode: multiply;
    background-repeat: repeat;
    border-bottom: 1px solid #d8d0c4;
    padding: 1rem 2rem;
    gap: 0.3rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0.5rem; font-size: 0.9rem; }
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.hero {
  padding: 140px 2rem 80px;
  text-align: center;
  background-color: var(--navy);
  background-image:
    linear-gradient(160deg, rgba(30,49,96,0.4) 0%, transparent 60%),
    var(--linen);
  background-size: auto, 300px;
  background-blend-mode: normal, overlay;
  background-repeat: no-repeat, repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(200,169,110,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero p {
  max-width: 680px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  color: var(--text);
  opacity: 0.9;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 80px 2rem;
}

.section-alt {
  background-color: var(--navy-light);
  background-image: var(--linen);
  background-size: 300px;
  background-blend-mode: overlay;
  background-repeat: repeat;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.section-title span { color: var(--gold); }

.section-subtitle {
  color: var(--gray);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.divider {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 1rem 0 2.5rem;
  border-radius: 2px;
}

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

.card {
  background-color: var(--navy-mid);
  background-image: var(--linen);
  background-size: 250px;
  background-blend-mode: overlay;
  background-repeat: repeat;
  border: 1px solid rgba(184,192,204,0.12);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,169,110,0.4);
}

/* ── SVG Icon Box ─────────────────────────────────────────── */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.icon-box svg { width: 28px; height: 28px; stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-box.sm { width: 44px; height: 44px; border-radius: 11px; }
.icon-box.sm svg { width: 22px; height: 22px; }
.icon-box.lg { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 1.2rem; }
.icon-box.lg svg { width: 36px; height: 36px; }
.icon-box.pearl { background: rgba(184,192,204,0.1); color: #d4dae8; border: 1px solid rgba(184,192,204,0.18); }
.icon-box.cyan  { background: rgba(41,171,226,0.1);  color: #4ec3f7; border: 1px solid rgba(41,171,226,0.18); }
.icon-box.warm  { background: rgba(200,168,80,0.1);  color: #c8a84c; border: 1px solid rgba(200,168,80,0.18); }

.card h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ============================================================
   MARKET BADGES
   ============================================================ */
.markets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.market-badge {
  background: rgba(200,169,110,0.12);
  border: 1px solid rgba(200,169,110,0.35);
  color: var(--gold);
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--navy);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.25);
}

.timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.timeline-item h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.timeline-item p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  background: var(--light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   TWO-COLUMN LAYOUT
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col.reverse { direction: ltr; }
}

/* ============================================================
   PROFILE IMAGE
   ============================================================ */
.profile-img-wrap {
  position: relative;
  display: inline-block;
}

.profile-img-wrap img {
  border-radius: var(--radius);
  border: 2px solid rgba(200,169,110,0.3);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 420px;
}

.profile-img-wrap::after {
  content: '';
  position: absolute;
  bottom: -12px; right: -12px;
  width: 100%; height: 100%;
  border: 2px solid rgba(200,169,110,0.2);
  border-radius: var(--radius);
  z-index: -1;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--navy-mid);
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

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

/* ============================================================
   MAP / LOCATION
   ============================================================ */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(200,169,110,0.2);
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
  filter: grayscale(20%) invert(5%);
}

/* ============================================================
   GALLERY / COLLECTIONS
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(200,169,110,0.15);
  aspect-ratio: 3/4;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 0.85rem;
  transition: border-color var(--transition);
}
.gallery-item:hover { border-color: rgba(200,169,110,0.5); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: rgba(200,169,110,0.15);
  border: 1px solid rgba(200,169,110,0.15);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 4rem;
}

.stat-item {
  background-color: var(--navy-light);
  background-image: var(--linen);
  background-size: 300px;
  background-blend-mode: overlay;
  background-repeat: repeat;
  padding: 1.8rem 1.5rem;
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background-color: #07101f;
  background-image: var(--linen);
  background-size: 300px;
  background-blend-mode: overlay;
  background-repeat: repeat;
  border-top: 1px solid rgba(184,192,204,0.15);
  padding: 3rem 2rem 2rem;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--gray);
  margin-top: 0.8rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: var(--gray);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ============================================================
   COMPANY LOGOS
   ============================================================ */
.company-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid rgba(184,192,204,0.2);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.company-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.company-card img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  display: block;
}
.company-card .ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.82rem;
  text-align: center;
}

/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
