/* Main CSS for Namesake Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    padding: 40px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    border-bottom: none;
    background: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}


.logo {
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: -2px;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    line-height: 1;
}

.logo a {
    text-decoration: none;
    color: #ffffff !important;
}

nav {
    margin-left: auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav li {
    margin-left: 30px;
}

nav a {
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 300;
}

nav a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 10px 0;
    border-top: 1px solid #eee;
    margin-top: 0px;
    font-size: 0.8rem;
    color: #888;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Social Media Buttons */
.social-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1rem;
    min-width: 120px;
    border: none;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.facebook {
    background-color: #1877f2;
}

.social-btn.twitter {
    background-color: #1da1f2; /* Staying with classic Twitter blue as user said 'Twitter' */
}

/* Homepage Hero */
.hero {
    height: 85vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 80px;
    position: relative;
    padding-bottom: 40px;
    box-sizing: border-box;
    color: #fff;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    width: 24px;
    height: 24px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translateX(-50%) rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) rotate(45deg) translate(0, 0);
    }

    40% {
        transform: translateX(-50%) rotate(45deg) translate(-10px, -10px);
    }

    60% {
        transform: translateX(-50%) rotate(45deg) translate(-5px, -5px);
    }
}

/* Overlay to darken image slightly for white text contrast */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero h1 {
    display: none;
    /* Hide standard H1 causing overlay issues as per design ref */
}

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 0 0 80px 0;
}

.section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 30px;
}

/* Journey Section - Homepage Updates */
.latest-update {
    margin-bottom: 60px;
}

.latest-update h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.latest-update .entry-content {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.latest-update .entry-content * {
    font-size: 1.1rem !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    color: #555 !important;
    margin-top: 0;
    margin-bottom: 1em;
    font-style: normal !important;
    text-decoration: none !important;
}

.read-more {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
}

.past-update {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.past-update:last-child {
    border-bottom: none;
}

.past-update h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 400;
}

.past-update .entry-content {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gallery-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.gallery-item {
    aspect-ratio: 1;
    background-color: #f0f0f0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;
}

.home .gallery-item img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.home .gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}


/* Article Page */
/* Need clear header for other pages */
body:not(.home):not(.article-template) header {
    position: relative;
    background: white;
    border-bottom: 1px solid #eee;
}

body:not(.home):not(.article-template) .logo,
body:not(.home):not(.article-template) .logo a,
body:not(.home):not(.article-template) nav a {
    color: #333 !important;
}

/* Article Template Header Override */
.article-template header {
    position: absolute;
    background: transparent;
    border-bottom: none;
}

.article-template .logo,
.article-template .logo a,
.article-template nav a {
    color: #ffffff !important;
}


.article-hero {
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 20px;
    color: white;
    text-align: left;
    padding-bottom: 5px;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.article-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    width: 100%;
}

.article-hero h1 {
    font-size: 3rem;
    margin: 0;
    padding: 0 20px;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

.article-header .meta {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-content .meta {
    margin-bottom: 20px;
    color: #888;
    font-size: 0.9rem;
    display: block;
}

.post-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.post-content img {
    max-width: 100%;
    height: auto;
}

/* Updates Page */
.page-header h1 {
    font-size: 2rem;
    margin: 40px 0 20px 0;
    text-transform: capitalize;
}



.update-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.update-thumbnail {
    flex: 0 0 300px;
    width: 300px;
    aspect-ratio: 2.5 / 1;
    height: auto;
    overflow: hidden;
    border-radius: 4px;
}

.update-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.update-thumbnail:hover img {
    transform: scale(1.05);
}

.update-content {
    flex: 1;
}

@media (max-width: 768px) {
    .update-item {
        flex-direction: column;
    }

    .update-thumbnail {
        width: 100%;
        height: auto;
        aspect-ratio: 2.5 / 1;
        flex: none;
    }
}

.update-item h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    margin-top: -5px;
    line-height: 1.1;
}

.update-item h2 a {
    text-decoration: none;
}

.update-item h2 a:hover {
    text-decoration: underline;
}

.update-item .meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.entry-summary {
    margin-bottom: 15px;
}

/* Pagination */
.pagination {
    margin: 40px auto;
    text-align: center;
    max-width: 800px;
    padding-bottom: 60px;
}

.pagination a {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f0f0;
    border-radius: 4px;
    margin: 0 10px;
}

.pagination a:hover {
    background: #e0e0e0;
}

.page-current {
    font-weight: bold;
    margin: 0 10px;
}

.pagination a.active {
    background: #333;
    color: #fff;
}

/* Subscribe Section */
.subscribe-section {
    background: #f9f9f9;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.subscribe-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.subscribe-text {
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.subscribe-section h2 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
}

.subscribe-section p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

.subscribe-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    /* Removed flex: 1 and justify-content: flex-end to allow centering */
}

@media (max-width: 768px) {
    .subscribe-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .subscribe-text {
        flex-direction: column;
        gap: 5px;
    }

    .subscribe-form {
        width: 100%;
        max-width: none;
    }
}

.subscribe-form input[type="email"] {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.subscribe-form button {
    padding: 12px 25px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.3s ease;
}

.subscribe-form button:hover {
    background: #000;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 20;
    margin-left: auto;
    /* Push to right */
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #333;
    /* Default color */
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* White burger on homepage/article header where background is dark */
.home .mobile-menu-toggle span,
.article-template .mobile-menu-toggle span {
    background-color: #fff;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    .header-content {
        justify-content: space-between;
        /* Ensure logo and burger are apart */
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    nav.site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
        border-top: 1px solid #eee;
    }

    /* On homepage/article, menu might need dark background or stick to white */
    .home nav.site-nav,
    .article-template nav.site-nav {
        background-color: rgba(0, 0, 0, 0.9);
    }

    nav.site-nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    nav li {
        margin-left: 0;
        margin-bottom: 15px;
    }

    nav li:last-child {
        margin-bottom: 0;
    }

    .logo {
        font-size: 2.5rem;
        /* Smaller logo on mobile */
    }

    .main-grid {
        grid-template-columns: 1fr;
        /* Stack main grid */
        gap: 40px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        /* Stack gallery grid */
    }

    .hero {
        height: 60vh;
        /* Smaller hero on mobile */
    }

    .article-hero {
        height: 40vh;
    }

    .article-hero h1 {
        font-size: 2rem;
    }
}

/* Care Page */
.page-intro {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.care-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 0 auto 60px auto;
    max-width: 800px;
}

.care-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.care-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.care-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.care-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.care-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.care-info {
    padding: 20px;
}

.care-info h2 {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    color: #333;
}

.care-info .meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.care-summary {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .care-grid {
        grid-template-columns: 1fr;
    }
}

/* Care Article */
.care-article-header {
    text-align: center;
    margin: 40px 0;
}

.care-article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.care-hero-image {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 8px;
}

.care-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Article Footer Actions */
.article-footer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-top: 10px;
    /* Reduced to be closer to text */
    padding-top: 10px;
    margin-bottom: 60px;
    /* Push footer away */
}

.share-section h3 {
    font-size: 1.1rem;
    margin-bottom: 5px !important;
    color: #666;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.share-btn.facebook:hover {
    background-color: #e7f0ff;
    color: #1877f2;
    border-color: #1877f2;
}

.share-btn.twitter:hover {
    background-color: #f0f0f0;
    color: #000;
    border-color: #000;
}

.share-btn.email:hover {
    background-color: #fff0f0;
    color: #d93025;
    border-color: #d93025;
}

/* Navigation Buttons */
.post-navigation {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
    align-items: flex-end;
    min-width: 250px;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
    background: #f8f9fa !important;
    border: 1px solid #ddd !important;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    max-width: 200px;
}

.nav-btn:hover {
    border-color: #333 !important;
    background: #f9f9f9 !important;
    text-decoration: none;
}

.nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
}

@media (max-width: 768px) {
    .article-footer-actions {
        flex-direction: column;
        gap: 30px;
    }

    .post-navigation {
        justify-content: space-between;
        width: 100%;
    }

    .nav-btn {
        flex: 1;
    }
}