/* Main Stylesheet for Inverted PM Theme */

/* Header Styles */
.site-header {
    position: relative;
    z-index: 100;
    padding: 1.5rem 2rem;
    background: transparent;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    flex-shrink: 0;
}

.site-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-teal-dark);
    letter-spacing: 0.05em;
}

.custom-logo-link {
    display: flex;
    align-items: center;
}

/* Navigation Styles */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--color-teal-dark);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.nav-menu .consult-button a {
    background-color: var(--color-teal-dark);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-menu .consult-button a:hover {
    background-color: var(--color-teal-light);
    transform: translateY(-2px);
    opacity: 1;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-teal-dark);
    position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-teal-dark);
    left: 0;
    transition: all 0.3s ease;
}

.menu-toggle-icon::before {
    top: -8px;
}

.menu-toggle-icon::after {
    top: 8px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Homepage Hero Section */
.homepage-hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    padding: 4rem 2rem;
    background: transparent;
    overflow: hidden;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 2;
}

.hero-tagline {
    display: inline-block;
    background-color: rgba(26, 95, 122, 0.1);
    color: var(--color-teal-dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    width: fit-content;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.hero-headline .line-1 {
    color: var(--color-teal-dark);
}

.hero-headline .line-2 {
    color: var(--color-white);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-teal-dark);
    max-width: 600px;
}

.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-teal-dark);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-teal-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 95, 122, 0.3);
    opacity: 1;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-teal-dark);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hero-footer-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-teal-dark);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.hero-footer-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Hero Cards Section */
.hero-cards {
    position: relative;
    height: 500px;
    z-index: 1;
}

.hero-card {
    position: absolute;
    width: 320px;
    padding: 2.5rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.hero-card-back {
    background-color: var(--color-teal-dark);
    color: var(--color-white);
    left: 0;
    top: 0;
    transform: rotate(-5deg);
    z-index: 1;
}

.hero-card-front {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 184, 140, 0.2) 100%);
    color: var(--color-teal-dark);
    right: 0;
    bottom: 0;
    transform: rotate(5deg);
    z-index: 2;
}

.card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.card-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Blog Styles */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

.post-card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.post-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.post-content {
    padding: 1rem;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-teal-dark);
}

.post-title a {
    color: inherit;
}

.post-title a:hover {
    opacity: 0.8;
}

.post-meta {
    font-size: 0.8125rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.post-excerpt {
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.read-more {
    color: var(--color-teal-dark);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Single Post Styles */
.single-post-header {
    margin-bottom: 3rem;
}

.single-post-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-teal-dark);
    margin-bottom: 1rem;
}

.single-post-meta {
    font-size: 1rem;
    color: #666;
}

.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--color-teal-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content a {
    color: var(--color-teal-dark);
    text-decoration: underline;
}

.entry-content a:hover {
    opacity: 0.8;
}

/* Responsive Embeds in Content */
.entry-content iframe,
.entry-content embed,
.entry-content object {
    max-width: 100%;
    height: auto;
}

.entry-content .wp-block-embed,
.entry-content .wp-embed {
    max-width: 800px;
    margin: 2rem auto;
}

.entry-content .wp-block-embed iframe,
.entry-content .wp-embed iframe {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
}

/* Archive Header */
.archive-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(26, 95, 122, 0.1);
}

.archive-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-teal-dark);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(26, 95, 122, 0.1);
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    color: var(--color-teal-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: var(--color-teal-dark);
    color: var(--color-white);
}

.pagination .current {
    background-color: var(--color-teal-dark);
    color: var(--color-white);
}

/* Footer */
.site-footer {
    background: rgba(26, 95, 122, 0.8);
    backdrop-filter: blur(10px);
    color: var(--color-white);
    padding: 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.site-info {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(26, 95, 122, 0.1);
}

.post-navigation a {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(26, 95, 122, 0.05);
    transition: all 0.3s ease;
    flex: 1;
    max-width: 48%;
}

.post-navigation a:hover {
    background-color: rgba(26, 95, 122, 0.1);
    transform: translateY(-2px);
}

.nav-subtitle {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.nav-title {
    font-weight: 600;
    color: var(--color-teal-dark);
}

/* Post Tags */
.post-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(26, 95, 122, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.tags-label {
    font-weight: 600;
    color: var(--color-teal-dark);
    margin-right: 0.5rem;
}

.tag-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(26, 95, 122, 0.1);
    color: var(--color-teal-dark);
    border-radius: 20px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background-color: var(--color-teal-dark);
    color: var(--color-white);
    opacity: 1;
}

/* Archive Description */
.archive-description {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: #666;
    line-height: 1.6;
}

/* Post Featured Image */
.post-featured-image {
    margin-bottom: 2rem;
}

.post-featured-image img {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Page Links */
.page-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(26, 95, 122, 0.1);
}

.page-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background-color: rgba(26, 95, 122, 0.1);
    color: var(--color-teal-dark);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background-color: var(--color-teal-dark);
    color: var(--color-white);
    opacity: 1;
}

.page-links > span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background-color: var(--color-teal-dark);
    color: var(--color-white);
    border-radius: 8px;
}

/* Comments Wrapper */
.comments-wrapper {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(26, 95, 122, 0.1);
}

/* Blog Section */
.blog-section {
    margin-top: 0;
    background: transparent;
}

/* Entry Header */
.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-teal-dark);
    margin-bottom: 1rem;
}

/* Entry Footer */
.entry-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(26, 95, 122, 0.1);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

