/*
Theme Name: PlanwithGlobal
Theme URI: https://planwithglobal.com
Author: PlanwithGlobal Engineering Team
Author URI: https://planwithglobal.com/about
Description: Production-ready WordPress theme for PlanwithGlobal travel agency, ticket bookings, embassy visa tracking, international insurance, and client document portal. Features responsive design, MakeMyTrip/Cleartrip style flight and hotel search widgets, custom post types, and REST API endpoints.
Version: 2.5.1
Requires at least: 6.0
Tested up to: 6.7
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: planwithglobal
Tags: travel, flight-booking, visa-tracking, insurance, e-commerce, custom-menu, responsive-layout, translation-ready, accessibility-ready
*/

:root {
  --pwg-bg-main: #060911;
  --pwg-bg-card: #0c1220;
  --pwg-bg-card-hover: #131c30;
  --pwg-border: #1a253c;
  --pwg-border-focus: #0ea5e9;
  --pwg-primary: #0284c7;
  --pwg-primary-hover: #0369a1;
  --pwg-accent: #06b6d4;
  --pwg-success: #10b981;
  --pwg-warning: #f59e0b;
  --pwg-danger: #ef4444;
  --pwg-text-white: #ffffff;
  --pwg-text-heading: #f1f5f9;
  --pwg-text-body: #94a3b8;
  --pwg-text-muted: #64748b;
  --pwg-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --pwg-radius-sm: 8px;
  --pwg-radius-md: 14px;
  --pwg-radius-lg: 20px;
  --pwg-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --pwg-glow: 0 0 35px -5px rgba(14, 165, 233, 0.25);
}

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

body.planwithglobal-theme {
  background-color: var(--pwg-bg-main);
  color: var(--pwg-text-body);
  font-family: var(--pwg-font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--pwg-accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--pwg-text-white);
}

.pwg-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Nav */
.pwg-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(12, 18, 32, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pwg-border);
}

.pwg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.pwg-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.pwg-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.pwg-brand-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.pwg-brand-text span {
  color: var(--pwg-accent);
}

.pwg-nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.pwg-nav-menu a {
  padding: 8px 14px;
  border-radius: var(--pwg-radius-sm);
  color: var(--pwg-text-body);
  font-size: 0.9rem;
  font-weight: 600;
}

.pwg-nav-menu a:hover,
.pwg-nav-menu .current-menu-item a {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.pwg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--pwg-radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pwg-btn-primary {
  background: linear-gradient(135deg, var(--pwg-primary), var(--pwg-accent));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.pwg-btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: #ffffff;
}

.pwg-btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--pwg-border);
  color: var(--pwg-text-heading);
}

.pwg-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--pwg-border-focus);
  color: #ffffff;
}

/* Mobile Toggle & Drawer */
.pwg-mobile-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--pwg-border);
  color: #ffffff;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.pwg-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pwg-mobile-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.pwg-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #0c1220;
  border-left: 1px solid var(--pwg-border);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.pwg-mobile-drawer.is-active {
  transform: translateX(0);
}

.pwg-mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--pwg-border);
}

.pwg-mobile-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.pwg-mobile-drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.pwg-mobile-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pwg-mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.pwg-mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--pwg-border);
  color: #38bdf8;
}

/* MakeMyTrip Signature Floating Search Card */
.pwg-search-card {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 2rem;
  margin-top: -55px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 20;
}

.pwg-search-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
  margin-bottom: 22px;
  overflow-x: auto;
}

.pwg-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #475569;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.pwg-tab-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.pwg-tab-btn.active {
  background: #eff6ff;
  color: #0284c7;
  border-color: #bfdbfe;
  font-weight: 800;
}

.pwg-grid-search {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.pwg-field {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.pwg-field:hover, .pwg-field:focus-within {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.pwg-field label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.pwg-field input, .pwg-field select {
  background: transparent;
  border: none;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 800;
  outline: none;
  width: 100%;
}

.pwg-field select option {
  background: #ffffff;
  color: #0f172a;
}

/* Feature cards */
.pwg-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.pwg-card {
  background: var(--pwg-bg-card);
  border: 1px solid var(--pwg-border);
  border-radius: var(--pwg-radius-md);
  padding: 24px;
  transition: all 0.25s ease;
}

.pwg-card:hover {
  background: var(--pwg-bg-card-hover);
  border-color: rgba(14, 165, 233, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--pwg-shadow);
}

/* Search form standard widget */
.search-form {
  display: flex;
  gap: 8px;
  width: 100%;
}

.search-form .search-field {
  flex: 1;
  background: #0c1220;
  border: 1px solid var(--pwg-border);
  border-radius: var(--pwg-radius-sm);
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}

.search-form .search-field:focus {
  border-color: var(--pwg-border-focus);
}

.search-form .search-submit {
  background: var(--pwg-primary);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--pwg-radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.search-form .search-submit:hover {
  background: var(--pwg-primary-hover);
}

/* Comments & Entry Typography */
.pwg-entry-content h1,
.pwg-entry-content h2,
.pwg-entry-content h3,
.pwg-entry-content h4 {
  color: #ffffff;
  margin: 1.5em 0 0.6em;
  font-weight: 800;
}

.pwg-entry-content p {
  margin-bottom: 1.2em;
}

.pwg-entry-content ul,
.pwg-entry-content ol {
  margin: 1em 0 1.5em 1.5em;
}

.pwg-entry-content blockquote {
  border-left: 4px solid var(--pwg-primary);
  padding-left: 16px;
  margin: 1.5em 0;
  font-style: italic;
  color: #cbd5e1;
}

.pwg-comment-form input[type="text"],
.pwg-comment-form input[type="email"],
.pwg-comment-form input[type="url"],
.pwg-comment-form textarea {
  width: 100%;
  background: #060911;
  border: 1px solid #334155;
  border-radius: var(--pwg-radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 14px;
  outline: none;
}

.pwg-comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.pwg-comment-form input:focus,
.pwg-comment-form textarea:focus {
  border-color: var(--pwg-border-focus);
}

/* Post Pagination */
.pagination, .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--pwg-bg-card);
  border: 1px solid var(--pwg-border);
  color: #cbd5e1;
  font-weight: 700;
  font-size: 0.85rem;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--pwg-primary);
  color: #fff;
  border-color: var(--pwg-primary);
}

/* WordPress Core Required Alignment & Utility Classes */
.alignleft {
  float: left;
  margin: 0.5em 1.5em 1.5em 0;
}

.alignright {
  float: right;
  margin: 0.5em 0 1.5em 1.5em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignnone {
  margin: 0.5em 0;
}

.alignwide {
  max-width: 1200px;
  width: 100%;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.82rem;
  color: var(--pwg-text-muted);
  text-align: center;
  margin-top: 6px;
}

.gallery-caption {
  font-size: 0.82rem;
  color: var(--pwg-text-muted);
}

.bypostauthor {
  display: block;
}

.sticky {
  border-left: 3px solid var(--pwg-accent);
}

/* Screen reader text for accessibility */
.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 !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #0c1220;
  border-radius: 6px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #38bdf8;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Footer */
.pwg-footer {
  margin-top: auto;
  background: #04060c;
  border-top: 1px solid var(--pwg-border);
  padding: 60px 0 30px;
}

.pwg-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .pwg-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .pwg-nav-menu {
    display: none;
  }
  .pwg-mobile-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .pwg-desktop-only {
    display: none;
  }
  .pwg-header-inner {
    height: 64px;
  }
  .pwg-search-card {
    margin-top: 0;
    padding: 1.25rem;
    border-radius: 18px;
  }
}

@media (max-width: 600px) {
  .pwg-footer-grid {
    grid-template-columns: 1fr;
  }
  .pwg-top-bar {
    display: none;
  }
}
