/*
Theme Name: Super Indo Company Simple
Theme URI: https://example.com/superindo-company-simple
Author: Tugas Weblog
Description: Tema WordPress sederhana untuk weblog company Super Indo dengan highlight berita grand opening.
Version: 1.2
Requires at least: 5.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: superindo-company-simple
*/

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #333333;
  background: #ffffff;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: #b30000;
  color: #ffffff;
  border-bottom: 3px solid #ffd600;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

.menu a {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.menu a:hover {
  color: #ffd600;
}

.hero {
  background: #b30000;
  color: #ffffff;
  padding: 42px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 36px;
  align-items: center;
}

.hero-label {
  display: inline-block;
  background: #ffd600;
  color: #850000;
  padding: 7px 13px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.8px;
}

.hero h1 span {
  color: #ffd600;
}

.hero p {
  margin: 0 0 22px;
  max-width: 620px;
  font-size: 17px;
  color: #fff1f1;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 14px;
  background: #ffd600;
  color: #850000;
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.8);
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 5px solid #ffffff;
  background: #ffffff;
  height: 370px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: sliderFade 12s infinite;
}

.carousel-slide:nth-child(2) {
  animation-delay: 4s;
}

.carousel-slide:nth-child(3) {
  animation-delay: 8s;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  background: rgba(130, 0, 0, 0.88);
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 6px;
}

.carousel-caption strong {
  display: block;
  color: #ffd600;
  margin-bottom: 2px;
}

.carousel-caption span {
  font-size: 13px;
}

@keyframes sliderFade {
  0% { opacity: 0; }
  6% { opacity: 1; }
  30% { opacity: 1; }
  36% { opacity: 0; }
  100% { opacity: 0; }
}

section {
  padding: 56px 0;
  scroll-margin-top: 85px;
}

.section-light {
  background: #fff8e3;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title h2 {
  margin: 0 0 8px;
  color: #b30000;
  font-size: 31px;
  line-height: 1.2;
}

.section-title p {
  max-width: 760px;
  margin: 0 auto;
  color: #666666;
}

.grid-2 {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
  align-items: start;
}

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

.box,
.card {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 24px;
}

.box h3,
.card h3 {
  margin: 0 0 10px;
  color: #b30000;
  font-size: 22px;
}

.box p,
.card p {
  margin: 0;
}

.image-box img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #dddddd;
}

.vision-card {
  min-height: 170px;
}

.service-card {
  text-align: left;
}

.service-icon {
  width: 42px;
  height: 42px;
  color: #b30000;
  margin-bottom: 12px;
}

.service-icon svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.8;
}

.news-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}

.news-layout img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dddddd;
}

.news-content {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 26px;
}

.date {
  display: inline-block;
  color: #b30000;
  font-weight: 700;
  margin-bottom: 8px;
}

.news-content h3 {
  margin: 0 0 12px;
  color: #b30000;
  font-size: 27px;
  line-height: 1.2;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-item {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 185px;
  object-fit: cover;
}

.caption {
  padding: 10px 12px;
  color: #b30000;
  font-weight: 700;
  font-size: 14px;
}

.contact-section {
  background: #333333;
  color: #ffffff;
}

.contact-section .section-title h2 {
  color: #ffffff;
}

.contact-section .section-title p {
  color: #dddddd;
}

.contact-section .card {
  background: #444444;
  border-color: #555555;
}

.contact-section .card h3 {
  color: #ffd600;
}

.site-footer {
  background: #222222;
  color: #cccccc;
  text-align: center;
  padding: 18px;
  font-size: 14px;
}

@media (max-width: 860px) {
  .navbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .menu {
    justify-content: flex-start;
    gap: 12px;
  }

  .hero-grid,
  .grid-2,
  .news-layout {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-carousel {
    height: 320px;
  }
}

@media (max-width: 540px) {
  .grid-3,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    height: 260px;
  }

  section {
    padding: 46px 0;
  }
}
