/* ==========================================================================
   GLOBAL BASE & HEADER STYLES
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Manrope', sans-serif;
    color: #1a1a1a;
    background-color: #ffffff;
}

/* Announcement Bar */
.hm-announcement-bar {
    background-color: #5b0b00;
    color: #ffffff;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hm-announcement-bar p {
    margin: 0;
}

/* Header Navbar */
.hm-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.hm-header__container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hm-header__logo {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.75rem;
    color: #5b0b00;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.hm-header__nav {
    display: flex;
    gap: 28px;
}

.hm-header__nav a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.hm-header__nav a:hover,
.hm-header__nav a.active {
    color: #C98A2D;
}

.hm-header__actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hm-header__icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    color: #1a1a1a;
    display: flex;
    align-items: center;
}

.hm-header__cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: #5b0b00;
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   HERITAGE STORIES SECTION (EXACT FIGMA REUSE)
   ========================================================================== */

.hm-stories {
    background-color: #C98A2D;
    padding: 40px 0 100px 0;
    position: relative;
    overflow: hidden;
}

.hm-stories__container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Badges & Location Labels */
.hm-story-badge {
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
}

.hm-story-location {
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #C98A2D;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hm-story-location img {
    max-width: 11px;
    width: 100%;
}

.hm-story-link {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.hm-story-link:hover {
    color: #5b0b00;
    gap: 10px;
}

/* ==========================================================================
   HERITAGE STORY DETAIL SPECIFIC STYLES
   ========================================================================== */

/* Breadcrumb */
.hm-story-detail__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
}

.hm-story-detail__breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.hm-story-detail__breadcrumb a:hover {
    text-decoration: underline;
}

.hm-story-detail__breadcrumb .current {
    color: #1a1a1a;
    font-weight: 700;
}

/* Article Card Box */
.hm-story-featured {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.hm-story-detail__card {
    max-width: 100%;
    margin: 0 auto 60px auto;
}

.hm-story-detail__header {
    padding: 36px 40px 24px 40px;
}

.hm-story-detail__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.hm-story-detail__title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2.75rem;
    color: #1a1a1a;
    margin: 8px 0 16px 0;
    line-height: 1.2;
    font-weight: 400;
}

.hm-story-detail__lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #444444;
    margin-bottom: 20px;
}

.hm-story-detail__author-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    color: #777777;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.hm-story-detail__media {
    width: 100%;
    height: 420px;
    background-color: #ffffff;
    padding-inline: 40px;
}

.hm-story-featured__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article Body Typography */
.hm-story-detail__body {
    padding: 40px;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #2c2c2c;
}

.hm-story-detail__body h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.875rem;
    color: #1a1a1a;
    margin: 0px 0 16px 0;
    font-weight: 400;
}

.hm-story-detail__body p {
    margin: 0 0 20px 0;
}

.hm-story-detail__quote {
    margin: 32px 0;
    padding: 24px 28px;
    background-color: #faf7f2;
    border-left: 4px solid #5b0b00;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.375rem;
    color: #5b0b00;
    line-height: 1.5;
    border-radius: 0 12px 12px 0;
    font-weight: 400;
}

/* Gallery Grid */
.hm-story-detail__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 32px 0;
}

.hm-story-detail__gallery-item {
    margin: 0;
}

.hm-story-detail__gallery-img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.hm-story-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hm-story-detail__gallery-item figcaption {
    font-size: 0.75rem;
    color: #666666;
    margin-top: 8px;
    text-align: center;
}

/* Shoppable CTA Card Box */
.hm-story-detail__cta-box {
    background-color: #faf7f2;
    border: 1px solid #ebd3b0;
    border-radius: 12px;
    padding: 28px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hm-story-detail__cta-info .hm-stories__label {
    color: #C98A2D;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.hm-story-detail__cta-info h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.5rem;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-weight: 400;
}

.hm-story-detail__cta-info p {
    font-size: 0.875rem;
    color: #555555;
    margin: 0;
}

.hm-story-detail__shop-btn {
    background-color: #5b0b00;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hm-story-detail__shop-btn:hover {
    background-color: #3d0700;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Related Stories Section */
.hm-story-detail__related {
    max-width: 100%;
    margin: 0 auto;
}

.hm-story-detail__related-header {
    margin-bottom: 24px;
}

.hm-story-detail__related-header .hm-stories__label {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
}

.hm-story-detail__related-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2.25rem;
    color: #ffffff;
    margin: 4px 0 0 0;
    font-weight: 400;
}

.hm-story-detail__related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hm-story-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.hm-story-item__media {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
}

.hm-story-item__content {
    display: flex;
    flex-direction: column;
}

.hm-story-item__title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.125rem;
    color: #1a1a1a;
    margin: 6px 0 10px 0;
    font-weight: 400;
}

.hm-story-item__badge {
    position: absolute;
    top: 18px;
    right: 18px;
}

/* Folk Border Line */
.hm-stories__bottom-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 24px;
    background-color: #5b0b00;
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="20" viewBox="0 0 40 20"><path d="M0 10 L10 0 L20 10 L30 0 L40 10 L40 20 L0 20 Z" fill="black"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="20" viewBox="0 0 40 20"><path d="M0 10 L10 0 L20 10 L30 0 L40 10 L40 20 L0 20 Z" fill="black"/></svg>');
    mask-repeat: repeat-x;
    -webkit-mask-repeat: repeat-x;
}

/* Footer */
.hm-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 20px 0;
}

.hm-footer__container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.hm-footer__logo {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.75rem;
    color: #C98A2D;
    margin: 0 0 12px 0;
    font-weight: 400;
}

.hm-footer__brand p {
    color: #aaaaaa;
    font-size: 0.875rem;
    line-height: 1.6;
}

.hm-footer__links h4,
.hm-footer__contact h4 {
    font-size: 1rem;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.hm-footer__links a {
    display: block;
    color: #aaaaaa;
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.hm-footer__links a:hover {
    color: #C98A2D;
}

.hm-footer__contact p {
    color: #aaaaaa;
    font-size: 0.875rem;
    margin: 0 0 8px 0;
}

.hm-footer__bottom {
    text-align: center;
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.75rem;
    color: #777777;
}

/* Responsive Rules */
@media (max-width: 820px) {
    .hm-header__nav {
        display: none;
    }

    .hm-story-detail__header,
    .hm-story-detail__body {
        padding: 24px;
    }

    .hm-story-detail__title {
        font-size: 2rem;
    }

    .hm-story-detail__media {
        height: 280px;
    }

    .hm-story-detail__cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .hm-story-detail__related-grid {
        grid-template-columns: 1fr;
    }

    .hm-footer__container {
        grid-template-columns: 1fr;
    }
}