/*
Theme Name: Mukena Elegance
Theme URI: https://example.com/mukena-elegance
Author: Codex
Author URI: https://example.com
Description: Tema WordPress elegan untuk brand fashion muslim dan mukena premium, lengkap dengan hero editorial, koleksi unggulan, highlight produk, dan layout blog.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mukena-elegance
Tags: blog, e-commerce, fashion, custom-logo, custom-menu, featured-images, one-column, two-columns
*/

:root {
  --color-ink: #2d2925;
  --color-muted: #746d65;
  --color-ivory: #fbf7ef;
  --color-cream: #f4eadb;
  --color-sage: #71826d;
  --color-sage-dark: #465544;
  --color-rose: #b78375;
  --color-gold: #c5a260;
  --color-white: #fffdf8;
  --shadow-soft: 0 22px 70px rgba(45, 41, 37, 0.12);
  --radius: 8px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-ivory);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
}

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(45, 41, 37, 0.08);
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 28px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.custom-logo {
  width: auto;
  max-height: 48px;
}

.site-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.48rem;
  line-height: 1.1;
}

.site-description {
  margin: 3px 0 0;
  color: var(--color-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(45, 41, 37, 0.16);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  content: "";
}

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

.primary-menu a {
  color: var(--color-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  color: var(--color-sage-dark);
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-sage-dark);
  color: var(--color-white);
  font-weight: 700;
  cursor: pointer;
}

.button.secondary {
  border: 1px solid rgba(45, 41, 37, 0.18);
  background: transparent;
  color: var(--color-ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 70px;
  background:
    linear-gradient(90deg, rgba(251, 247, 239, 0.96) 0%, rgba(251, 247, 239, 0.78) 47%, rgba(251, 247, 239, 0.26) 100%),
    url("assets/hero-mukena.svg") center right / min(54vw, 720px) auto no-repeat,
    var(--color-cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.62fr);
  align-items: center;
  min-height: 560px;
  gap: 36px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-rose);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-title,
.section-title,
.entry-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(2.7rem, 7vw, 6.4rem);
}

.hero-copy {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--color-muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-note {
  align-self: end;
  max-width: 300px;
  margin-left: auto;
  padding: 24px;
  border: 1px solid rgba(255, 253, 248, 0.7);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.76);
  box-shadow: var(--shadow-soft);
}

.hero-note strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: var(--color-white);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-title {
  max-width: 650px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-intro {
  max-width: 430px;
  margin: 0;
  color: var(--color-muted);
}

.collection-grid,
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.collection-card,
.post-card,
.feature-card {
  overflow: hidden;
  border: 1px solid rgba(45, 41, 37, 0.08);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 10px 34px rgba(45, 41, 37, 0.06);
}

.collection-image {
  min-height: 270px;
  background: linear-gradient(135deg, var(--tone-a), var(--tone-b));
}

.collection-card:nth-child(1) {
  --tone-a: #f2dfcf;
  --tone-b: #f9f4ea;
}

.collection-card:nth-child(2) {
  --tone-a: #d9dfd0;
  --tone-b: #fff9ef;
}

.collection-card:nth-child(3) {
  --tone-a: #e8c8bd;
  --tone-b: #f8ebdc;
}

.collection-body,
.post-card-content,
.feature-card {
  padding: 24px;
}

.collection-card h3,
.feature-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.collection-card p,
.feature-card p,
.post-card p {
  margin: 0;
  color: var(--color-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 210px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(113, 130, 109, 0.15);
  color: var(--color-sage-dark);
  font-weight: 900;
}

.editorial-band {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.editorial-media {
  min-height: 520px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(45, 41, 37, 0), rgba(45, 41, 37, 0.16)),
    url("assets/detail-mukena.svg") center / cover no-repeat;
  box-shadow: var(--shadow-soft);
}

.editorial-copy h2 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.08;
}

.editorial-copy p {
  color: var(--color-muted);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.badge-list li {
  padding: 8px 12px;
  border: 1px solid rgba(45, 41, 37, 0.12);
  border-radius: var(--radius);
  color: var(--color-sage-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 42px;
  border-radius: var(--radius);
  background: var(--color-sage-dark);
  color: var(--color-white);
}

.newsletter h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.newsletter p {
  margin: 8px 0 0;
  color: rgba(255, 253, 248, 0.78);
}

.newsletter .button {
  background: var(--color-white);
  color: var(--color-sage-dark);
}

.content-area {
  padding: 70px 0;
}

.page-header {
  padding: 64px 0 36px;
  background: var(--color-cream);
}

.page-title {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.entry-content {
  max-width: 780px;
  margin: 0 auto;
}

.entry-content a {
  color: var(--color-sage-dark);
  font-weight: 700;
}

.post-card img,
.post-thumbnail img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post-card .entry-title {
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.entry-meta,
.post-card .entry-meta {
  margin-bottom: 10px;
  color: var(--color-rose);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  padding: 48px 0;
  background: #28241f;
  color: var(--color-white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 253, 248, 0.72);
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-block;
  }

  .main-navigation {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 10px);
    display: none;
    padding: 18px;
    border: 1px solid rgba(45, 41, 37, 0.1);
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
  }

  .main-navigation.is-open {
    display: block;
  }

  .primary-menu,
  .primary-menu ul {
    display: grid;
    gap: 12px;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(251, 247, 239, 0.98), rgba(251, 247, 239, 0.78)),
      url("assets/hero-mukena.svg") bottom right / 480px auto no-repeat,
      var(--color-cream);
  }

  .hero-grid,
  .editorial-band,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-note {
    margin: 22px 0 0;
  }

  .collection-grid,
  .posts-grid,
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .footer-inner {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .site-description {
    display: none;
  }

  .hero,
  .section,
  .content-area {
    padding: 54px 0;
  }

  .collection-grid,
  .posts-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .editorial-media {
    min-height: 340px;
  }

  .newsletter {
    padding: 28px;
  }
}
