/*
Theme Name: MyPuriTour Holidays
Theme URI: https://www.mypuritour.com
Author: MyPuriTour Holidays
Author URI: https://www.mypuritour.com
Description: A lightweight, Core Web Vitals optimized WordPress theme built for local travel agencies. Every content block (header, banner, search widget, tour packages, reviews, fleet gallery, footer menus) is editable from the WordPress Customizer and admin dashboard — no page builder or third-party plugin required. Built with unique, agency-specific content to align with Google's Helpful Content and Scaled Content Abuse guidance (no templated/duplicated boilerplate copy).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mypuritour
Tags: travel, local-business, custom-colors, custom-menu, custom-logo, translation-ready, threaded-comments
*/

/* ==========================================================================
   0. Reset & base
   ========================================================================== */
:root {
    --primary: #D9531E;
    --primary-hover: #B83E10;
    --secondary: #0A2540;
    --text-dark: #2D3748;
    --text-muted: #718096;
    --bg-light: #F7FAFC;
    --white: #FFFFFF;
    --shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
    --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, ul { margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--text-dark); background: var(--white); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); overflow: hidden; height: 1px; width: 1px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* ==========================================================================
   1. Top trust bar + Header (customizable in Appearance > Customize)
   ========================================================================== */
.top-bar { background: var(--secondary); color: var(--white); font-size: .82rem; padding: 8px 5%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.top-bar a { color: #FBD38D; text-decoration: none; font-weight: 600; }
.top-bar-phone { font-size: .85rem; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--primary); color: var(--white); padding: 12px 20px; }
.skip-link:focus { left: 10px; top: 10px; }

.site-header { display: flex; justify-content: flex-start; align-items: center; padding: 14px 5%; background: var(--white); box-shadow: 0 2px 4px rgba(0,0,0,.05); position: sticky; top: 0; z-index: 1000; gap: 24px; }
.site-logo { display: inline-flex; align-items: center; gap: 0; font-size: 1.5rem; font-weight: 800; color: var(--primary); text-decoration: none; white-space: nowrap; }
.site-logo .logo-accent { color: var(--secondary); }
.site-logo img, .site-logo .logo-icon { height: 38px; width: 38px; object-fit: contain; display: block; flex-shrink: 0; margin-right: 4px; }

/* Desktop: logo — menu centered in the remaining space — CTA pinned right */
.main-navigation { flex: 1 1 auto; }
.main-navigation ul { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; }
.main-navigation a { padding: 8px 14px; text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: .92rem; border-radius: 6px; white-space: nowrap; }
.main-navigation a:hover { color: var(--primary); background: var(--bg-light); }
.nav-close { display: none; }
.nav-overlay { display: none; }
.btn-primary.btn-header-cta-mobile { display: none; }

.btn-primary, .btn-primary:visited { background: var(--primary); color: var(--white) !important; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 700; display: inline-block; border: none; cursor: pointer; font-size: .95rem; transition: background .2s; }
.btn-primary:hover { background: var(--primary-hover); color: var(--white); }
.btn-header-cta { flex-shrink: 0; padding: 8px 16px; font-size: .82rem; margin-left: auto; }

/* Hamburger toggle — hidden on desktop */
.nav-toggle { display: none; background: none; border: none; padding: 6px; cursor: pointer; flex-shrink: 0; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 24px; height: 2px; background: var(--secondary); border-radius: 2px; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

/* ==========================================================================
   2. Hero / Banner (image editable via Customizer)
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    min-height: 440px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--secondary); /* shows instantly before the image paints */
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 90px 5% 120px;
    box-sizing: border-box;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 37, 64, .72);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; width: 100%; }
.hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 15px; line-height: 1.2; }
.hero p { font-size: 1.15rem; margin-bottom: 0; opacity: .92; max-width: 700px; margin-left: auto; margin-right: auto; }

.brand-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); text-align: center; }
.stat-item { display: flex; flex-direction: column; }
.stat-value { font-size: 1.4rem; font-weight: 800; color: var(--white); }
.stat-label { font-size: .75rem; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .04em; }

/* Hero search / lead widget */
.search-widget { background: var(--white); padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 900px; margin: -50px auto 0; position: relative; z-index: 5; }
.search-widget-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 15px; align-items: end; }
.search-widget #mpt-route-status { margin-top: 15px; }
.widget-group label { display: block; font-size: .82rem; font-weight: 700; color: var(--secondary); margin-bottom: 5px; text-align: left; }
.widget-group select, .widget-group input { width: 100%; padding: 12px; border: 1px solid #CBD5E0; border-radius: 6px; font-size: .93rem; }

/* ==========================================================================
   3. Trust / value grid
   ========================================================================== */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; padding: 60px 5%; background: var(--bg-light); text-align: center; }
.trust-card { padding: 20px; background: var(--white); border-radius: 8px; border: 1px solid #E2E8F0; }
.trust-card h3 { font-size: 1.08rem; color: var(--secondary); margin-bottom: 8px; }
.trust-card p { font-size: .9rem; color: var(--text-muted); }

/* ==========================================================================
   4. Section titles + Package grid
   ========================================================================== */
.section-title { text-align: center; margin: 60px auto 10px; padding: 0 5%; }
.section-title h2 { font-size: 2.1rem; color: var(--secondary); }
.section-title p { color: var(--text-muted); margin-top: 6px; }

.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 30px; padding: 30px 5% 60px; }
.package-card { border: 1px solid #E2E8F0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,.05); transition: transform .2s; background: var(--white); }
.package-card:hover { transform: translateY(-5px); }
.package-img { height: 200px; background-color: #CBD5E0; background-size: cover; background-position: center; position: relative; }
.package-badge { position: absolute; top: 15px; left: 15px; background: var(--primary); color: #fff; padding: 4px 12px; font-size: .78rem; font-weight: 700; border-radius: 20px; }
.package-body { padding: 20px; }
.package-body h3 { font-size: 1.25rem; color: var(--secondary); margin-bottom: 10px; }
.package-meta { font-size: .84rem; color: var(--text-muted); margin-bottom: 15px; display: flex; gap: 15px; flex-wrap: wrap; }
.package-desc { font-size: .9rem; color: #4A5568; margin-bottom: 15px; }
.package-price { font-size: 1.35rem; font-weight: 800; color: var(--primary); margin-bottom: 15px; }
.package-price span { font-size: .84rem; color: var(--text-muted); font-weight: 400; }
.no-packages-msg { text-align: center; padding: 20px 5% 60px; color: var(--text-muted); }

/* ==========================================================================
   5. E-E-A-T proof section
   ========================================================================== */
.eeat-section { background: var(--secondary); color: var(--white); padding: 60px 5%; text-align: center; }
.eeat-section h2 { margin-bottom: 30px; font-size: 1.9rem; }
.eeat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 20px; }
.eeat-box { background: rgba(255,255,255,.05); padding: 25px; border-radius: 8px; text-align: left; }
.eeat-box h4 { color: #FBD38D; margin-bottom: 10px; }

/* ==========================================================================
   6. Google reviews section
   ========================================================================== */
.reviews-section { padding: 50px 5%; background: #f9f9f9; }
.reviews-summary { text-align: center; margin-bottom: 30px; }
.reviews-summary h2 { font-size: 1.8rem; margin-bottom: 10px; color: var(--secondary); }
.rating-pill { display: inline-flex; align-items: center; gap: 10px; background: #fff; padding: 10px 20px; border-radius: 30px; box-shadow: 0 2px 8px rgba(0,0,0,.1); flex-wrap: wrap; justify-content: center; }
.rating-pill .stars { color: #ffb400; font-size: 1.1rem; letter-spacing: 1px; }
.rating-pill a { color: #1a73e8; font-weight: 600; text-decoration: none; margin-left: 6px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; margin: 30px 0; max-width: 1100px; margin-left: auto; margin-right: auto; }
.review-card { background: #fff; border: 1px solid #e0e0e0; padding: 20px; border-radius: 8px; }
.review-card .review-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.review-card .stars { color: #ffb400; }
.review-card p { font-size: .9rem; color: #444; }
.review-card small { color: #888; display: block; margin-top: 10px; }
.map-embed-wrap { border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.1); max-width: 1100px; margin: 0 auto; }
.map-embed-wrap iframe { width: 100%; height: 350px; border: 0; display: block; }

/* ==========================================================================
   7. Fleet / media gallery section
   ========================================================================== */
.gallery-section { padding: 50px 5%; background: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; max-width: 1100px; margin: 30px auto 0; }
.gallery-item { margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid #eee; background: #000; }
.gallery-item img, .gallery-item video { width: 100%; height: 200px; object-fit: cover; display: block; }
.gallery-item figcaption { padding: 10px; font-size: .8rem; color: #555; text-align: center; background: #fff; }
.gallery-item.is-video figcaption { color: #fff; background: #222; }

/* ==========================================================================
   8. Custom Tour Plan / quote request form
   ========================================================================== */
.quote-page-wrap { max-width: 760px; margin: 50px auto; padding: 0 5%; }
.quote-form { background: var(--bg-light); border: 1px solid #E2E8F0; border-radius: var(--radius); padding: 30px; display: grid; gap: 18px; }
.quote-form h1, .quote-form h2 { color: var(--secondary); font-size: 1.9rem; margin-bottom: 6px; }
.quote-form .form-intro { color: var(--text-muted); margin-bottom: 10px; }
.quote-form .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; }
.quote-form label { display: block; font-weight: 700; font-size: .85rem; color: var(--secondary); margin-bottom: 6px; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; padding: 12px; border: 1px solid #CBD5E0; border-radius: 6px; font-family: inherit; font-size: .95rem; }
.quote-form textarea { min-height: 100px; }
.quote-form .hp-field { position: absolute; left: -9999px; }
.quote-form button { justify-self: start; }
.form-status { padding: 12px 16px; border-radius: 6px; font-weight: 600; display: none; }
.form-status.success { background: #E6FFFA; color: #234E52; display: block; }
.form-status.error { background: #FFF5F5; color: #822727; display: block; }

/* ==========================================================================
   7b. Popular Departure Cities
   ========================================================================== */
.cities-section { padding: 60px 5%; background: linear-gradient(180deg, #EFF6FF 0%, #F7FAFC 100%); text-align: center; }
.cities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 18px; max-width: 1000px; margin: 30px auto 0; }
.city-card { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid #E2E8F0; padding: 18px 20px; border-radius: 12px; text-decoration: none; text-align: left; box-shadow: 0 2px 6px rgba(0,0,0,.04); transition: transform .2s, box-shadow .2s, border-color .2s; }
.city-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.city-card-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: #FFF1E9; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.city-card-text { min-width: 0; }
.city-card-label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.city-card-name { display: block; font-size: 1.05rem; font-weight: 700; color: var(--secondary); }
.city-card-arrow { margin-left: auto; color: var(--primary); font-size: 1.1rem; flex-shrink: 0; }

/* ==========================================================================
   9b. FAQs (native details/summary accordion — zero JS cost)
   ========================================================================== */
.faq-section { padding: 50px 5%; max-width: 900px; margin: 0 auto; }
.faq-accordion { display: grid; gap: 12px; }
.faq-item { border: 1px solid #E2E8F0; border-radius: 8px; padding: 4px 20px; background: var(--white); }
.faq-question { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--secondary); font-size: 1rem; list-style: none; position: relative; padding-right: 30px; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--primary); font-weight: 400; }
.faq-item[open] .faq-question::after { content: "\2212"; }
.faq-answer { padding: 0 0 18px; color: #4A5568; font-size: .93rem; line-height: 1.7; }
.faq-answer p { margin-bottom: 10px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ==========================================================================
   10. Footer (menus editable via Appearance > Menus)
   ========================================================================== */
.site-footer { background: #061727; color: #A0AEC0; padding: 40px 5% 20px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 30px; margin-bottom: 40px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.footer-col h4 { color: var(--white); margin-bottom: 15px; }
.footer-col a { color: #A0AEC0; text-decoration: none; display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #2D3748; max-width: 1200px; margin: 0 auto; }

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (max-width: 860px) {
    .site-header { justify-content: space-between; }
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    .btn-primary.btn-header-cta-desktop { display: none; }

    .nav-overlay { display: block; position: fixed; inset: 0; background: rgba(10,37,64,.55); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 1400; }
    .nav-overlay.is-open { opacity: 1; pointer-events: auto; }

    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(82vw, 320px);
        background: var(--secondary);
        padding: 70px 24px 24px;
        box-shadow: -6px 0 24px rgba(0,0,0,.25);
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 1500;
        overflow-y: auto;
        flex: none;
        display: flex;
        flex-direction: column;
    }
    .main-navigation.is-open { transform: translateX(0); }
    .main-navigation ul { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px; }
    .main-navigation a { color: var(--white); padding: 12px 8px; border-radius: 6px; }
    .main-navigation a:hover { background: rgba(255,255,255,.08); color: #FBD38D; }
    .nav-close { display: block; position: absolute; top: 16px; right: 20px; background: none; border: none; color: var(--white); font-size: 1.8rem; line-height: 1; cursor: pointer; }
    .btn-primary.btn-header-cta-mobile { display: block; margin-top: 20px; margin-left: 0; text-align: center; }
}
@media (max-width: 480px) {
    .site-logo { font-size: 1.25rem; }
}
@media (max-width: 768px) {
    .hero { min-height: 360px; padding: 70px 5% 100px; }
    .hero h1 { font-size: 1.9rem; }
}
