/*
Theme Name:   Para Height
Theme URI:    https://paraheight.com
Author:       Automate Web Solutions (Mattee)
Author URI:   https://automatewebsolutions.com
Description:  Custom WordPress theme for Para Height Travel & Tourism. Integrated with Para Height Packages plugin. GoWorld-inspired design.
Version:      1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License:      GPL-2.0+
Text Domain:  para-height
Tags:         travel, tourism, custom-logo, custom-menu, full-width-template, packages
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --navy:       #0D2137;
  --navy2:      #1B3A5A;
  --gold:       #C9973A;
  --gold2:      #E8B84B;
  --cream:      #F9F6F0;
  --white:      #FFFFFF;
  --text:       #2C2C2C;
  --muted:      #6B7280;
  --border:     #E5E0D6;
  --radius:     10px;
  --radius-lg:  18px;
  --shadow:     0 4px 24px rgba(13,33,55,.10);
  --shadow-lg:  0 12px 48px rgba(13,33,55,.18);
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  padding: 0 !important;
  margin: 0 !important;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Typography helpers */
.section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 10px;
}
.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  color: var(--navy); line-height: 1.2; margin-bottom: 14px;
}
.section-sub { color: var(--muted); max-width: 560px; line-height: 1.7; font-size: .92rem; }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 6px; font-weight: 600;
  font-size: .88rem; letter-spacing: .02em;
  transition: all .25s ease; border: 2px solid transparent;
  text-decoration: none; white-space: nowrap;
}
.btn-gold  { background: var(--gold); color: var(--white); }
.btn-gold:hover  { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,151,58,.35); color: var(--white); }
.btn-navy  { background: var(--navy); color: var(--white); }
.btn-navy:hover  { background: var(--navy2); transform: translateY(-2px); color: var(--white); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(13,33,55,.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,151,58,.18);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(13,33,55,1);
  box-shadow: 0 4px 28px rgba(0,0,0,.3);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}

/* Logo */
.site-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-img { height: 42px; width: auto; display: block; }
.logo-text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.55rem; color: var(--white); line-height: 1;
}
.logo-text em { color: var(--gold); font-style: normal; }
.logo-tagline {
  display: block; font-size: .58rem; color: rgba(255,255,255,.5);
  letter-spacing: .12em; text-transform: uppercase; margin-top: 2px;
  font-family: 'Inter', sans-serif; font-weight: 400;
}

/* Primary nav */
.primary-nav { display: flex; align-items: center; flex: 1; justify-content: center; }
.primary-nav ul { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
.primary-nav ul li { position: relative; }
.primary-nav ul li a {
  display: block; padding: 0 18px; height: 72px; line-height: 72px;
  color: rgba(255,255,255,.82); font-size: .86rem; font-weight: 500;
  transition: color .2s; white-space: nowrap;
}
.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item > a,
.primary-nav ul li.current-menu-parent > a,
.primary-nav ul li.current-menu-ancestor > a { color: var(--gold); }

/* Dropdown */
.primary-nav ul li ul {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 230px; background: var(--navy);
  border: 1px solid rgba(201,151,58,.18);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 10px 10px;
  padding: 8px 0;
  box-shadow: 0 16px 48px rgba(0,0,0,.35); z-index: 100; list-style: none;
}
.primary-nav ul li:hover > ul { display: block; }
.primary-nav ul li ul li a {
  height: auto; line-height: 1.4; padding: 11px 20px;
  color: rgba(255,255,255,.78); font-size: .82rem; font-weight: 400;
}
.primary-nav ul li ul li a:hover {
  color: var(--gold); padding-left: 26px;
  background: rgba(201,151,58,.06);
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.header-phone-icon { width: 32px; height: 32px; background: rgba(201,151,58,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: .9rem; }
.header-phone-text { display: flex; flex-direction: column; line-height: 1.2; }
.header-phone-text small { font-size: .6rem; color: rgba(255,255,255,.5); letter-spacing: .07em; text-transform: uppercase; }
.header-phone-text strong { font-size: .9rem; color: var(--gold); }
.header-book { padding: 10px 22px; font-size: .84rem; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 38px; height: 38px; background: none; border: none;
  padding: 7px; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--white); border-radius: 2px; transition: .3s;
}

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 99998;
  background: var(--navy); flex-direction: column;
  padding: 84px 28px 36px; overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close {
  position: absolute; top: 18px; right: 20px;
  font-size: 1.5rem; color: var(--white); background: none; border: none; padding: 8px;
}
.mobile-nav-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem; color: var(--white); margin-bottom: 28px;
}
.mobile-nav-logo em { color: var(--gold); font-style: normal; }
.mobile-nav ul, .mobile-nav ul ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav ul li a {
  display: block; color: rgba(255,255,255,.82);
  font-size: 1rem; font-weight: 600;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.07);
  text-decoration: none;
}
.mobile-nav ul li a:hover { color: var(--gold); }
.mobile-nav ul ul { padding-left: 18px; }
.mobile-nav ul ul li a { font-size: .88rem; font-weight: 400; color: rgba(255,255,255,.65); }
.mobile-nav-wa {
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: var(--white); padding: 14px 20px;
  border-radius: 8px; font-weight: 700; font-size: .9rem;
  text-decoration: none; margin-top: 24px; justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #060f1a; border-top: 1px solid rgba(201,151,58,.2); }
.footer-main {
  max-width: 1260px; margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand {}
.footer-logo-link { display: inline-block; margin-bottom: 16px; text-decoration: none; }
.footer-logo-img {
  height: auto;
  width: 180px;
  max-width: 200px;
  display: block;
}
/* Text logo fallback shown in footer (image has light bg, invisible on dark) */
.footer-logo-text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--white);
  display: inline-block;
  text-decoration: none;
  margin-bottom: 16px;
  line-height: 1;
}
.footer-logo-text em { color: var(--gold); font-style: normal; }
.footer-about {
  color: rgba(255,255,255,.52); font-size: .82rem; line-height: 1.78;
  margin-bottom: 22px;
}
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); font-size: .88rem;
  text-decoration: none; transition: all .2s;
}
.social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

.footer-col h4 {
  color: var(--gold); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links li a { color: rgba(255,255,255,.58); font-size: .82rem; text-decoration: none; transition: color .2s; }
.footer-links li a:hover { color: var(--gold); }

.footer-contact-list { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 11px; }
.footer-contact-item .fi { color: var(--gold); font-size: .95rem; margin-top: 1px; flex-shrink: 0; }
.footer-contact-item div { display: flex; flex-direction: column; }
.footer-contact-item strong { color: var(--white); font-size: .83rem; }
.footer-contact-item span, .footer-contact-item a { color: rgba(255,255,255,.58); font-size: .78rem; text-decoration: none; }
.footer-contact-item a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.footer-copy { color: rgba(255,255,255,.32); font-size: .76rem; margin: 0; }

/* WhatsApp float */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9997;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.7rem; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  animation: wa-pulse 2.5s infinite; transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); animation: none; color: var(--white); }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50%      { box-shadow: 0 4px 42px rgba(37,211,102,.68); }
}
.wa-tooltip {
  position: absolute; right: 68px;
  background: var(--navy); color: var(--white);
  font-size: .74rem; font-weight: 600;
  padding: 7px 13px; border-radius: 6px; white-space: nowrap;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.wa-float:hover .wa-tooltip { opacity: 1; }

/* ============================================================
   RESPONSIVE — HEADER/FOOTER
   ============================================================ */
@media (max-width: 1100px) {
  .header-phone { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .primary-nav, .header-book { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 48px 20px 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .wa-float { width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 1.35rem; }
}

/* ── Mobile nav logo image ────────────────────────────────── */
.mobile-nav-logo-link { display: block; margin-bottom: 28px; }
.mobile-logo-img { height: 40px; width: auto; }

/* ── Spacing fix: remove GoWorld conflicts ─────────────────── */
/* Remove any space above fixed header */
.site-header { top: 0 !important; }
/* Prevent GoWorld's own body padding from stacking */
html { padding: 0 !important; }
/* Remove bottom white space — GoWorld sometimes adds padding to #page or .site */
#page, .site { padding-bottom: 0 !important; margin-bottom: 0 !important; }
/* Prevent GoWorld elementor stretching below footer */
.elementor-section:last-child { margin-bottom: 0 !important; }
/* The hero must sit right below the sticky header */
.hero { margin-top: 0 !important; }
/* Footer no extra space below */
.site-footer { margin-bottom: 0 !important; padding-bottom: 0; }
.site-footer .footer-bottom { padding-bottom: 24px; }

/* ── Header responsive for logo image ─────────────────────── */
@media (max-width: 768px) {
  .logo-img { height: 34px; }
}
