/* ===============================
   PT KARUNIA IMPEXINDO WEBSITE
   Primary Color: #0A2A56
   Accent Color : #B88E47
================================= */

:root {
  --primary: #0A2A56;
  --accent: #B88E47;
  --dark: #1A1A1A;
  --gray: #6B6B6B;
  --light-gray: #F7F7F3;
  --white: #FFFFFF;
  --border: #E6E2DA;

  --heading-font: 'Cormorant Garamond', serif;
  --body-font: 'Inter', sans-serif;

  --container: 1180px;
  --radius: 22px;
  --shadow: 0 20px 50px rgba(10, 42, 86, 0.12);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section-padding {
  padding: 96px 0;
}

/* ===============================
   HEADER
================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-wrapper {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
}

.logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.logo-fallback {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
}

/* Sembunyikan fallback jika logo sudah tampil */
.logo img:not([src=""]) + .logo-fallback {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  transition: color 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

.nav-button {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  transition: 0.25s ease;
}

.nav-button:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ===============================
   HERO
================================= */

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  background:
    radial-gradient(circle at top right, rgba(184, 142, 71, 0.18), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f7f7f3 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #F2D9A5;
}

.hero-content h1 {
  max-width: 680px;
  font-family: var(--heading-font);
  font-size: clamp(46px, 6vw, 76px);
  line-height: 0.98;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-content p {
  max-width: 610px;
  color: var(--gray);
  font-size: 17px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(10, 42, 86, 0.2);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--primary);
  border: 1px solid rgba(10, 42, 86, 0.22);
  background: var(--white);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--white);
  color: var(--primary);
}

.btn-light:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 620px;
}

.hero-stats div {
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}

.hero-stats strong {
  display: block;
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 2px;
}

.hero-stats span {
  color: var(--gray);
  font-size: 13px;
}

.hero-image {
  position: relative;
  min-height: 520px;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--primary);
}

.hero-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* Placeholder jika gambar belum ada */
.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(10, 42, 86, 0.25), rgba(10, 42, 86, 0.35)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 8px,
      transparent 8px,
      transparent 18px
    );
  pointer-events: none;
}

.hero-card {
  position: absolute;
  left: 28px;
  bottom: 28px;
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.hero-card span {
  display: block;
  color: var(--gray);
  font-size: 13px;
  margin-bottom: 4px;
}

.hero-card strong {
  color: var(--primary);
  font-size: 20px;
}

/* ===============================
   ABOUT PREVIEW
================================= */

.about-preview {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.section-heading h2,
.center-heading h2,
.services-content h2,
.gallery-header h2,
.cta-box h2 {
  font-family: var(--heading-font);
  color: var(--primary);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.05;
}

.about-text p {
  color: var(--gray);
  font-size: 17px;
  margin-bottom: 22px;
}

.text-link {
  display: inline-flex;
  color: var(--primary);
  font-weight: 700;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: 0.25s ease;
}

.text-link:hover {
  color: var(--accent);
}

/* ===============================
   FEATURES
================================= */

.features-section {
  background: var(--light-gray);
}

.center-heading {
  max-width: 720px;
  margin: 0 auto 54px;
  text-align: center;
}

.center-heading p {
  color: var(--gray);
  margin-top: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 34px 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(10, 42, 86, 0.06);
  transition: 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: rgba(184, 142, 71, 0.14);
  color: var(--accent);
  font-weight: 800;
}

.feature-card h3 {
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--gray);
  font-size: 15px;
}

/* ===============================
   SERVICES
================================= */

.services-section {
  background: var(--primary);
  color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.services-content h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.services-content p {
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 30px;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-item {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: 0.25s ease;
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-4px);
}

.service-item h3 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 20px;
}

.service-item p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

/* ===============================
   GALLERY
================================= */

.gallery-section {
  background: var(--white);
}

.gallery-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(10, 42, 86, 0.08);
}

.gallery-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(10, 42, 86, 0.85), rgba(184, 142, 71, 0.65)),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.12) 0,
      rgba(255,255,255,0.12) 8px,
      transparent 8px,
      transparent 16px
    );
}

.gallery-info {
  padding: 24px;
}

.gallery-info h3 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 20px;
}

.gallery-info p {
  color: var(--gray);
  font-size: 15px;
}

/* ===============================
   CTA
================================= */

.cta-section {
  padding: 40px 0 96px;
  background: var(--white);
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 56px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(10, 42, 86, 0.98), rgba(10, 42, 86, 0.9)),
    radial-gradient(circle at top right, rgba(184, 142, 71, 0.35), transparent 32%);
  color: var(--white);
}

.cta-box h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-box p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
}

/* ===============================
   FOOTER
================================= */

.site-footer {
  background: #061B38;
  color: var(--white);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 54px;
  padding-bottom: 54px;
}

.footer-brand h3 {
  font-family: var(--heading-font);
  font-size: 30px;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-brand p,
.footer-column p,
.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.footer-column h4 {
  margin-bottom: 18px;
  color: var(--accent);
}

.footer-column a {
  display: block;
  margin-bottom: 10px;
  transition: 0.25s ease;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 22px 16px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 440px;
  }

  .hero-image img {
    height: 440px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 72px 0;
  }

  .header-wrapper {
    height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 18px;
  }

  .nav-button {
    display: none;
  }

  .hero-section {
    padding: 72px 0;
  }

  .hero-content h1 {
    font-size: 44px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .services-list,
  .features-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-header,
  .cta-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-box {
    padding: 36px 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .logo-fallback {
    font-size: 18px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-image,
  .hero-image img {
    height: 360px;
    min-height: 360px;
  }

  .section-heading h2,
  .center-heading h2,
  .services-content h2,
  .gallery-header h2,
  .cta-box h2 {
    font-size: 34px;
  }
}