/* ============================================================
   LAYOUT.CSS — Simply Amelie Child Theme
   Promo bar, navbar, hero, series section, footer, responsive
============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

img { display: block; width: 100%; }
button { cursor: pointer; font-family: var(--sa-font-sans); }

/* ============================================================
   PROMO BAR
============================================================ */
.sa-promo-bar {
  background: var(--sa-terracotta);
  color: var(--sa-white);
  text-align: center;
  padding: 9px 20px;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 500;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
}

.sa-promo-bar-track {
  display: inline-flex;
  gap: 0;
  animation: sa-marquee 28s linear infinite;
}

.sa-promo-bar-track span {
  margin: 0 32px;
  flex-shrink: 0;
}

@keyframes sa-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   NAVBAR
============================================================ */
.sa-nav {
  background: var(--sa-white);
  border-bottom: 1px solid var(--sa-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5em;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s;
}

.sa-nav-left,
.sa-nav-right {
  display: flex;
  gap: 28px;
  align-items: center;
}

.sa-nav-left a,
.sa-nav-right a {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sa-brown);
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.sa-nav-left a:hover,
.sa-nav-right a:hover {
  opacity: 1;
  color: var(--sa-terracotta);
}

.sa-nav-logo {
  font-family: var(--sa-font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--sa-brown-dark);
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.1;
}

.sa-nav-logo span {
  display: block;
  font-family: var(--sa-font-sans);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--sa-tosca);
  margin-top: 2px;
}
.sa-nav-logo-custom, .custom-logo {
  margin-top: 2px;
}
.sa-nav-logo-custom img, .custom-logo img{
  max-height: 68px!important;
}

.sa-nav-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--sa-brown);
  opacity: 0.75;
  transition: opacity 0.2s;
  cursor: pointer;
}

.sa-nav-icon:hover { opacity: 1; }

.sa-nav-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sa-cart-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  background: var(--sa-terracotta);
  color: white;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.sa-nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.sa-nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--sa-brown);
  transition: all 0.3s;
}

/* ============================================================
   HERO SECTION
============================================================ */
.sa-hero {
  background: var(--sa-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  overflow: hidden;
}

.sa-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px 60px 56px;
}

.sa-hero-eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sa-tosca);
  font-weight: 600;
  margin-bottom: 18px;
}

.sa-hero-title {
  font-family: var(--sa-font-serif);
  font-size: 48px;
  line-height: 1.18;
  color: var(--sa-brown-dark);
  font-weight: 700;
  margin-bottom: 20px;
}

.sa-hero-title em {
  font-style: italic;
  color: var(--sa-terracotta);
}

.sa-hero-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--sa-muted);
  max-width: 380px;
  margin-bottom: 36px;
  font-weight: 400;
}

.sa-hero-cta {
  display: flex;
  gap: 20px;
  align-items: center;
}

.sa-hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  background: var(--sa-border);
}

.sa-hero-img {
  position: relative;
  overflow: hidden;
  background: var(--sa-cream);
}

.sa-hero-img.large {
  grid-row: 1 / 3;
  grid-column: 1 / 2;
}

.sa-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sa-hero-img:hover img { transform: scale(1.04); }

.sa-hero-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sa-font-serif);
  font-size: 13px;
  font-style: italic;
  color: var(--sa-muted);
  opacity: 0.5;
}

.sa-hero-img.large .sa-hero-img-placeholder {
  background: linear-gradient(160deg, #E8DDD6 0%, #D4C4BA 100%);
}

.sa-hero-img:not(.large) .sa-hero-img-placeholder {
  background: linear-gradient(160deg, #EAE4DE 0%, #DCCFC7 100%);
}

.sa-hero-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--sa-white);
  padding: 7px 14px;
}

.sa-hero-badge-text {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sa-brown);
  font-weight: 600;
}

.sa-hero-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--sa-terracotta);
  color: var(--sa-white);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  font-weight: 600;
}

/* ============================================================
   SECTION HEADER (shared)
============================================================ */
.sa-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.sa-section-title {
  font-family: var(--sa-font-serif);
  font-size: 28px;
  color: var(--sa-brown-dark);
  font-weight: 600;
}

.sa-section-link {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sa-terracotta);
  font-weight: 600;
  border-bottom: 1px solid var(--sa-terracotta);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.sa-section-link:hover { opacity: 0.75; }

.custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 1;
  max-height: 48px;
}

.custom-logo-link img {
  display: block;
  max-height: 48px !important;
  width: auto;
  max-width: 180px;
}

/* ============================================================
   SERIES FILTER SECTION
============================================================ */
.sa-series-section {
  padding: 56px 56px 44px;
}

/* ============================================================
   PROMO BANNER
============================================================ */
.sa-promo-banner {
  margin: 0 56px 52px;
  background: var(--sa-olive);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 44px;
  gap: 24px;
}

.sa-promo-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  margin-bottom: 8px;
}

.sa-promo-title {
  font-family: var(--sa-font-serif);
  font-size: 30px;
  color: var(--sa-white);
  font-weight: 700;
  line-height: 1.2;
}

.sa-promo-title em {
  font-style: italic;
  color: #C5D9B5;
}

.sa-promo-banner-right {
  text-align: right;
  flex-shrink: 0;
}

/* ============================================================
   PRODUCTS SECTION
============================================================ */
.sa-products-section {
  padding: 0 56px 72px;
}

/* ============================================================
   FOOTER
============================================================ */
.sa-footer {
  background: var(--sa-brown-dark);
  color: rgba(255,255,255,0.75);
  padding: 5em;
}

.sa-footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}

.sa-footer-brand-name {
  font-family: var(--sa-font-serif);
  font-size: 22px;
  color: var(--sa-white);
  font-weight: 700;
  margin-bottom: 4px;
}

.sa-footer-brand-sub {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sa-tosca);
  font-weight: 300;
  margin-bottom: 16px;
}

.sa-footer-brand-desc {
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  max-width: 240px;
}

/* ── heading kolom footer: h4 statis ATAU .sa-widget-title dari widget ── */
.sa-footer-col h4,
.sa-footer-col .sa-widget-title,
.sa-footer-col .widget-title {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sa-white);
  margin-bottom: 16px;
  font-family: var(--sa-font-sans);
}

/* ── list kolom footer: ul statis ATAU ul dari widget Navigation Menu ── */
.sa-footer-col ul,
.sa-footer-col .menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.sa-footer-col ul li a,
.sa-footer-col .menu li a {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.sa-footer-col ul li a:hover,
.sa-footer-col .menu li a:hover { color: var(--sa-white); }

/* ── kolom brand: widget Text/HTML di dalam sa-footer-brand-col ── */
.sa-footer-brand-col .widget,
.sa-footer-brand-col p {
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
  max-width: 240px;
}

.sa-footer-brand-col .sa-widget-title,
.sa-footer-brand-col .widget-title {
  font-family: var(--sa-font-serif);
  font-size: 22px;
  color: var(--sa-white);
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: normal;
  text-transform: none;
}

.sa-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

.sa-footer-social {
  display: flex;
  gap: 12px;
}

.sa-social-pill {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 5px 12px;
  transition: all 0.2s;
}

.sa-social-pill:hover {
  color: var(--sa-white);
  border-color: rgba(255,255,255,0.4);
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 768px)
============================================================ */
@media (max-width: 768px) {
  .sa-nav {
    padding: 0 20px;
  }

  .sa-nav-left,
  .sa-nav-right > a {
    display: none;
  }

  .sa-nav-hamburger {
    display: flex;
  }

  .sa-hero {
    grid-template-columns: 1fr;
  }

  .sa-hero-visual {
    min-height: 320px;
  }

  .sa-hero-text {
    padding: 40px 24px;
  }

  .sa-hero-title { font-size: 34px; }

  .sa-series-section,
  .sa-products-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .sa-promo-banner {
    margin: 0 20px 40px;
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }

  .sa-promo-banner-right { text-align: center; }

  .sa-footer { padding: 40px 20px; }

  .sa-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .sa-footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 480px)
============================================================ */
@media (max-width: 480px) {
  .sa-hero-title { font-size: 28px; }
}
