/* === DESIGN SYSTEM === */
:root {
    --bg: hsl(40, 33%, 97%);
    --fg: hsl(160, 20%, 12%);
    --card-bg: #ffffff;
    --primary: hsl(160, 32%, 22%);
    --primary-fg: hsl(40, 33%, 97%);
    --muted: hsl(40, 15%, 92%);
    --muted-fg: hsl(160, 10%, 45%);
    --border: hsl(40, 18%, 88%);
    --radius: 0.75rem;
    --font-sans: 'DM Sans', system-ui, sans-serif;
    --font-display: 'DM Serif Display', Georgia, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    font-family: var(--font-sans);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

a {
    color: var(--fg);
    text-decoration: none;
}

nav {
    height: 64px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: hsla(40, 33%, 97%, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid hsla(40, 18%, 88%, 0.5);
}

nav img {
    height: 40px;
    width: 40px;
    margin-right: 10px;
    border-radius: 50%;
}

nav p,
nav a {
    margin: 0 10px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.25em;
    color: var(--fg);
}

h1 {
    font-family: var(--font-display);
    text-align: center;
    font-size: 2.25rem;
    color: var(--fg);
    margin: 3rem 0 2rem;
}

.post-box {
    max-width: 500px;
    margin: 0 auto 2.5rem;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.post-box:hover {
    box-shadow: 0 8px 24px hsla(160, 32%, 22%, 0.08);
    transform: translateY(-3px);
}

.blog-img {
    height: 500px;
    width: 100%;
    background-size: cover;
    background-position: center;
}

#post-1, #post-5 {
    background-image: url('../assets/imgs/blog/post1.png');
}

#post-2 {
    background-image: url('../assets/imgs/blog/post2.jpg');
}

#post-3 {
    background-image: url('../assets/imgs/blog/post3.jpg');
}

#post-4 {
    background-image: url('../assets/imgs/blog/post4.jpg');
}

#post-6 {
    background-image: url('../assets/imgs/blog/post5.jpg');
}

#post-7 {
    background-image: url('../assets/imgs/blog/post1.png');
}

#post-8 {
    background-image: url('../assets/imgs/blog/post2.jpg');
}

#post-9 {
    background-image: url('../assets/imgs/blog/post6.png');
}

#post-10 {
    background-image: url('../assets/imgs/blog/post10.jpg');
}

.blog-img,
.blog-info,
.blog-title,
.blog-text,
.blog-read-more {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.blog-info {
    padding-top: 1rem;
}

.blog-info h3 a {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted-fg);
}

.blog-title h2 a {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--fg);
    line-height: 1.3;
    transition: color 0.2s;
}

.blog-title h2 a:hover {
    color: var(--primary);
}

.blog-text a {
    font-size: 0.9rem;
    color: var(--muted-fg);
    line-height: 1.6;
}

.blog-read-more {
    padding-bottom: 1.5rem;
    margin-top: 1rem;
}

.blog-read-more a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

.blog-read-more a:hover {
    opacity: 0.75;
}

@media only screen and (max-width: 500px) {
    .blog-img {
        height: 250px;
    }

    h1 {
        font-size: 1.75rem;
        margin: 2rem 1rem;
    }
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === NAVBAR UPGRADE === */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: hsla(40, 33%, 97%, 0.8);
    border-bottom: 1px solid hsla(40, 18%, 88%, 0.5);
    height: 64px;
}
.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.nav-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--fg);
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
    font-size: 0.875rem;
    color: var(--muted-fg);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--primary);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-fg) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: opacity 0.2s, transform 0.1s;
}
.nav-cta:hover { opacity: 0.9; }
.nav-cta:active { transform: scale(0.97); }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--fg);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 0.875rem; color: var(--muted-fg); }
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
}

/* === POST ARTICLE === */
.post-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 5rem 1.5rem 4rem;
}
.post-article h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--fg);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    text-wrap: balance;
}
@media (min-width: 769px) {
    .post-article h1 { font-size: 2.5rem; }
}
.post-article .post-hero {
    /* width: 100%; */
    border-radius: var(--radius);
    margin-bottom: 2rem;
    display: block;
    margin: 0 auto;
}
.post-article h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--fg);
    margin: 2rem 0 0.75rem;
    line-height: 1.2;
}
.post-article p {
    font-size: 1rem;
    color: var(--fg);
    line-height: 1.75;
    margin-bottom: 1rem;
    text-wrap: pretty;
}
.post-article strong { font-weight: 600; }

/* === CTA BOX === */
.cta-box {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}
.cta-box p { color: var(--primary-fg); margin-bottom: 1rem; }
.cta-box .cta-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.4rem; }
.cta-box .cta-sub { opacity: 0.9; font-size: 0.9rem; }
.cta-box a {
    display: inline-block;
    background: var(--primary-fg);
    color: var(--primary);
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: opacity 0.2s;
    margin-top: 0.5rem;
}
.cta-box a:hover { opacity: 0.9; }

/* === TABLE === */
.post-table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.post-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.post-table thead tr { background: var(--primary); color: var(--primary-fg); }
.post-table th { padding: 10px 14px; text-align: left; }
.post-table td { padding: 10px 14px; }
.post-table tbody tr:nth-child(odd) { background: var(--card-bg); }
.post-table tbody tr:nth-child(even) { background: var(--muted); }
.post-table td:first-child { font-weight: 700; }

/* === FOOTER === */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
@media (min-width: 769px) {
    .footer-inner { flex-direction: row; flex-wrap: wrap; }
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--fg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-col { min-width: 140px; }
.footer-col-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--fg);
    margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; }
.footer-col li {
    font-size: 0.85rem;
    color: var(--muted-fg);
    margin-bottom: 0.5rem;
}
.footer-col li a { color: var(--muted-fg); transition: color 0.2s; }
.footer-col li a:hover { color: var(--fg); }
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}
.footer-bottom p { font-size: 0.75rem; color: var(--muted-fg); }
.footer-bottom a { color: var(--muted-fg); margin: 0 0.5rem; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--fg); }

/* === WHATSAPP BUTTON === */
.whats-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 40;
    transition: transform 0.2s;
}
.whats-button:hover { transform: scale(1.1); }
