/* ── Design tokens ────────────────────────────────────────── */
:root {
    --dark:        #111111;
    --accent:      #D4A843;
    --accent-dark: #A8812A;
    --bg:          #FAFAF8;
    --bg-alt:      #F2EDE4;
    --text:        #2D2D2D;
    --text-muted:  #6B6B6B;
    --card-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
}

/* ── Base ─────────────────────────────────────────────────── */
body {
    padding-top: 0;
    width: 100%;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    background-color: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    line-height: 1.3;
}

p {
    color: var(--text);
}

a {
    color: var(--accent-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* ── Logo ─────────────────────────────────────────────────── */
.logo {
    float: left;
    background-color: var(--dark);
    border-radius: 0 0 1.5rem 1.5rem;
    max-width: 22em;
    width: 20%;
    margin-right: -5px;
    line-height: 0;
}

.logo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0 0 1.5rem 1.5rem;
}

.logo:hover {
    text-decoration: none;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
    background-color: var(--dark) !important;
    border: 0;
    padding: 0;
}

.navbar__menu {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.navbar__menu li {
    padding: 10px 0;
}

.navbar__menu a,
.nav-item a {
    color: rgba(255, 255, 255, 0.85);
    display: block;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.82rem;
    transition: color 0.2s ease;
}

.navbar__menu a:hover,
.nav-item a:hover {
    color: var(--accent);
}

.navbar-default .navbar-collapse {
    border: 0;
    background-color: #1a1a1a;
}

@media screen and (min-width: 48em) {
    .navbar-default .navbar-collapse {
        background-color: transparent;
    }

    .navbar__menu {
        float: right;
    }

    .navbar__menu li {
        display: inline-block;
        line-height: 60px;
        padding: 0;
    }

    .navbar__menu li:hover {
        background-color: rgba(255, 255, 255, 0.06);
    }

    .navbar__menu a {
        padding: 0 18px;
    }
}

/* ── Hero banner ──────────────────────────────────────────── */
@media screen and (min-width: 31.25em) {
    .hero-banner img {
        left: 0;
        width: 100%;
        height: auto;
        transform: translateY(-50%);
    }
}

@media screen and (min-width: 50em) {
    .hero-banner {
        height: 450px;
        overflow: hidden;
        position: relative;
    }
}

.hero-banner__overlay {
    position: relative;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.68) 0%,
        rgba(0, 0, 0, 0.35) 55%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

.hero-banner__text {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    padding: 0 30px;
    max-width: 600px;
}

.hero-banner__text h1,
.hero-banner__text h2 {
    color: #ffffff;
    font-size: 2.2rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.hero-banner__text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

/* ── Main content ─────────────────────────────────────────── */
.main {
    padding-bottom: 40px;
}

@media screen and (min-width: 48em) {
    .main {
        padding-bottom: 80px;
    }
}

.content-block {
    padding-top: 10px;
}

@media screen and (min-width: 48em) {
    .content-block {
        margin-top: 40px;
    }
}

.content-block img {
    margin-top: 20px;
    border-radius: 6px;
}

/* ── Section headings ─────────────────────────────────────── */
.blog-cards h2,
.content-block h2 {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.blog-cards h2::after,
.content-block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

@media screen and (min-width: 48em) {
    .blog-cards {
        margin-top: 30px;
    }

    .blog-cards h2 {
        text-align: center;
        margin-bottom: 36px;
    }

    .blog-cards h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ── Blog cards ───────────────────────────────────────────── */
.blog-cards__card {
    background-color: #ffffff;
    color: var(--text);
    padding: 28px 28px 24px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border-top: 3px solid var(--accent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-cards__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.blog-cards__card h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: var(--dark);
}

.blog-cards__card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.blog-cards__card p:last-of-type {
    margin-bottom: 16px;
}

@media screen and (min-width: 48em) {
    .blog-cards__card {
        margin-bottom: 0;
    }
}

/* ── Blog teasers ─────────────────────────────────────────── */
.blog-teaser {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-teaser:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.blog-teaser__image img {
    display: block;
    width: 100%;
    height: auto;
}

.blog-teaser__text {
    background-color: #ffffff;
    padding: 28px;
    color: var(--text);
    border-top: 3px solid var(--accent);
}

.blog-teaser__text h2 {
    margin-top: 0;
    font-size: 1.4rem;
}

/* ── Category pills ───────────────────────────────────────── */
.list-group, .list-group--alt {
    list-style-type: none;
    padding: 0;
}

.list-group li, .list-group--alt li {
    display: inline-block;
    background-color: var(--accent);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.list-group a, .list-group--alt a {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.list-group--alt li {
    background-color: var(--dark);
}

/* ── Author block ─────────────────────────────────────────── */
.blog-article-author {
    background-color: var(--bg-alt);
    margin: 30px 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    border-left: 4px solid var(--accent);
}

.blog-article-author-image {
    width: 80px;
    margin: 0 auto 16px;
    flex-shrink: 0;
}

.blog-article-author-image img {
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

@media screen and (min-width: 48em) {
    .blog-article-author {
        flex-direction: row;
        margin: 30px 0;
    }

    .blog-article-author-image {
        margin: 0 20px 0 0;
        width: 70px;
    }
}

/* ── Sidebar ──────────────────────────────────────────────── */
aside h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-alt);
}

/* ── Products ─────────────────────────────────────────────── */
.product {
    margin-bottom: 30px;
}

.product__image {
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

.product__image img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
}

.product__details {
    margin-top: 12px;
}

.product__details .name {
    color: var(--dark);
    font-weight: 700;
}

.product__details .price {
    color: var(--accent-dark);
    float: right;
    font-weight: 700;
}

.product-images img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.product-info .price {
    display: block;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent-dark);
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
    margin-top: 20px;
    background: transparent;
    padding-left: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    margin-top: auto;
    font-size: 0.88rem;
}

.footer span {
    padding: 22px 10px;
    display: inline-block;
}

.footer__links {
    list-style-type: none;
    float: right;
    margin: 0;
    padding: 0;
}

.footer__links li {
    display: inline-block;
    margin: 20px 8px;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: var(--accent);
}

.footer__links a img {
    height: 56px;
    margin: -20px 6px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer__links a:hover img {
    opacity: 1;
}

/* ── Content rich text area ───────────────────────────────── */
.content-block h1 {
    font-size: 2rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.content-block p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text);
    max-width: 74ch;
}

.content-block ul,
.content-block ol {
    padding-left: 1.4rem;
    line-height: 1.9;
    color: var(--text);
}

/* ── Tables (pricing etc.) ────────────────────────────────── */
.content-block table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 0.97rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.content-block table thead th {
    background-color: var(--dark);
    color: #ffffff;
    padding: 14px 22px;
    text-align: left;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.content-block table tbody tr:nth-child(odd) td {
    background-color: #ffffff;
}

.content-block table tbody tr:nth-child(even) td {
    background-color: var(--bg-alt);
}

.content-block table tbody td {
    padding: 14px 22px;
    color: var(--text);
    border-bottom: 1px solid #ede8e0;
    font-size: 0.98rem;
}

.content-block table tbody tr:last-child td {
    border-bottom: none;
}

.content-block table tbody tr:hover td {
    background-color: rgba(212, 168, 67, 0.1);
    transition: background-color 0.15s ease;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn,
.btn-default,
.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    border: none;
    color: #111111 !important;
    padding: 10px 26px;
    border-radius: 6px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(212, 168, 67, 0.3);
}

.btn:hover,
.btn-default:hover,
.btn-primary:hover {
    background-color: var(--accent-dark);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(168, 129, 42, 0.4);
    text-decoration: none;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #ddd8d0;
    border-radius: 7px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--text);
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.18);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

/* ── Blog meta line ───────────────────────────────────────── */
.blog-teaser__meta {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 8px 0 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ── Images in content ────────────────────────────────────── */
.img-thumbnail {
    border: none !important;
    border-radius: 8px !important;
    padding: 0 !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1) !important;
}

/* ── Layout wrapper ───────────────────────────────────────── */
.flex-wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
}
