/*
Theme Name: Crystal Angel Games
Theme URI: https://crystalangelgames.com
Author: Crystal Angel Games
Author URI: https://crystalangelgames.com
Description: Custom theme for Battle Group St. Aster by Crystal Angel Games.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: crystal-angel-games
*/

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

body {
  margin: 0;
  padding: 0;
  background: #0a0704;
  color: #c2b596;
  font-family: 'Cormorant Garamond', serif;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== ANIMATION ===== */
@keyframes caGlow {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  color: #ece0c4;
  margin: 0;
}

a { color: #d8c8a0; text-decoration: none; }

/* ===== HEADER NAV ===== */
.cag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 40px;
  background: #0a0704;
  border-bottom: 1px solid rgba(196,158,74,0.12);
  position: relative;
  z-index: 10;
}

.cag-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
  white-space: nowrap;
}

.cag-diamond-mark {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #f0d9a0, #b8863f);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex: none;
}

.cag-wordmark {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 3px;
  color: #ece0c4;
}

.cag-nav-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  display: flex;
  justify-content: flex-end;
}

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

.cag-nav-scroll .menu li a {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: #7d7158;
  white-space: nowrap;
}

.cag-nav-scroll .menu li.current-menu-item a,
.cag-nav-scroll .menu li.current_page_item a {
  color: #d8c8a0;
}

/* ===== FOOTER ===== */
.cag-footer {
  padding: 40px 64px;
  background: #070502;
  border-top: 1px solid rgba(196,158,74,0.12);
}

.cag-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cag-footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cag-footer-diamond {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #f0d9a0, #b8863f);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex: none;
}

.cag-footer-wordmark {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 3px;
  color: #ece0c4;
}

.cag-footer-nav .menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.cag-footer-nav .menu li a {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: #a5946f;
}

.cag-copyright {
  text-align: center;
  font-size: 12px;
  color: #5c5340;
  line-height: 1.7;
}

/* ===== SHARED COMPONENTS ===== */
.cag-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: #d4af6a;
  text-transform: uppercase;
}

.cag-diamond {
  width: 7px;
  height: 7px;
  background: #d4af6a;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  display: inline-block;
}

.cag-diamond.pulse { animation: caGlow 3.5s ease-in-out infinite; }

.cag-diamond-lg {
  width: 9px;
  height: 9px;
  background: #d4af6a;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.cag-btn {
  display: inline-block;
  padding: 15px 34px;
  background: linear-gradient(135deg, #f0d9a0, #b8863f);
  color: #1a1206;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  border-radius: 2px;
  text-decoration: none;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

.cag-btn-outline {
  display: inline-block;
  padding: 14px 30px;
  border: 1px solid rgba(212,175,106,0.45);
  color: #d4af6a;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  background: transparent;
}

.cag-media-placeholder {
  position: relative;
  background: #150f0a;
  border: 1px solid rgba(196,158,74,0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.cag-media-label {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: #d8c8a0;
}

.cag-media-soon {
  font-size: 14px;
  color: #756a52;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
}

.cag-corner-tl {
  position: absolute;
  top: 0; left: 0;
  width: 22px; height: 22px;
  border-top: 1px solid #d4af6a;
  border-left: 1px solid #d4af6a;
}

.cag-corner-br {
  position: absolute;
  bottom: 0; right: 0;
  width: 22px; height: 22px;
  border-bottom: 1px solid #d4af6a;
  border-right: 1px solid #d4af6a;
}

/* ===== VOID ATMOSPHERE WRAPPER ===== */
.cag-void-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.cag-void-overlay-dark {
  position: absolute;
  inset: 0;
  background: rgba(5,3,1,0.45);
}

.cag-void-overlay-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 1300px 900px at 50% 40%, rgba(5,3,1,0.35) 0%, rgba(5,3,1,0.55) 35%, rgba(6,3,1,0.97) 100%);
}

/* ===== HERO ===== */
.cag-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: #0a0704;
}

.cag-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  font-family: 'Cormorant Garamond', serif;
}

.cag-rule-with-diamond {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cag-rule-left {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,158,74,0.22));
}

.cag-rule-right {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(196,158,74,0.22), transparent);
}

/* ===== CONTACT FORM ===== */
.cag-form-card {
  width: 100%;
  max-width: 560px;
  position: relative;
  border: 1px solid rgba(196,158,74,0.16);
  background: #120d09;
  padding: 48px;
}

.cag-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-family: 'Cormorant Garamond', serif;
}

.cag-form-row {
  display: flex;
  gap: 18px;
}

.cag-form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cag-form label {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #96876a;
  text-transform: uppercase;
}

.cag-form input,
.cag-form textarea {
  background: #150f0a;
  border: 1px solid rgba(196,158,74,0.18);
  color: #e2d3ab;
  padding: 12px 14px;
  font-size: 15px;
  font-family: 'Cormorant Garamond', serif;
  outline: none;
}

.cag-form textarea { resize: vertical; }

.cag-form-submit {
  margin-top: 6px;
  padding: 15px 0;
  background: linear-gradient(135deg, #f0d9a0, #b8863f);
  color: #1a1206;
  border: none;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  border-radius: 2px;
  cursor: pointer;
  text-transform: uppercase;
  width: 100%;
}

.cag-success {
  text-align: center;
  padding: 40px 0;
  font-family: 'Cormorant Garamond', serif;
  display: none;
}

.cag-form-error {
  color: #a8465a;
  font-size: 14px;
  display: none;
  text-align: center;
}

/* ===== PILLARS ===== */
.cag-pillars-grid {
  display: flex;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.cag-pillar {
  flex: 1;
  min-width: 200px;
  border-top: 1px solid rgba(212,175,106,0.45);
  padding-top: 22px;
}

.cag-pillar-title {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: #ece0c4;
  margin-bottom: 10px;
}

.cag-pillar-body {
  font-size: 15px;
  color: #a5946f;
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .cag-header { padding: 18px 20px; }
  .cag-hero { padding: 80px 20px 60px !important; }
  .cag-form-row { flex-direction: column; gap: 22px; }
  .cag-form-card { padding: 28px; }
  .cag-footer { padding: 30px 20px; }
}
