/*
 * Gia Dung 17 — Laundry & Closet Lab
 * Handcrafted component styles (BEM) that complement the Tailwind utility
 * build in src/style.css. This file is NEVER touched by `npm run build`.
 *
 * Design tokens (mirrors src/input.css):
 *   --color-primary:  #ab7d1f
 *   --color-secondary:#d5a4a2
 *   --color-accent:   #7a5230
 *   --color-bg:       #faf6f2
 *   --color-surface:  #ffffff
 *   --color-border:   #ece3da
 *   --color-text:     #2c241d
 *   --color-muted:    #8a7d72
 *   --font-display:   "Cormorant"
 */

html {
  scroll-behavior: smooth;
}

/*
 *   --font-body:      "Manrope"
 *   --brand-gradient: coral → gold, locked in src/input.css
 */

:root {
  --brand-gradient: linear-gradient(210deg, #d5a4a2 0%, #d5a5a1 7.143%, #d5a59d 14.286%, #d5a697 21.429%, #d5a68e 28.571%, #d5a783 35.714%, #d5a776 42.857%, #d5a868 50%, #d5a858 57.143%, #d5a846 64.286%, #d5a935 71.429%, #d5a922 78.571%, #d5aa10 85.714%, #d5aa00 92.857%, #d5aa00 100%);
}

/* ==========================================================================
   Header
   ========================================================================== */

.gd7-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 242, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.gd7-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.gd7-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.gd7-logo__name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.gd7-logo__name .material-symbols-outlined {
  color: var(--color-primary);
  font-size: 22px !important;
}

.gd7-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.gd7-nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.gd7-nav__list a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.gd7-nav__list a:hover {
  color: var(--color-primary);
}

@media (max-width: 63.99rem) {
  .gd7-nav {
    display: none;
  }
}

.gd7-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.gd7-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gd7-icon-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.gd7-mobile-toggle {
  display: none;
}

@media (max-width: 63.99rem) {
  .gd7-mobile-toggle {
    display: inline-flex;
  }
}

.gd7-search-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.25s ease;
}

.gd7-search-panel.open {
  max-height: 6rem;
  opacity: 1;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
}

.gd7-drawer {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.25s ease;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.gd7-drawer.open {
  max-height: 28rem;
  opacity: 1;
}

.gd7-drawer a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}

.gd7-drawer a:hover {
  background: var(--color-bg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.gd7-hero {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 3.5rem 0;
}

.gd7-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 63.99rem) {
  .gd7-hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.gd7-hero__kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
}

.gd7-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.gd7-hero__title a {
  color: var(--color-text);
  text-decoration: none;
}

.gd7-hero__title a:hover {
  color: var(--color-primary);
}

.gd7-hero__excerpt {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-muted);
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.gd7-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.7rem;
  border-radius: 0.6rem;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(171, 125, 31, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gd7-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(171, 125, 31, 0.4);
}

.gd7-hero__frame {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 24px 55px rgba(122, 82, 48, 0.22);
}

.gd7-hero__frame img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gd7-hero__frame:hover img {
  transform: scale(1.03);
}

.gd7-hero__tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.gd7-hero__tag .material-symbols-outlined {
  font-size: 16px !important;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.gd7-section {
  padding: 3.5rem 0;
}

.gd7-section--tint {
  background: var(--color-bg);
}

.gd7-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.gd7-section-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.gd7-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 700;
  color: var(--color-text);
}

/* ==========================================================================
   Drag rail
   ========================================================================== */

.gd7-drag-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.gd7-drag-scroll::-webkit-scrollbar {
  height: 6px;
}

.gd7-drag-scroll::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 999px;
}

.gd7-drag-scroll.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.gd7-drag-scroll.is-dragging a {
  pointer-events: none;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.gd7-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gd7-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(44, 36, 29, 0.1);
  border-color: var(--color-primary);
}

.gd7-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--color-bg);
}

.gd7-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gd7-card:hover .gd7-card__thumb img {
  transform: scale(1.06);
}

.gd7-card__body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.gd7-card__cat {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gd7-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
}

.gd7-card__meta {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* ==========================================================================
   Fabric care grid
   ========================================================================== */

.laund-fabric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 63.99rem) {
  .laund-fabric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 39.99rem) {
  .laund-fabric-grid {
    grid-template-columns: 1fr;
  }
}

.laund-fabric-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.laund-fabric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(44, 36, 29, 0.08);
}

.laund-fabric-card__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--color-border);
}

.laund-fabric-card__head .material-symbols-outlined {
  color: var(--color-primary);
  font-size: 22px;
}

.laund-fabric-card__head h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.laund-fabric-card__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 0.35rem 0;
}

.laund-fabric-card__row span:first-child {
  color: var(--color-muted);
}

.laund-fabric-card__row span:last-child {
  font-weight: 600;
  color: var(--color-text);
  text-align: right;
}

.laund-fabric-card__note {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--color-border);
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.55;
  font-style: italic;
}

/* ==========================================================================
   Stain removal grid
   ========================================================================== */

.laund-stain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 63.99rem) {
  .laund-stain-grid {
    grid-template-columns: 1fr;
  }
}

.laund-stain-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.laund-stain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(44, 36, 29, 0.1);
}

.laund-stain-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.laund-stain-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.laund-stain-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.laund-stain-card__body {
  padding: 1.1rem 1.25rem 1.4rem;
}

.laund-stain-card__body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.laund-stain-card__body p {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Folding steps
   ========================================================================== */

.laund-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: laund-step;
}

@media (max-width: 63.99rem) {
  .laund-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 39.99rem) {
  .laund-steps {
    grid-template-columns: 1fr;
  }
}

.laund-step {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem 1.5rem;
  counter-increment: laund-step;
}

.laund-step::before {
  content: counter(laund-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #2c241d;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.laund-step h5 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.laund-step p {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Newsletter
   ========================================================================== */

.gd7-newsletter {
  background: var(--brand-gradient);
  border-radius: 1.25rem;
  padding: 2.5rem;
  text-align: center;
  color: #2c241d;
}

.gd7-newsletter h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.gd7-newsletter p {
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.gd7-newsletter form {
  display: flex;
  gap: 0.6rem;
  max-width: 26rem;
  margin: 0 auto;
  flex-wrap: wrap;
}

.gd7-newsletter input {
  flex: 1;
  min-width: 10rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.6rem;
  border: none;
  font-size: 0.88rem;
  outline: none;
}

.gd7-newsletter button {
  padding: 0.85rem 1.6rem;
  border-radius: 0.6rem;
  border: none;
  background: var(--color-text);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.gd7-newsletter button:hover {
  opacity: 0.85;
}

aside .gd7-newsletter {
  padding: 1.75rem;
  text-align: left;
}

aside .gd7-newsletter form {
  flex-direction: column;
  max-width: none;
}

/* ==========================================================================
   Notice
   ========================================================================== */

.gd7-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(171, 125, 31, 0.08);
  border: 1px solid rgba(171, 125, 31, 0.25);
  border-radius: 0.85rem;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  color: var(--color-text);
}

.gd7-notice .material-symbols-outlined {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ==========================================================================
   Sidebar blocks
   ========================================================================== */

.gd7-side-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.gd7-side-block__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.gd7-side-block__title .material-symbols-outlined {
  color: var(--color-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.gd7-footer {
  background: #2c241d;
  color: rgba(255, 255, 255, 0.72);
  padding: 4rem 0 1.5rem;
  margin-top: 2rem;
}

.gd7-footer__heading {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.gd7-footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.gd7-footer__list a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.gd7-footer__list a:hover {
  color: #fff;
}

.gd7-footer__social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.gd7-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.gd7-footer__social a:hover {
  background: var(--color-primary);
}

.gd7-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
}

/* ==========================================================================
   Prose (single/page content)
   ========================================================================== */

.prose img,
.prose video {
  width: 100%;
  height: auto;
  border-radius: 0.85rem;
  margin: 1.75rem 0;
  box-shadow: 0 14px 30px rgba(44, 36, 29, 0.12);
}

.prose iframe,
.prose .wp-embed,
.prose .wp-block-embed__wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 0.85rem;
  margin: 1.75rem 0;
  border: none;
}

.prose blockquote {
  background: var(--color-bg);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 0.85rem 0.85rem 0;
  padding: 1.25rem 1.5rem;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  color: var(--color-text);
}

.prose a {
  color: var(--color-primary);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.gd7-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  justify-content: center;
}

.gd7-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gd7-pagination .page-numbers:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.gd7-pagination .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.gd7-pagination .page-numbers.dots {
  border: none;
  background: none;
}

/* ==========================================================================
   Back to top button
   ========================================================================== */

.gd7-btt {
  position: fixed;
  z-index: 50;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(171, 125, 31, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: all 0.3s ease;
}

.gd7-btt.is-visible,
.gd7-btt.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.gd7-btt:hover {
  background: var(--color-accent);
}
