/* ==========================================================================
   PT. NURCAHYA TEKNIK INDUSTRY - 2-COLOR ENTERPRISE SYSTEM
   Theme: Strict Corporate Blue & Pure White with Soft Shadows
   Clean White Base | Corporate Blue Actions | Soft Depth
   ========================================================================== */

:root {
  --blue-primary: #1d4ed8;       /* Blue 700 */
  --blue-hover:   #1e40af;       /* Blue 800 */
  --blue-deep:    #0f2b48;       /* Deep Navy Text */
  --blue-light:   #eff6ff;       /* Blue 50 */
  --blue-border:  #bfdbfe;       /* Blue 200 */
  
  --white:        #ffffff;
  --bg-page:      #f8fafc;       /* Slate 50 */
  --border-card:  #e2e8f0;       /* Slate 200 */
  
  --text-main:    #0f2b48;
  --text-body:    #334155;
  --text-muted:   #64748b;
  
  --shadow-card:  0 4px 20px -2px rgba(15, 43, 72, 0.06), 0 2px 6px -1px rgba(15, 43, 72, 0.04);
  --shadow-hover: 0 12px 30px -4px rgba(29, 78, 216, 0.16), 0 4px 10px -2px rgba(15, 43, 72, 0.05);
  --shadow-btn:   0 4px 14px rgba(29, 78, 216, 0.22);
  --shadow-btn-hover: 0 8px 25px rgba(29, 78, 216, 0.32);
  
  --radius-full:  9999px;
  --radius-lg:    16px;
  --radius-md:    12px;
  --transition:   all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-w:        1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; background-color: var(--bg-page); }
body { font-family: var(--font-sans); background-color: var(--bg-page); color: var(--text-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max-w); margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }

/* Navigation */
.site-nav { position: sticky; top: 0; z-index: 100; background-color: var(--white); border-bottom: 1px solid var(--border-card); box-shadow: 0 2px 12px rgba(15, 43, 72, 0.04); }
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand-link { display: flex; align-items: center; gap: 12px; }
.brand-logo-img { width: 44px; height: 44px; object-fit: contain; }
.brand-title { font-size: 1.05rem; font-weight: 700; color: var(--blue-deep); letter-spacing: -0.01em; }
.brand-subtitle { font-size: 0.75rem; font-weight: 600; color: var(--blue-primary); letter-spacing: 0.05em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-item { font-size: 0.925rem; font-weight: 500; color: var(--text-body); transition: var(--transition); padding: 0.5rem 0; }
.nav-item:hover, .nav-item.active { color: var(--blue-primary); }

/* Buttons */
.btn-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 24px; border-radius: var(--radius-full); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; text-decoration: none; }
.btn-pill-primary { background-color: var(--blue-primary); color: var(--white); box-shadow: var(--shadow-btn); }
.btn-pill-primary:hover { background-color: var(--blue-hover); transform: translateY(-2px); box-shadow: var(--shadow-btn-hover); color: var(--white); }
.btn-pill-secondary { background-color: var(--white); color: var(--blue-primary); border: 1px solid var(--blue-border); box-shadow: var(--shadow-card); }
.btn-pill-secondary:hover { background-color: var(--blue-light); transform: translateY(-2px); color: var(--blue-hover); }
.btn-pill-lg { padding: 14px 32px; font-size: 1rem; }

/* Hero */
.hero-wrapper { padding: 4.5rem 0 3.5rem; background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); border-bottom: 1px solid var(--border-card); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background-color: var(--blue-light); color: var(--blue-primary); border: 1px solid var(--blue-border); padding: 6px 16px; border-radius: var(--radius-full); font-size: 0.825rem; font-weight: 600; margin-bottom: 1.25rem; }
.hero-heading { font-size: 2.75rem; font-weight: 800; line-height: 1.2; color: var(--blue-deep); letter-spacing: -0.02em; margin-bottom: 1.25rem; max-width: 850px; }
.hero-heading .text-blue { color: var(--blue-primary); }
.hero-desc { font-size: 1.125rem; color: var(--text-body); max-width: 720px; line-height: 1.7; margin-bottom: 2rem; }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

/* Metrics */
.metrics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.metric-card { background-color: var(--white); border: 1px solid var(--border-card); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-card); transition: var(--transition); }
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--blue-border); }
.metric-number { font-size: 2rem; font-weight: 800; color: var(--blue-primary); line-height: 1; margin-bottom: 0.5rem; }
.metric-label { font-size: 0.925rem; font-weight: 600; color: var(--blue-deep); margin-bottom: 0.25rem; }
.metric-sub { font-size: 0.8rem; color: var(--text-muted); }

/* Sections */
.section-py { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-tag { font-size: 0.825rem; font-weight: 700; color: var(--blue-primary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.section-title { font-size: 2.125rem; font-weight: 800; color: var(--blue-deep); letter-spacing: -0.015em; margin-bottom: 0.75rem; }
.section-intro { font-size: 1.05rem; color: var(--text-muted); line-height: 1.6; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 2.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }

/* Corporate Card */
.corp-card { background-color: var(--white); border: 1px solid var(--border-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: var(--transition); display: flex; flex-direction: column; }
.corp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--blue-border); }
.card-img-wrapper { position: relative; width: 100%; height: 220px; background-color: var(--bg-page); overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.corp-card:hover .card-img { transform: scale(1.03); }
.card-body { padding: 1.75rem; display: flex; flex-direction: column; flex-grow: 1; }
.card-category { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-primary); margin-bottom: 0.5rem; }
.card-title { font-size: 1.2rem; font-weight: 700; color: var(--blue-deep); line-height: 1.35; margin-bottom: 0.75rem; }
.card-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.25rem; flex-grow: 1; }
.card-meta-list { display: flex; flex-direction: column; gap: 6px; padding-top: 1rem; border-top: 1px solid var(--border-card); margin-bottom: 1.25rem; }
.card-meta-item { font-size: 0.825rem; color: var(--text-body); display: flex; justify-content: space-between; }
.card-meta-label { color: var(--text-muted); }
.card-meta-val { font-weight: 600; color: var(--blue-deep); }

/* Promotional Banner Box */
.promo-box { background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%); border: 1px solid var(--blue-border); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-card); margin-top: 3rem; }
.promo-title { font-size: 1.5rem; font-weight: 800; color: var(--blue-deep); margin-bottom: 0.75rem; }
.promo-text { font-size: 1rem; color: var(--text-body); line-height: 1.7; margin-bottom: 1.5rem; max-width: 800px; }

/* Client Typographic Card */
.client-corp-card { background-color: var(--white); border: 1px solid var(--border-card); border-radius: var(--radius-md); padding: 1.75rem 1.5rem; box-shadow: var(--shadow-card); transition: var(--transition); display: flex; flex-direction: column; justify-content: center; }
.client-corp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--blue-primary); }
.client-name { font-size: 1.05rem; font-weight: 700; color: var(--blue-deep); margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.client-sector { font-size: 0.8rem; font-weight: 600; color: var(--blue-primary); text-transform: uppercase; letter-spacing: 0.04em; }

/* Detail Page */
.breadcrumb-nav { padding: 1rem 0; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb-nav a { color: var(--blue-primary); font-weight: 500; }
.breadcrumb-nav span { margin: 0 0.5rem; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 3.5rem; align-items: start; }
.detail-gallery { background-color: var(--white); border: 1px solid var(--border-card); border-radius: var(--radius-lg); padding: 1rem; box-shadow: var(--shadow-card); }
.detail-main-img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius-md); }
.detail-info { display: flex; flex-direction: column; }
.detail-badge { display: inline-block; align-self: flex-start; font-size: 0.8rem; font-weight: 700; color: var(--blue-primary); background-color: var(--blue-light); border: 1px solid var(--blue-border); padding: 4px 14px; border-radius: var(--radius-full); margin-bottom: 1rem; }
.detail-title { font-size: 2.25rem; font-weight: 800; color: var(--blue-deep); line-height: 1.25; margin-bottom: 1rem; }
.detail-desc { font-size: 1.05rem; color: var(--text-body); line-height: 1.7; margin-bottom: 1.75rem; }
.specs-table { width: 100%; border-collapse: collapse; background-color: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 2rem; }
.specs-table td { padding: 14px 18px; font-size: 0.9rem; border-bottom: 1px solid var(--border-card); }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table td.spec-name { color: var(--text-muted); width: 38%; font-weight: 500; }
.specs-table td.spec-val { color: var(--blue-deep); font-weight: 600; }

/* Forms */
.form-card { background-color: var(--white); border: 1px solid var(--border-card); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-card); max-width: 760px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--blue-deep); margin-bottom: 0.5rem; }
.form-control { width: 100%; padding: 12px 16px; border-radius: var(--radius-md); border: 1px solid var(--border-card); font-size: 0.95rem; font-family: inherit; background-color: var(--white); color: var(--text-body); transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--blue-primary); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12); }

/* Footer */
.site-footer { background-color: var(--white); border-top: 1px solid var(--border-card); padding: 4rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-col-title { font-size: 0.95rem; font-weight: 700; color: var(--blue-deep); margin-bottom: 1.25rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-link { font-size: 0.875rem; color: var(--text-muted); transition: var(--transition); }
.footer-link:hover { color: var(--blue-primary); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border-card); display: flex; align-items: center; justify-content: space-between; font-size: 0.825rem; color: var(--text-muted); }

/* AI Assistant Chat (Strict Corporate Blue) */
.ai-chat-fab { position: fixed; bottom: 28px; right: 28px; z-index: 999; width: 60px; height: 60px; border-radius: var(--radius-full); background-color: var(--blue-primary); color: var(--white); border: none; box-shadow: 0 8px 25px rgba(29, 78, 216, 0.35); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.ai-chat-fab:hover { background-color: var(--blue-hover); transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 30px rgba(29, 78, 216, 0.45); }
.ai-chat-badge { position: absolute; top: -4px; right: -4px; background-color: var(--blue-deep); color: var(--white); font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: var(--radius-full); border: 2px solid var(--white); }
.ai-chat-window { position: fixed; bottom: 100px; right: 28px; z-index: 1000; width: 380px; max-width: calc(100vw - 40px); height: 540px; max-height: calc(100vh - 120px); background-color: var(--white); border: 1px solid var(--border-card); border-radius: var(--radius-lg); box-shadow: 0 16px 40px -6px rgba(15, 43, 72, 0.2); display: flex; flex-direction: column; overflow: hidden; opacity: 0; pointer-events: none; transform: translateY(20px) scale(0.96); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.ai-chat-window.active { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.ai-chat-header { background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-deep) 100%); color: var(--white); padding: 1.1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.ai-avatar { width: 34px; height: 34px; border-radius: var(--radius-full); background-color: var(--white); display: flex; align-items: center; justify-content: center; color: var(--blue-primary); font-weight: 800; font-size: 0.85rem; }
.ai-header-title { font-size: 0.95rem; font-weight: 700; color: var(--white); }
.ai-header-sub { font-size: 0.725rem; color: var(--blue-border); }
.ai-close-btn { background: none; border: none; color: var(--white); cursor: pointer; padding: 4px; display: flex; }
.ai-chat-body { flex: 1; overflow-y: auto; padding: 1.25rem; background-color: var(--bg-page); display: flex; flex-direction: column; gap: 12px; }
.chat-bubble { max-width: 85%; padding: 10px 14px; font-size: 0.875rem; line-height: 1.5; border-radius: 14px; }
.bubble-ai { align-self: flex-start; background-color: var(--white); color: var(--text-body); border: 1px solid var(--border-card); box-shadow: var(--shadow-card); border-bottom-left-radius: 4px; }
.bubble-user { align-self: flex-end; background-color: var(--blue-primary); color: var(--white); border-bottom-right-radius: 4px; }
.ai-quick-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.topic-chip { background-color: var(--white); color: var(--blue-primary); border: 1px solid var(--blue-border); padding: 5px 12px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.topic-chip:hover { background-color: var(--blue-light); border-color: var(--blue-primary); }
.ai-chat-footer { padding: 10px 12px; background-color: var(--white); border-top: 1px solid var(--border-card); display: flex; gap: 8px; }
.ai-chat-input { flex: 1; padding: 10px 14px; border-radius: var(--radius-full); border: 1px solid var(--border-card); font-size: 0.875rem; font-family: inherit; outline: none; background-color: var(--bg-page); }
.ai-chat-input:focus { border-color: var(--blue-primary); background-color: var(--white); }
.ai-send-btn { width: 40px; height: 40px; border-radius: var(--radius-full); background-color: var(--blue-primary); color: var(--white); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.ai-send-btn:hover { background-color: var(--blue-hover); }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-heading { font-size: 2.1rem; }
  .detail-layout { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .hero-heading { font-size: 1.85rem; }
}
