/*
Theme Name: Citadel Prototype
Theme URI: https://prototype.citadelsigma.com
Author: Citadel Group
Author URI: https://citadelsigma.com
Description: Custom FSE block theme for Citadel Group. Premium, craft-focused, understated.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: Proprietary
Text Domain: citadel-prototype
*/

/* ==========================================
   CITADEL PROTOTYPE — Custom Styles
   ========================================== */

/* --- Base resets --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0a0a0a;
  color: #f5f5f0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.wp-block-heading {
  color: var(--wp--preset--color--foreground);
}

/* Monospace accent utility */
.mono-label {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
}

/* --- Navigation --- */
.wp-block-navigation {
  gap: 2rem;
}

.wp-block-navigation a {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wp-block-navigation a:hover {
  color: var(--wp--preset--color--foreground) !important;
}

/* --- Buttons --- */
.wp-block-button__link {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0 !important;
  padding: 0.9rem 2rem !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.wp-block-button__link:hover {
  background-color: #b8903a !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--wp--preset--color--accent) !important;
  border: 1px solid var(--wp--preset--color--accent) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--accent) !important;
  color: var(--wp--preset--color--background) !important;
}

/* --- Cards (service grid) --- */
.service-card {
  background-color: var(--wp--preset--color--surface);
  padding: 2rem;
  border-top: 2px solid var(--wp--preset--color--accent);
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card .service-icon {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--wp--preset--color--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Section utilities --- */
.section-label {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  margin-bottom: 1.5rem;
  display: block;
}

.divider-line {
  border: none;
  border-top: 1px solid #2a2a2a;
  margin: 0;
}

/* --- Hero section --- */
.hero-section {
  min-height: 88vh;
  display: flex;
  align-items: center;
}

/* --- Value prop section --- */
.value-section {
  border-left: 3px solid var(--wp--preset--color--accent);
  padding-left: 2rem;
}

/* --- Footer --- */
.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--muted);
}

/* --- Post / page content --- */
.entry-content {
  max-width: 72ch;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.entry-content p {
  line-height: 1.75;
  color: #d0d0cc;
}

.entry-content a {
  color: var(--wp--preset--color--accent);
  text-decoration: underline;
  text-decoration-color: rgba(200, 165, 90, 0.4);
}

.entry-content code {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.85em;
  background: #1a1a1a;
  padding: 0.15em 0.4em;
  border-radius: 2px;
}

/* --- Post meta --- */
.post-meta {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  margin-bottom: 2rem;
}

/* --- 404 --- */
.not-found-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    padding: 4rem 1.25rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .wp-block-navigation {
    gap: 1.25rem;
  }
}

/* ==========================================
   V2 REFINEMENTS
   ========================================== */

/* Tighter hero height on small screens */
@media (max-width: 600px) {
  .hero-section {
    min-height: 55vh;
  }
}

/* More visible service card border */
.service-card {
  border-top-width: 2px !important;
}

/* Improve value prop body text readability */
.wp-block-group [style*="border-left"] p.has-text-color {
  color: #b0b0aa !important;
}

/* Nav active state hint */
.wp-block-navigation .current-menu-item a {
  color: var(--wp--preset--color--foreground) !important;
}

/* Smooth font rendering */
body, .wp-site-blocks {
  font-feature-settings: 'kern' 1, 'liga' 1;
}
