/*
Theme Name: Rinjani Trekker Pro
Theme URI: https://example.com/rinjani-trekker
Author: Ibad Mukrom
Author URI: https://example.com
Description: Premium WordPress theme for trekking organizer (Mount Rinjani). Includes Trip Packages CPT, Destinations CPT, itineraries, testimonials layout, and high-end UI.
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.5
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: rinjani-trekker
Tags: blog, custom-background, custom-logo, custom-menu, featured-images, footer-widgets, theme-options, translation-ready
*/

/* ==========================================
   CSS Custom Properties
   ========================================== */
:root {
  /* Colors */
  --bg0: #070a12;
  --bg1: #0b1220;
  --bg2: #0f172a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface2: rgba(255, 255, 255, 0.08);
  --surface3: rgba(255, 255, 255, 0.12);
  --stroke: rgba(255, 255, 255, 0.10);
  --stroke2: rgba(255, 255, 255, 0.16);
  --text: rgba(255, 255, 255, 0.95);
  --text2: rgba(255, 255, 255, 0.85);
  --muted: rgba(255, 255, 255, 0.65);

  /* Brand Colors */
  --brand: #4cc9f0;
  --brand-dark: #3aa8cc;
  --brand2: #22c55e;
  --brand2-dark: #16a34a;
  --accent: #f59e0b;
  --accent-dark: #d97706;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--brand2), var(--brand));
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--brand2));
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));

  /* Effects */
  --ring: rgba(76, 201, 240, 0.35);
  --ring2: rgba(34, 197, 94, 0.35);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 35px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 55px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(76, 201, 240, 0.15);

  /* Sizing */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max: 1200px;
  --pad: 20px;

  /* Typography */
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.3s;
  --duration-fast: 0.15s;
  --duration-slow: 0.5s;
}

/* ==========================================
   Base Reset & Typography
   ========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 1200px 900px at 15% 5%, rgba(34, 197, 94, 0.12), transparent 60%),
    radial-gradient(ellipse 1200px 900px at 85% 15%, rgba(76, 201, 240, 0.10), transparent 60%),
    radial-gradient(ellipse 1000px 800px at 60% 85%, rgba(245, 158, 11, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 50%, var(--bg2) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

a:hover {
  opacity: 0.9;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

::selection {
  background: rgba(34, 197, 94, 0.25);
  color: white;
}

/* ==========================================
   Utility Classes
   ========================================== */
.container {
  width: min(var(--max), 100% - 2*var(--pad));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.sr-only-focusable:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 12px 20px;
  margin: 0;
  overflow: visible;
  clip: auto;
  background: var(--brand);
  color: var(--bg0);
  font-weight: 700;
  border-radius: var(--radius);
  z-index: 9999;
  box-shadow: var(--shadow-lg);
}

.muted {
  color: var(--muted);
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}



/* ==========================================
   Header & Navigation
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(7, 10, 18, 0.85);
  border-bottom: 1px solid var(--stroke);
  transition: all var(--duration) var(--ease);
}

.site-header.scrolled {
  background: rgba(7, 10, 18, 0.95);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

/* Brand */
.brand {
  flex-shrink: 0;
}

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

.brand-logo {
  width: auto;
  height: auto;
  min-width: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--gradient-brand);
  box-shadow: var(--shadow-md), 0 0 20px rgba(34, 197, 94, 0.3);
  color: white;
  transition: transform var(--duration) var(--ease-bounce), box-shadow var(--duration) var(--ease);
}

.brand-logo.custom-logo-img {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  min-width: auto;
  min-height: auto;
}

.brand-logo.custom-logo-img img,
.custom-logo-link img {
  width: auto;
  height: auto;
  max-height: 60px;
  /* Adjust height limit as needed */
  border-radius: 0;
}

.brand-logo svg {
  width: 22px;
  height: 22px;
}

.brand-link:hover .brand-logo {
  transform: scale(1.05) rotate(-3deg);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(34, 197, 94, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-tag {
  font-size: 12px;
  color: var(--muted);
  margin-top: -2px;
}

/* Navigation */
.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-container {
  display: flex;
  align-items: center;
}

.nav-header {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--duration) var(--ease);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--duration) var(--ease);
}

.nav-menu a:hover,
.nav-menu .current-menu-item>a,
.nav-menu .current_page_item>a {
  color: var(--text);
  background: var(--surface2);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item>a::after,
.nav-menu .current_page_item>a::after {
  width: 24px;
}

.nav-backdrop {
  display: none;
}

.nav-cta-mobile {
  display: none;
}

.nav-close {
  display: none;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
}

.header-cta {
  display: block;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke2);
  background: var(--surface2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: var(--surface3);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.btn-icon {
  font-size: 16px;
  line-height: 1;
}

.btn-primary {
  border: none;
  background: var(--gradient-brand);
  color: white;
  box-shadow: var(--shadow-sm), 0 0 20px rgba(34, 197, 94, 0.2);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md), 0 0 30px rgba(34, 197, 94, 0.3);
  filter: brightness(1.1);
}

.btn-accent {
  border: none;
  background: var(--gradient-accent);
  color: white;
  box-shadow: var(--shadow-sm), 0 0 20px rgba(245, 158, 11, 0.2);
}

.btn-accent:hover {
  box-shadow: var(--shadow-md), 0 0 30px rgba(245, 158, 11, 0.3);
  filter: brightness(1.1);
}

.btn-cta {
  padding: 10px 18px;
}

.btn-block {
  width: 100%;
}

/* Chip / Tag */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--stroke);
  color: var(--text2);
  font-size: 12px;
  font-weight: 500;
  transition: all var(--duration) var(--ease);
}

.chip:hover {
  background: var(--surface3);
  border-color: var(--stroke2);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
  padding: 40px 0 20px;
}

.hero-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7, 10, 18, 0.95) 0%, rgba(7, 10, 18, 0.7) 50%, rgba(7, 10, 18, 0.4) 100%),
    radial-gradient(ellipse 800px 600px at 70% 50%, rgba(34, 197, 94, 0.15), transparent 60%),
    radial-gradient(ellipse 600px 500px at 90% 30%, rgba(76, 201, 240, 0.12), transparent 60%);
  background-size: cover;
}

.hero-bg.has-image {
  background-size: cover;
  background-position: center;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  padding: 40px 32px;
  min-height: 380px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  font-weight: 800;
}

.hero p {
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.7;
}

.hero-panel {
  border-radius: var(--radius-lg);
  padding: 24px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.panel-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
}

.kpi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kpi .item {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface2);
  border: 1px solid var(--stroke);
  transition: all var(--duration) var(--ease);
}

.kpi .item:hover {
  background: var(--surface3);
  transform: translateY(-2px);
}

.kpi b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kpi span {
  font-size: 12px;
  color: var(--muted);
}

/* ==========================================
   Sections
   ========================================== */
.section {
  padding: 32px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-header h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ==========================================
   Grid & Cards
   ========================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card {
  grid-column: span 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(76, 201, 240, 0.08);
  border-color: var(--stroke2);
}

.card-media {
  aspect-ratio: 16/10;
  background: var(--surface2);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform var(--duration-slow) var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.05);
}

/* Card Placeholder (when no featured image) */
.card-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface3) 100%);
  color: var(--muted);
}

.card-media-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
  transition: all var(--duration) var(--ease);
}

.card:hover .card-media-placeholder svg {
  opacity: 0.7;
  transform: scale(1.1);
}

.card-body {
  padding: 18px 20px 22px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.card-title a {
  transition: color var(--duration) var(--ease);
}

.card-title a:hover {
  color: var(--brand);
}

.card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  align-items: center;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--text2);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge.alt {
  background: rgba(76, 201, 240, 0.12);
  border-color: rgba(76, 201, 240, 0.25);
}

.badge.sun {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}

.card-actions {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.price {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 16px;
  color: var(--brand);
}

.sep {
  opacity: 0.4;
  padding: 0 4px;
}

/* ==========================================
   Content & Entry
   ========================================== */
.content {
  padding: 24px 0 50px;
}

.entry {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 28px;
}

.entry-content {
  font-size: 16px;
  line-height: 1.8;
}

.entry-content p {
  margin: 0 0 1.5em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 2em 0 0.8em;
}

.entry-content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: var(--brand2);
}

.post-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

hr.soft {
  border: 0;
  border-top: 1px solid var(--stroke);
  margin: 20px 0;
}

/* ==========================================
   Sidebar & Widgets
   ========================================== */
.sidebar {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.widget+.widget {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--stroke);
}

.widget-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--stroke);
  background: var(--bg0);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.4) 0%, rgba(7, 10, 18, 0.9) 100%);
  z-index: 0;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr 1.3fr;
  gap: 24px;
  align-items: start;
}

.footer-col-brand {
  padding-right: 10px;
  max-width: 280px;
}

.footer-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 35ch;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--stroke);
  color: var(--muted);
  transition: all var(--duration) var(--ease);
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.social-icon:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--bg0);
  transform: translateY(-3px);
}

.footer-col-info {
  padding: 0 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.contact-icon {
  font-size: 16px;
}

.contact-item a {
  color: var(--muted);
  transition: color var(--duration) var(--ease);
}

.contact-item a:hover {
  color: var(--brand);
}

.widget-title {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text2);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links li::before {
  content: none;
}

.footer-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  transition: all var(--duration) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--brand);
  padding-left: 6px;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--stroke);
  padding: 24px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-legal a:hover {
  text-decoration: underline;
}

/* ==========================================
   Forms
   ========================================== */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface2);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: all var(--duration) var(--ease);
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(76, 201, 240, 0.15);
  background: var(--surface3);
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form input[type="search"] {
  flex: 1;
}

.search-form button {
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke2);
  background: var(--surface2);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.search-form button:hover {
  background: var(--surface3);
}

/* ==========================================
   Pagination
   ========================================== */
.pagination {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.pagination a {
  padding: 10px 16px;
  background: var(--surface2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  font-weight: 500;
  transition: all var(--duration) var(--ease);
}

.pagination a:hover {
  background: var(--surface3);
  border-color: var(--stroke2);
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.animate-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.card:nth-child(1) {
  transition-delay: 0ms;
}

.card:nth-child(2) {
  transition-delay: 100ms;
}

.card:nth-child(3) {
  transition-delay: 200ms;
}

.card:nth-child(4) {
  transition-delay: 300ms;
}

.card:nth-child(5) {
  transition-delay: 400ms;
}

.card:nth-child(6) {
  transition-delay: 500ms;
}

/* ==========================================
   Mobile Menu Toggle
   ========================================== */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   Responsive Styles
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .hero-panel {
    max-width: 400px;
  }

  .footer-inner {
    grid-template-columns: 1.3fr 0.9fr 1fr 1.3fr;
    gap: 20px;
  }

  .footer-col-brand {
    max-width: none;
  }
}

/* Footer Tablet */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-col-info,
  .footer-col-contact {
    grid-column: span 1;
  }

  .card {
    grid-column: span 6;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --pad: 16px;
  }

  .topbar-content {
    font-size: 12px;
    flex: 1;
    min-width: 0;
  }

  .topbar-content span:not(.topbar-icon) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Header Mobile */
  .header-inner {
    padding: 12px 0;
  }

  .brand-tag {
    display: none;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration) var(--ease), visibility var(--duration) var(--ease);
  }

  .nav.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
  }

  .nav-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
  }

  .nav.is-open .nav-backdrop {
    opacity: 1;
  }

  .nav-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    background: var(--bg1);
    border-bottom: 1px solid var(--stroke);
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-100%);
    transition: transform var(--duration) var(--ease-out);
    max-height: 100vh;
    overflow-y: auto;
  }

  .nav.is-open .nav-container {
    transform: translateY(0);
  }

  .nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--stroke);
    background: rgba(0, 0, 0, 0.3);
  }

  .nav-title {
    font-weight: 700;
    font-size: 16px;
  }

  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--surface2);
    border: 1px solid var(--stroke);
    color: var(--text);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
  }

  .nav-close:hover {
    background: var(--surface3);
  }

  .nav-close svg {
    width: 20px;
    height: 20px;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
    padding: 12px;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 15px;
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-menu a:hover,
  .nav-menu .current-menu-item>a {
    background: var(--surface3);
  }

  .nav-cta-mobile {
    display: block;
    padding: 16px 20px;
    border-top: 1px solid var(--stroke);
    background: rgba(0, 0, 0, 0.2);
  }

  /* Toggle button */
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--stroke2);
    background: var(--surface2);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
  }

  .menu-toggle:hover {
    background: var(--surface3);
  }

  .menu-toggle-text {
    display: none;
  }

  .header-cta {
    display: none;
  }

  /* Hero Mobile */
  .hero {
    padding: 24px 0 16px;
  }

  .hero-inner {
    padding: 24px 20px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 14px;
  }

  /* Cards */
  .card {
    grid-column: span 12;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 32px 0;
    gap: 32px;
  }

  .footer-col-brand,
  .footer-col-nav,
  .footer-col-info,
  .footer-col-contact {
    text-align: center;
    padding: 0;
  }

  .footer-col-brand .brand-link {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .contact-item {
    justify-content: center;
  }

  .footer-description {
    max-width: 100%;
  }

  .entry {
    padding: 20px;
    border-radius: var(--radius-lg);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Small Mobile */
@media (max-width: 400px) {
  .topbar-link {
    padding: 5px 10px;
  }

  .topbar-link-icon {
    display: none;
  }

  .brand-title {
    font-size: 16px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-logo svg {
    width: 18px;
    height: 18px;
  }
}

/* Hamburger Menu Lines */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all var(--duration) var(--ease);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Custom Logo Image Styling */
.brand-logo.custom-logo-img {
  background: none;
  box-shadow: none;
  width: auto;
  height: auto;
}

.brand-logo.custom-logo-img a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo.custom-logo-img img {
  max-width: 48px;
  max-height: 48px;
  width: auto;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}

@media (max-width: 400px) {
  .brand-logo.custom-logo-img img {
    max-width: 40px;
    max-height: 40px;
  }
}

/* Body scroll lock when menu open */
body.menu-open {
  overflow: hidden;
}