/*
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())
     Palette: warm split-complementary — 206° base, 197° analogous, 27° accent
     Saturation corridor: 38-50% for structural blues, 55% for action colors */
  --background: 206 50% 15%;
  --foreground: 36 33% 94%;
  --card: 206 50% 18%;
  --primary: 206 80% 97%;
  --secondary: 197 55% 50%;
  --muted: 206 45% 22%;
  --muted-foreground: 206 20% 65%;
  --accent: 27 53% 64%;
  --icon-glow: 197 55% 62%;
  --border: 206 38% 25%;
  
  --font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 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
   ======================================== */

/* Scope container to non-template pages so it doesn't conflict with Tailwind's container.
   Target .site-content and .site-footer only — header has its own scoped container styles. */
body:not(.page-template-page-home-php):not(.page-template-page-advisory-services-php):not(.page-template-page-technical-services-php):not(.page-template-page-about-php) .site-content .container,
body:not(.page-template-page-home-php):not(.page-template-page-advisory-services-php):not(.page-template-page-technical-services-php):not(.page-template-page-about-php) .site-footer .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,
.page-template-page-about-php .site-content,
.page-template-page-contact-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,
.page-template-page-about-php,
.page-template-page-contact-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,
.page-template-page-about-php .site-content img,
.page-template-page-contact-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;
}

/* Generic Pages (About, Contact, Terms, DMCA, Privacy) */
.page-content {
  padding: 2rem 0 0 0;
  max-width: 48rem;
  margin: 0 auto;
  background-color: transparent;
}

.page-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 1rem;
}

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

.page-content .prose {
  color: hsl(var(--foreground));
}

.page-content .prose p,
.page-content .prose li {
  color: hsl(var(--foreground));
}

.page-content .prose h2,
.page-content .prose h3 {
  color: hsl(var(--primary));
}

.page-content .prose a {
  color: hsl(var(--secondary));
}

.page-content .prose a:hover {
  color: hsl(var(--accent));
}

/* About Page — prose-about for editor content */
.prose-about h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose-about h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose-about p {
  margin-bottom: 1.5rem;
}

.prose-about a {
  color: hsl(var(--secondary));
}

.prose-about a:hover {
  color: hsl(var(--accent));
}

/* ========================================
   Contact Form 7 Styling
   Scoped to contact template to beat Tailwind resets
   ======================================== */

.page-template-page-contact-php .wpcf7-form {
  max-width: none;
}

.page-template-page-contact-php .wpcf7-form p {
  margin-bottom: 1.25rem;
  color: hsl(var(--foreground));
}

.page-template-page-contact-php .wpcf7-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.page-template-page-contact-php .wpcf7-form .cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .page-template-page-contact-php .wpcf7-form .cf7-row {
    grid-template-columns: 1fr;
  }
}

.page-template-page-contact-php .wpcf7-form input[type="text"],
.page-template-page-contact-php .wpcf7-form input[type="email"],
.page-template-page-contact-php .wpcf7-form input[type="tel"],
.page-template-page-contact-php .wpcf7-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background)) !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: 0.375rem;
  transition: border-color 0.15s;
  font-family: inherit;
}

.page-template-page-contact-php .wpcf7-form input[type="text"]:focus,
.page-template-page-contact-php .wpcf7-form input[type="email"]:focus,
.page-template-page-contact-php .wpcf7-form input[type="tel"]:focus,
.page-template-page-contact-php .wpcf7-form textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

.page-template-page-contact-php .wpcf7-form textarea {
  min-height: 120px;
  max-height: 160px;
  resize: vertical;
}

.page-template-page-contact-php .wpcf7-form p {
  margin-bottom: 0.75rem;
}

.page-template-page-contact-php .wpcf7-form label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.page-template-page-contact-php .wpcf7-form input[type="submit"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 2rem !important;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--background));
  background-color: hsl(var(--foreground)) !important;
  border: none !important;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.page-template-page-contact-php .wpcf7-form input[type="submit"]:hover {
  background-color: hsl(var(--secondary)) !important;
  color: hsl(var(--foreground));
}

.page-template-page-contact-php .wpcf7-form .wpcf7-response-output {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.page-template-page-contact-php .wpcf7-form .wpcf7-not-valid-tip {
  color: hsl(0 84% 60%);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.page-content .prose blockquote {
  color: hsl(var(--foreground) / 0.8);
}

/* Single Blog 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:  hsl(206 60% 28%);
  margin-bottom: 1rem;
}

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

.single-post .post-meta {
  margin-bottom: 2rem;
	color: hsl(206 20% 32%);
}

/* Prose styles for post content */
.prose {
  color: hsl(206 60% 28%);
  line-height: 1.75;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
   color: hsl(206 60% 28%);
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
   color: hsl(206 60% 28%);
}

.prose p {
  margin-bottom: 1.25rem;
	color: hsl(206 20% 32%);
}

.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: hsl(206 20% 32%);
}

.prose blockquote {
  border-left: 4px solid hsl(var(--accent));
  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;
}

/* WordPress block layout — replaces dequeued global-styles */
.is-layout-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}

.is-layout-flex > * {
  margin: 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: hsl(var(--card));
    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: hsl(var(--accent));
}

.cta-text {
    
    color: hsl(var(--foreground) / 0.9);
    line-height:1.75rem;
	margin-bottom: 2rem;
	
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: hsl(var(--foreground));
    color: hsl(var(--background));
    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: hsl(var(--secondary));
    color: hsl(var(--foreground));
}

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

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

.question-block {
    border-left: 3px solid hsl(var(--accent));
    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 hsl(var(--accent));
}
.single-post .post-navigation div {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.single-post .post-navigation a {
    flex: 1;
    max-width: 48%;
	color:  hsl(206 60% 28%);
}

