/*
Theme Name: Berdikari Custom Theme
Theme URI: https://berdikariputrajayasejahtera.com/
Author: Berdikari Dev
Description: Tema kustom super ringan (Clean HTML5 + ACF) untuk PT. Berdikari Putra Jaya Sejahtera. Tanpa bloat builder, performa instan dan SEO-friendly.
Version: 1.0.2
Text Domain: berdikari-custom
*/

/* Reset & Global Variables */
:root {
  --primary-blue: #0072d2;
  --secondary-teal: #00b6c3;
  --text-dark: #131739;
  --text-muted: #555c68;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --container-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #edf2f7;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.site-logo img {
  height: 50px;
  width: auto;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-dark);
  transition: color 0.2s;
  padding: 8px 0;
}

.site-nav a:hover {
  color: var(--primary-blue);
}

.btn-contact {
  background: var(--primary-blue);
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
  display: inline-block;
  text-align: center;
}

.btn-contact:hover {
  background: #005bb5 !important;
}

/* Mobile Menu Toggle Button */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  color: var(--text-dark);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(0,114,210,0.92) 0%, rgba(0,182,195,0.85) 100%), 
              url('https://berdikariputrajayasejahtera.com/wp-content/uploads/slider/cache/fe4d580028761310bc384ec7350465f5/Untitled-1.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 120px 0;
  text-align: left;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-blue);
}

.btn-primary:hover {
  background: #f0f4f8;
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

/* Section Common */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 40px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.feature-box {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-blue);
}

.feature-box h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.feature-box p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* News & Publications Grid */
.news-section {
  background: var(--bg-light);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.news-thumb {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 13px;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 8px;
}

.news-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.news-excerpt {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.news-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-blue);
}

/* Contact & Info */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-card {
  background: var(--bg-light);
  padding: 36px;
  border-radius: 10px;
}

.info-item {
  margin-bottom: 24px;
}

.info-item h4 {
  font-size: 16px;
  color: var(--primary-blue);
  margin-bottom: 6px;
}

.info-item p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Footer */
.site-footer {
  background: #0b0f2a;
  color: #a0aec0;
  padding: 60px 0 30px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

/* =========================================
   RESPONSIVE & CLEAN MOBILE BURGER MENU
   ========================================= */
@media (max-width: 900px) {
  .site-header {
    height: 70px;
  }
  
  .header-container {
    height: 70px;
  }
  
  .site-logo img {
    height: 42px;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Slide-down / Popup Mobile Menu */
  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border-top: 1px solid #edf2f7;
    padding: 15px 24px 25px;
    z-index: 9999;
  }

  .site-nav.active {
    display: block;
    animation: fadeInMenu 0.25s ease-in-out forwards;
  }

  @keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .site-nav li {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }

  .site-nav li:last-child {
    border-bottom: none;
    margin-top: 15px;
  }

  .site-nav a {
    display: block;
    padding: 14px 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
  }

  .site-nav a:hover {
    color: var(--primary-blue);
    padding-left: 15px;
    transition: all 0.2s ease;
  }

  .btn-contact {
    width: 100%;
    padding: 14px 20px !important;
    text-align: center;
    border-radius: 8px;
    font-size: 16px !important;
  }

  /* Page sections responsiveness */
  .hero-section {
    padding: 70px 0;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
  }

  .about-grid, 
  .about-features, 
  .contact-grid, 
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 26px;
  }
}

/* =========================================
   ANIMATIONS & HOVER EFFECTS (CSS NATIVE)
   ========================================= */
.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

/* Hover Card Micro-Interactions */
.hover-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 114, 210, 0.12) !important;
}

.btn {
  transition: all 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}
