/* =====================================================
   Page Template Styles
   Loaded on all pages except the front page.
   ===================================================== */


/* =====================================================
   Generic Page Template (page.php)
   ===================================================== */

.page-default {
    background-color: var(--bg-color);
    min-height: 100vh;
}

.page-header {
    padding: 8rem 0 4rem;
    max-width: 720px;
    margin: 0 auto;
}

.page-header-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.page-header-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #888880;
}

.page-header-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: #1A1A18;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.page-content-section {
    padding: 5rem 0 8rem;
}

.page-content-wrap {
    max-width: 720px;
    margin: 0 auto;
}

/* Block editor content typography */
.page-entry-content h1,
.page-entry-content h2,
.page-entry-content h3,
.page-entry-content h4,
.page-entry-content h5,
.page-entry-content h6 {
    color: #1A1A18;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.page-entry-content h2 {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #E0DDD8;
}

.page-entry-content h4,
.page-entry-content h5,
.page-entry-content h6 {
    font-size: 1rem;
    font-family: 'Noto Sans JP', 'DM Sans', sans-serif;
    font-weight: 400;
    letter-spacing: 0;
}

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

.page-entry-content a {
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.page-entry-content a:hover {
    opacity: 0.6;
}

.page-entry-content ul,
.page-entry-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.page-entry-content strong {
    font-weight: 500;
    color: #1A1A18;
}

.page-entry-content blockquote {
    border-left: 2px solid #D7C9A3;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    color: #666660;
    font-style: italic;
}

.page-entry-content hr {
    border: none;
    border-top: 1px solid #E0DDD8;
    margin: 3rem 0;
}

.page-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.page-entry-content th,
.page-entry-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #E0DDD8;
    text-align: left;
    line-height: 1.6;
}

.page-entry-content th {
    font-weight: 400;
    color: #888880;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Contact Thanks Page */
.thanks-content-wrap {
    text-align: center;
}

.thanks-actions {
    margin-top: 3rem;
}

.thanks-back-btn {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3A3A3A;
    text-decoration: none;
    border-bottom: 1px solid #3A3A3A;
    padding-bottom: 2px;
    transition: opacity 0.2s ease;
}

.thanks-back-btn:hover {
    opacity: 0.5;
}

/* Buttons block */
.page-entry-content .wp-block-buttons {
    margin: 2rem 0;
}

.page-entry-content .wp-block-button__link {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0;
    padding: 0.875rem 2rem;
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.page-entry-content .wp-block-button__link:hover {
    opacity: 0.7;
}

/* Fill (default) */
.page-entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link {
    background-color: #1A1A18;
    color: #F7F9FA;
    border: 1px solid #1A1A18;
}

/* Outline */
.page-entry-content .wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    color: #1A1A18;
    border: 1px solid #1A1A18;
}

.page-entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
    opacity: 0.5;
}

/* Thanks page button inherits same style */
.thanks-content-wrap .wp-block-button__link {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0;
    padding: 0.875rem 2rem;
    transition: opacity 0.2s ease;
}

/* Gutenberg block resets */
.page-entry-content .wp-block-table {
    margin: 0 0 2rem !important;
}

.page-entry-content .wp-block-table table {
    display: block;
    width: 100%;
    border-collapse: unset;
    margin-bottom: 0;
}

.page-entry-content .wp-block-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.page-entry-content .wp-block-table tr {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #E0E0E0;
    border-top: none;
    border-left: none;
    border-right: none;
}

.page-entry-content .wp-block-table tr:last-child {
    border-bottom: none;
}

.page-entry-content .wp-block-table td {
    padding: 0;
    border: none;
    line-height: 1.8;
}

.page-entry-content .wp-block-table td:first-child {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #3A6B8A;
}

.page-entry-content .wp-block-table td:last-child {
    font-family: 'Noto Sans JP', 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #3A3A3A;
}

@media (max-width: 640px) {
    .page-entry-content .wp-block-table tr {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.25rem 0;
    }

    .page-entry-content .wp-block-table td:first-child {
        font-size: 0.75rem;
    }

    .page-entry-content .wp-block-table td:last-child {
        font-size: 0.875rem;
    }
}

.page-entry-content .wp-block-image {
    margin: 2rem 0;
}

.page-entry-content .wp-block-image img {
    max-width: 100%;
    height: auto;
}

.page-entry-content .wp-block-separator {
    border: none;
    border-top: 1px solid #E0DDD8;
    margin: 3rem 0;
}

/* Responsive */
@media (max-width: 640px) {
    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-content-section {
        padding: 3rem 0 5rem;
    }

    .page-entry-content h2 {
        margin-top: 2rem;
    }
}
