/*
Theme Name:  GJM
Theme URI:   https://gjm.aero
Author:      Efyuar
Author URI:  https://efyuar.com
Description: Custom WordPress theme for GJM Aviation Group.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License:     Proprietary
License URI: https://gjm.aero
Text Domain: gjm
Tags:        custom-theme, aviation, dark, business
*/

/* ── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --gold-dim:   rgba(201,168,76,0.55);
  --dark:       #0a0a0a;
  --dark-2:     #111111;
  --dark-3:     #161616;
  --off-white:  #e8e4de;
  --muted:      rgba(232,228,222,0.45);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --max-w:      1240px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--off-white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

/* ── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  line-height: 1.1;
  color: var(--off-white);
}

em { font-style: italic; color: var(--gold-light); }

p { margin-bottom: 1.4em; }
p:last-child { margin-bottom: 0; }

/* ── Container ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 64px;
}

@media (max-width: 1024px) { .container { padding-inline: 40px; } }
@media (max-width: 768px)  { .container { padding-inline: 24px; } }

/* ── Gold rule ──────────────────────────────────────────────────── */
.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.35;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: none;
  transition: background 0.3s, box-shadow 0.3s;
}

.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 32px rgba(201,168,76,0.25);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  background: transparent;
  color: var(--off-white);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: 1px solid rgba(232,228,222,0.25);
  transition: border-color 0.3s, color 0.3s;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Section eyebrow ────────────────────────────────────────────── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201,168,76,0.25);
  max-width: 48px;
}

/* ── Reveal animation ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── WP Core alignment helpers ──────────────────────────────────── */
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ── 404 / Error page ───────────────────────────────────────────── */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.error-404 {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(201,168,76,0.08), transparent 55%),
    var(--dark);
}

.error-glow {
  position: absolute;
  top: 30%; left: 50%;
  width: 620px; height: 620px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,168,76,0.14), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.error-inner {
  position: relative;
  text-align: center;
  padding-block: 80px;
}

.error-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.error-num {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2vw, 22px);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 0.9;
  font-size: clamp(120px, 26vw, 260px);
  color: var(--off-white);
  background: linear-gradient(180deg, var(--off-white), rgba(232,228,222,0.25));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.error-num-mid {
  display: inline-flex;
  width: clamp(90px, 20vw, 200px);
  height: clamp(90px, 20vw, 200px);
  -webkit-text-fill-color: initial;
}

.error-plane { width: 100%; height: 100%; overflow: visible; }
.error-plane-ring {
  fill: none;
  stroke: var(--gold-dim);
  stroke-width: 1.5;
  stroke-dasharray: 6 10;
  transform-origin: 60px 60px;
  animation: error-spin 18s linear infinite;
}
.error-plane-body {
  fill: var(--gold);
  transform-origin: 60px 60px;
  animation: error-float 4s var(--ease-out) infinite;
}

@keyframes error-spin { to { transform: rotate(360deg); } }
@keyframes error-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(8deg); }
}

.error-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: clamp(30px, 5vw, 52px);
  color: var(--off-white);
  margin-top: 14px;
}

.error-desc {
  max-width: 560px;
  margin: 18px auto 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(232,228,222,0.6);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
}

.error-search {
  display: flex;
  align-items: center;
  max-width: 380px;
  margin: 40px auto 0;
  border: 1px solid rgba(232,228,222,0.14);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.error-search:focus-within {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.error-search-input {
  flex: 1;
  padding: 14px 18px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--off-white);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
}
.error-search-input::placeholder { color: var(--muted); }
.error-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  height: 100%;
  align-self: stretch;
  background: transparent;
  border: none;
  border-left: 1px solid rgba(232,228,222,0.12);
  color: var(--gold);
  cursor: pointer;
  transition: color 0.3s;
}
.error-search-btn:hover { color: var(--gold-light); }

@media (max-width: 480px) {
  .error-actions .btn-gold,
  .error-actions .btn-outline { width: 100%; justify-content: center; }
}
