/*
Theme Name: WDCSi
Theme URI: https://winslowdelaney.com
Author: Winslow Delaney
Author URI: https://winslowdelaney.com
Description: Custom Gutenberg block theme with filterable portfolio, case study CPT, and AJAX contact modal. Backwards-compatible with PHP 7.4+ and forward-ready for PHP 8.x.
Version: 1.0.1
Requires at least: 5.8
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: wdcsi
*/

:root {
  --wp--preset--color--primary: #0f172a;
  --wp--preset--color--secondary: #2563eb;
  --wp--preset--color--accent: #38bdf8;
  --wp--preset--color--neutral-light: #f8fafc;
  --wp--preset--color--text-dark: #1e293b;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--wp--preset--color--text-dark);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.site-header .logo-container img {
  max-height: 40px;
  width: auto;
}

.site-header nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.site-header nav a {
  text-decoration: none;
  color: var(--wp--preset--color--text-dark);
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-header nav a:hover {
  color: var(--wp--preset--color--secondary);
}

.hero-headline {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-headline h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--wp--preset--color--primary);
}

.hero-headline p {
  font-size: 1.25rem;
  color: #64748b;
  margin-top: 1rem;
}

.portfolio-filter-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.portfolio-filter-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.portfolio-filter-btn.active,
.portfolio-filter-btn:hover {
  background: var(--wp--preset--color--primary);
  color: #ffffff;
  border-color: var(--wp--preset--color--primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 0 2rem 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.portfolio-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.portfolio-card-body {
  padding: 1.5rem;
}

.portfolio-card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.35rem;
}

.portfolio-card-title a {
  color: var(--wp--preset--color--primary);
  text-decoration: none;
}

.contact-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.contact-modal-content {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.contact-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
}

.contact-cta-section {
  background: var(--wp--preset--color--neutral-light);
  padding: 4rem 2rem;
  text-align: center;
}
