/*
Theme Name: Theavy MMO Tour
Theme URI: https://visionaryventures.example
Author: Theavy Svay — Visionary Ventures
Author URI: https://visionaryventures.example
Description: Premium tour guide & travel website theme with the Theavy_MMO settings panel — control colors, logo, title bar, all homepage texts, contact links, SEO and ad code without touching any code. Includes Tours, Services and Reviews content types plus one-click demo content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theavy-mmo-tour
Tags: travel, tourism, blog, custom-colors, custom-logo, custom-menu
*/

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body, 'Nunito Sans', sans-serif);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--c-text, #24312B);
  background: var(--c-bg, #FAF8F3);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); color: var(--c-primary); line-height: 1.15; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

/* ---- Top bar ---- */
.topbar { background: var(--c-primary); color: #fff; font-size: 13px; }
.topbar-in { padding: 7px 22px; display: flex; justify-content: flex-end; gap: 18px; }
.topbar-in a { color: #fff; opacity: .9; }

/* ---- Header ---- */
.site-header { background: var(--c-header-bg); position: sticky; top: 0; z-index: 60; box-shadow: 0 1px 0 rgba(0,0,0,.07); }
.header-in { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--c-header-tx); }
.brand img { height: 46px; width: auto; display: block; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--c-accent); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-size: 22px; font-weight: 700; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 21px; letter-spacing: .3px; }
.site-nav { display: flex; gap: 26px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--c-header-tx); font-weight: 700; font-size: 14.5px; letter-spacing: .2px; position: relative; padding: 6px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--c-accent); transition: width .25s; }
.site-nav a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 1px solid var(--c-header-tx); color: var(--c-header-tx); font-size: 20px; border-radius: 8px; padding: 4px 12px; cursor: pointer; }

/* ---- Hero ---- */
.hero { min-height: var(--hero-h, 78vh); display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; background: linear-gradient(160deg, var(--c-primary), #0c1f16 70%); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .45; }
.hero-inner { position: relative; padding: 90px 22px; max-width: 860px; }
.hero h1 { color: #fff; font-size: clamp(38px, 6vw, 66px); margin: 0 0 6px; font-weight: 600; }
.hero-rule { width: 74px; height: 3px; background: var(--c-accent); margin: 18px auto; border-radius: 2px; }
.hero p { color: #f2efe6; font-size: clamp(16px, 2.2vw, 20px); margin: 0 auto 30px; max-width: 640px; }
.btn { display: inline-block; background: var(--c-accent); color: var(--c-btn-text); font-weight: 800; padding: 14px 34px; border-radius: 999px; border: 0; font-size: 15.5px; letter-spacing: .4px; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.25); color: var(--c-btn-text); }
.btn-outline { background: transparent; border: 2px solid var(--c-accent); color: var(--c-accent); }

/* ---- Sections ---- */
.section { padding: 76px 0; }
.section-alt { background: color-mix(in srgb, var(--c-primary) 5%, var(--c-bg)); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; }
.section-head .kicker { display: inline-block; color: var(--c-accent); font-weight: 800; text-transform: uppercase; letter-spacing: 2.5px; font-size: 12px; margin-bottom: 10px; }
.section-head p { color: var(--c-muted); margin: 0; }

/* ---- Services ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }
.service-card { background: #fff; border-radius: var(--radius); padding: 34px 28px; text-align: center; box-shadow: 0 6px 24px rgba(16,36,27,.07); transition: transform .25s; }
.service-card:hover { transform: translateY(-5px); }
.service-icon { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%; background: color-mix(in srgb, var(--c-accent) 16%, #fff); display: grid; place-items: center; font-size: 28px; }
.service-card h3 { margin: 0 0 10px; font-size: 21px; }
.service-card p { color: var(--c-muted); font-size: 15px; margin: 0; }

/* ---- Tour cards ---- */
.tours-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.tour-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 28px rgba(16,36,27,.09); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.tour-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(16,36,27,.16); }
.tour-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.tour-media img, .tour-media .ph-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-img { background: linear-gradient(150deg, var(--c-primary), var(--c-accent)); display: grid; place-items: center; }
.ph-img span { font-family: var(--f-display); font-size: 54px; color: rgba(255,255,255,.55); }
.tour-badge { position: absolute; top: 14px; left: 14px; background: var(--c-accent); color: var(--c-btn-text); font-weight: 800; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; padding: 7px 16px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.tour-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.tour-body h3 { margin: 0 0 10px; font-size: 21px; }
.tour-body h3 a { color: var(--c-primary); }
.tour-body p { color: var(--c-muted); font-size: 14.8px; margin: 0 0 18px; flex: 1; }
.tour-more { color: var(--c-accent); font-weight: 800; font-size: 14px; letter-spacing: .5px; }
.tour-price { color: var(--c-primary); font-weight: 800; margin-bottom: 10px; }

/* ---- Reviews ---- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; }
.review-card { background: #fff; border-radius: var(--radius); padding: 30px 28px; box-shadow: 0 6px 24px rgba(16,36,27,.07); border-top: 4px solid var(--c-accent); }
.review-stars { color: var(--c-accent); letter-spacing: 3px; font-size: 15px; margin-bottom: 12px; }
.review-card blockquote { margin: 0 0 16px; font-style: italic; color: var(--c-text); }
.review-meta strong { display: block; color: var(--c-primary); }
.review-meta span { color: var(--c-muted); font-size: 13.5px; }

/* ---- Blog ---- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 28px rgba(16,36,27,.09); }
.post-card .tour-media { aspect-ratio: 16 / 9; }
.post-body { padding: 20px 24px 26px; }
.post-cat { color: var(--c-accent); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; }
.post-body h3 { margin: 8px 0 8px; font-size: 19px; }
.post-body h3 a { color: var(--c-primary); }
.post-body p { color: var(--c-muted); font-size: 14.5px; margin: 0; }

/* ---- CTA ---- */
.cta { background: linear-gradient(150deg, var(--c-primary), #0c1f16); color: #f2efe6; text-align: center; }
.cta h2 { color: #fff; }
.cta p { max-width: 620px; margin: 0 auto 28px; }

/* ---- Article / page ---- */
.article-hero { background: var(--c-primary); color: #fff; padding: 64px 0 54px; text-align: center; }
.article-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 46px); margin: 0 0 6px; }
.article-hero .meta { color: var(--c-accent); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; }
.article-body { max-width: 780px; margin: 0 auto; padding: 56px 22px 80px; font-size: 17px; }
.article-body img { border-radius: var(--radius); }
.article-body img.cover { margin-bottom: 32px; }
.article-body p { margin: 0 0 18px; }
.article-body .wp-block-image img { height: auto; }

/* ---- Footer ---- */
.site-footer { background: var(--c-footer-bg); color: var(--c-footer-tx); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 60px 22px 40px; }
.footer-brand { color: var(--c-footer-tx); font-family: var(--f-display); font-size: 20px; font-weight: 700; }
.footer-brand img { height: 42px; width: auto; }
.footer-tagline { opacity: .8; font-size: 14.5px; }
.site-footer h4 { color: var(--c-accent); text-transform: uppercase; letter-spacing: 2px; font-size: 13px; margin: 4px 0 16px; }
.footer-nav a, .footer-nav li a { display: block; color: var(--c-footer-tx); opacity: .85; padding: 4px 0; font-size: 14.5px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav a:hover { color: var(--c-accent); opacity: 1; }
.footer-col p { margin: 4px 0; font-size: 14.5px; opacity: .85; }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 17px; transition: background .2s; color: var(--c-footer-tx); }
.footer-social a:hover { background: var(--c-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 22px; font-size: 13.5px; opacity: .75; text-align: center; }

/* ---- Floating contact ---- */
.contact-fab { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; background: var(--c-accent); color: var(--c-btn-text); font-size: 24px; border: 0; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.3); z-index: 80; transition: transform .2s; }
.contact-fab:hover { transform: scale(1.08); }
.contact-popup { position: fixed; right: 22px; bottom: 92px; width: 300px; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.3); padding: 22px; z-index: 80; }
.contact-popup h3 { margin: 0 0 4px; font-size: 20px; }
.contact-popup > p { color: var(--c-muted); font-size: 13.5px; margin: 0 0 14px; }
.popup-link { display: block; border: 1px solid #e4e8e4; border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; transition: border-color .2s, background .2s; }
.popup-link:hover { border-color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 7%, #fff); }
.popup-link strong { display: block; color: var(--c-primary); font-size: 14.5px; }
.popup-link span { color: var(--c-muted); font-size: 13px; }

/* ---- Pagination / misc ---- */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 10px 0 60px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); color: var(--c-primary); font-weight: 700; }
.pagination .current { background: var(--c-accent); color: var(--c-btn-text); }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---- Focus ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

/* ---- Mobile ---- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--c-header-bg); flex-direction: column; gap: 0; padding: 10px 22px 18px; box-shadow: 0 14px 24px rgba(0,0,0,.12); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 16px; display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 54px 0; }
}
