/* =============================================
   J Case Solutions — styles.css
   Production-ready. Dark theme. Gold accents.
   ============================================= */

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

:root {
  --navy:      #0F1E2E;
  --navy-mid:  #152435;
  --navy-lite: #1a2d40;
  --charcoal:  #1C1C1C;
  --gold:      #C89B3C;
  --gold-lite: #d9b05a;
  --gold-dark: #a37e2c;
  --white:     #FFFFFF;
  --muted:     rgba(255,255,255,0.55);
  --border:    rgba(200,155,60,0.18);
  --shadow:    0 4px 40px rgba(0,0,0,0.45);
  --radius:    12px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.section {
  padding: 100px 0;
}

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

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 48px auto;
  opacity: 0.6;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-lite);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,155,60,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* ---- NAVBAR ---- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

#navbar.scrolled {
  background: rgba(15,30,46,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.5);
  padding: 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding var(--transition);
}

#navbar.scrolled .nav-container {
  padding: 14px 24px;
}

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

.logo-mark {
  width: 38px; height: 38px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.cta-link {
  color: var(--gold) !important;
  font-weight: 600;
}
.cta-link::after { background: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(200,155,60,0.08) 0%, transparent 65%),
    linear-gradient(160deg, #0F1E2E 0%, #0a1520 50%, #0F1E2E 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(200,155,60,0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(200,155,60,0.05) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

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

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: 44px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

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

.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-indicator span {
  display: block;
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  80%       { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* ---- ABOUT ---- */
.about {
  background: var(--charcoal);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 20px;
}

.about-text p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  min-width: 52px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pillar {
  text-align: center;
  padding: 40px 28px;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.pillar:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(200,155,60,0.12);
}

.pillar-icon {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.pillar h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---- COMPANIES ---- */
.companies {
  background: var(--navy);
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.company-card {
  position: relative;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.company-card:hover,
.company-card:focus {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 0 1px var(--gold);
}

.card-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.company-card:hover .card-glow,
.company-card:focus .card-glow {
  opacity: 1;
}

.card-logo-wrap {
  padding: 36px 32px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.card-logo-placeholder {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px rgba(200,155,60,0.3);
  flex-shrink: 0;
}

.card-body {
  padding: 0 32px 24px;
  flex: 1;
}

.card-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 18px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,155,60,0.1);
  border: 1px solid rgba(200,155,60,0.25);
  padding: 4px 10px;
  border-radius: 4px;
}

.card-footer {
  padding: 18px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  transition: gap var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.company-card:hover .card-link .arrow {
  transform: translateX(4px);
}

.arrow {
  display: inline-block;
  transition: transform var(--transition);
}

.card-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.07);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ---- CONTACT ---- */
.contact {
  background: var(--charcoal);
}

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

.contact-intro {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

.contact-icon {
  color: var(--gold);
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.contact-form {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--white);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(200,155,60,0.05);
}

.form-group.error input,
.form-group.error textarea {
  border-color: #e05252;
}

.form-error {
  display: block;
  font-size: 0.78rem;
  color: #e05252;
  margin-top: 6px;
  min-height: 18px;
}

.form-success {
  display: none;
  text-align: center;
  color: #6dd98c;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 16px;
  padding: 14px;
  background: rgba(109,217,140,0.08);
  border: 1px solid rgba(109,217,140,0.25);
  border-radius: 8px;
}

.form-success.visible { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ---- FOOTER ---- */
.footer {
  background: var(--charcoal);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-name {
  font-weight: 600;
  font-size: 1rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--gold); }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ---- ANIMATIONS ---- */
.animate-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.animate-fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .companies-grid { grid-template-columns: 1fr 1fr; }
}

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

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(15,30,46,0.98);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 16px 24px 24px;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-link::after { display: none; }
  .nav-toggle { display: flex; }

  .about-grid      { grid-template-columns: 1fr; gap: 40px; }
  .pillars         { grid-template-columns: 1fr; gap: 20px; }
  .companies-grid  { grid-template-columns: 1fr; }
  .contact-grid    { grid-template-columns: 1fr; gap: 40px; }
  .contact-form    { padding: 28px 20px; }

  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.75rem; }
  .hero-title    { font-size: 2.8rem; }
  .about-stats   { grid-template-columns: 1fr; }
}

/* ---- COMPANY CARD LOGO IMAGES ---- */
.card-logo-img-wrap {
  width: 100%;
  height: 90px;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-logo-img-wrap.card-logo-bg-white {
  background: #ffffff;
  padding: 10px 14px;
}

.card-logo-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
