/* ===================================================
 * 2-TIER LUXURY FOOTER (#64)
 * Upper: #060c5e Royal Navy 4-Col | Lower: #0f0f10 Obsidian Bar
 * =================================================== */
.elementor-location-footer,
.elementor-64,
.elementor-64 .elementor-element-2e08629 {
    padding: 0 !important;
    margin: 0 !important;
    background: #060c5e !important;
    border-top: none !important;
    max-width: 100% !important;
    width: 100% !important;
}
.elementor-64 .elementor-element-2e08629 > .e-con-inner,
.elementor-64 .elementor-widget-shortcode,
.elementor-64 .elementor-widget-shortcode > .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.tg-footer {
    width: 100%;
    font-family: var(--font-sans, 'Plus Jakarta Sans', 'Noto Sans Thai', sans-serif);
    color: #FFFFFF;
}
.tg-footer__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    box-sizing: border-box;
}

/* Upper Tier: 4-Column Blue Band (#060c5e, AAA 17.19:1) */
.tg-footer__upper {
    background-color: #060c5e;
    border-top: 1px solid rgba(176, 156, 112, 0.30);
    padding: 56px 0 48px 0;
}
.tg-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
}
.tg-footer__heading {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #E8D39E;
    margin: 0 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(176, 156, 112, 0.25);
}
.tg-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tg-footer__list li {
    margin: 0;
    padding: 0;
}
.tg-footer a,
.tg-home-blog a,
.tg-blog-archive a,
.tg-single-meta a,
.tg-single-footer a {
    text-decoration: none !important;
}
.tg-footer__list a {
    display: inline-flex;
    align-items: center;
    color: #CBD5E1;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    padding: 4px 0;
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease;
}
.tg-footer__list a:hover {
    color: #FFFFFF;
    transform: translateX(3px);
}
.tg-footer__list a:focus-visible,
.tg-footer__all-blog:focus-visible,
.tg-footer__direct-links a:focus-visible,
.tg-footer__social-btn:focus-visible {
    outline: 2px solid #b09c70 !important;
    outline-offset: 2px !important;
    border-radius: 6px;
}
.tg-footer__list--blog a {
    line-height: 1.45;
}
.tg-footer__all-blog {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 6px 0;
    color: #E8D39E;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}
.tg-footer__all-blog:hover {
    color: #FFFFFF;
    gap: 10px;
}

/* Lower Tier: Obsidian Black Contact & Social Bar (#0f0f10) */
.tg-footer__lower {
    background-color: #0f0f10;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 28px 0;
}
.tg-footer__lower-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.tg-footer__brand-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 28px;
}
.tg-footer__logo-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}
.tg-footer__logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}
.tg-footer__contact-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tg-footer__address {
    margin: 0;
    font-size: 13.5px;
    color: #CBD5E1;
    line-height: 1.5;
}
.tg-footer__direct-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
}
.tg-footer__direct-links a {
    color: #FFFFFF;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}
.tg-footer__direct-links a:hover {
    color: #E8D39E;
}
.tg-footer__sep {
    color: #64748B;
}
.tg-footer__copy {
    margin: 4px 0 0 0;
    font-size: 12.5px;
    color: #94A3B8;
}

/* 5 Official Social Icons: 20x20 inside 44x44 Accessible Hit Targets */
.tg-footer__socials {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.tg-footer__social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(176, 156, 112, 0.30);
    color: #FFFFFF;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.tg-footer__social-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}
.tg-footer__social-btn:hover {
    background: #b09c70;
    border-color: #b09c70;
    color: #0f0f10;
    transform: translateY(-2px);
}

/* Responsive Footer Breakpoints */
@media (max-width: 1023px) {
    .tg-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }
}
@media (max-width: 767px) {
    .tg-footer__upper {
        padding: 40px 0 36px 0;
    }
    .tg-footer__container {
        padding: 0 20px;
    }
    .tg-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
    .tg-footer__list a,
    .tg-footer__all-blog,
    .tg-footer__direct-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .tg-footer__lower-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===================================================
 * BLOG ARCHIVE (/blog/) — LUXURY EDITORIAL GRID
 * =================================================== */
body.page-template-default.page .site-main:has(.tg-blog-archive) > .page-header {
    display: none !important;
}
.tg-blog-archive {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 24px 88px 24px;
    box-sizing: border-box;
}
.tg-blog-archive__header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 44px auto;
}
.tg-blog-archive__eyebrow {
    font-family: var(--font-sans, sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b09c70;
    margin: 0 0 10px 0;
}
.tg-blog-archive__title {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 600;
    line-height: 1.18;
    color: #FFFFFF;
    text-wrap: balance;
    margin: 0 0 14px 0;
}
.tg-blog-archive__subtitle {
    font-size: 15.5px;
    line-height: 1.65;
    color: #CBD5E1;
    margin: 0 0 26px 0;
}
.tg-blog-archive__cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.tg-blog-cat-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(176, 156, 112, 0.30);
    color: #CBD5E1;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.tg-blog-cat-pill:hover,
.tg-blog-cat-pill.is-active {
    background: linear-gradient(135deg, #d9c89c 0%, #b09c70 100%);
    color: #0f0f10;
    border-color: #d9c89c;
}

.tg-blog-grid {
    display: grid;
    gap: 28px;
    align-items: stretch;
}
.tg-blog-grid--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 28px;
}
.tg-blog-grid--regular {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1023px) {
    .tg-blog-grid--featured,
    .tg-blog-grid--regular {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}
@media (max-width: 767px) {
    .tg-blog-archive {
        padding: 36px 16px 64px 16px;
    }
    .tg-blog-grid--featured,
    .tg-blog-grid--regular {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

.tg-blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(19, 34, 62, 0.82);
    border: 1px solid rgba(176, 156, 112, 0.28);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(5, 10, 20, 0.45);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.tg-blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(176, 156, 112, 0.65);
    box-shadow: 0 22px 48px rgba(5, 10, 20, 0.65);
}
.tg-blog-card__media-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0D192E;
}
.tg-blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.tg-blog-card:hover .tg-blog-card__img {
    transform: scale(1.04);
}
.tg-blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 22px 24px 20px 24px;
    gap: 10px;
}
.tg-blog-card__cat {
    align-self: flex-start;
    display: inline-block;
    padding: 4px 11px;
    border-radius: 6px;
    background: #060c5e;
    border: 1px solid rgba(176, 156, 112, 0.38);
    color: #E8D39E;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tg-blog-card__title {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 23px;
    font-weight: 600;
    line-height: 1.26;
    text-wrap: balance;
    margin: 2px 0 0 0;
}
.tg-blog-card--featured .tg-blog-card__title {
    font-size: 27px;
}
.tg-blog-card__title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s ease;
}
.tg-blog-card:hover .tg-blog-card__title a {
    color: #E8D39E;
}
.tg-blog-card__excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #CBD5E1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tg-blog-card__footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.tg-blog-card__date {
    font-size: 12.5px;
    color: #94A3B8;
}
.tg-blog-card__more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    color: #E8D39E;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}
.tg-blog-card__more:hover {
    color: #FFFFFF;
    gap: 9px;
}

/* ===================================================
 * SINGLE POST EDITORIAL TYPOGRAPHY (max-width: 68ch)
 * =================================================== */
body.single-post main#content.site-main {
    max-width: 960px !important;
    margin: 0 auto !important;
    padding: 52px 24px 84px 24px !important;
    box-sizing: border-box !important;
}
body.single-post .page-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 18px auto;
}
body.single-post .page-header .entry-title {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif) !important;
    font-size: clamp(32px, 4.4vw, 48px) !important;
    font-weight: 600 !important;
    line-height: 1.18 !important;
    color: #FFFFFF !important;
    text-wrap: balance;
    margin: 0 !important;
}
.tg-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    margin: 0 auto 30px auto;
    font-size: 13.5px;
    color: #CBD5E1;
}
.tg-single-meta__cat {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 6px;
    background: #060c5e;
    border: 1px solid rgba(176, 156, 112, 0.42);
    color: #E8D39E;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}
.tg-single-hero {
    margin: 0 auto 40px auto;
    max-width: 900px;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(176, 156, 112, 0.30);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.55);
}
.tg-single-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tg-single-prose {
    max-width: 68ch;
    margin: 0 auto;
    font-family: var(--font-sans, 'Plus Jakarta Sans', 'Noto Sans Thai', sans-serif);
    font-size: 16.5px;
    line-height: 1.75;
    color: #E2E8F0;
}
.tg-single-prose p {
    margin: 0 0 1.35em 0;
    color: #E2E8F0;
}
.tg-single-prose h2 {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.25;
    color: #E8D39E;
    margin: 1.9em 0 0.65em 0;
    text-wrap: balance;
}
.tg-single-prose h3 {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 23px;
    font-weight: 600;
    line-height: 1.3;
    color: #FFFFFF;
    margin: 1.5em 0 0.5em 0;
}
.tg-single-prose ul,
.tg-single-prose ol {
    margin: 0 0 1.4em 0;
    padding-left: 1.35em;
    color: #E2E8F0;
}
.tg-single-prose li {
    margin-bottom: 0.55em;
}
.tg-single-prose strong {
    color: #FFFFFF;
    font-weight: 600;
}
.tg-single-prose a {
    color: #E8D39E;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.tg-single-prose .tg-blog-figure {
    margin: 2.2em 0;
    padding: 0;
    background: rgba(19, 34, 62, 0.72);
    border: 1px solid rgba(176, 156, 112, 0.28);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
}
.tg-single-prose .tg-blog-figure img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.tg-single-prose .tg-blog-figure figcaption {
    padding: 12px 18px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #CBD5E1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

/* Hide legacy WP comments container on editorial blog posts */
body.single-post #comments,
body.single-post .comments-area {
    display: none !important;
}

/* Back Link & Related Posts */
.tg-single-footer {
    max-width: 900px;
    margin: 56px auto 0 auto;
    padding-top: 32px;
    border-top: 1px solid rgba(176, 156, 112, 0.25);
}
.tg-single-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid #b09c70;
    color: #FFFFFF !important;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.tg-single-back:hover {
    background: rgba(176, 156, 112, 0.16);
    transform: translateX(-2px);
}
.tg-single-related {
    margin-top: 40px;
}
.tg-single-related__heading {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 28px;
    font-weight: 600;
    color: #E8D39E;
    margin: 0 0 22px 0;
}
.tg-single-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.tg-related-card {
    display: flex;
    flex-direction: column;
    background: rgba(19, 34, 62, 0.78);
    border: 1px solid rgba(176, 156, 112, 0.25);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none !important;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.tg-related-card:hover {
    transform: translateY(-3px);
    border-color: rgba(176, 156, 112, 0.65);
}
.tg-related-card__img-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.tg-related-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tg-related-card__body {
    padding: 16px;
}
.tg-related-card__date {
    display: block;
    font-size: 12px;
    color: #94A3B8;
    margin-bottom: 6px;
}
.tg-related-card__title {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: #FFFFFF;
    margin: 0;
    text-wrap: balance;
}
.tg-related-card:hover .tg-related-card__title {
    color: #E8D39E;
}
@media (max-width: 767px) {
    body.single-post main#content.site-main {
        padding: 32px 16px 60px 16px !important;
    }
    .tg-single-related__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ===================================================
 * HOME PAGE BLOG SECTION — THE GRACE JOURNAL
 * (Reuses .tg-blog-grid--regular & .tg-blog-card from /blog/)
 * =================================================== */
.tg-home-blog-section,
.tg-home-blog-section > .e-con-inner {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: clip !important;
}
.tg-home-blog-section .elementor-widget-shortcode,
.tg-home-blog-section .elementor-widget-shortcode > .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.tg-home-blog {
    width: 100%;
    background: linear-gradient(180deg, #101d35 0%, #0D192E 100%);
    border-top: 1px solid rgba(176, 156, 112, 0.24);
    padding: 72px 0;
    overflow-x: clip;
    box-sizing: border-box;
}
.tg-home-blog__container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.tg-home-blog__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 28px;
    margin-bottom: 36px;
}
.tg-home-blog__header-text {
    max-width: 640px;
}
.tg-home-blog__eyebrow {
    font-family: var(--font-sans, 'Plus Jakarta Sans', 'Noto Sans Thai', sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b09c70;
    margin: 0 0 10px 0;
}
.tg-home-blog__title {
    font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 600;
    line-height: 1.15;
    color: #FFFFFF;
    text-wrap: balance;
    margin: 0 0 10px 0;
}
.tg-home-blog__subtitle {
    font-family: var(--font-sans, 'Plus Jakarta Sans', 'Noto Sans Thai', sans-serif);
    font-size: 15px;
    line-height: 1.6;
    color: #CBD5E1;
    margin: 0;
}
.tg-home-blog__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 8px;
    border: 1px solid #b09c70;
    background: transparent;
    color: #E8D39E;
    font-family: var(--font-sans, 'Plus Jakarta Sans', 'Noto Sans Thai', sans-serif);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 200ms cubic-bezier(0.22, 1, 0.36, 1), color 200ms cubic-bezier(0.22, 1, 0.36, 1), border-color 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.tg-home-blog__cta:hover {
    background: #b09c70;
    border-color: #b09c70;
    color: #0f0f10;
}
.tg-home-blog__cta:focus-visible,
.tg-blog-card__title a:focus-visible,
.tg-blog-card__more:focus-visible {
    outline: 2px solid #b09c70 !important;
    outline-offset: 2px !important;
    border-radius: 6px;
}
@media (max-width: 767px) {
    .tg-home-blog {
        padding: 52px 0;
    }
    .tg-home-blog__cta {
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .tg-home-blog__cta,
    .tg-blog-card,
    .tg-blog-card__img,
    .tg-blog-card__title a,
    .tg-blog-card__more {
        transition: none !important;
    }
    .tg-blog-card:hover,
    .tg-blog-card:hover .tg-blog-card__img {
        transform: none !important;
    }
}
