/* Set title-highlight font-size to 80px for hero types 2, 3, 4 */
.hero-type-2 .hero-title .title-highlight,
.hero-type-3 .hero-title .title-highlight,
.hero-type-4 .hero-title .title-highlight {
    font-size: 80px;
}

/* ============================================
   MODULAR HERO COMPONENT STYLES
   ============================================ */


/* Font-face declarations */
@font-face {
    font-family: 'Alamendro FG';
    src: url('../fonts/alamendro.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'General Sans Variable';
    src: url('../fonts/GeneralSans-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'General Sans Variable';
    src: url('../fonts/GeneralSans-VariableItalic.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Costaline';
    src: url('../fonts/Costaline-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Costaline';
    src: url('../fonts/Costaline-ThinItalic.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

/* Base Hero Section */
.hero-section {
    padding: 80px 20px 20px;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Tag Styles */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(139, 65, 30, 0.1);
    border-radius: 20px;
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 600;
    color: #8b411e;
}

.home .hero-tag {
    padding: 7.771px 15.542px;
    border-radius: 51.289px;
    border: 0.518px solid #B4B2AD;
    color: #181818;
    background: #ffffff;

    /* D-General Sans Variable - H4 */
    font-family: "General Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.hero-tag .tag-icon {
    display: inline-flex;
    align-items: center;
    color: #8b411e;
}

.hero-tag .tag-icon img {
    width: 18px;
    height: 18px;
    display: block;
}

.hero-tag-simple {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Hero Top Text (Type 4) */
.hero-top-text {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* Hero Title */
.hero-title {
    color: #181818;
    text-align: center;

    /* D-Costaline - H1 */
    font-family: Costaline, serif;
    font-size: 88px;
    font-style: normal;
    font-weight: 100;
    line-height: 120px;
    /* 136.364% */
    margin: 0 0 24px;
}

.hero-title .title-highlight {
    color: #833C1E;
    /* D-Alamendro FG - H1 */
    font-family: "Alamendro FG", serif;
    font-size: 118px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
}

/* Hero Date (Type 2) */
.hero-date {
    color: var(--Black, #181818);
    text-align: center;

    /* D-General Sans Variable - H4 */
    font-family: "General Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 20px;
}

/* Hero Content */
.hero-content {
    color: #181818;
    text-align: center;

    /* D-General Sans Variable - H3 (para) */
    font-family: 'General Sans Variable', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 32px;
}

.hero-content p {
    margin: 0 0 16px;
}

.hero-content p:last-child {
    margin-bottom: 0;
}

/* Actions container for buttons */
.hero-actions {
    display: inline-block;
    text-align: center;
    margin-top: 8px;
}

.hero-type-1 .hero-actions {
    margin-top: 28px;
}

/* Hero Button */
.hero-btn {
    display: inline-flex;
    padding: 16px;
    justify-content: center;
    align-items: center;
    border: 0.831px solid #833C1E;
    background: #FFF;
    backdrop-filter: blur(16.618431091308594px);
    color: #833C1E;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-size: 12px;
    transition: background-color 0.2s ease, color 0.2s ease, backdrop-filter 0.2s ease;

}

.hero-btn:hover,
.hero-btn:focus {
    border: 0.831px solid #833C1E;
    background: #833C1E;
    color: #fff;
}

.hero-btn-inverted {
    background: transparent;
    color: #8b411e;
    border: 2px solid #8b411e;
}

.hero-btn-inverted:hover,
.hero-btn-inverted:focus {
    background: #8b411e;
    color: #fff;
}

/* ============================================
   HERO TYPE 1: Tag + Centered + Button
   ============================================ */
.hero-type-1 {
    text-align: center;
    padding: 100px 20px;
}

.hero-type-1 .hero-title {
    font-size: 88px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-type-1 .hero-content {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 19px;
}

/* ============================================
   HERO TYPE 2: Tag (no icon) + Title + Date
   ============================================ */
.hero-type-2 {
    text-align: center;
    padding: 90px 20px;
}

.hero-type-2 .hero-title {
    font-size: 64px;
    margin-left: auto;
    margin-right: auto;
}

.hero-type-2 .hero-content {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* reuse the home tag pill styling when hero has .use-home-tag */
.hero-section.use-home-tag .hero-tag {
    padding: 7.771px 15.542px;
    border-radius: 51.289px;
    border: 0.518px solid #B4B2AD;
    color: #181818;
    background: #ffffff;
    font-family: "General Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* ============================================
   HERO TYPE 3: Title + Content Only
   ============================================ */
.hero-type-3 {
    text-align: center;
    padding: 90px 20px;
    background: #fff;
}

.hero-type-3 .hero-title {
    font-size: 60px;
    margin-left: auto;
    margin-right: auto;
}

.hero-type-3 .hero-content {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

/* ============================================
   HERO TYPE 4: Text + Title + Content + Inverted Button
   ============================================ */
.hero-type-4 {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.hero-type-4 .hero-title {
    font-size: 62px;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

.hero-type-4 .hero-content {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   HERO TYPE 5: Left-aligned Single Color
   ============================================ */
.hero-type-5 {
    text-align: left;
    padding: 90px 20px;
    background: #fff;
}

.hero-type-5 .hero-inner {
    margin: 0;
}

.hero-type-5 .hero-title {
    font-size: 54px;
    margin-bottom: 24px;
}

.hero-type-5 .hero-content {
    font-size: 17px;
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Extra Large Desktop: 1920px+ */
@media (min-width: 1920px) {
    .hero-inner {
        max-width: 1400px;
    }
}

/* Large Desktop: 1400px - 1919px */
@media (min-width: 1400px) and (max-width: 1919px) {
    .hero-inner {
        max-width: 1200px;
    }
}

/* Desktop: 1024px - 1399px */
@media (min-width: 1024px) and (max-width: 1399px) {
    .hero-section {
        padding: 70px 20px;
    }

    .hero-title {
        font-size: 72px;
        line-height: 100px;
    }

    .hero-title .title-highlight {
        font-size: 96px;
    }

    .hero-type-1 .hero-title,
    .hero-type-2 .hero-title,
    .hero-type-3 .hero-title,
    .hero-type-4 .hero-title {
        font-size: 56px;
    }
}

/* Tablet: 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-section {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 48px;
        line-height: 64px;
    }

    .hero-title .title-highlight {
        font-size: 64px;
        line-height: 110%;
    }

    .hero-content {
        font-size: 18px;
    }

    .hero-type-1,
    .hero-type-2,
    .hero-type-3,
    .hero-type-4 {
        padding: 60px 20px;
    }

    .hero-type-5 {
        padding: 50px 20px;
    }

    .hero-tag {
        font-size: 13px;
        padding: 6px 14px;
    }

    .hero-btn {
        padding: 14px 28px;
        font-size: 11px;
    }
}

/* Mobile Large: 360px - 767px */
@media (min-width: 360px) and (max-width: 767px) {
    .hero-section {
        padding: 50px 16px;
    }

    .hero-title {
        /* M-Costaline - H2 */
        font-size: 32px;
        font-weight: 100;
        line-height: 170%;
        /* 54.4px */
    }

    .hero-title .title-highlight {
        /* M-Alamendro FG - H2 */
        color: var(--Brown, #833C1E);
        font-family: "Alamendro FG";
        font-size: 40px;
        font-weight: 400;
        line-height: 110%;
    }

    .hero-content {
        /* D-General Sans Variable - H3 (para) */
        color: var(--Black, #181818);
        text-align: center;
        font-family: "General Sans Variable";
        font-size: 18px;
        font-weight: 400;
        line-height: normal;
    }

    .hero-type-1,
    .hero-type-2,
    .hero-type-3,
    .hero-type-4 {
        padding: 50px 16px;
    }

    .hero-type-5 {
        padding: 40px 16px;
    }

    .hero-top-text {
        font-size: 12px;
    }

    .hero-tag {
        font-size: 12px;
        padding: 5px 12px;
    }

    .hero-btn {
        padding: 12px 24px;
        font-size: 11px;
    }
}

/* Mobile Small: 320px - 359px */
@media (max-width: 359px) {
    .hero-section {
        padding: 40px 12px;
    }

    .hero-title {
        /* M-Costaline - H2 */
        font-size: 32px;
        font-weight: 100;
        line-height: 170%;
        /* 54.4px */
    }

    .hero-title .title-highlight {
        /* M-Alamendro FG - H2 */
        color: var(--Brown, #833C1E);
        font-family: "Alamendro FG";
        font-size: 40px;
        font-weight: 400;
        line-height: 110%;
    }

    .hero-content {
        /* D-General Sans Variable - H3 (para) */
        color: var(--Black, #181818);
        text-align: center;
        font-family: "General Sans Variable";
        font-size: 18px;
        font-weight: 400;
        line-height: normal;
    }

    .hero-type-1,
    .hero-type-2,
    .hero-type-3,
    .hero-type-4 {
        padding: 40px 12px;
    }

    .hero-type-5 {
        padding: 30px 12px;
    }

    .hero-tag {
        font-size: 11px;
        padding: 4px 10px;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 10px;
    }
}

/* Additional explicit breakpoints requested by design */
/* 320px (very small phones) */
@media (max-width: 320px) {
    .hero-section {
        padding: 36px 10px;
    }

    .hero-title {
        color: var(--Black, #181818);
        text-align: center;
        font-family: Costaline, serif;
        /* M-Costaline - H2 */
        font-size: 32px;
        font-weight: 100;
        line-height: 170%;
        /* 54.4px */
    }

    .hero-title .title-highlight {
        color: var(--Brown, #833C1E);
        font-family: "Alamendro FG", serif;
        /* M-Alamendro FG - H2 */
        font-size: 40px;
        font-weight: 400;
        line-height: 110%;
    }

    .hero-type-2 .hero-title {
        font-size: 32px;
        font-weight: 100;
        line-height: 170%;
    }
}

/* 360px (small phones) */
@media (min-width: 321px) and (max-width: 360px) {
    .hero-section {
        padding: 40px 12px;
    }

    .hero-title {
        color: var(--Black, #181818);
        text-align: center;
        font-family: Costaline, serif;
        font-size: 32px;
        font-weight: 100;
        line-height: 170%;
    }

    .hero-title .title-highlight {
        color: var(--Brown, #833C1E);
        font-family: "Alamendro FG", serif;
        font-size: 40px;
        font-weight: 400;
        line-height: 110%;
    }

    .hero-type-2 .hero-title {
        font-size: 32px;
        font-weight: 100;
        line-height: 170%;
    }
}

/* 768px (tablet portrait) */
@media (min-width: 361px) and (max-width: 768px) {
    .hero-section {
        padding: 50px 16px;
    }

    .hero-title {
        font-family: Costaline, serif;
        font-size: 40px;
        font-weight: 100;
        line-height: 150%;
    }

    .hero-title .title-highlight {
        font-family: "Alamendro FG", serif;
        font-size: 52px;
        line-height: 110%;
    }

    .hero-type-2 .hero-title {
        font-size: 40px;
    }
}

/* 1024px (tablet landscape / small desktop) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-section {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 48px;
        line-height: 120%;
    }

    .hero-title .title-highlight {
        font-size: 64px;
    }

    .hero-type-2 .hero-title {
        font-size: 48px;
    }
}

/* 1400px (large desktop) */
@media (min-width: 1025px) and (max-width: 1400px) {
    .hero-section {
        padding: 80px 24px;
    }

    .hero-title {
        font-size: 56px;
        line-height: 110%;
    }

    .hero-title .title-highlight {
        font-size: 80px;
    }

    .hero-type-2 .hero-title {
        font-size: 56px;
    }
}

/* 1920px and up (extra large) */
@media (min-width: 1401px) {
    .hero-section {
        padding: 68px 28px 24px;
    }

    .hero-title {
        font-size: 88px;
        line-height: 120px;
    }

    .hero-title .title-highlight {
        font-size: 118px;
    }

    .hero-type-2 .hero-title {
        font-size: 64px;
    }
}

/* Blogs-only tag styling */
.hero-section.blogs-hero .hero-tag {
    border-radius: 52.701px;
    border: 0.527px solid var(--Brown, #833C1E);
    color: #833C1E;
}

/* Small/mobile fixes for hero title to avoid overlap */
@media (max-width: 767px) {
    .hero-type-1 .hero-title {
        font-size: 40px;
        max-width: 100%;
        padding: 0 12px;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .hero-title .title-highlight {
        font-size: 48px;
    }
}

@media (max-width: 360px) {
    .hero-type-1 .hero-title {
        font-size: 32px;
        padding: 0 10px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .hero-title .title-highlight {
        font-size: 40px;
    }
}

@media (max-width: 320px) {
    .hero-type-1 .hero-title {
        font-size: 30px;
        padding: 0 8px;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .hero-title .title-highlight {
        font-size: 36px;
    }
}