/* =====================================================================
   CAFFÉLUXE NEWSROOM THEME
   Same palette, fonts, header and footer as the main website.
   ===================================================================== */

/* --- FONT LOADING (uses the font file already on the main site) --- */
@font-face {
    font-family: 'Breathing';
       src: url("../fonts/Breathing.otf") format("opentype");
    font-display: swap;
}

/* --- 1. BRAND BIBLE PALETTE --- */
:root {
    --hero-white: #FAFAFA;
    --hero-orange: #F39F43;
    --hero-navy: #353B5A;
    --sec-pink: #F6AB9B;
    --sec-yellow: #FDC858;
    --sec-teal: #568578;
    --sec-lime: #ADD17C;
    --sec-mint: #D2EADA;
    --sec-beige: #F3EDE7;
    --font-primary: 'Century Gothic', CenturyGothic, AppleGothic, 'Montserrat', sans-serif;
    --font-secondary: 'Breathing', 'Brush Script MT', cursive;
    --font-body: 'Lato', sans-serif;
}

/* --- 2. GLOBAL STYLES --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--hero-navy);
    background-color: var(--hero-white);
    overflow-x: hidden;
}

h1, h2, h3 { font-weight: normal; }
a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }

/* --- 3. HEADER & NAVIGATION (shared with homepage) --- */
header {
    background-color: white;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { margin-right: 50px; }
.logo img { max-height: 30px; width: auto; display: block; }

nav ul { display: flex; list-style: none; gap: 25px; }
nav a {
    text-decoration: none;
    color: var(--hero-navy);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}
nav a:hover,
nav a.current { color: var(--hero-orange); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
}
.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--hero-navy);
    transition: 0.4s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    z-index: 1001;
}
.dropdown-menu li { width: 100%; }
.dropdown-menu li a { padding: 10px 20px; display: block; font-size: 0.75rem; }

@media (min-width: 1201px) {
    .dropdown:hover .dropdown-menu { display: block !important; }
}

/* --- 4. NEWS PAGE HERO BANNER --- */
.page-header {
    position: relative;
    min-height: 46vh;
    padding: 70px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--hero-navy);
    text-align: center;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Swap for your own photo, e.g. url('/images/news-hero.jpg') */
    background-image: url('https://picsum.photos/seed/caffeluxe-newsroom/1600/800');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
}
.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(53,59,90,0.55) 0%, rgba(53,59,90,0.88) 100%);
}

.steam {
    position: absolute;
    bottom: 42%;
    width: 46px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255,255,255,0.28);
    filter: blur(16px);
    z-index: 1;
    animation: rise 9s ease-in-out infinite;
    opacity: 0;
}
.steam.s1 { left: 36%; animation-delay: 0s; }
.steam.s2 { left: 49%; height: 160px; width: 56px; animation-delay: 3s; }
.steam.s3 { left: 60%; animation-delay: 6s; }

@keyframes rise {
    0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    18%  { opacity: 0.55; }
    55%  { transform: translateY(-70px) translateX(12px) scale(1.15); opacity: 0.3; }
    100% { transform: translateY(-150px) translateX(-14px) scale(1.3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .steam { animation: none; display: none; }
}

.page-header-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 720px;
    padding: 0 30px;
}
.page-header .breadcrumb { color: white; opacity: 0.8; margin-bottom: 22px; }
.page-header .breadcrumb a { color: white; }
.page-header h1 {
    font-family: var(--font-secondary);
    font-size: 4.5rem;
    line-height: 1.6;
    margin-bottom: 30px;
}
.page-header p { font-family: var(--font-body); font-size: 1.05rem; line-height: 1.6; opacity: 0.92; }

/* --- 5. BREADCRUMB (shared) --- */
.breadcrumb {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(53,59,90,0.5);
    margin-bottom: 26px;
}
.breadcrumb a { color: rgba(53,59,90,0.5); text-decoration: none; transition: color 0.3s ease; }
.breadcrumb a:hover, .page-header .breadcrumb a:hover { color: var(--hero-orange); }
.breadcrumb .current { color: var(--hero-navy); }

/* --- 6. BEAN BULLET --- */
.bean-bullet {
    display: inline-block;
    width: 7px;
    height: 11px;
    background: linear-gradient(90deg, #3d2b1f 0%, #3d2b1f 45%, #1a120c 48%, #1a120c 52%, #3d2b1f 55%, #3d2b1f 100%);
    border-radius: 42% 42% 45% 45% / 50% 50% 50% 50%;
    transform: rotate(8deg);
    margin: 0 9px;
    vertical-align: middle;
    flex-shrink: 0;
}
.section-divider { text-align: center; padding: 6px 0 46px; }
.section-divider.no-featured { padding-top: 60px; }
.section-divider .bean-bullet { margin: 0 7px; }

/* --- 7. CATEGORY TAGS --- */
.category-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 0.68rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-decoration: none;
}
.tag-company { background: var(--hero-navy); color: white; }
.tag-product { background: var(--hero-orange); color: white; }
.tag-trade-shows { background: var(--sec-teal); color: white; }
.tag-awards { background: var(--sec-yellow); color: var(--hero-navy); }
.tag-partnerships { background: var(--sec-pink); color: var(--hero-navy); }

/* --- 8. IMAGES --- */
.img-tint { position: relative; }
.img-tint::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(53,59,90,0.38), rgba(243,159,67,0.14));
    mix-blend-mode: multiply;
    pointer-events: none;
}
/* Shown when a story has no cover image */
.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--sec-beige), var(--sec-mint));
}

/* --- 9. FEATURED ARTICLE --- */
.featured-article { padding: 90px 50px 20px; background: var(--hero-white); }
.featured-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}
.featured-image-wrap {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 22px 44px rgba(53,59,90,0.2);
    aspect-ratio: 4 / 3;
}
.featured-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.eyebrow {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--hero-orange);
    font-weight: bold;
    margin-bottom: 20px;
}
.featured-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 10px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(53,59,90,0.65);
    margin: 18px 0 20px;
}
.featured-content h2 {
    font-family: var(--font-primary);
    font-weight: bold;
    font-size: 2.3rem;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--hero-navy);
}
.featured-content .excerpt {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(53,59,90,0.85);
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 34px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background-color: var(--hero-orange);
    color: white;
    border: 2px solid var(--hero-orange);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    cursor: pointer;
}
.btn-primary:hover { background-color: transparent; color: var(--hero-orange); transform: translateY(-2px); }

/* --- 10. FILTER BAR --- */
.news-filter-bar { padding: 0 50px 50px; background: var(--hero-white); }
.filter-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}
.filter-pill {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 50px;
    border: 2px solid var(--hero-navy);
    background: transparent;
    color: var(--hero-navy);
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s ease;
    white-space: nowrap;
}
.filter-pill:hover { border-color: var(--hero-orange); color: var(--hero-orange); }
.filter-pill.active { background: var(--hero-navy); color: white; border-color: var(--hero-navy); }

/* --- 11. NEWS GRID --- */
.news-grid-section { padding: 0 50px 60px; background: var(--hero-white); }
.news-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px;
}
.empty-state { text-align: center; color: rgba(53,59,90,0.6); padding: 20px 0 40px; }

.news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s ease;
}
.news-card:hover { transform: translateY(-6px); }
.news-card-image {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    margin-bottom: 20px;
    box-shadow: 0 10px 26px rgba(53,59,90,0.14);
}
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-card:hover .news-card-image img { transform: scale(1.07); }
.news-card-image .category-tag { position: absolute; top: 16px; left: 16px; z-index: 2; }

.news-card-meta {
    display: flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(53,59,90,0.55);
    margin-bottom: 12px;
}
.news-card h3 {
    font-family: var(--font-primary);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--hero-navy);
}
.news-card p {
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(53,59,90,0.72);
    margin-bottom: 18px;
    flex-grow: 1;
}
.read-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--hero-orange);
    border-bottom: 2px solid var(--hero-orange);
    padding-bottom: 3px;
    width: fit-content;
    transition: 0.3s ease;
}
.news-card:hover .read-link { color: var(--hero-navy); border-color: var(--hero-navy); }

.extra-card { display: none; }
.extra-card.revealed { display: flex; }

/* --- 12. LOAD MORE --- */
.load-more-wrap { text-align: center; margin-top: 50px; }
.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 38px;
    border-radius: 50px;
    border: 2px solid var(--hero-navy);
    background: transparent;
    color: var(--hero-navy);
    font-family: var(--font-primary);
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease;
}
.load-more-btn:hover { background: var(--hero-navy); color: white; }
.load-more-btn:disabled { cursor: default; opacity: 0.55; }
.load-more-btn:disabled:hover { background: transparent; color: var(--hero-navy); }

/* --- 13. PRESS CTA --- */
.press-cta { background: var(--sec-teal); color: white; text-align: center; padding: 90px 40px; }
.press-cta h2 { font-family: var(--font-secondary); font-size: 3rem; margin-bottom: 18px; }
.press-cta p { font-family: var(--font-body); max-width: 560px; margin: 0 auto 34px; line-height: 1.6; opacity: 0.95; }
.press-cta.notfound { padding: 140px 40px; }

/* --- 14. ARTICLE HEADER --- */
.article-header { padding: 60px 24px 10px; max-width: 780px; margin: 0 auto; }
.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 10px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(53,59,90,0.6);
    margin: 20px 0 22px;
}
.article-header h1 {
    font-family: var(--font-primary);
    font-weight: bold;
    font-size: 2.7rem;
    line-height: 1.3;
    color: var(--hero-navy);
    margin-bottom: 24px;
}
.byline { font-family: var(--font-body); font-size: 0.92rem; color: rgba(53,59,90,0.6); margin-bottom: 40px; }
.byline strong { color: var(--hero-navy); font-weight: 700; }

.article-hero-image {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 22px 44px rgba(53,59,90,0.2);
    aspect-ratio: 16 / 9;
}
.article-hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* --- 15. ARTICLE BODY
   Styles whatever you type into the Bludit editor, so it looks like the
   hand-coded version without any extra classes. --- */
.article-body { max-width: 720px; margin: 0 auto; padding: 56px 24px 10px; }

.article-body p,
.article-body li {
    font-family: var(--font-body);
    font-size: 1.08rem;
    line-height: 1.8;
    color: rgba(53,59,90,0.88);
}
.article-body p { margin-bottom: 28px; }

/* First paragraph becomes the larger intro ("lead") automatically */
.article-body > p:first-of-type { font-size: 1.25rem; color: var(--hero-navy); }

.article-body h2,
.article-body h3 {
    font-family: var(--font-primary);
    font-weight: bold;
    color: var(--hero-navy);
    line-height: 1.35;
    margin: 44px 0 18px;
}
.article-body h2 { font-size: 1.6rem; }
.article-body h3 { font-size: 1.25rem; }

.article-body ul,
.article-body ol { margin: 0 0 28px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--hero-orange); }

.article-body a { color: var(--hero-orange); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--hero-navy); }
.article-body strong { color: var(--hero-navy); }

/* Quote button in the editor = brand pull quote */
.article-body blockquote {
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    line-height: 1.3;
    color: var(--hero-orange);
    text-align: center;
    max-width: 600px;
    margin: 20px auto 50px;
    padding: 34px 20px;
    border-top: 2px solid var(--sec-beige);
    border-bottom: 2px solid var(--sec-beige);
}
.article-body blockquote p {
    font-family: inherit;
    font-size: inherit !important;
    line-height: inherit;
    color: inherit !important;
    margin: 0;
}
/* A short second line inside the quote (e.g. "— Jane Smith, CEO") becomes the small attribution */
.article-body blockquote p + p,
.article-body blockquote cite {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.72rem !important;
    font-weight: bold;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(53,59,90,0.5) !important;
    margin-top: 16px;
}

/* Images dropped into the article */
.article-body img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(53,59,90,0.14);
    margin: 10px 0 14px;
}
.article-body p:has(> img) { margin-bottom: 14px; }

/* A line in italics on its own straight under an image = caption */
.article-body p > em:only-child,
.article-body figcaption {
    display: block;
    font-size: 0.82rem;
    font-style: italic;
    color: rgba(53,59,90,0.5);
    text-align: center;
    margin-bottom: 40px;
}
.article-body figure { margin: 10px 0 0; }

.article-body hr { border: none; height: 1px; background: rgba(53,59,90,0.12); margin: 40px 0; }

/* --- 16. SHARE ROW --- */
.article-share {
    max-width: 720px;
    margin: 10px auto 0;
    padding: 34px 24px 12px;
    border-top: 1px solid rgba(53,59,90,0.12);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.share-label {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--hero-navy);
    margin-right: 4px;
}
.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(53,59,90,0.25);
    background: transparent;
    color: var(--hero-navy);
    cursor: pointer;
    transition: 0.3s ease;
}
.share-icon:hover { background: var(--hero-orange); border-color: var(--hero-orange); color: white; transform: translateY(-2px); }
.copy-feedback { font-family: var(--font-body); font-size: 0.85rem; color: var(--sec-teal); }

/* --- 17. RELATED ARTICLES --- */
.related-section { background: var(--sec-beige); padding: 90px 50px; margin-top: 70px; }
.related-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.related-inner h2 { font-family: var(--font-secondary); font-size: 2.8rem; color: var(--hero-navy); margin-bottom: 46px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; text-align: left; }
.related-grid .news-card-image { margin-bottom: 18px; }
.related-grid .news-card-image .category-tag { top: 14px; left: 14px; }
.related-grid .news-card h3 { font-size: 1.05rem; margin-bottom: 0; }

/* --- 18. FOOTER (shared with homepage) --- */
footer { background-color: var(--hero-navy); color: white; padding: 40px; text-align: center; font-size: 0.9rem; }
.footer-shop-section { margin-bottom: 30px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.shop-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background-color: var(--hero-orange);
    color: white;
    border: 2px solid var(--hero-orange);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.shop-btn:hover { background-color: transparent; color: var(--hero-orange); transform: translateY(-2px); }
.footer-social { display: flex; justify-content: center; gap: 16px; margin-bottom: 30px; }
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    color: white;
    transition: 0.3s ease;
}
.social-icon:hover { background-color: var(--hero-orange); border-color: var(--hero-orange); color: var(--hero-navy); transform: translateY(-2px); }
.footer-divider { width: 50px; height: 1px; background-color: rgba(255,255,255,0.2); margin: 25px auto; }

/* --- 19. NAVIGATION BREAKPOINT (1200px, shared with homepage) --- */
@media (max-width: 1200px) {
    .menu-toggle { display: flex !important; }
    nav { position: absolute; top: 70px; right: -100%; width: 100%; background: white; transition: 0.4s ease; box-shadow: 0 10px 10px rgba(0,0,0,0.05); z-index: 1000; }
    nav.active { right: 0; }
    nav ul { flex-direction: column; padding: 40px; align-items: center; gap: 20px; }
    .dropdown-menu { display: none; position: static; width: 100%; list-style: none; padding: 10px 0; background: transparent; box-shadow: none; }
    .dropdown.open .dropdown-menu { display: block; }
    .dropdown.open .arrow { display: inline-block; transform: rotate(180deg); transition: transform 0.3s ease; }
    .dropdown-menu li a { padding: 10px 0; text-align: center; opacity: 0.8; }
}

/* --- 20. RESPONSIVE (content) --- */
@media (max-width: 900px) {
    .featured-inner { grid-template-columns: 1fr; gap: 34px; }
    .featured-image-wrap { aspect-ratio: 16 / 10; }
}
@media (max-width: 768px) {
    header { padding: 20px; }
    .page-header h1 { font-size: 2.8rem; line-height: 1.4; }
    .page-header p { font-size: 0.95rem; }
    .featured-article { padding: 60px 20px 10px; }
    .featured-content h2 { font-size: 1.7rem; }
    .news-filter-bar { padding: 0 20px 36px; }
    .filter-inner { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
    .news-grid-section { padding: 0 20px 50px; }
    .news-grid { grid-template-columns: 1fr; gap: 36px; }
    .press-cta { padding: 60px 20px; }
    .press-cta h2 { font-size: 2.2rem; }
    .article-header h1 { font-size: 1.9rem; }
    .article-body blockquote { font-size: 1.5rem; padding: 26px 16px; }
    .related-section { padding: 60px 20px; }
    .related-inner h2 { font-size: 2.1rem; }
    .related-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* --- 21. ACCESSIBILITY --- */
a:focus-visible, button:focus-visible, .menu-toggle:focus-visible {
    outline: 2px solid var(--hero-orange);
    outline-offset: 3px;
}
