/*
Theme Name: CDA 2026
Theme URI: https://casadasamigas.com
Description: Tema do blog Casa das Amigas: arquitetura, decoração, design e moda.
Version: 2.0
Author: Casa das Amigas
Text Domain: cda
*/

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;700&family=Spartan:wght@400;500;600;700&display=swap');

@font-face {
    font-family: "The Secret";
    src: url("assets/fonts/thesecret.woff2") format("woff2"),
         url("assets/fonts/thesecret.woff") format("woff"),
         url("assets/fonts/thesecret.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

html {
    margin-top: 0 !important;
}

:root {
    --primary-color: rgb(32, 38, 41);
    --text-color: #333;
    --bg-color: rgb(255, 255, 255);
    --link-color: rgb(44, 46, 48);
    --accent-color: rgb(248, 180, 157);
    /* Stronger orange for small labels and decorative marks */
    --accent-strong: rgb(244, 109, 70);
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Spartan', sans-serif;
    font-size: 15px;
    line-height: 29px;
    margin: 0;
    color: var(--text-color);
    background: var(--bg-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header
   Phones: logo and hamburger in one row; the menu drops down below the header.
   From 48.0625rem (769px): full menu on top with the centered logo below. */
.site-header {
    background: var(--bg-color);
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    /* Keep the header (and its shadow) above the content that follows */
    position: relative;
    z-index: 2;
    /* The full-width nav divider uses 100vw; don't let the scrollbar width cause sideways scrolling */
    overflow-x: clip;
}


.search-icon:hover,
.search-icon:focus-visible {
    color: #f8b49d;
}

.search-icon:focus-visible,
.search-close:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Main Content */
.main-content {
    padding: 0;
    min-height: 60vh;
    margin-top: 0;
}

.post-content,
.page-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
}

.post-header,
.page-header {
    margin-bottom: var(--spacing-md);
}

.post-title,
.page-title {
    font-family: 'Jost', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
    line-height: 1.2;
}

.post-thumbnail,
.page-thumbnail {
    margin-bottom: var(--spacing-md);
}

.post-thumbnail img,
.page-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.post-content-wrapper,
.page-content-wrapper {
    color: var(--text-color);
}

.post-content-wrapper h2,
.post-content-wrapper h3,
.page-content-wrapper h2,
.page-content-wrapper h3 {
    font-family: 'Jost', sans-serif;
    margin-top: var(--spacing-md);
    color: var(--primary-color);
    font-weight: 600;
}

.post-content-wrapper p,
.page-content-wrapper p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.post-content-wrapper a,
.page-content-wrapper a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-content-wrapper a:hover,
.post-content-wrapper a:focus-visible,
.page-content-wrapper a:hover,
.page-content-wrapper a:focus-visible {
    color: var(--accent-color);
}

.post-content-wrapper img,
.page-content-wrapper img {
    max-width: 100%;
    height: auto;
    margin: var(--spacing-sm) 0;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2rem, 5vw, 2.625rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
}

/* Post Categories */
.post-categories {
    margin-top: 0.20rem;
    text-align: center;
}

.post-categories a {
    color: rgb(248, 180, 157);
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
}

.post-categories a:hover {
    color: rgb(204, 204, 204);
}

/* Post Date */
.post-date {
    color: rgb(158, 162, 170);
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    text-align: center;
}

/* Post Tags */
.post-tags {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid #eee;
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    color: rgb(167, 171, 180);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 11px;
    /* Tags are output without separators, so let them wrap as flex items */
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    row-gap: 0.5rem;
}

.tags-label {
    font-weight: 400;
    color: rgb(167, 171, 180);
}

.post-tags a {
    color: rgb(28, 29, 31);
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    /* Big enough to tap on phones */
    display: inline-block;
    padding: 0.375rem 0.3125rem;
    letter-spacing: 2px;
}

.post-tags a:hover {
    text-decoration: underline;
}

/* Social Sharing */
.sharebox {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: 8px;
}

.sharebox .social-icons {
    text-align: center;
}

.sharebox .social-icons ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.sharebox .social-icons li {
    background: rgb(245, 245, 245);
    border-radius: 4px;
    flex: 1;
}

.sharebox .social-icons li a {
    display: block;
    width: 100%;
    height: 100%;
    color: rgb(29, 31, 32);
    text-align: center;
    text-decoration: none;
    font-size: 8px;
    padding: 8px;
}

.sharebox .social-icons li:hover {
    background: rgb(255, 255, 255);
}

.sharebox .social-icons li.social-facebook:hover {
    background: rgb(59, 89, 153);
}

.sharebox .social-icons li.social-facebook:hover a {
    color: rgb(255, 255, 255);
}

.sharebox .social-icons li.social-pinterest:hover {
    background: rgb(189, 8, 28);
}

.sharebox .social-icons li.social-pinterest:hover a {
    color: rgb(255, 255, 255);
}

.sharebox .social-icons li.social-whatsapp:hover {
    background: rgb(37, 211, 102);
}

.sharebox .social-icons li.social-whatsapp:hover a {
    color: rgb(255, 255, 255);
}

/* Ads section */
.ads-section {
    padding: 1rem 0;
    border-top: 1px solid #eee;
}

.section-title {
    font-family: 'Jost', sans-serif;
    font-size: 1.0rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.375rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Related Stories section */
.related-stories {
    padding: 1rem 0;
    border-top: 1px solid #eee;
}

.related-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.related-post {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.related-post-thumbnail {
    overflow: hidden;
}

.related-post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post:hover .related-post-thumbnail img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.related-post-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.related-post-title a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #f8b49d;
}

@media (max-width: 768px) {
    .related-posts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Footer */
.site-footer {
    background: #f8f8f8;
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-lg);
    text-align: center;
    color: #666;
    font-family: 'Spartan', sans-serif;
}

.follow-us-section {
    margin-bottom: 2rem;
}

.follow-us-section h3 {
    margin-bottom: 1rem;
}

.social-icons .social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.social-icons .social-list li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.3s ease;
    color: #666;
}

.social-icons .social-list li a:hover {
    color: #f8b49d;
}

.social-icons .social-list li a i {
    font-size: 24px;
}

@media (max-width: 768px) {
    .social-icons .social-list {
        gap: 2.25rem;
    }
    
    .social-icons .social-list li a i {
        font-size: 32px;
    }
}

/* Content with Sidebar Layout */
.content-with-sidebar {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.posts-grid {
    flex: 2;
}

.sidebar {
    flex: 1;
    max-width: 300px;
    margin-top: 2rem;
}

.sidebar-widget {
    margin-bottom: 2rem;
    text-align: center;
}

.sidebar-widget .widget-content .sobre-nos-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 1rem auto;
}

.sidebar-widget .widget-content .sobre-nos-image-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #e9e9e9;
    margin: 0 auto 1rem auto;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-widget .widget-content p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #666;
}

.sidebar-widget .widget-content h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem 0;
}

.sidebar-widget .widget-content .subtitle {
    font-style: italic;
    color: #888;
    margin-bottom: 1.5rem;
    font-size: 13px;
}

.sidebar-widget .widget-content .signature {
    font-family: "The Secret", serif;
    font-size: 46px;
    font-weight: normal;
    margin: 1rem 0;
}

.sidebar-widget .widget-content .about-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #666;
}

/* Sidebar visibility control */
.desktop-sidebar {
    display: block;
}

.mobile-sidebar {
    display: none;
}

@media (max-width: 640px) {
    .content-with-sidebar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sidebar {
        max-width: none;
    }
    
    .desktop-sidebar {
        display: none;
    }
    
    .mobile-sidebar {
        display: block;
        margin-top: 2rem;
    }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #f8b49d;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .post-title,
    .page-title {
        font-size: clamp(28px, 8vw, 42px);
    }
}
/* Pagination */
.pagination {
    margin: 1rem 0 1rem;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination .page-numbers li {
    display: inline-block;
    margin: 0 0.55rem;
    list-style: none;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    font-family: 'Jost', sans-serif;
    color: #666;
}

.pagination .page-numbers a:hover {
    color: #f8b49d;
}

.pagination .page-numbers .current {
    color: white;
    font-weight: normal;
    background-color: #f8b49d;
    border-radius: 50%;
    width: 2.44rem;
    height: 2.44rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-numbers .prev,
.pagination .page-numbers .next {
    margin: 0 1.1rem;
}

/* Categories Section */
.categories-section {
    padding: 2rem var(--spacing-sm);
    background-color: #F5F5F5;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.categories-title {
    font-family: 'Jost', sans-serif;
    font-size: 1.0rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.375rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 24px auto 0 auto;
}

.category-item {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.category-thumbnail {
    overflow: hidden;
}

.category-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-item:hover .category-thumbnail img {
    transform: scale(1.05);
}

.category-content {
    padding: 1.5rem;
    flex-grow: 1;
    text-align: center;
}

.category-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Jost', sans-serif;
    text-transform: uppercase;
}

.category-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Jost', sans-serif;
}

.category-title a:hover {
    color: #f8b49d;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .categories-title {
        font-size: 1.5rem;
    }
}
.search-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(238, 238, 238, 0.8);
}

.search-modal-content {
    position: relative;
    background-color: var(--bg-color);
    margin: clamp(4rem, 15vh, 10rem) auto 0;
    padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-md);
    width: min(100% - 2 * var(--spacing-sm), 50rem);
    border-radius: 8px;
}

.search-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--link-color);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-close:hover {
    color: var(--accent-color);
}

/* Mobile first: input and button stacked, side by side from 30rem */
.search-modal form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
}

.search-modal input[type="search"] {
    flex: 1 1 100%;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    font-family: 'Spartan', sans-serif;
    font-size: 1rem;
}

.search-modal input[type="search"]:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 0;
}

.search-modal form button {
    flex: 1 1 100%;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
}

.search-modal form button:hover,
.search-modal form button:focus-visible {
    background-color: rgb(28, 29, 31);
}

@media (min-width: 30rem) {
    .search-modal-content {
        padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
    }

    .search-modal input[type="search"] {
        flex: 1 1 auto;
    }

    .search-modal form button {
        flex: 0 0 auto;
    }
}

/* Header layout and navigation */
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: var(--spacing-sm);
}

.header-logo img {
    display: block;
    width: min(100%, 13.75rem);
    height: auto;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.375rem;
    height: 2.375rem;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background-color: var(--accent-color);
    cursor: pointer;
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
}

/* Three bars that turn into an X when the menu is open */
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
    display: block;
    width: 1.125rem;
    height: 2px;
    background-color: #fff;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-toggle-bars {
    position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
    content: '';
    position: absolute;
    left: 0;
}

.menu-toggle-bars::before {
    top: -6px;
}

.menu-toggle-bars::after {
    top: 6px;
}

.is-menu-open .menu-toggle-bars {
    background-color: transparent;
}

.is-menu-open .menu-toggle-bars::before {
    transform: translateY(6px) rotate(45deg);
}

.is-menu-open .menu-toggle-bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

.main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0 var(--spacing-sm) var(--spacing-sm);
    background-color: var(--bg-color);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.08);
}

.is-menu-open .main-navigation {
    display: block;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    border-bottom: 1px solid #eee;
}

.nav-menu a {
    display: block;
    padding: 1rem 0.25rem;
    color: var(--link-color);
    font-family: 'Jost', sans-serif;
    font-size: 0.875rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu .current-menu-item > a {
    color: var(--accent-color);
}

.search-icon {
    padding: 1rem 0.25rem;
    border: 0;
    background: none;
    color: var(--link-color);
    font: inherit;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .menu-toggle-bars,
    .menu-toggle-bars::before,
    .menu-toggle-bars::after {
        transition: none;
    }
}

@media (min-width: 48.0625rem) {
    .site-header {
        padding: 0 0 var(--spacing-sm);
    }

    .header-inner {
        display: flex;
        flex-direction: column;
    }

    .menu-toggle {
        display: none;
    }

    .main-navigation {
        display: flex;
        order: -1;
        justify-content: center;
        align-items: center;
        position: relative;
        width: 100%;
        margin-bottom: var(--spacing-sm);
        padding: var(--spacing-sm) 0;
        background: none;
        box-shadow: none;
    }

    /* Divider under the menu, spanning the full viewport like the header's bottom edge */
    .main-navigation::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        height: 1px;
        background-color: #eee;
    }

    .nav-menu {
        flex-direction: row;
        gap: var(--spacing-sm);
    }

    .nav-menu li {
        border-bottom: 0;
    }

    .nav-menu a {
        padding: 0.5rem;
    }

    .search-icon {
        margin-left: var(--spacing-sm);
        padding: 0.5rem;
    }

    .header-logo {
        /* Same total height as before the logo became a block image */
        padding: 1.3125rem 0;
    }

    .header-logo img {
        width: auto;
        max-width: min(100%, 31.25rem);
        margin: 0 auto;
    }
}

/* Container and Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.site-main {
    min-height: 70vh;
}

/* Homepage Styles */
.home-image-section {
    width: 100%;
    margin-top: 2rem;
}

/* Full width of the page content, like the posts and sidebar below it */
.home-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Hero Content Section */
.hero-content-section {
    padding: 3rem 0;
    text-align: center;
    background-color: var(--bg-color);
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.hero-cta {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: transparent;
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid var(--text-light);
    border-radius: 4px;
    font-weight: 400;
    text-transform: lowercase;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

/* About Section */
.about-section {
    text-align: center;
    background-color: #ffffff;
}

.about-title {
    font-family: "The Secret", serif;
    font-size: 4.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-transform: lowercase;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #666;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.about-link {
    color: rgb(248, 180, 157);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-link:hover {
    text-decoration: underline;
}

.hero-section {
    background: var(--bg-color);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

.latest-posts-section {
    padding: 1.5rem 0;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: var(--spacing-md);
    width: 100%;
    margin-left: -55px;
    z-index: 1;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* Reset post-content styling for single posts and mobile */
.single .post-content,
.post-content.single-post {
    margin-left: 0;
    box-shadow: none;
    border-radius: 0;
    width: auto;
    position: static;
    z-index: auto;
    margin: 0 auto;
    max-width: 800px;
}

/* Alternating layout for desktop only */
.post-card:nth-child(even) {
    flex-direction: row-reverse;
}

.post-card:nth-child(even) .post-content {
    margin-left: 0;
    margin-right: -55px;
    z-index: 2;
}

.post-title {
    margin-bottom: 1rem;
}

.post-title a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.post-title a:hover {
    color: #f8b49d;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 1.5rem 0 1.5rem 0;
}

.read-more {
    color: #f8b49d;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

.read-more:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-section {
        padding: var(--spacing-md) 0;
    }
}
.hero-content h1 {
    font-family: 'Jost', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 874px));
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.post-card {
    display: flex;
    flex-direction: row;
    border-radius: 8px;
    overflow: visible;
    min-height: 300px;
    max-width: 874px;
    align-items: center;
    margin: 20px 0;
}

.post-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-image {
    position: relative;
    overflow: hidden;
    width: clamp(320px, 50%, 460px);
    height: 365px;
    flex-shrink: 0;
    border-radius: 8px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(251,191,172,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-image:hover .image-overlay {
    opacity: 1;
}

.post-card-content {
    padding: 14px 0 0;
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin: 0 0 20px;
}

.post-card h2 {
    font-family: 'Jost', sans-serif;
    line-height: 0.9;
    margin: 0;
    text-align: center;
    color: rgb(0, 0, 0);
}

.post-card p {
    color: rgb(27, 28, 29);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

@media (max-width: 900px) {
    .post-card {
        flex-direction: column;
        height: auto;
        max-height: none;
        align-items: stretch;
    }
    
    .post-card img {
        width: 100%;
        max-width: 100%;
        height: 200px;
    }
    
    .post-image {
        width: 100%;
        height: auto;
    }
    
    .post-card-content {
        max-width: 100%;
        padding: 8px 0 0;
    }
    
    .post-content {
        margin-left: 0;
    }
    
    /* Reset alternating layout for mobile */
    .post-card:nth-child(even) {
        flex-direction: column;
    }
    
    .post-card:nth-child(even) .post-content {
        margin-right: 0;
    }
}
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.post-date {
    color: rgb(158, 162, 170);
    font-size: 11px;
}

.read-more {
    color: rgb(248, 180, 157);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Sobre Nos Page Styles */
.sobre-hero-section {
    width: 100%;
    margin: 2rem 0 var(--spacing-md);
}

/* Full width of the page content, like the home image */
.sobre-hero-wrapper {
    position: relative;
    width: 100%;
}

.sobre-hero-image {
    width: 100%;
    height: auto;
    /* Give the title room on phones, where the photo gets very short */
    min-height: 12rem;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.sobre-hero-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

.sobre-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    margin: 0;
    padding: var(--spacing-sm);
}

.sobre-hero-title {
    color: white;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.sobre-content-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.sobre-image-section {
    flex: 1;
    max-width: 50%;
}

.sobre-text-section {
    flex: 1;
    max-width: 50%;
}

.sobre-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.sobre-intro {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.sobre-founders-text,
.sobre-cda-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.sobre-cda-text .read-more {
    font-size: 1.1rem;
}

.sobre-text-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .sobre-content-wrapper {
        flex-direction: column !important;
        gap: 2rem;
    }
    
    .sobre-image-section,
    .sobre-text-section {
        max-width: 100%;
    }
}

.sobre-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.sobre-hero-title {
    /* Balanced lines instead of a single word left on the last line */
    max-width: 40rem;
    text-wrap: balance;
    font-family: 'Jost', sans-serif;
    font-size: clamp(1.25rem, 5vw, 2.6rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.125rem;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .sobre-founders-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .sobre-founders-section::before {
        align-self: center;
    }
}

/* Single post sidebar (ad skyscraper)
   Hidden below desktop, right-hand column from 64rem */
.single-sidebar {
    display: none;
}

.single-sidebar .section-title {
    font-size: 0.8125rem;
    white-space: nowrap;
    margin-bottom: var(--spacing-md);
}

@media (min-width: 64rem) {
    .single-layout {
        display: grid;
        grid-template-columns: minmax(0, 50rem) 8.75rem;
        justify-content: space-between;
        align-items: start;
        column-gap: var(--spacing-md);
    }

    .single-layout .post-content {
        margin: 0;
        max-width: none;
    }

    .single-sidebar {
        display: block;
        margin: 0;
        /* Line the heading up with the post's own top padding */
        padding-top: var(--spacing-md);
    }
}

/* Visually hidden text for screen readers (WordPress standard class) */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Social profile icons (home sidebar "Sobre nós" widget) */
.profile-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem;
    margin: var(--spacing-sm) 0 var(--spacing-md);
    padding: 0;
    list-style: none;
}

.profile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.875rem;
    height: 2.875rem;
    border: 1px solid rgb(222, 225, 229);
    border-radius: 50%;
    background-color: var(--bg-color);
    color: rgb(26, 28, 29);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.profile-social a:hover,
.profile-social a:focus-visible {
    color: var(--accent-color);
}

/* Form controls (shared by the contact page and the newsletter section) */
.cda-input {
    width: 100%;
    min-height: 3.75rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgb(218, 220, 223);
    border-radius: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Spartan', sans-serif;
    font-size: 0.875rem;
}

.cda-input::placeholder {
    color: #888;
    opacity: 1;
}

.cda-input:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 0;
}

textarea.cda-input {
    resize: vertical;
}

select.cda-input {
    appearance: none;
    padding-right: 3rem;
    color: #888;
    background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%);
    background-position: calc(100% - 1.6rem) 50%, calc(100% - 1.25rem) 50%;
    background-size: 0.35rem 0.35rem;
    background-repeat: no-repeat;
}

select.cda-input:valid {
    color: var(--text-color);
}

.cda-button {
    width: 100%;
    min-height: 3.75rem;
    padding: 1.25rem 2rem;
    border: 1px solid var(--accent-color);
    background-color: rgb(28, 29, 31);
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cda-button:hover,
.cda-button:focus-visible {
    background-color: var(--accent-color);
}

.cda-button--accent {
    background-color: var(--accent-color);
}

.cda-button--accent:hover,
.cda-button--accent:focus-visible {
    background-color: rgb(28, 29, 31);
}

/* Contact page */
.contato-page {
    padding-top: 0;
}

.contato-hero {
    display: grid;
    grid-template-rows: auto 1fr;
    justify-items: center;
    /* Half the height of the original hero */
    min-height: clamp(12rem, 21vw, 19rem);
    padding-bottom: clamp(1.5rem, 3vw, 3rem);
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    position: relative;
    isolation: isolate;
    /* Same width as the page content (the container minus its padding), like the home image */
    width: min(100% - 2 * var(--spacing-sm), var(--max-width) - 2 * var(--spacing-sm));
    margin: var(--spacing-md) auto 0;
    border-radius: 8px;
    overflow: hidden;
}

.contato-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgba(32, 38, 41, 0.6);
}

/* Thin vertical line hanging from the top edge */
.contato-hero::before {
    content: '';
    width: 1px;
    height: clamp(1.5rem, 3vw, 3rem);
    background-color: #fff;
}

.contato-hero-title {
    align-self: center;
    margin: 0;
    padding: var(--spacing-sm);
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: clamp(1.5rem, 3.6vw, 3.25rem);
    font-weight: 700;
    line-height: 1.17;
    text-align: center;
}

.contato-form-section {
    padding: var(--spacing-lg) 0;
}

.contato-title {
    margin: 0 0 var(--spacing-md);
    color: var(--primary-color);
    font-family: 'Jost', sans-serif;
    font-size: clamp(2rem, 3vw, 2.625rem);
    font-weight: 700;
    letter-spacing: 0.09rem;
    text-align: center;
}

.contato-card {
    max-width: 61rem;
    margin: 0 auto;
    padding: var(--spacing-md) 1.25rem;
    background-color: var(--bg-color);
    box-shadow: 0 4px 47px rgba(0, 0, 0, 0.08);
}

.contato-intro {
    margin: 0 0 var(--spacing-md);
    color: var(--text-color);
    font-size: 0.875rem;
    text-align: center;
}

.contato-status {
    margin: 0 0 var(--spacing-sm);
    padding: var(--spacing-sm);
    font-size: 0.875rem;
    border-left: 3px solid;
}

.contato-status--success {
    border-color: var(--accent-color);
    background-color: #fdf3ef;
}

.contato-status--error {
    border-color: #c0392b;
    background-color: #fbeeed;
}

.contato-form {
    display: grid;
    gap: 1.25rem;
}

.cda-honeypot {
    position: absolute;
    left: -100vw;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (min-width: 48rem) {
    .contato-card {
        padding: 2.5rem 5rem 1.875rem;
    }

    .contato-intro {
        text-align: left;
    }

    .contato-form {
        grid-template-columns: 1fr 1fr;
    }

    .contato-field--full {
        grid-column: 1 / -1;
    }
}

/* Newsletter section ("Fique por dentro"), above the footer on every page */
.newsletter-section {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
    background-color: rgb(245, 245, 245);
}

.newsletter-section + .site-footer {
    margin-top: 0;
    background-color: var(--bg-color);
}

.newsletter-inner {
    display: grid;
    gap: var(--spacing-sm);
    text-align: center;
}

.newsletter-title {
    margin: 0 0 var(--spacing-sm);
    color: var(--primary-color);
    font-family: 'Jost', sans-serif;
    font-size: clamp(2rem, 3vw, 2.625rem);
    font-weight: 700;
}

.newsletter-text p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.875rem;
}

.newsletter-form {
    display: grid;
    gap: 0.75rem;
}

.newsletter-form .cda-input {
    border-color: rgb(229, 229, 229);
}

@media (min-width: 48rem) {
    .newsletter-inner {
        grid-template-columns: auto minmax(0, 20rem);
        justify-content: center;
        align-items: center;
        column-gap: var(--spacing-lg);
        text-align: left;
    }
}

/* Projetos page */
.projetos-page {
    min-height: 0;
}

/* Intro: photo in a white frame overlapping the bottom of a gray band */
.projetos-intro {
    margin-top: var(--spacing-md);
}

.projetos-intro__inner {
    display: grid;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    background-color: rgb(245, 245, 245);
}

.projetos-intro__photo {
    margin: 0;
    padding: 0.75rem;
    background-color: var(--bg-color);
    /* Same rounding as the other site images */
    border-radius: 8px;
}

.projetos-intro__photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.projetos-intro__text {
    text-align: center;
}

.projetos-intro__title {
    margin: 0 0 var(--spacing-sm);
    color: var(--primary-color);
    font-family: 'Jost', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.625rem);
    font-weight: 700;
}

.projetos-intro__text p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.9;
}

/* Services */
.projetos-services {
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.projetos-services .section-title {
    margin-bottom: var(--spacing-md);
    font-size: 0.8125rem;
}

.projetos-services__list {
    display: grid;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
    list-style: none;
}

.projetos-service {
    position: relative;
    padding-bottom: 1.25rem;
}

.projetos-service img {
    display: block;
    width: 100%;
    aspect-ratio: 340 / 306;
    object-fit: cover;
    border-radius: 8px;
}

/* White label box overlapping the bottom edge of the photo */
.projetos-service__label {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 2rem);
    padding: 0.875rem 1.5rem;
    background-color: var(--bg-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--accent-strong);
    font-family: 'Jost', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-align: center;
    text-transform: uppercase;
}

/* Quote */
.projetos-quote {
    padding: var(--spacing-lg) 0;
}

.projetos-quote__text {
    max-width: 46rem;
    margin: 0 auto;
    text-align: center;
}

.projetos-quote__text::before {
    content: '\201D';
    display: block;
    color: var(--accent-strong);
    font-family: 'Jost', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    line-height: 0.8;
}

.projetos-quote__text p {
    margin: var(--spacing-sm) 0 0;
    color: var(--primary-color);
    font-family: 'Jost', sans-serif;
    font-size: clamp(1.375rem, 2.6vw, 2.375rem);
    font-weight: 700;
    line-height: 1.3;
    text-wrap: balance;
}

/* Project cards (styled by search.css) */
.projetos-list {
    padding: var(--spacing-md) 0 var(--spacing-lg);
}

.projetos-list .section-title {
    margin-bottom: var(--spacing-md);
}

.projetos-grid {
    display: grid;
    gap: var(--spacing-md);
    align-items: start;
}

.projetos-empty {
    text-align: center;
}

@media (min-width: 48.0625rem) {
    .projetos-intro__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        column-gap: var(--spacing-lg);
        padding: var(--spacing-lg) var(--spacing-lg) 0;
    }

    /* The photo hangs below the gray band */
    .projetos-intro__photo {
        margin-bottom: calc(-1 * var(--spacing-lg));
        align-self: start;
    }

    .projetos-intro__text {
        padding-bottom: var(--spacing-lg);
    }

    .projetos-services {
        padding-top: calc(var(--spacing-lg) * 2);
    }

    .projetos-services__list,
    .projetos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .projetos-services__list {
        gap: var(--spacing-md);
    }
}

/* Narrow cards (3 columns on tablets): smaller type so titles and footers don't break apart */
/* Extra .search-card in the selectors: search.css loads after this file */
.projetos-grid .search-card,
.error-404__grid .search-card,
.projetos-service {
    container-type: inline-size;
}

@container (max-width: 20rem) {
    .projetos-grid .search-card .search-card__body,
    .error-404__grid .search-card .search-card__body {
        padding: 0.25rem 0.875rem 1rem;
    }

    .projetos-grid .search-card .search-card__title,
    .error-404__grid .search-card .search-card__title {
        font-size: 1.0625rem;
    }

    .projetos-grid .search-card .search-card__footer,
    .error-404__grid .search-card .search-card__footer {
        flex-wrap: wrap;
        gap: 0.5rem 0.875rem;
    }

    .projetos-service__label {
        max-width: calc(100% - 1rem);
        padding: 0.75rem 0.875rem;
        font-size: 0.6875rem;
        letter-spacing: 0.04rem;
    }
}

/* Google AdSense units (inc/adsense.php)
   Space is reserved so the page doesn't jump when an ad loads, and released when
   Google has no ad to show (data-ad-status="unfilled"). */
.cda-ad {
    width: 100%;
    overflow: hidden;
}

.cda-ad--post-inline {
    margin: var(--spacing-md) 0;
    min-height: 17.5rem;
}

.cda-ad--post-footer,
.cda-ad--home-sidebar {
    min-height: 17.5rem;
}

.cda-ad--post-sidebar {
    min-height: 37.5rem;
}

.cda-ad:has(ins[data-ad-status="unfilled"]) {
    min-height: 0;
    margin: 0;
}

.cda-ad ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}

/* Back to top button: appears after scrolling down (assets/js/back-to-top.js) */
.back-to-top {
    position: fixed;
    right: clamp(1rem, 4.5vw, 4rem);
    bottom: 6.875rem;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    background-color: rgb(181, 184, 185);
    color: #fff;
    font-size: 0.875rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.back-to-top[hidden] {
    display: none;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: none;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background-color: var(--accent-color);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}

/* Links page (page-links.php): link-in-bio column */
.links-page {
    min-height: 0;
    padding: var(--spacing-lg) 0;
}

.links-content {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
}

.links-title {
    margin: 0 0 var(--spacing-md);
    color: var(--primary-color);
    font-family: 'Jost', sans-serif;
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 700;
}

.links-content .wp-block-image {
    margin: 0 0 var(--spacing-md);
}

.links-content .wp-block-image img {
    display: block;
    margin: 0 auto;
    border-radius: 50%;
}

.links-content .wp-block-image figcaption {
    margin-top: var(--spacing-sm);
    color: rgb(158, 162, 170);
    font-size: 1rem;
}

.links-content .wp-block-buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

.links-content .wp-block-button {
    width: 100%;
    margin: 0;
}

/* Light peach button with dusty-pink text, like the original */
.links-content .wp-block-button__link {
    display: block;
    width: 100%;
    padding: 1.125rem 1.5rem;
    border-radius: 0;
    background-color: #fff3e5;
    color: #d99290;
    font-family: 'Jost', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.15rem;
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.links-content .wp-block-button__link:hover,
.links-content .wp-block-button__link:focus-visible {
    background-color: #d99290;
    color: #fff;
}

/* Single post: centered title, like the category and date below it */
.single .post-header .post-title {
    text-align: center;
    text-wrap: balance;
}

/* Older post content: fixed-width embeds and lines joined by non-breaking spaces
   must not push the page wider than the screen */
.post-content-wrapper,
.page-content-wrapper {
    overflow-wrap: anywhere;
}

.post-content-wrapper :is(iframe, embed, object, video),
.page-content-wrapper :is(iframe, embed, object, video) {
    max-width: 100%;
}
