/* assets/style.css - versi bersih dan terstruktur */

/* ---------- vars & reset ---------- */
:root {
  --bg: #FBF7F4;
  --cozy: #8C6A51;
  --text: #3f352b;
  --muted: #6f5849;
  --card-bg: #fff;
  --accent: #C9A36A;
  --container-max: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
}

/* ---------- layout container ---------- */
.container {
  width: min(var(--container-max), 92%);
  margin: 0 auto;
}

/* ---------- header ---------- */
.site-header {
  background: linear-gradient(180deg, #FFF8F5 0%, #F7EFEA 100%);
  border-bottom: 1px solid rgba(124, 100, 85, 0.08);
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.logo {
  font-size: 18px;
  color: #5B4636;
  margin-bottom: 4px;
}

.tagline {
  font-size: 12px;
  color: #7f6a5c;
}

/* ---------- nav & hamburger ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-list a {
  text-decoration: none;
  color: #5B4636;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.2s;
}

.nav-list a:hover,
.nav-list a:focus {
  background: rgba(91, 70, 54, 0.06);
}

/* hamburger toggle */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  width: 36px;
  height: 28px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-label span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: #7a5a48;
  transition: 0.3s;
}

/* ---------- hero ---------- */
.hero {
  padding: 44px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 20px;
  align-items: center;
}

.hero-title {
  font-size: 28px;
  color: #4a3a30;
  margin-bottom: 8px;
}

.hero-lead {
  color: var(--muted);
  line-height: 1.6;
}

.hero-avatar img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(124, 100, 85, 0.06);
}

/* ---------- section header ---------- */
.section {
  padding: 36px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 26px;
  color: #6A4A2F;
  margin-bottom: 8px;
  display: inline-block;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 8px;
  border-radius: 3px;
}

/* subtitle small (optional) */
.sub-title {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 12px;
  text-align: left;
}

/* ---------- profile ---------- */
.profile-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.profile-top {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid rgba(140, 106, 81, 0.08);
  background: #F3E9E1;
  flex: 0 0 96px;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-content {
  max-width: 760px;
}

.profile-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  color: #553F33;
  margin: 0 0 8px;
}

.profile-intro {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* profile details 2x2 grid */
.profile-details {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
}

.info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-icon {
  width: 36px;
  height: 36px;
  color: var(--cozy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 24px;
  height: 24px;
}

.info-title {
  margin: 0 0 4px;
  font-size: 15px;
  color: #4f3b33;
}

.info-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- cards / karya ---------- */
.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(95, 72, 59, 0.04);
  border: 1px solid rgba(124, 100, 85, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(95, 72, 59, 0.08);
}

.card-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 12px;
}

.card-body h4 {
  font-size: 15px;
  color: #5b4636;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 13px;
  color: #7a5a48;
  line-height: 1.5;
}

/* ---------- media ---------- */
.media-grid {
  margin-bottom: 28px;
}

.media-grid:last-child {
  margin-bottom: 0;
}

.media-grid .media-item img,
.media-item .video {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.media-item iframe.video {
  height: 160px;
  border-radius: 6px;
  border: none;
}

.media-item {
  background: var(--card-bg);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(124, 100, 85, 0.04);
  transition: transform 0.2s;
}

.media-item:hover {
  transform: translateY(-3px);
}

.media-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* audio player */
.media-item audio {
  width: 100%;
  margin-top: 4px;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-item h4 {
  margin: 0 0 4px;
  color: #5b4636;
  font-size: 16px;
}

.contact-item a {
  text-decoration: none;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.contact-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.contact-icon {
  font-size: 22px;
  color: var(--cozy);
  width: 34px;
  flex-shrink: 0;
}

.contact-form-box {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.contact-form-box h3 {
  margin-bottom: 12px;
  color: #5b4636;
  font-size: 20px;
}

.form-note {
  font-size: 13px;
  color: #8b7768;
  margin-bottom: 16px;
  line-height: 1.5;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #e2dcd6;
  font-size: 14px;
  font-family: inherit;
  transition: border 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cozy);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* tombol */
.btn,
.contact-form-box button {
  display: inline-block;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: var(--cozy);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
  font-family: inherit;
}

.btn:hover,
.contact-form-box button:hover {
  background: #7A5A48;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 18px 0;
  text-align: center;
  color: #7a5a48;
  font-size: 13px;
  border-top: 1px solid rgba(124, 100, 85, 0.04);
  background: var(--bg);
}

.site-footer p {
  margin: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .profile-top {
    flex-direction: row;
    gap: 18px;
    align-items: center;
  }
}

@media (max-width: 680px) {
  .nav-toggle-label {
    display: flex;
    margin-left: auto;
  }
  
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
    z-index: 100;
    margin-top: 10px;
    border: 1px solid rgba(124, 100, 85, 0.1);
  }
  
  .nav-toggle:checked ~ .nav-list {
    display: flex;
  }
  
  /* Animasi hamburger ke X */
  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-avatar {
    max-width: 180px;
    margin: 0 auto;
  }
  
  .profile-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .profile-details {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 420px) {
  .profile-avatar {
    width: 80px;
    height: 80px;
  }
  
  .profile-name {
    font-size: 22px;
  }
  
  .section-title {
    font-size: 22px;
  }
  
  .hero-title {
    font-size: 22px;
  }
  
  .contact-form-box {
    padding: 16px;
  }
}