/*
Theme Name: TABOJL
Description: An editorial brand website about the Filipino tabo for tabojl.com.
Version: 2.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: TABOJL
*/

/* 01. Foundation */

:root {
    --ink: #12333b;
    --muted: #49646b;
    --deep: #092f38;
    --deepest: #06252d;
    --brand: #006b61;
    --brand-dark: #00524a;
    --mint: #a8eee0;
    --wash: #eff8f6;
    --paper: #ffffff;
    --line: #d5e7e3;
    --focus: #007d71;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --shadow: 0 12px 34px rgba(12, 57, 59, .08);
    --shadow-lift: 0 18px 42px rgba(12, 57, 59, .14);
    --site-width: 1200px;
    --reading-width: 790px;
    --gutter: clamp(16px, 4vw, 36px);
    --section-space: clamp(3rem, 7vw, 6rem);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 400 1.0625rem/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-wrap: break-word;
}

[hidden] {
    display: none !important;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--brand);
    text-underline-offset: .2em;
}

a:hover {
    color: var(--brand-dark);
}

button {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

h1, h2, h3, h4 {
    margin: 0 0 .55em;
    color: var(--ink);
    line-height: 1.14;
    letter-spacing: -.035em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.65rem); }
h3 { font-size: clamp(1.2rem, 2.3vw, 1.48rem); }
h4 { font-size: 1.12rem; }

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

.wrap {
    width: min(var(--site-width), calc(100% - var(--gutter) * 2));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    z-index: 100;
    top: 12px;
    left: 12px;
    transform: translateY(-200%);
    padding: .65rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--brand-dark);
    font-weight: 750;
}

.skip-link:focus {
    transform: none;
}

/* 02. Header and mobile navigation */

.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    min-height: 80px;
    padding-block: .6rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    flex: 0 0 auto;
    min-height: 44px;
    color: var(--deep);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--brand), var(--deep));
    color: var(--paper);
}

.brand-mark svg {
    width: 23px;
    height: 23px;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: .055em;
    line-height: 1;
}

.brand img,
.site-header .custom-logo {
    display: block;
    width: auto;
    max-width: min(170px, 48vw);
    max-height: 58px;
    object-fit: contain;
}

.primary-nav {
    min-width: 0;
}

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

.site-menu li {
    margin: 0;
    padding: 0;
}

.site-header .site-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem .68rem;
    border-radius: 10px;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.site-header .site-menu a:hover,
.site-header .site-menu a[aria-current="page"],
.site-header .site-menu .current-menu-item > a {
    background: var(--wash);
    color: var(--brand-dark);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 46px;
    padding: .45rem .8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--wash);
    color: var(--ink);
    font-size: .9rem;
    font-weight: 750;
    cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
    border-color: #9fcfc7;
    background: #e1f4ee;
}

.menu-icon {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 16px;
    flex: 0 0 20px;
}

.menu-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 7px; }
.menu-icon span:nth-child(3) { top: 14px; }

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 03. Hero and buttons */

.hero {
    padding-block: clamp(3.2rem, 8vw, 7rem);
    background:
        radial-gradient(ellipse at 85% 15%, #c7f1e9 0%, transparent 48%),
        repeating-radial-gradient(
            ellipse at 100% 125%,
            transparent 0 24px,
            rgba(0, 107, 97, .045) 25px 26px,
            transparent 27px 42px
        ),
        linear-gradient(135deg, #f5fcfa, #e6f5f4);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
    align-items: center;
    gap: clamp(1.75rem, 5vw, 4.5rem);
}

.hero h1 {
    margin-bottom: .3em;
    color: var(--deep);
}

.home .hero h1 {
    font-size: clamp(3rem, 8.5vw, 7rem);
    letter-spacing: -.065em;
}

.kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .85rem;
    color: var(--brand-dark);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.kicker::before,
.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #27a795;
}

.lead {
    max-width: 59ch;
    color: var(--muted);
    font-size: clamp(1.05rem, 2.1vw, 1.24rem);
    line-height: 1.65;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.4rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 48px;
    padding: .66rem 1.05rem;
    border: 1px solid var(--brand);
    border-radius: 12px;
    background: var(--brand);
    color: var(--paper);
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.button:hover {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    color: var(--paper);
    box-shadow: 0 6px 18px rgba(0, 82, 74, .14);
}

.button-secondary {
    border-color: #a9cdc6;
    background: var(--paper);
    color: var(--brand-dark);
}

.button-secondary:hover {
    border-color: var(--brand);
    background: var(--wash);
    color: var(--brand-dark);
}

/* 04. Images and editorial cards */

.visual {
    position: relative;
    display: grid;
    isolation: isolate;
    aspect-ratio: 3 / 2;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid #c7e1db;
    border-radius: var(--radius-lg);
    background: #d9f1eb;
    box-shadow: var(--shadow);
}

.visual img,
.visual-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.visual img {
    display: block;
    object-fit: cover;
    object-position: center;
}

.visual-placeholder {
    background:
        radial-gradient(ellipse at 23% 17%, #f0fdf9, transparent 52%),
        repeating-radial-gradient(
            ellipse at 80% 105%,
            transparent 0 19px,
            rgba(0, 107, 97, .095) 20px 21px,
            transparent 22px 35px
        ),
        linear-gradient(150deg, #e3f8f2, #b6e3dd);
}

.section {
    padding-block: var(--section-space);
}

.section-soft {
    background: var(--wash);
}

.section-heading {
    max-width: 65ch;
    margin-bottom: clamp(1.35rem, 3vw, 2.2rem);
}

.section-heading p {
    color: var(--muted);
}

.grid,
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.9rem, 2.4vw, 1.5rem);
}

.card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    min-width: 0;
    padding: clamp(1rem, 2.25vw, 1.5rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
    box-shadow: var(--shadow);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.card:focus-within {
    border-color: #86bfb4;
    box-shadow: var(--shadow-lift);
}

.card > :is(h2, h3, p) {
    margin: 0;
}

.card p {
    color: var(--muted);
}

.card .visual {
    margin-bottom: .3rem;
    border-radius: 14px;
    box-shadow: none;
}

.card-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 44px;
    margin-top: auto;
    color: var(--brand-dark);
    font-weight: 750;
    text-decoration-thickness: .09em;
}

/* 05. Long-form pages and FAQ */

.article-body {
    max-width: var(--reading-width);
}

.article-body > section + section,
.article-body > section + .page-faq {
    margin-top: clamp(2rem, 5vw, 3.2rem);
}

.article-body p,
.article-body li {
    color: var(--muted);
}

.article-body :is(ul, ol) {
    margin: 0 0 1.1rem;
    padding-inline-start: 1.45em;
}

.article-body li + li {
    margin-top: .45rem;
}

.article-body > .visual,
.article-body section > .visual {
    margin-block: clamp(1.3rem, 4vw, 2.3rem);
}

.article-body blockquote {
    margin: 1.5rem 0;
    padding: .9rem 1.2rem;
    border-inline-start: 4px solid #3caa99;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--wash);
}

.page-faq {
    margin-top: clamp(2rem, 5vw, 3.5rem);
}

.page-faq h2 {
    margin-bottom: 1rem;
}

.faq-list {
    display: grid;
    gap: .7rem;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--paper);
}

.faq-item:hover,
.faq-item[open] {
    border-color: #96c9bf;
}

.faq-item[open] {
    background: var(--wash);
}

.faq-item summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    align-items: center;
    gap: .8rem;
    min-height: 54px;
    padding: .78rem 1rem;
    border-radius: inherit;
    color: var(--ink);
    font-weight: 750;
    line-height: 1.45;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background:
        linear-gradient(var(--brand), var(--brand)) center / 11px 2px no-repeat,
        linear-gradient(var(--brand), var(--brand)) center / 2px 11px no-repeat,
        #e0f3ee;
}

.faq-item[open] summary::after {
    background:
        linear-gradient(var(--brand), var(--brand)) center / 11px 2px no-repeat,
        #d4ede7;
}

.faq-answer {
    padding: 0 1rem 1rem;
    color: var(--muted);
}

.page-end {
    margin-top: clamp(2.2rem, 5vw, 3.5rem);
    padding-top: 1.35rem;
    border-top: 1px solid var(--line);
}

/* 06. Footer */

.site-footer {
    background:
        radial-gradient(ellipse at 10% 0%, rgba(29, 133, 118, .25), transparent 47%),
        linear-gradient(155deg, var(--deep), var(--deepest));
    color: #d1e6e5;
}

.site-footer :is(h2, h3, .brand) {
    color: var(--paper);
}

.site-footer a {
    color: #def6f2;
}

.site-footer a:hover {
    color: var(--mint);
}

.site-footer :focus-visible {
    outline-color: var(--mint);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(1.5rem, 5vw, 4rem);
    padding-block: clamp(2.6rem, 6vw, 4.75rem);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .9rem;
}

.footer-brand p {
    max-width: 42ch;
    font-size: .95rem;
}

.footer-heading {
    margin: 0 0 .7rem;
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.site-footer .site-menu,
.footer-links {
    display: grid;
    justify-items: start;
    gap: .15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer .site-menu a,
.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding-block: .3rem;
    font-size: .95rem;
    text-decoration: none;
}

.site-footer .site-menu a:hover,
.footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(215, 245, 239, .2);
}

.footer-bottom .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    min-height: 66px;
    padding-block: .85rem;
    color: #c5dddb;
    font-size: .88rem;
}

.footer-bottom p {
    margin: 0;
}

/* 07. Responsive layout */

@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: translateY(-3px);
        border-color: #a9d1ca;
        box-shadow: var(--shadow-lift);
    }
}

@media (max-width: 960px) {
    .header-inner {
        flex-wrap: wrap;
        min-height: 68px;
    }

    .header-inner.menu-ready .menu-toggle {
        display: inline-flex;
    }

    .primary-nav {
        width: 100%;
        flex: 0 0 100%;
        padding: .45rem;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: var(--paper);
        box-shadow: var(--shadow);
    }

    .header-inner.menu-ready .primary-nav[data-collapsed="true"] {
        display: none;
    }

    .site-header .site-menu {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .site-header .site-menu a {
        min-height: 46px;
        padding-inline: .8rem;
    }

    .grid,
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .grid,
    .card-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero .actions .button {
        width: 100%;
    }

    .visual {
        border-radius: var(--radius-md);
    }

    .footer-bottom .wrap {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 350px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
/* 08. TABOJL sitewide content cards */

:root {
    --card-ink: #103840;
    --card-muted: #4e686e;
    --card-accent: #08796b;
    --card-edge: #d4e9e4;
    --card-tint: #eaf7f3;
    --card-padding: clamp(1.15rem, 2.5vw, 1.7rem);
    --card-shadow: 0 12px 30px rgba(13, 67, 65, .08);
    --card-shadow-hover: 0 18px 40px rgba(13, 67, 65, .14);
}

/* Homepage cards, contents cards and article listings */

:is(.card-grid, .grid) {
    gap: clamp(1rem, 2.5vw, 1.7rem);
    align-items: stretch;
}

:is(.card-grid, .grid) > .card {
    position: relative;
    isolation: isolate;
    gap: .85rem;
    padding: var(--card-padding);
    border: 1px solid var(--card-edge);
    border-radius: 24px;
    background: linear-gradient(160deg, #f0faf7 0%, #fff 46%);
    box-shadow: var(--card-shadow);
}

:is(.card-grid, .grid) > .card::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: var(--card-padding);
    height: 3px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, #08796b, #8ed8c9);
    pointer-events: none;
}

:is(.card-grid, .grid) > .card:has(> .visual:first-child) {
    background: #fff;
}

:is(.card-grid, .grid) > .card:has(> .visual:first-child)::before {
    display: none;
}

.card > .visual:first-child {
    aspect-ratio: 16 / 10;
    margin: calc(-1 * var(--card-padding));
    margin-bottom: .2rem;
    border: 0;
    border-bottom: 1px solid var(--card-edge);
    border-radius: 23px 23px 0 0;
    box-shadow: none;
}

.card > .visual img {
    transition: transform .35s ease;
}

.card > :is(h2, h3) {
    margin: 0;
    color: var(--card-ink);
    font-size: clamp(1.23rem, 2.1vw, 1.58rem);
    line-height: 1.23;
    text-wrap: balance;
}

.card > p {
    margin: 0;
    color: var(--card-muted);
    line-height: 1.62;
}

.card > :is(.eyebrow, .kicker) {
    align-self: flex-start;
    padding: .36rem .7rem;
    border: 1px solid #cde9e1;
    border-radius: 999px;
    background: var(--card-tint);
    color: #005b50;
    font-size: .72rem;
    line-height: 1.4;
    letter-spacing: .055em;
}

.card > :is(.eyebrow, .kicker)::before {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
    background: var(--card-accent);
}

.card > .card-link {
    gap: .35rem;
    min-height: 44px;
    max-width: 100%;
    margin-top: auto;
    padding: .55rem .8rem;
    border: 1px solid #c6e4dd;
    border-radius: 11px;
    background: #eff9f6;
    color: #00584e;
    font-size: .91rem;
    line-height: 1.35;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.card > .card-link:hover,
.card > .card-link:focus-visible {
    border-color: #006b60;
    background: #006b60;
    color: #fff;
}

@media (hover: hover) and (pointer: fine) {
    :is(.card-grid, .grid) > .card:hover {
        transform: translateY(-4px);
        border-color: #95cbbf;
        box-shadow: var(--card-shadow-hover);
    }

    .card:hover > .visual img {
        transform: scale(1.045);
    }
}

/* Long-form sections on the core pages */

.article-body > section:not(.page-faq) {
    position: relative;
    padding: clamp(1.25rem, 4vw, 2.4rem);
    border: 1px solid var(--card-edge);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--card-shadow);
}

.article-body > section:not(.page-faq) + section:not(.page-faq) {
    margin-top: clamp(1rem, 2.7vw, 1.7rem);
}

.article-body > section:not(.page-faq) > h2:first-child {
    position: relative;
    margin-bottom: .75em;
    padding-inline-start: .82rem;
    color: var(--card-ink);
    font-size: clamp(1.45rem, 3.3vw, 2.15rem);
}

.article-body > section:not(.page-faq) > h2:first-child::before {
    content: "";
    position: absolute;
    top: .14em;
    bottom: .14em;
    inset-inline-start: 0;
    width: 4px;
    border-radius: 99px;
    background: linear-gradient(180deg, #08796b, #8dd9c9);
}

.article-body > section:not(.page-faq) > p {
    color: var(--card-muted);
    line-height: 1.78;
}

.article-body > section:not(.page-faq) > .visual {
    margin-top: 1.4rem;
    margin-bottom: 0;
    border-radius: 16px;
    box-shadow: none;
}

.article-body > section[id],
.article-body > div[id] {
    scroll-margin-top: 1rem;
}

/* FAQ cards */

.page-faq .faq-list {
    gap: .75rem;
}

.page-faq .faq-item {
    border: 1px solid var(--card-edge);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(13, 67, 65, .05);
}

.page-faq .faq-item:hover,
.page-faq .faq-item[open] {
    border-color: #9fcec4;
}

.page-faq .faq-item[open] {
    background: #fff;
    box-shadow: var(--card-shadow);
}

.page-faq .faq-item summary {
    min-height: 58px;
    padding: .82rem 1rem;
    color: var(--card-ink);
}

.page-faq .faq-item[open] summary {
    color: #005b50;
}

.page-faq .faq-answer {
    margin: 0 .85rem .85rem;
    padding: .85rem 1rem;
    border: 1px solid #d7ece7;
    border-radius: 11px;
    background: #eff8f6;
}

.page-faq .faq-answer p {
    margin: 0;
    color: var(--card-muted);
}

/* Small screens */

@media (max-width: 520px) {
    :is(.card-grid, .grid) > .card,
    .article-body > section:not(.page-faq) {
        border-radius: 18px;
    }

    .card > .visual:first-child {
        border-radius: 17px 17px 0 0;
    }

    .card > .card-link {
        align-self: stretch;
        justify-content: space-between;
    }

    .page-faq .faq-item summary {
        padding-inline: .8rem;
    }

    .page-faq .faq-answer {
        margin-inline: .65rem;
        padding: .75rem .8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    :is(.card-grid, .grid) > .card:hover,
    .card:hover > .visual img {
        transform: none;
    }
}