/*
Theme Name: Explorer Traveller
Author: Mahesh Dahal
Author URI: https://profiles.wordpress.org/maheshdahal/
Description: Bold adventure theme with red and orange design. Ideal for travel, outdoor, or action-focused sites. Custom menu, featured images, full-width layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: explorer-traveller
Tags: custom-colors, custom-menu, featured-images, full-width-template, theme-options, translation-ready

Copyright (C) 2026-2027 Mahesh Dahal

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

* { margin: 0; padding: 0; box-sizing: border-box; }

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 100000;
    padding: 0.75rem 1rem;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 4px 0;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #f1f1f1; border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important; clip-path: none; color: #21759b;
    display: block; font-size: 0.875rem; font-weight: 600; height: auto;
    left: 5px; line-height: normal; padding: 15px 23px 14px;
    text-decoration: none; top: 5px; width: auto; z-index: 100000;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #ecf0f1;
}

.site-header {
    background: #e74c3c;
    color: white;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.site-header .main-navigation,
.site-header nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
}

.site-header .site-logo { font-size: 2rem; font-weight: 900; text-transform: uppercase; letter-spacing: 3px; }
.site-header .site-logo a { color: white; text-decoration: none; }
.site-header .nav-menu { display: flex; list-style: none; gap: 2.5rem; margin: 0; padding: 0; }
.site-header .nav-menu a { color: white; text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; transition: color 0.3s; }
.site-header .nav-menu a:hover { color: #f39c12; }

/* Mobile menu toggle */
.menu-toggle { display: none; background: transparent; border: none; color: white; cursor: pointer; padding: 0.5rem; }
.menu-toggle-bar { display: block; width: 24px; height: 2px; background: white; margin: 5px 0; transition: 0.3s; }
.menu-toggle.toggled .menu-toggle-bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.toggled .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle.toggled .menu-toggle-bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.hero {
    /* Background: CC0 image with subtle dark overlay for text readability. Custom image via Appearance → Customize → Front Page Options → Hero Section */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 100%),
                url('assets/images/hero-bg.jpg') center center / cover no-repeat;
    padding: 8rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><polygon fill="rgba(255,255,255,0.04)" points="0,600 300,400 600,500 900,300 1200,400 1200,600"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-content h1 { font-size: 5rem; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 5px; text-shadow: 3px 3px 6px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.8rem; margin-bottom: 2.5rem; font-weight: 300; }
.cta-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-secondary { padding: 1.2rem 3rem; border: none; border-radius: 5px; font-size: 1.1rem; font-weight: bold; text-transform: uppercase; transition: all 0.3s; text-decoration: none; display: inline-block; }
.btn-primary { background: #f39c12; color: white; }
.btn-primary:hover { background: #e67e22; transform: scale(1.05); color: white; }
.btn-secondary { background: transparent; color: white; border: 3px solid white; }
.btn-secondary:hover { background: white; color: #e74c3c; }

.stats { background: #34495e; color: white; padding: 4rem 2rem; }
.stats-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; text-align: center; }
.stat-item h3 { font-size: 3.5rem; color: #f39c12; margin-bottom: 0.5rem; }
.stat-item p { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px; }

.tours { padding: 6rem 2rem; background: white; }
.tours-container { max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 3.5rem; color: #e74c3c; text-transform: uppercase; margin-bottom: 1rem; letter-spacing: 3px; }
.section-header p { font-size: 1.3rem; color: #7f8c8d; }
.tours-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem; }
.tour-card { background: #ecf0f1; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,0.15); transition: transform 0.3s, box-shadow 0.3s; }
.tour-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.25); }
.tour-image { height: 250px; width: 100%; object-fit: cover; display: block; }
.tour-content { padding: 2rem; }
.tour-content h3 { color: #e74c3c; font-size: 1.8rem; margin-bottom: 1rem; text-transform: uppercase; }
.tour-content p { color: #34495e; margin-bottom: 1.5rem; line-height: 1.8; }
.tour-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 2px solid #bdc3c7; }
.tour-price { font-size: 2rem; font-weight: bold; color: #f39c12; }
.tour-duration { color: #7f8c8d; font-weight: 600; }

.services { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); padding: 6rem 2rem; color: white; }
.services-container { max-width: 1200px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.5rem; }
.service-card { background: rgba(255,255,255,0.1); padding: 2.5rem; border-radius: 15px; text-align: center; backdrop-filter: blur(10px); border: 2px solid rgba(255,255,255,0.2); transition: transform 0.3s; }
.service-card:hover { transform: scale(1.05); background: rgba(255,255,255,0.2); }
.service-icon { width: 80px; height: 80px; object-fit: cover; border-radius: 15px; margin-bottom: 1.5rem; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; text-transform: uppercase; }

.site-footer { background: #2c3e50; color: white; padding: 3rem 2rem; text-align: center; }
.site-footer .footer-content { max-width: 1200px; margin: 0 auto; }
.site-footer .footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.site-footer .footer-links a { color: #ecf0f1; text-decoration: none; transition: color 0.3s; }
.site-footer .footer-links a:hover { color: #f39c12; }

@media (max-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
    .site-header .nav-menu { gap: 1rem; font-size: 0.8rem; }
    .tours-grid { grid-template-columns: 1fr; }
    .menu-toggle { display: block; }
    .site-header .main-navigation { flex-wrap: wrap; }
    .site-header .nav-menu { display: none; width: 100%; flex-direction: column; gap: 0; padding: 1rem 0; }
    .site-header .nav-menu.toggled { display: flex; }
    .site-header .nav-menu a { padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.2); }
}

.page-content, .entry-content { max-width: 1200px; margin: 0 auto; padding: 2rem; }

/* WordPress recommended classes */
.sticky { position: relative; }
.bypostauthor .comment-author { font-weight: bold; }
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 0.5em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 0.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: 0.5em; }
.wp-caption { max-width: 100%; }
.wp-caption img { display: block; margin: 0 auto; }
.wp-caption-text { font-size: 0.9em; line-height: 1.4; padding: 0.5em 0; text-align: center; }
.gallery-caption { font-size: 0.9em; line-height: 1.4; padding: 0.5em 0; text-align: center; }

/* Content + sidebar */
.content-sidebar-wrapper { display: flex; flex-wrap: wrap; gap: 2rem; max-width: 1200px; margin: 0 auto; padding: 2rem; }
.content-sidebar-wrapper .content-area { flex: 1 1 65%; min-width: 0; }
.content-sidebar-wrapper .widget-area { flex: 0 1 300px; }
.widget-area .widget { margin-bottom: 2rem; }
.widget-title { font-size: 1.25rem; color: #e74c3c; margin-bottom: 0.75rem; }

/* Comments */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #ecf0f1; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-body { margin-bottom: 1.5rem; padding: 1rem; background: #f8f9fa; border-radius: 8px; }
.comment-author .comment-avatar { float: left; margin-right: 1rem; border-radius: 50%; }
.comment-meta { margin-bottom: 0.5rem; }
.comment-content { clear: both; padding-top: 0.5rem; }

/* Search form, 404, archive */
.search-form { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }
.search-form .search-field { padding: 0.5rem 1rem; min-width: 200px; border: 1px solid #bdc3c7; border-radius: 4px; }
.search-form .search-submit { padding: 0.5rem 1rem; background: #e74c3c; color: #fff; border: none; border-radius: 4px; cursor: pointer; }
.page-header { margin-bottom: 2rem; }
.page-title { font-size: 2rem; color: #e74c3c; }
.archive-description { margin-top: 0.5rem; color: #7f8c8d; }
.error-404 .page-content { padding: 2rem 0; }
.widget-area-404 .widget-title, .widget-area-404 h2 { font-size: 1.25rem; color: #e74c3c; margin: 2rem 0 0.75rem; }
.widget-area-404 ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.widget-area-404 li { margin-bottom: 0.5rem; }
.entry-summary { margin-bottom: 1rem; }
.more-link { display: inline-block; margin-top: 0.5rem; color: #e74c3c; font-weight: 600; }
.entry-footer span + span::before { content: " | "; margin: 0 0.25rem; }
