/*
Theme Name: rackAID
Theme URI: https://www.rackaid.com
Author: rackAID LLC
Author URI: https://www.rackaid.com
Description: Custom theme matching the rackAID React site design
Version: 1.0.0
License: Proprietary
Text Domain: rackaid
*/

/* ========================================
   RackAID Brand Design System
   ======================================== */

:root {
  /* Core Brand Colors - Space-separated HSL values for use with hsl(var()) */
  --background: 204 62% 14%;
  --foreground: 36 33% 94%;
  --card: 204 55% 18%;
  --primary: 206 100% 97%;
  --secondary: 197 58% 50%;
  --muted: 204 40% 22%;
  --muted-foreground: 215 20% 65%;
  --accent: 27 53% 64%;
  --icon-glow: 200 80% 60%;
  --border: 210 30% 25%;
  
  --font-family: 'Inter', 'Source Sans Pro', system-ui, -apple-system, sans-serif;
  --radius: 0.25rem;
}

/* ========================================
   Reset & Base
   ======================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ========================================
   Container
   ======================================== */

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========================================
   Header - Handled by Tailwind classes
   Mobile menu toggle JS helper
   ======================================== */

.mobile-nav.is-open {
  display: flex !important;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  padding: 1.5rem 0;
  background-color: hsl(var(--background));
	 width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .footer-main {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand {
  max-width: 470px;
}

.footer-brand .brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

.footer-brand .tagline {
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.8);
  margin-bottom: 0.75rem;
}

.footer-brand .bio {
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.7);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.footer-brand .about-link {
  font-size: 0.875rem;
  color: hsl(var(--primary));
  transition: color 0.2s;
}

.footer-brand .about-link:hover {
  color: hsl(var(--primary) / 0.8);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.8);
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: hsl(var(--foreground));
}

.footer-contact svg {
  width: 1rem;
  height: 1rem;
}

.footer-bottom {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.625rem;
  color: hsl(var(--foreground) / 0.6);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: hsl(var(--foreground) / 0.8);
}

.footer-links .separator {
  font-size: 0.625rem;
  color: hsl(var(--foreground) / 0.4);
}

.footer-copyright {
  font-size: 0.625rem;
  color: hsl(var(--foreground) / 0.6);
}

/* ========================================
   Content & Typography
   ======================================== */

.site-content {
  padding-top: 7rem; /* Account for fixed header */
  min-height: calc(100vh - 200px);
}

/* Template pages handle their own header offset via pt-32 */
.page-template-page-home-php .site-content,
.page-template-page-advisory-services-php .site-content,
.page-template-page-technical-services-php .site-content {
  padding-top: 0;
}

/* Template pages need full-width body (override max-width constraint) */
.page-template-page-home-php,
.page-template-page-advisory-services-php,
.page-template-page-technical-services-php {
  max-width: none !important;
}

/* Fix img reset for template SVGs - allow Tailwind h-full to work */
/* Scope to site-content only so header logo keeps h-10 */
.page-template-page-home-php .site-content img,
.page-template-page-advisory-services-php .site-content img,
.page-template-page-technical-services-php .site-content img {
  height: revert;
  display: revert;
  max-width: revert;
}

/* Blog Hero */
.blog-hero {
  padding: 3rem 0 2rem;
  background-color: hsl(var(--background));
}

.blog-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .blog-hero h1 {
    font-size: 3rem;
  }
}

.blog-hero .lead {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
}

/* Post Cards */
.posts-grid {
  padding: 3rem 0;
  background-color: hsl(var(--background));
}

.posts-grid .container {
  max-width: 56rem;
  margin: 0 auto;
}

.post-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: border-color 0.2s;
}

@media (min-width: 768px) {
  .post-card {
    padding: 2rem;
  }
}

.post-card:hover {
  border-color: hsl(var(--secondary) / 0.3);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.post-category {
  background-color: hsl(var(--secondary) / 0.1);
  color: hsl(var(--secondary));
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.post-date,
.post-reading-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-date svg,
.post-reading-time svg {
  width: 1rem;
  height: 1rem;
}

.post-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

@media (min-width: 768px) {
  .post-card h2 {
    font-size: 1.5rem;
  }
}

.post-card:hover h2 {
  color: hsl(var(--primary));
}

.post-card .excerpt {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: hsl(var(--primary));
  font-weight: 500;
  transition: text-decoration 0.2s;
}

.read-more:hover {
  text-decoration: underline;
}

.read-more svg {
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
}

/* Single Post */
.single-post {
  padding: 2rem 0 0 0;
  max-width: 48rem;
  margin: 0 auto;
  background-color: #F5F1EB;
}

.single-post h1 {
  font-size: 2rem;
  font-weight: 700;
   color:  #1B4F72;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .single-post h1 {
    font-size: 2.5rem;
  }
}

.single-post .post-meta {
  margin-bottom: 2rem;
	color: #2C3E50;
}

/* Prose styles for post content */
.prose {
  color: #1B4F72;
  line-height: 1.75;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
   color: #1B4F72;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
   color: #1B4F72;
}

.prose p {
  margin-bottom: 1.25rem;
	color: #2C3E50;
}

.prose a {
  color: hsl(var(--secondary));
  text-decoration: underline;
}

.prose a:hover {
  color: hsl(var(--icon-glow));
}

.prose ul,
.prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
	color: #2C3E50;
}

.prose blockquote {
  border-left: 4px solid hsl(var(--secondary));
  padding-left: 1rem;
  margin: 1.5rem 0;
  
  color: hsl(var(--muted-foreground));
}



.prose pre {
  background-color: #2e3440;
  color: #d8dee9;
  padding: 1rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875em;
  margin-bottom: 1.25rem;
	
}

.prose img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 0;
  background-color: hsl(var(--background));
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  transition: background-color 0.2s, border-color 0.2s;
}

.pagination a:hover {
  background-color: hsl(var(--muted));
  border-color: hsl(var(--secondary));
}

.pagination .current {
  background-color: hsl(var(--secondary));
  border-color: hsl(var(--secondary));
}

.pagination .disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Category Filter */
.category-filter {
  padding: 1.5rem 0;
  border-bottom: 1px solid hsl(var(--secondary) / 0.2);
  background-color: hsl(var(--background));
}

.category-filter .container {
  max-width: 56rem;
  margin: 0 auto;
}

.category-filter ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  justify-content: center;
}

.category-filter a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  transition: background-color 0.2s, color 0.2s;
}

.category-filter a:hover {
  background-color: hsl(var(--secondary) / 0.2);
}

.category-filter a.active {
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

body {max-width: 1400px !important;margin-left: auto; margin-right: auto; }
.cta-section {
    background-color: rgb(36, 66, 86);
    padding: 5rem 1.5rem;
	
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
	 display: flex;
	justify-content: center;
	

}

.cta-container {
      width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    text-align: center;
}

.cta-heading {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 2.5rem;
    
	color: hsla(27, 54%, 64%, 1);
}

.cta-text {
    
    color: rgba(255, 255, 255, 0.9);
    line-height:1.75rem;
	margin-bottom: 2rem;
	
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.cta-button:hover {
    background-color: hsla(197, 58%, 50%, 1);
    color:#FFF;
}

.cta-button svg {
    transition: transform 0.2s;
}

.cta-button:hover svg {
    transform: translateX(4px);
}
.wp-block-pullquote,
.wp-block-quote {
    border-left-color: #d49e73 !important;
	font-size: 1.2rem;
	font-weight: 500;
	text-transform: none;
}

.question-block {
    border-left: 3px solid #d49e73;
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
	line-height: 1.25rem;
}
.single-post .post-navigation {
    margin-top: 3rem;
    padding: 1rem 0;
    border-top: 1px solid #d49e73;
}
.single-post .post-navigation div {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.single-post .post-navigation a {
    flex: 1;
    max-width: 48%;
	color:  #1B4F72;
}

