/* =========================================================
   DOPE COFFEE — main.css (realdope.coffee brand match)
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

html, body {
    background: #f8f8f8;
    font-family: 'Fira Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
}

/* ── PAGE WRAPPER ── */
.page {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
}

/* ── NAV ── */
.nav-outer {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav-logo img {
    max-height: 44px;
    width: auto;
}
.nav-logo-text {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #952525;
    text-decoration: none;
    line-height: 1;
}
.nav-center {
    display: flex;
    gap: 6px;
    align-items: center;
    flex: 1;
    justify-content: center;
}
.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 2px;
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.nav-link:hover { color: #952525; }
.nav-link.on { color: #952525; font-weight: 700; }
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nav-icon {
    font-size: 12px;
    font-weight: 500;
    color: #818181;
    text-decoration: none;
    transition: color .15s;
}
.nav-icon:hover { color: #952525; }
.nav-search {
    background: none;
    border: none;
    color: #818181;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    transition: color .15s;
    line-height: 1;
}
.nav-search:hover { color: #952525; }

/* Search overlay */
.search-overlay {
    background: rgba(0,0,0,.85);
    padding: 16px 24px;
}
.search-overlay-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
.search-overlay-inner form {
    flex: 1;
    display: flex;
    gap: 8px;
}
.search-overlay-inner input[type="search"] {
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    color: #000;
    padding: 10px 16px;
    font-size: 14px;
    font-family: 'Fira Sans', sans-serif;
    outline: none;
    border-radius: 2px;
}
.search-overlay-inner input[type="submit"] {
    background: #952525;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Fira Sans', sans-serif;
    border-radius: 2px;
    transition: background .15s;
}
.search-overlay-inner input[type="submit"]:hover { background: #dfa103; }
.search-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color .15s;
}
.search-close:hover { color: #fff; }

/* ── BLOG PAGE HEADER ── */
.blog-page-header {
    padding: 48px 40px 32px;
    border-bottom: 2px solid #952525;
}
.blog-page-title {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
}
.blog-page-subtitle {
    font-size: 14px;
    color: #818181;
    margin-top: 6px;
}

/* ── BLOG GRID ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0 0 40px;
}
.blog-card {
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    padding: 28px 24px;
    cursor: pointer;
    transition: background .1s;
}
.blog-card:nth-child(3n) { border-right: none; }
.blog-card:hover { background: #fafafa; }
.blog-card:hover .bc-title { color: #952525; }

.bc-img {
    width: 100%;
    height: 200px;
    background: #f8f8f8;
    overflow: hidden;
    margin-bottom: 16px;
}
.bc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.blog-card:hover .bc-img img { transform: scale(1.03); }

.bc-meta {
    font-size: 11px;
    color: #818181;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}
.bc-meta a { color: #952525; transition: color .15s; }
.bc-meta a:hover { color: #dfa103; }

.bc-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #000;
    margin-bottom: 10px;
    transition: color .15s;
}
.bc-excerpt {
    font-size: 13px;
    line-height: 1.65;
    color: #555;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bc-readmore {
    font-size: 12px;
    font-weight: 700;
    color: #952525;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color .15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.bc-readmore:hover { color: #dfa103; }

/* ── FEATURED POST (first post, full width) ── */
.blog-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid #f0f0f0;
}
.blog-featured .bc-img {
    height: 360px;
    margin-bottom: 0;
}
.blog-featured .bc-content {
    padding: 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.blog-featured .bc-title {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 14px;
}
.blog-featured .bc-excerpt {
    -webkit-line-clamp: 5;
    font-size: 14px;
}

/* ── PAGINATION ── */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 40px 48px;
    border-top: 1px solid #f0f0f0;
}
.page-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    border: 1px solid #e8e8e8;
    transition: all .15s;
    border-radius: 2px;
}
.page-number:hover, .page-number.current {
    background: #952525;
    color: #fff;
    border-color: #952525;
}

/* ── SINGLE POST ── */
.single-hero {
    width: 100%;
    height: 420px;
    overflow: hidden;
    position: relative;
    background: #f8f8f8;
}
.single-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.single-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 40px 80px;
}
.single-meta {
    font-size: 12px;
    color: #818181;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 16px;
}
.single-meta span { margin: 0 8px; }
.single-title {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.15;
    color: #000;
    margin-bottom: 24px;
}
.single-body {
    font-size: 16px;
    line-height: 1.8;
    color: #222;
}
.single-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: #000;
}
.single-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 10px;
    color: #000;
}
.single-body p { margin-bottom: 18px; }
.single-body a { color: #952525; }
.single-body a:hover { color: #dfa103; }
.single-body img {
    max-width: 100%;
    height: auto;
    margin: 24px 0;
}
.single-body blockquote {
    border-left: 3px solid #952525;
    padding: 12px 20px;
    margin: 24px 0;
    background: #fafafa;
    font-style: italic;
    color: #555;
}
.single-nav {
    display: flex;
    justify-content: space-between;
    padding: 24px 40px;
    border-top: 1px solid #f0f0f0;
    max-width: 780px;
    margin: 0 auto;
}
.single-nav a {
    font-size: 12px;
    font-weight: 700;
    color: #952525;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color .15s;
}
.single-nav a:hover { color: #dfa103; }

/* ── ARCHIVE / CATEGORY PAGE ── */
.archive-header {
    padding: 40px 40px 24px;
    border-bottom: 2px solid #952525;
}
.archive-title {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.archive-desc {
    font-size: 14px;
    color: #818181;
    margin-top: 6px;
}

/* ── 404 ── */
.error-404 {
    text-align: center;
    padding: 100px 40px;
}
.error-404 h1 {
    font-size: 100px;
    font-weight: 900;
    color: #952525;
    line-height: 1;
    margin-bottom: 16px;
}
.error-404 p {
    font-size: 16px;
    color: #818181;
    margin-bottom: 24px;
}
.btn-primary {
    display: inline-block;
    background: #952525;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 2px;
    transition: background .15s;
}
.btn-primary:hover { background: #dfa103; color: #fff; }

/* ── FOOTER ── */
.footer {
    background: #f8f8f8;
    border-top: 1px solid #e8e8e8;
    padding: 48px 40px 32px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e8e8e8;
}
.footer-brand .flogo {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #952525;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
}
.footer-brand address {
    font-style: normal;
    font-size: 13px;
    color: #818181;
    line-height: 1.8;
}
.footer-col-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 14px;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-links a {
    font-size: 13px;
    color: #818181;
    text-decoration: none;
    transition: color .15s;
}
.footer-links a:hover { color: #952525; }
.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 12px;
}
.footer-social a {
    font-size: 12px;
    font-weight: 700;
    color: #818181;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color .15s;
}
.footer-social a:hover { color: #952525; }
.footer-bottom {
    max-width: 1200px;
    margin: 24px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
}
.footer-bottom a { color: #aaa; transition: color .15s; }
.footer-bottom a:hover { color: #952525; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured .bc-img { height: 240px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-center { display: none; }
    .blog-grid { grid-template-columns: 1fr; }
    .single-title { font-size: 26px; }
    .footer-inner { grid-template-columns: 1fr; }
    .nav { padding: 0 16px; }
    .blog-page-header, .blog-card, .single-content { padding-left: 20px; padding-right: 20px; }
}
