/*
Theme Name: Patelo Travels Blog
Theme URI: https://patelotravels.com
Author: Patelo Travels
Author URI: https://patelotravels.com
Description: Official blog theme for Patelo Travels — featuring flight deals, travel tips, visa guides, and destination highlights.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: patelo-travels
Tags: travel, blog, custom-colors, custom-logo, featured-images, two-columns, three-columns
*/

/* =============================================
   CSS CUSTOM PROPERTIES
============================================= */
:root {
  --primary: #266643;
  --primary-dark: #1a4a30;
  --primary-light: #2d7a50;
  --secondary: #E6B416;
  --secondary-dark: #c99b10;
  --white: #ffffff;
  --black: #0a0a0a;
  --dark: #111111;
  --dark-card: #1a1a1a;
  --gray-100: #f7f8f6;
  --gray-200: #eef0ec;
  --gray-400: #9ca3af;
  --gray-600: #6b7280;
  --gray-800: #374151;
  --text: #1f2937;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-ui: 'DM Sans', system-ui, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 72px;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   HEADER
============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
  position: relative;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.site-logo img {
  height: 44px;
  width: auto;
}

/* Nav — absolutely centered in header */
.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

#primary-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#primary-menu li a {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-800);
  white-space: nowrap;
  padding: 4px 0;
  position: relative;
  transition: color var(--transition);
}

#primary-menu li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

#primary-menu li a:hover,
#primary-menu li.current-menu-item a,
#primary-menu li.active-blog a {
  color: var(--primary);
}

#primary-menu li a:hover::after,
#primary-menu li.current-menu-item a::after,
#primary-menu li.active-blog a::after {
  width: 100%;
}

/* WordPress wraps custom logo in <a class="custom-logo-link"> */
.site-logo a,
.site-logo .custom-logo-link {
  display: flex;
  align-items: center;
}

.site-logo img,
.site-logo .custom-logo {
  height: 44px;
  width: auto;
}

.blog-page-header {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.blog-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 74, 48, 0.75);
  z-index: 0;
}

.blog-page-header .container {
  position: relative;
  z-index: 1;
}

/* Mobile toggle — hidden on desktop */
.menu-toggle {
  display: none;
  margin-left: auto;
  z-index: 1;
}

/* =============================================
   RESPONSIVE HEADER
============================================= */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    transform: none;
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
  }

  .main-nav.is-open {
    display: block;
  }

  #primary-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  #primary-menu li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  #primary-menu li:last-child a {
    border-bottom: none;
  }
}