/* ELEVA MEDIA Global Styles */
:root {
  --blue: #002b6c;
  --white: #ffffff;
  --orange: #f37b53;
  --cyan: #00ffff;
  --text: #0f172a;
  --muted: #64748b;
  --bg: #f8fafc;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sauce One', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid #e2e8f0;
}
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto; /* stabil: brand auto, menu fleksibel, CTA auto */
  align-items: center;
  height: 56px;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { height: 28px; }
.brand span {
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .3px;
}
.menu { display: flex; gap: 18px; align-items: center; justify-content: center; margin: 0 auto; }
.menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}
.menu a:hover { color: var(--blue); }
/* Hover underline effect */
.menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 2px; width: 0;
  background: var(--blue);
  opacity: 0;
  transition: width .2s ease, opacity .2s ease;
}
.menu a:hover::after { width: 100%; opacity: 1; }

/* Header CTA */
.cta { padding: 6px 12px; border-radius: 999px; font-size: 12px; justify-self: end; align-self: center; white-space: nowrap; }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center; justify-content: center;
  font-weight: 700; color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(243,123,83,.35); }
.btn-outline { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.btn-outline:hover { background: rgba(0,43,108,.08); }
/* White button variant for hero secondary CTA */
.btn-white { background: var(--white); color: var(--blue); border: 1px solid #cbd5e1; }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(2,6,23,.10); background: var(--white); }

/* Hero */
.hero {
  background: url("../images/Background%20header.png");
  background-position: right center;
  background-size: 50% auto;
  background-repeat: no-repeat;
  padding: 64px 0 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: calc(50% - 24px);
  margin-left: clamp(24px, 6vw, 96px);
  margin-right: auto;
  /* Tambah jarak ke gambar di desktop penuh */
  padding-right: clamp(32px, 5vw, 96px);
}
.hero h1 {
  font-family: 'Open Sauce One', sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.08;
  margin: 0 0 12px;
  color: var(--blue);
}
.hero p { color: var(--muted); font-size: 20px; margin: 0 0 16px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
.section { padding: 48px 0; }
.section h2 {
  font-family: 'Open Sauce One', sans-serif;
  margin: 0 0 20px;
  color: var(--blue);
}
.muted { color: var(--muted); }

/* Cards & Grids */
.grid { display: grid; gap: 16px; }
.portfolio-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(2, 6, 23, .08); }
.card img { width: 100%; height: 160px; object-fit: cover; background: #e2e8f0; }
.card .content { padding: 12px 14px; }
.card .title { font-weight: 600; margin: 6px 0; }
.card .desc { color: var(--muted); font-size: 14px; }

/* Testimonials */
.slider { position: relative; overflow: hidden; }
.slides { display: flex; transition: transform .3s ease; }
.slide { min-width: 100%; padding: 16px; }
.slide .bubble {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}
.slider-controls { display: flex; gap: 12px; justify-content: center; margin-top: 12px; }

/* FAQ Accordion */
.accordion { display: grid; gap: 10px; }
.accordion-item { background: var(--white); border: 1px solid #e2e8f0; border-radius: 10px; }
.accordion-header { display: flex; align-items: center; justify-content: space-between; padding: 14px; cursor: pointer; }
.accordion-body { padding: 0 14px 14px; display: none; color: var(--muted); }
.accordion-item.open .accordion-body { display: block; }

/* Pricing */
.pricing { display: grid; gap: 16px; grid-template-columns: repeat(1, 1fr); }
@media (min-width: 768px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.tier { background: var(--white); border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; }
.tier h3 { margin: 0 0 6px; color: var(--blue); }
.tier .price { font-size: 22px; font-weight: 700; color: var(--orange); }
.tier ul { padding-left: 18px; }

/* Contact */
.contact-form { display: grid; gap: 12px; max-width: 640px; margin: 0 auto; }
.input, .textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font: inherit;
}
.textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 14px; color: var(--muted); }

/* Footer */
.footer { background: var(--white); border-top: 1px solid #e2e8f0; }
.footer .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.socials { display: flex; gap: 10px; }
.socials a { color: var(--text); text-decoration: none; }
.socials a:hover { color: var(--blue); }

/* Utility */
.center { text-align: center; }
.pill { padding: 6px 10px; border-radius: 999px; border: 1px dashed var(--blue); color: var(--blue); display: inline-block; }
.mt-8 { margin-top: 32px; }
.mb-8 { margin-bottom: 32px; }

/* Responsive fixes */
@media (max-width: 640px) {
  .menu { gap: 12px; }
  .hero h1 { font-size: 32px; }
}

/* Mobile UX improvements */
@media (max-width: 768px) {
  /* Header nyaman di mata */
  .header { background: rgba(255,255,255,.85); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid rgba(2,6,23,.06); }
  .nav { position: relative; height: 60px; grid-template-columns: auto 1fr auto; }
  .brand img { height: 30px; }
  /* Burger inline (bukan absolute) agar komposisi seimbang */
  .nav-toggle { display: inline-flex; position: static; grid-column: 3; justify-self: end; font-size: 20px; border: none; background: transparent; }
  .menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 60px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(2,6,23,.06);
    box-shadow: 0 14px 30px rgba(2,6,23,.08);
    flex-direction: column;
    padding: 14px 16px;
    gap: 12px;
    transition: opacity .2s ease;
  }
  .menu a { font-size: 16px; padding: 10px 0; font-weight: 600; letter-spacing: .2px; }
  .menu.open { display: flex; }
  .cta { display: none; }
  .hero {
    padding: 48px 0 36px;
    position: relative;
    background: linear-gradient(180deg, rgba(12,16,29,.35), rgba(12,16,29,.15)),
                url("../images/Background%20header.png");
    background-position: center, center;
    background-size: auto, cover;
    background-repeat: no-repeat, no-repeat;
  }
  /* Overlay blur 40% agar teks terbaca di mobile */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(12,16,29,.40);
    backdrop-filter: blur(8px);
    pointer-events: none;
  }
  .hero .hero-grid { max-width: 100%; margin: 0 auto; position: relative; z-index: 1; }
  .hero h1, .hero p { color: var(--white); }
  .hero .actions { flex-direction: column; align-items: flex-start; }
  .card img { height: 140px; }
  .container { padding: 0 20px; }
}

/* Desktop: rely on grid to center menu in middle column */
@media (min-width: 769px) {
  /* Geser navigasi sedikit ke kiri: kolom kiri sedikit lebih kecil */
  .nav { grid-template-columns: 0.95fr auto 1.05fr; }
}
