/* ═══════════════════════════════
   HOME PAGE - index.css
═══════════════════════════════ */

/* ── HERO ── */
.hero {
  height: 100vh; min-height: 700px;
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(200,169,110,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(200,169,110,0.05) 0%, transparent 50%);
}
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,169,110,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridPan 20s linear infinite;
}
@keyframes gridPan { to { background-position: 80px 80px; } }

.hero-content {
  position: relative; z-index: 2;
  padding: 0 4rem; max-width: 800px;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem; letter-spacing: 0.3em;
  color: var(--gold); margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.8s ease 0.3s forwards;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300; line-height: 1.0;
  color: var(--white); margin-bottom: 0.3rem;
  opacity: 0; animation: fadeUp 0.9s ease 0.5s forwards;
}
.hero-title em {
  font-style: italic; color: var(--gold-light);
  display: block;
}
.hero-title .outline-text {
  -webkit-text-stroke: 1px rgba(255,255,255,0.3);
  color: transparent;
}
.hero-subtitle {
  font-size: 1rem; color: var(--muted); max-width: 420px;
  margin: 1.5rem 0 2.5rem;
  opacity: 0; animation: fadeUp 0.9s ease 0.7s forwards;
}
.hero-actions {
  display: flex; gap: 1rem; align-items: center;
  opacity: 0; animation: fadeUp 0.9s ease 0.9s forwards;
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--muted); font-size: 0.7rem; letter-spacing: 0.2em;
  z-index: 2;
  animation: pulse 2s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.4; }
}
@keyframes pulse { 0%,100% { opacity:0.6; } 50% { opacity:1; } }

.hero-counter {
  position: absolute; right: 4rem; bottom: 8rem; z-index: 2;
  display: flex; flex-direction: column; gap: 2rem;
  opacity: 0; animation: fadeRight 1s ease 1.2s forwards;
}
.hero-stat { text-align: right; }
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 3rem; color: var(--gold); line-height: 1;
}
.hero-stat .label {
  font-size: 0.7rem; color: var(--muted); letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-divider { width: 1px; height: 40px; background: var(--border); margin-left: auto; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── MARQUEE ── */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  overflow: hidden;
  background: rgba(200,169,110,0.03);
}
.marquee-track {
  display: flex; gap: 4rem; width: max-content;
  animation: marquee 25s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display);
  font-size: 0.8rem; letter-spacing: 0.25em;
  color: var(--muted); white-space: nowrap;
  display: flex; align-items: center; gap: 1rem;
}
.marquee-item .dot { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SERVICES SECTION ── */
.services-section {
  padding: 8rem 4rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start;
}
.services-intro { position: sticky; top: 8rem; }
.services-intro p { color: var(--muted); max-width: 380px; margin-top: 1rem; line-height: 1.9; }
.services-list { display: flex; flex-direction: column; }
.service-item {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 1.5rem; align-items: start;
  cursor: pointer;
  transition: border-color 0.3s;
}
.service-item:last-child { border-bottom: 1px solid var(--border); }
.service-item:hover { border-color: var(--gold); }
.service-num {
  font-family: var(--font-display);
  font-size: 0.75rem; color: var(--gold);
  letter-spacing: 0.1em; padding-top: 0.2rem;
}
.service-name {
  font-family: var(--font-serif);
  font-size: 1.5rem; font-weight: 300;
  transition: color 0.3s;
}
.service-item:hover .service-name { color: var(--gold-light); }
.service-desc { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; max-width: 280px; }
.service-arrow {
  font-size: 1.2rem; color: var(--muted); padding-top: 0.2rem;
  transition: transform 0.3s, color 0.3s;
}
.service-item:hover .service-arrow { transform: translate(4px,-4px); color: var(--gold); }

/* ── GLOBAL PRESENCE ── */
.presence-section { padding: 8rem 4rem; }
.presence-header { text-align: center; margin-bottom: 5rem; }
.country-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px;
  border: 1px solid var(--border);
}
.country-card {
  background: var(--card-bg);
  padding: 2.5rem 2rem;
  position: relative; overflow: hidden;
  transition: background 0.3s;
}
.country-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.country-card:hover { background: #161514; }
.country-card:hover::before { transform: scaleX(1); }
.country-flag { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.country-name {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 300;
  margin-bottom: 0.3rem;
}
.country-status {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold);
}
.country-services { font-size: 0.82rem; color: var(--muted); margin-top: 0.8rem; }
.coming-soon { opacity: 0.5; }
.coming-soon .country-status { color: var(--muted); }

/* ═══ WORK PREVIEW SECTION ═══ */
.work-preview {
  padding: 6rem 4rem;
}

.work-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ═══ AUTO-ADJUSTING GRID ═══ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ═══ CARD ═══ */
.work-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  background: #111;
}

.work-card-img {
  width: 100%;
  height: 100%;
}

.work-card-img img,
.work-card-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-card:hover .work-card-img img,
.work-card:hover .work-card-img video {
  transform: scale(1.05);
}

/* ═══ OVERLAY ═══ */
.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.2) 45%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem 1.2rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.work-card:hover .work-card-overlay {
  opacity: 1;
}

.work-card-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.3rem;
}

.work-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

/* ═══ PLACEHOLDER (fallback if no media) ═══ */
.work-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
}

.work-placeholder-icon {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 0.05em;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .work-preview {
    padding: 4rem 1.5rem;
  }

  .work-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
  }

  .work-card {
    aspect-ratio: 3 / 4;
  }

  .work-card-overlay {
    opacity: 1; /* always visible on touch */
  }
}

@media (max-width: 480px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── PHILOSOPHY ── */
.philosophy-section {
  padding: 8rem 4rem;
  background: linear-gradient(to bottom, transparent, rgba(200,169,110,0.03), transparent);
}
.philosophy-inner {
  max-width: 900px; margin: 0 auto; text-align: center;
}
.philosophy-quote {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300; line-height: 1.3;
  color: var(--white);
  margin: 2rem 0;
}
.philosophy-quote em { color: var(--gold-light); }
.philosophy-attribution { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.15em; }

/* ── CTA STRIP ── */
.cta-strip {
  padding: 6rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
}
.cta-strip h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 300;
}
.cta-strip h2 em { color: var(--gold-light); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 100svh;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 7.5rem 1.5rem 4rem;
    overflow: hidden;
  }

  .hero-grid-lines {
    background-size: 72px 72px;
  }

  .hero-content {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .hero-eyebrow {
    max-width: 100%;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    line-height: 1.8;
    margin-bottom: 1.2rem;
  }

  .hero-title {
    font-size: clamp(3.2rem, 16vw, 5rem);
    line-height: 0.96;
    margin-bottom: 0.5rem;
  }

  .hero-title .outline-text {
    display: block;
    font-size: 0.78em;
    line-height: 0.95;
    white-space: nowrap;
  }

  .hero-subtitle {
    max-width: 30rem;
    margin: 1.2rem 0 2rem;
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .hero-actions {
    width: 100%;
    gap: 0.8rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    padding: 0.85rem 1rem;
  }

  .hero-counter {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    animation-name: fadeUp;
  }

  .hero-stat {
    text-align: left;
  }

  .hero-stat .num {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero-stat .label {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    overflow-wrap: anywhere;
  }

  .hero-divider {
    display: none;
  }

  .hero-scroll {
    display: none;
  }

  .services-section { grid-template-columns: 1fr; gap: 2rem; padding: 5rem 1.5rem; }
  .services-intro { position: static; }
  .presence-section { padding: 5rem 1.5rem; }
  .work-preview { padding: 5rem 1.5rem; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card:first-child { grid-row: span 1; aspect-ratio: 4/3; }
  .philosophy-section { padding: 5rem 1.5rem; }
  .cta-strip { flex-direction: column; gap: 2rem; text-align: center; padding: 4rem 1.5rem; }
  .work-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 520px) {
  .hero {
    justify-content: flex-start;
    padding: 8rem 1.25rem 3.25rem;
  }

  .hero-eyebrow {
    font-size: 0.64rem;
  }

  .hero-title {
    font-size: clamp(3rem, 17vw, 4.4rem);
  }

  .hero-title .outline-text {
    font-size: 0.66em;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
  }

  .hero-counter {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }

  .service-item {
    grid-template-columns: auto 1fr;
    gap: 1rem;
    position: relative;
  }

  .service-arrow {
    position: absolute;
    top: 2rem;
    right: 0;
  }

  .service-desc {
    max-width: none;
    padding-right: 2rem;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }
}
