/* PT BALI NEXUS GLOBAL - Premium Corporate Stylesheet */
/* Colors: dark navy, gold, blue accents - from brand logo */

:root {
  --bg-dark: #0a0e1a;
  --bg-card: #0d1117;
  --bg-elevated: #151b28;
  --accent-blue: #3b82f6;
  --accent-gold: #fbbf24;
  --accent-gold-dim: #d4a012;
  --accent-orange: #f97316;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(148, 163, 184, 0.15);
  --glow-gold: rgba(251, 191, 36, 0.25);
  --glow-blue: rgba(59, 130, 246, 0.2);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Fade-in animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in > * {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}
.animate-in > *:nth-child(1) { animation-delay: 0.05s; }
.animate-in > *:nth-child(2) { animation-delay: 0.12s; }
.animate-in > *:nth-child(3) { animation-delay: 0.19s; }
.animate-in > *:nth-child(4) { animation-delay: 0.26s; }
.animate-in > *:nth-child(5) { animation-delay: 0.33s; }
.animate-in > *:nth-child(6) { animation-delay: 0.4s; }
.animate-in > *:nth-child(7) { animation-delay: 0.47s; }
.animate-in > *:nth-child(8) { animation-delay: 0.54s; }
.animate-in > *:nth-child(9) { animation-delay: 0.61s; }
.animate-in > *:nth-child(10) { animation-delay: 0.68s; }
.animate-in > *:nth-child(11) { animation-delay: 0.75s; }
.animate-in > *:nth-child(12) { animation-delay: 0.82s; }

.animate-in-slow > * {
  animation: fadeInUp 0.7s ease forwards;
  opacity: 0;
}
.animate-in-slow > *:nth-child(1) { animation-delay: 0.1s; }
.animate-in-slow > *:nth-child(2) { animation-delay: 0.2s; }
.animate-in-slow > *:nth-child(3) { animation-delay: 0.3s; }
.animate-in-slow > *:nth-child(4) { animation-delay: 0.4s; }
.animate-in-slow > *:nth-child(5) { animation-delay: 0.5s; }
.animate-in-slow > *:nth-child(6) { animation-delay: 0.6s; }
.animate-in-slow > *:nth-child(7) { animation-delay: 0.7s; }
.animate-in-slow > *:nth-child(8) { animation-delay: 0.8s; }
.animate-in-slow > *:nth-child(9) { animation-delay: 0.9s; }
.animate-in-slow > *:nth-child(10) { animation-delay: 1s; }
.animate-in-slow > *:nth-child(11) { animation-delay: 1.1s; }
.animate-in-slow > *:nth-child(12) { animation-delay: 1.2s; }
.animate-in-slow > *:nth-child(13) { animation-delay: 1.3s; }
.animate-in-slow > *:nth-child(14) { animation-delay: 1.4s; }
.animate-in-slow > *:nth-child(15) { animation-delay: 1.5s; }

@media (prefers-reduced-motion: reduce) {
  .animate-in > *,
  .animate-in-slow > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

/* Background subtle effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.08), transparent),
              radial-gradient(ellipse 60% 40% at 80% 60%, rgba(251, 191, 36, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Layout */
.site-wrapper { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  height: auto;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo img {
  height: 72px;
  width: auto;
  max-height: 72px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  header {
    padding-left: 24px;
    padding-right: 24px;
  }
  header .container {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
  }
  .logo img {
    height: 52px;
    max-height: 52px;
  }
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav a:hover { color: var(--accent-gold); }

.nav-cta {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dim));
  color: var(--bg-dark) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { opacity: 0.9; color: var(--bg-dark) !important; }

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* Typography */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; margin: 0 0 1rem 0; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--text-primary); }
h3 { font-size: 1.25rem; color: var(--text-primary); }

p { margin: 0 0 1rem 0; color: var(--text-secondary); }
p.lead { font-size: 1.125rem; color: var(--text-primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dim));
  color: var(--bg-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
}

/* Hero */
.hero {
  padding: 80px 0 100px;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-content {
  flex: 1 1 400px;
  min-width: 0;
  text-align: left;
}
.hero-content .lead { margin-left: 0; margin-right: 0; }
.hero-content .sub { margin-left: 0; margin-right: 0; }
.hero-image {
  flex: 1 1 400px;
  min-width: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; }
  .hero-content { text-align: center; }
  .hero-content .lead, .hero-content .sub { margin-left: auto; margin-right: auto; }
  .hero-image { max-height: 280px; }
  .hero-image img { max-height: 280px; }
}

.hero h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lead {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  font-size: 1.25rem;
}

.hero .sub {
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero .btn { margin-top: 0.5rem; }

/* Sections */
.section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { margin-bottom: 0.5rem; }
.section-title p { max-width: 560px; margin: 0 auto; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card h3 { margin-bottom: 0.75rem; }
.card ul { margin: 0; padding-left: 1.25rem; color: var(--text-secondary); }
.card li { margin-bottom: 0.5rem; }

/* Service grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition);
}
.service-card:hover { border-color: rgba(251, 191, 36, 0.4); }

.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  color: var(--accent-gold);
}
.what-we-offer .service-icon {
  width: 80px;
  height: 80px;
  margin-left: auto;
  margin-right: auto;
}
.service-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.what-we-offer .service-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.what-we-offer .service-card h3,
.what-we-offer .service-card p {
  text-align: center;
}
.what-we-offer .service-card .btn {
  align-self: center;
}
.what-we-offer .services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.what-we-offer .services-grid .service-card {
  flex: 1 1 300px;
  max-width: 380px;
}

.services-page .service-icon {
  margin-left: auto;
  margin-right: auto;
}
.services-page .service-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.services-page .service-card h3,
.services-page .service-card p,
.services-page .service-card ul {
  text-align: center;
}
.services-page .service-card ul {
  padding-left: 0;
  list-style-position: inside;
}
.service-price-list { list-style: none; padding: 0; margin: 0; }
.service-price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.service-price-list li:last-child { border-bottom: none; }
.service-price-list li span:first-child { min-width: 0; }
.service-price-list .price {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.service-card .service-cta {
  margin-top: 1.25rem;
}
.services-page .service-card .service-cta {
  display: flex;
  justify-content: center;
}
.service-price-list { width: 100%; }

.service-card h3 {
  color: var(--accent-gold);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}
.service-card p { margin-bottom: 1rem; font-size: 0.9375rem; }
.service-card ul { margin: 0; padding-left: 1.25rem; font-size: 0.9rem; }
.service-card li { margin-bottom: 0.4rem; }

/* Contact form */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group .optional { color: var(--text-muted); font-weight: 400; }

.form-checkbox .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent-gold);
  cursor: pointer;
}
.form-checkbox a {
  color: var(--accent-gold);
  text-decoration: none;
}
.form-checkbox a:hover { text-decoration: underline; }

/* Footer */
footer {
  margin-top: auto;
  padding: 48px 0 32px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 48px;
  align-items: start;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-column h5 {
  margin: 0 0 4px 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.footer-column a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-column a:hover { color: var(--accent-gold); }

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-logo img {
  height: 48px;
  width: auto;
  max-height: 48px;
  object-fit: contain;
  display: block;
}
.footer-brand h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  color: var(--text-primary);
}
.footer-brand p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-pay-img {
  max-height: 48px;
  width: auto;
  margin-top: 8px;
  opacity: 0.9;
}
.footer-pay .footer-pay-img { display: block; }

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Legal pages */
.legal-page { padding: 48px 0 80px; }
.legal-page h1 { margin-bottom: 1.5rem; font-size: 1.75rem; }
.legal-page h2 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.legal-page p, .legal-page ul { margin-bottom: 1rem; }
.legal-page ul { padding-left: 1.5rem; }
.legal-page a { color: var(--accent-gold); text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }

/* Contact page grid */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Page header */
.page-header {
  padding: 48px 0 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { margin: 0; }

.page-header-with-image {
  position: relative;
  padding: 80px 0 48px;
  overflow: hidden;
}
.page-header-image {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 0;
  min-height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.page-header-image img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: center;
  opacity: 0.65;
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 14, 26, 0.55) 0%, rgba(10, 14, 26, 0.35) 50%, rgba(10, 14, 26, 0.6) 100%);
  z-index: 1;
}
.page-header-content {
  position: relative;
  z-index: 2;
}

/* Cookie consent modal */
.cookie-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-modal.is-visible { transform: translateY(0); }

.cookie-modal-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-modal-text {
  flex: 1;
  min-width: 280px;
}
.cookie-modal-text p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.cookie-modal-text a {
  color: var(--accent-gold);
  text-decoration: none;
}
.cookie-modal-text a:hover { text-decoration: underline; }

.cookie-modal-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-modal-buttons .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}
.cookie-modal-buttons .btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.cookie-modal-buttons .btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

@media (max-width: 600px) {
  .cookie-modal-inner { flex-direction: column; align-items: stretch; }
  .cookie-modal-buttons { justify-content: stretch; }
  .cookie-modal-buttons .btn { flex: 1; }
}
