/*
Theme Name: Massage Directory
Author: AgentDials
Version: 1.1.8
Text Domain: massage-directory
*/

:root {
    --ink: #16231b;
    --forest: #164a36;
    --forest-dark: #0f3527;
    --moss: #85a64f;
    --coral: #e56f52;
    --paper: #f7f5ee;
    --white: #ffffff;
    --muted: #657169;
    --line: #dce2da;
    --shadow: 0 18px 50px rgba(19, 48, 35, 0.12);
    --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Manrope", sans-serif; line-height: 1.65; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 238, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 74px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--forest-dark); text-decoration: none; font-family: "DM Serif Display", serif; font-size: 21px; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--white); background: var(--forest); border-radius: 50% 50% 50% 12%; font-family: "Manrope", sans-serif; font-size: 15px; font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: 14px; font-weight: 700; }
.site-nav a:hover { color: var(--coral); }
.menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; font: inherit; font-weight: 800; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: 6px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.button-primary { color: var(--white); background: var(--forest); }
.button-primary:hover { background: var(--forest-dark); }
.button-quiet { border-color: var(--line); background: var(--white); }
.button-danger { color: #a23725; border-color: #edc3ba; background: #fff7f4; }
.button-danger:hover { color: var(--white); background: #a23725; }
.hero { position: relative; min-height: min(760px, calc(100vh - 30px)); display: grid; align-items: end; overflow: hidden; isolation: isolate; color: var(--white); background: #0a241a; }
.hero::before { content: ""; position: absolute; inset: -4%; z-index: -2; background: linear-gradient(90deg, rgba(6, 31, 22, .91) 0%, rgba(8, 39, 27, .68) 48%, rgba(9, 40, 29, .16) 100%), url("assets/hero.jpg") center/cover; transform: translate3d(calc(var(--hero-x, 0px) + var(--hero-orbit-x, 0px)), calc(var(--hero-y, 0px) + var(--hero-orbit-y, 0px)), 0) scale(var(--hero-scale, 1.04)); transition: transform .12s linear; will-change: transform; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: 34%; background: linear-gradient(transparent, rgba(6, 25, 18, .58)); pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 920px; padding: 130px 0 94px; }
.hero h1 { max-width: 900px; text-wrap: balance; }
.rotating-word { position: relative; display: inline-block; min-width: 2.9em; color: #c8e991; }
.rotating-word.is-changing { animation: word-swap .55s cubic-bezier(.2,.8,.2,1); }
.hero-atmosphere { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.orbit { position: absolute; display: block; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; }
.orbit::before { content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; background: var(--moss); border-radius: 50%; box-shadow: 0 0 24px rgba(200,233,145,.8); }
.orbit-one { top: 12%; right: 7%; width: 310px; height: 310px; animation: orbit-drift 14s ease-in-out infinite; }
.orbit-two { right: 23%; bottom: 10%; width: 120px; height: 120px; animation: orbit-drift 10s ease-in-out -4s infinite reverse; }
.floating-word { position: absolute; color: rgba(255,255,255,.55); font-family: "DM Serif Display", serif; font-size: 18px; font-style: italic; }
.word-one { top: 18%; right: 28%; animation: float-word 8s ease-in-out infinite; }
.word-two { top: 48%; right: 8%; animation: float-word 10s ease-in-out -3s infinite; }
.word-three { right: 32%; bottom: 14%; animation: float-word 9s ease-in-out -6s infinite; }
.reveal { opacity: 0; transform: translateY(22px); animation: reveal-in .8s cubic-bezier(.2,.75,.2,1) forwards; }
.reveal-delay-one { animation-delay: .14s; }
.reveal-delay-two { animation-delay: .34s; }
.reveal-section { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.2,.75,.2,1); }
.reveal-section.is-visible { opacity: 1; transform: none; }

@supports (animation-timeline: view()) {
    .reveal-section { animation: section-rise both linear; animation-timeline: view(); animation-range: entry 0% entry 32%; }
}
.eyebrow { margin: 0 0 14px; color: var(--moss); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
h1, h2, h3 { font-family: "DM Serif Display", serif; font-weight: 400; line-height: 1.08; }
h1 { margin: 0 0 22px; font-size: clamp(44px, 7vw, 78px); }
h2 { margin: 0 0 16px; font-size: clamp(32px, 5vw, 48px); }
h3 { margin: 0 0 10px; font-size: 24px; }
.hero p { max-width: 640px; margin: 0 0 32px; font-size: 19px; }
.search-bar { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 8px; max-width: 820px; padding: 8px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
input, textarea, select { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 5px; font: inherit; }
textarea { resize: vertical; }
.search-bar input, .search-bar select { border: 0; }
.section { padding: 82px 0; }
.section-white { background: var(--white); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading p { max-width: 560px; margin: 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.category-link { position: relative; min-height: 170px; padding: 26px; overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background .35s, color .35s, transform .35s; }
.category-link::after { content: "↗"; position: absolute; top: 22px; right: 24px; opacity: 0; transform: translate(-8px, 8px); transition: opacity .3s, transform .3s; }
.category-link:hover { color: var(--white); background: var(--forest); }
.category-link:hover::after { opacity: 1; transform: none; }
.category-number { display: block; margin-bottom: 34px; color: var(--coral); font-size: 12px; font-weight: 800; }
.provider-grid, .article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.provider-card, .article-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transform-style: preserve-3d; transition: box-shadow .35s, transform .35s, border-color .35s; }
.provider-card:hover, .article-card:hover { border-color: rgba(22,74,54,.35); box-shadow: var(--shadow); transform: translateY(-7px); }
.card-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #dbe5d7 url("assets/provider.jpg") center/cover; transform: translate3d(var(--image-x, 0px), var(--image-y, 0px), 0) scale(var(--image-scale, 1.01)); transition: transform .12s linear, filter .4s; will-change: transform; }
.provider-card:hover .card-image { filter: saturate(1.08); }
.card-body { padding: 22px; }
.card-meta { display: flex; gap: 12px; margin-bottom: 10px; color: var(--coral); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.card-body p { margin: 0; color: var(--muted); }
.feature-band { color: var(--white); background: var(--forest-dark); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.feature-number { color: var(--moss); font-size: 13px; font-weight: 800; }
.page-hero { padding: 82px 0 50px; background: var(--white); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; color: var(--forest-dark); font-size: clamp(42px, 6vw, 68px); }
.filter-bar { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 10px; margin: 32px 0; }
.content-wrap { width: min(820px, calc(100% - 40px)); margin-inline: auto; padding: 70px 0; }
.content-wrap p, .content-wrap li { font-size: 17px; }
.content-wrap h2 { margin-top: 44px; font-size: 36px; }
.provider-detail { display: grid; grid-template-columns: 1.7fr .8fr; gap: 52px; padding: 68px 0; }
.provider-aside { align-self: start; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.detail-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.account-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.account-tabs a { position: relative; padding: 13px 10px; color: var(--muted); font-size: 14px; font-weight: 800; text-align: center; text-decoration: none; }
.account-tabs a::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--coral); transform: scaleX(0); transition: transform .25s ease; }
.account-tabs a:hover, .account-tabs a.is-active { color: var(--forest-dark); }
.account-tabs a.is-active::after { transform: scaleX(1); }
.account-form, .account-panel { max-width: 680px; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 38px rgba(19, 48, 35, .08); }
.account-form h2, .account-panel h2 { font-size: 34px; }
.account-form > p, .account-panel > p { color: var(--muted); }
.account-form label { display: block; margin: 0 0 17px; font-size: 14px; font-weight: 800; }
.account-form label input { margin-top: 6px; }
.account-form .checkbox-label { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.account-form .checkbox-label input { width: 18px; min-height: 18px; margin: 0; accent-color: var(--forest); }
.account-panel .button-row form { margin: 0; }
.account-panel.reviewer-panel { max-width: 920px; }
.review-queue { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.review-heading, .review-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.review-heading h3 { margin: 2px 0 20px; font-size: 29px; }
.review-count { min-width: 34px; height: 34px; display: grid; place-items: center; color: var(--white); background: var(--forest); border-radius: 50%; font-size: 14px; font-weight: 800; }
.review-list { display: grid; gap: 16px; }
.review-item { padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.review-item h4 { margin: 0; font-family: "DM Serif Display", serif; font-size: 24px; }
.review-item-head p, .review-item > p, .review-empty { margin: 4px 0 16px; color: var(--muted); }
.status-pill { padding: 4px 10px; color: #744d08; background: #fff0c7; border-radius: 999px; font-size: 12px; font-weight: 800; }
.review-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.review-details div { min-width: 0; }
.review-details dt { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.review-details dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.review-actions form { margin: 0; }
.listing-form label, .login-form label { display: block; margin-bottom: 18px; font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.notice { margin-bottom: 20px; padding: 14px 16px; background: #fff4dd; border-left: 4px solid var(--coral); }
.notice-success { background: #e9f5e7; border-color: var(--forest); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pagination { margin-top: 34px; }
.site-footer { padding: 54px 0; color: rgba(255,255,255,.75); background: #0a241a; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { text-decoration: none; }

@keyframes reveal-in { to { opacity: 1; transform: none; } }
@keyframes word-swap { 0% { opacity: 1; transform: translateY(0); } 45% { opacity: 0; transform: translateY(-14px); } 55% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes orbit-drift { 0%, 100% { transform: translate3d(0,0,0) rotate(0deg); } 50% { transform: translate3d(-22px,18px,0) rotate(10deg); } }
@keyframes float-word { 0%, 100% { transform: translate3d(0,0,0); opacity: .45; } 50% { transform: translate3d(10px,-16px,0); opacity: .82; } }
@keyframes section-rise { from { opacity: .35; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .site-nav { position: absolute; inset: 74px 0 auto; display: none; padding: 24px 20px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
    .site-nav.is-open { display: flex; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .provider-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
    .provider-detail { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 28px, 1180px); }
    .hero { min-height: 570px; }
    .hero-content { padding: 46px 0 38px; }
    .hero h1 { margin-bottom: 14px; font-size: 39px; }
    .hero p { margin-bottom: 18px; font-size: 15px; }
    .search-bar { gap: 6px; padding: 6px; }
    .search-bar input, .search-bar select, .search-bar .button { min-height: 40px; }
    .orbit-one { top: 10%; right: -28%; width: 220px; height: 220px; }
    .orbit-two, .word-one, .word-three { display: none; }
    .word-two { top: 31%; right: 6%; }
    .search-bar, .filter-bar, .provider-grid, .article-grid, .feature-grid, .auth-grid, .field-row { grid-template-columns: 1fr; }
    .account-tabs { grid-template-columns: 1fr; border: 1px solid var(--line); }
    .account-tabs a { border-bottom: 1px solid var(--line); }
    .account-tabs a:last-child { border-bottom: 0; }
    .account-form, .account-panel { padding: 22px; }
    .review-item-head { flex-direction: column; }
    .review-details { grid-template-columns: 1fr; }
    .review-actions, .review-actions form, .review-actions .button { width: 100%; }
    .category-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .section-heading, .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
    .reveal, .reveal-section { opacity: 1; transform: none; }
}