/*
Theme Name: CSI Global Group
Theme URI: https://csi-reach-world.lovable.app
Author: CSI Global Group
Author URI: https://csi-reach-world.lovable.app
Description: Tema WordPress satu halaman (one-page) untuk CSI Global Group. Menampilkan profil perusahaan, layanan, industri, berita, dan kontak dalam satu halaman modern dan responsif.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: csi-global
Tags: one-page, one-column, custom-menu, custom-logo, featured-images, theme-options, translation-ready
*/

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

:root {
  --background: #f5f7fa;
  --foreground: #0a0f1a;
  --card: #ffffff;
  --card-foreground: #0a0f1a;
  --primary: #151b28;
  --primary-foreground: #f5f7fa;
  --secondary: #3b82f6;
  --secondary-foreground: #ffffff;
  --accent: #38bdf8;
  --accent-foreground: #151b28;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --radius: 0.75rem;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Header & Navigation ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 1rem 0;
}

.site-header.scrolled {
  background-color: var(--primary);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-foreground);
}

.site-logo span {
  color: var(--secondary);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  color: var(--primary-foreground);
  opacity: 0.8;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
  color: var(--accent);
}

.nav-cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.nav-cta:hover {
  background-color: #2563eb;
}

/* Mobile Nav */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-foreground);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-cta-desktop { display: none; }
  .mobile-toggle { display: block; }

  .mobile-nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary);
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mobile-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--primary-foreground);
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
  }

  .mobile-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* ===== Sections Common ===== */
.section {
  padding: 5rem 0;
}

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.text-center {
  text-align: center;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--primary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(21, 27, 40, 0.9), rgba(21, 27, 40, 0.7), rgba(21, 27, 40, 0.5));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  padding-top: 5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background-color: rgba(59, 130, 246, 0.2);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3rem;
  color: var(--primary-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero p {
  font-size: 1.125rem;
  color: rgba(245, 247, 250, 0.7);
  margin-bottom: 2rem;
  max-width: 40rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-primary:hover {
  background-color: #2563eb;
}

.btn-outline-light {
  background: transparent;
  border: 1px solid rgba(245, 247, 250, 0.3);
  color: var(--primary-foreground);
}

.btn-outline-light:hover {
  background-color: rgba(245, 247, 250, 0.1);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background-color: rgba(59, 130, 246, 0.1);
}

.btn-dark {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-dark:hover {
  background-color: #1e2535;
}

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  max-width: 32rem;
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-foreground);
}

.hero-stats .stat-label {
  font-size: 0.875rem;
  color: rgba(245, 247, 250, 0.6);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 1.75rem; }
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.about-card:nth-child(2),
.about-card:nth-child(4) {
  margin-top: 2rem;
}

.about-card .icon {
  width: 2rem;
  height: 2rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.about-card h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.about-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ===== Companies ===== */
.section-muted {
  background-color: var(--muted);
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.company-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.company-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.company-card .icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.company-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.company-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background-color: var(--muted);
  color: var(--muted-foreground);
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-card .icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.service-card ul {
  list-style: none;
}

.service-card li {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.service-card li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

/* ===== Industries ===== */
.section-dark {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.section-dark .section-label {
  color: var(--accent);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.industry-card {
  background: rgba(245, 247, 250, 0.05);
  border: 1px solid rgba(245, 247, 250, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: background-color 0.3s ease;
}

.industry-card:hover {
  background: rgba(245, 247, 250, 0.1);
}

.industry-card .icon {
  width: 2rem;
  height: 2rem;
  color: var(--accent);
  margin: 0 auto 0.75rem;
}

.industry-card span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===== Why Choose Us ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.why-card {
  text-align: center;
  padding: 1.5rem;
}

.why-card .icon-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background-color: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.why-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== Vision & Mission ===== */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.vm-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.vm-card .icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.vm-card .icon-wrap.blue { background-color: rgba(59, 130, 246, 0.1); }
.vm-card .icon-wrap.cyan { background-color: rgba(56, 189, 248, 0.1); }

.vm-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.vm-card p,
.vm-card li {
  color: var(--muted-foreground);
}

.vm-card ul {
  list-style: none;
}

.vm-card li {
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.vm-card li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

@media (max-width: 768px) {
  .vm-grid { grid-template-columns: 1fr; }
}

/* ===== News ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.news-card .thumb {
  height: 12rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(56, 189, 248, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(59, 130, 246, 0.4);
  font-size: 2.5rem;
}

.news-card .content {
  padding: 1.5rem;
}

.news-card .date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.news-card h3 {
  font-size: 1rem;
  margin: 0.5rem 0;
  transition: color 0.2s ease;
}

.news-card:hover h3 {
  color: var(--secondary);
}

.news-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(to right, var(--secondary), var(--accent));
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--secondary-foreground);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245, 247, 250, 0.1);
}

.footer-brand p {
  color: rgba(245, 247, 250, 0.6);
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(245, 247, 250, 0.6);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(245, 247, 250, 0.4);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Contact Form ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--card);
  color: var(--foreground);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ===== WordPress Core ===== */
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--muted-foreground); }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delays for grid children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger > *:nth-child(7) { transition-delay: 0.35s; }

/* Hero entrance animation */
.hero-content {
  animation: heroEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Counter animation */
.stat-number {
  transition: all 0.3s ease;
}

.stat-number.counting {
  transform: scale(1.1);
  color: var(--accent);
}
