/* Blog article layout — Traço Fino Beauty Clinic
   Uses the same design tokens defined in style.css (:root vars). */

.blog-article {
    padding: 64px 0 100px;
}

.blog-article__content {
    max-width: 820px;
}

.blog-header {
    margin-bottom: 48px;
}

.blog-header h1 {
    margin: 0 0 18px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 600;
    line-height: 1.03;
    letter-spacing: -.035em;
}

.blog-header__subtitle {
    max-width: 700px;
    margin: 0 0 32px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.blog-header__image {
    margin: 0 0 8px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(74, 54, 46, .1);
}

.blog-header__image picture,
.blog-header__image img {
    display: block;
    width: 100%;
    height: auto;
}

.blog-body {
    margin: 0 0 56px;
}

.blog-body h2 {
    margin: 0 0 20px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(2.1rem, 3.6vw, 2.9rem);
    font-weight: 600;
    letter-spacing: -.03em;
}

.blog-body h3 {
    margin: 34px 0 12px;
    color: var(--rose-700);
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
}

.blog-body p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.8;
}

.blog-cta {
    margin-top: 32px;
    padding: 22px 26px;
    border-radius: 16px;
    background: var(--rose-50);
}

.blog-cta p {
    margin: 0;
    color: var(--ink);
}

.blog-cta a {
    color: var(--rose-700);
    font-weight: 600;
}

.blog-gallery {
    margin: 0 0 56px;
}

.blog-gallery h2 {
    margin: 0 0 10px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(2.1rem, 3.6vw, 2.9rem);
    font-weight: 600;
    letter-spacing: -.03em;
}

.blog-gallery > p {
    margin: 0 0 30px;
    color: var(--muted);
    line-height: 1.8;
}

.gallery-grid {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.gallery-column {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 14px;
}

.gallery-item {
    display: block;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(154, 117, 100, .16);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: 0 10px 26px rgba(74, 54, 46, .08);
}

.gallery-item picture {
    display: block;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: contain;
}

.blog-faq h2 {
    margin: 0 0 10px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(2.1rem, 3.6vw, 2.9rem);
    font-weight: 600;
    letter-spacing: -.03em;
}

.blog-faq > p {
    margin: 0 0 30px;
    color: var(--muted);
    line-height: 1.8;
}

.faq-list {
    display: grid;
    gap: 0;
}

.blog-faq .faq-item {
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.blog-faq .faq-item:last-child {
    border-bottom: 1px solid var(--line);
}

.blog-faq .faq-item h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.08rem;
    font-weight: 600;
}

.blog-faq .faq-item p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.75;
}

/* Blog index / listing page */

.blog-index {
    padding: 64px 0 100px;
}

.blog-index__header {
    max-width: 720px;
    margin: 0 0 52px;
}

.blog-index__header h1 {
    margin: 0 0 18px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5.5vw, 4.6rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.035em;
}

.blog-index__subtitle {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.blog-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    box-shadow: 0 15px 38px rgba(74, 54, 46, .08);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(74, 54, 46, .12);
}

.blog-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.blog-card__image {
    margin: 0;
}

.blog-card__image picture,
.blog-card__image img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card__body {
    padding: 24px 26px 28px;
}

.blog-card__body h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.15;
}

.blog-card__body p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__cta {
    color: var(--rose-700);
    font-size: .82rem;
    font-weight: 600;
}

@media (max-width: 1023px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Related services (restored inside blog articles) */

.blog-related {
    margin: 0 0 56px;
}

.blog-related h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(2.1rem, 3.6vw, 2.9rem);
    font-weight: 600;
    letter-spacing: -.03em;
}

.blog-related > p {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.8;
}

.blog-related .related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.blog-related .related-card {
    display: block;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    transition: transform .2s, box-shadow .2s;
}

.blog-related .related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(74, 54, 46, .08);
}

.blog-related .related-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.4rem;
}

.blog-related .related-card span {
    color: var(--rose-700);
    font-size: .82rem;
    font-weight: 600;
}

@media (max-width: 767px) {
    .blog-related .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .blog-article {
        padding: 44px 0 72px;
    }
    .blog-index {
        padding: 44px 0 72px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
