/*
Theme Name: Robert Moore IT Director
Theme URI: https://robertmoore.com
Author: Robert Moore
Author URI: https://robertmoore.com
Description: Personal resume/portfolio theme for Robert Moore, IT Director.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: robert-moore
Tags: one-page, resume, portfolio, professional
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --navy: #0d1b2a;
  --navy-mid: #1a2e45;
  --steel: #2e4a6b;
  --accent: #c8a96e;
  --accent-light: #e8d5a8;
  --off-white: #f8f5ef;
  --mid-gray: #8a9aaa;
  --light-gray: #e4e8ec;
  --text-main: #1c2b3a;
  --text-muted: #5a6e80;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.7;
}

/* =============================================
   GOOGLE FONTS loaded via functions.php
   ============================================= */

/* =============================================
   NAVIGATION
   ============================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--navy);
  z-index: 999;
  height: 60px;
  border-bottom: 1px solid rgba(200,169,110,0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
}

.site-branding .site-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-decoration: none;
}

#primary-navigation ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

#primary-navigation a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
}

#primary-navigation a:hover,
#primary-navigation a:focus { color: var(--accent); }

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  background: var(--navy);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -120px;
  width: 600px; height: 600px;
  border: 1px solid rgba(200,169,110,0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 40px; right: -60px;
  width: 400px; height: 400px;
  border: 1px solid rgba(200,169,110,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 3rem;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-section h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
  font-style: italic;
}

.hero-summary {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-contact {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}

.contact-dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent);
  color: var(--navy);
  padding: 12px 28px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}

.btn-primary:hover,
.btn-primary:focus { background: var(--accent-light); color: var(--navy); }

.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.6);
  padding: 11px 28px;
  border: 1px solid rgba(255,255,255,0.2);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}

.btn-outline:hover,
.btn-outline:focus { border-color: var(--accent); color: var(--accent); }

/* =============================================
   STATS STRIP
   ============================================= */
.stats-strip {
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(200,169,110,0.15);
}

.stats-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 2rem 0;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

/* =============================================
   MAIN CONTENT LAYOUT
   ============================================= */
.main-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--light-gray);
}

.section-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* =============================================
   EXPERIENCE
   ============================================= */
.experience-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.experience-item:last-child { border-bottom: none; }

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.3rem;
  gap: 1rem;
}

.exp-role {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
}

.exp-date {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
  padding-top: 4px;
  text-transform: uppercase;
}

.exp-company {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--steel);
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}

.exp-context {
  font-size: 0.83rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.exp-bullets li {
  font-size: 0.88rem;
  color: var(--text-main);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.65;
}

.exp-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 5px; height: 1px;
  background: var(--accent);
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: sticky;
  top: 80px;
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--light-gray);
  padding: 1.5rem;
}

.sidebar-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--light-gray);
}

/* =============================================
   COMPETENCY TAGS
   ============================================= */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  color: var(--text-muted);
}

.tag.featured {
  background: rgba(200,169,110,0.1);
  border-color: rgba(200,169,110,0.4);
  color: #8a6a30;
}

/* =============================================
   TECH STACK
   ============================================= */
.tech-group { margin-bottom: 1rem; }
.tech-group:last-child { margin-bottom: 0; }

.tech-group-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-gray);
  font-weight: 500;
  margin-bottom: 6px;
}

.tech-group-items {
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* =============================================
   EDUCATION
   ============================================= */
.edu-item { margin-bottom: 1rem; }
.edu-item:last-child { margin-bottom: 0; }

.edu-degree {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 2px;
}

.edu-school {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1px;
}

.edu-year {
  font-size: 0.73rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.edu-inprogress {
  background: rgba(200,169,110,0.07);
  padding: 10px;
  margin-top: 12px;
}

.edu-inprogress .edu-degree {
  font-size: 0.82rem;
  color: #8a6a30;
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--navy);
  padding: 2.5rem 3rem;
  text-align: center;
}

#site-footer p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

#site-footer a {
  color: var(--accent);
  text-decoration: none;
}

#site-footer a:hover { text-decoration: underline; }

/* =============================================
   WORDPRESS DEFAULT CLASSES
   ============================================= */
.wp-block-image img { max-width: 100%; height: auto; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute;
  height: 1px; width: 1px;
  overflow: hidden;
  word-wrap: normal;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  #site-header { padding: 0 1.5rem; }
  #primary-navigation { display: none; }
  .hero-section { padding: 100px 0 60px; }
  .hero-inner { padding: 0 1.5rem; }
  .hero-section h1 { font-size: 3rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); padding: 0 1.5rem; }
  .main-content {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem;
    gap: 2.5rem;
  }
  .sidebar { position: static; }
  #site-footer { padding: 2rem 1.5rem; }
}

/* =============================================
   BLOG INDEX PAGE
   ============================================= */
.blog-hero {
  background: var(--navy);
  padding: 100px 0 60px;
  text-align: center;
}
.blog-hero-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 3rem;
}
.blog-hero .hero-eyebrow { margin-bottom: 1rem; }
.blog-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}
.blog-hero p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
}

.blog-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

.blog-grid { display: flex; flex-direction: column; gap: 0; }

.post-card {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--light-gray);
}
.post-card:first-child { padding-top: 0; }
.post-card:last-child { border-bottom: none; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}
.post-category {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: #8a6a30;
  background: rgba(200,169,110,0.1);
  border: 1px solid rgba(200,169,110,0.35);
  padding: 3px 9px;
}
.post-date {
  font-size: 0.75rem;
  color: var(--mid-gray);
  letter-spacing: 0.04em;
}
.post-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.post-card h2 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.post-card h2 a:hover { color: var(--steel); }

.post-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.read-more {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,169,110,0.4);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}
.read-more:hover { border-color: var(--accent); }

/* pagination */
.blog-pagination {
  display: flex;
  gap: 8px;
  padding-top: 2rem;
}
.blog-pagination a,
.blog-pagination span {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--light-gray);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
}
.blog-pagination a:hover { border-color: var(--accent); color: var(--accent); }
.blog-pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* =============================================
   BLOG SIDEBAR WIDGETS
   ============================================= */
.blog-sidebar { display: flex; flex-direction: column; gap: 2rem; position: sticky; top: 80px; }

.widget-card {
  background: #fff;
  border: 1px solid var(--light-gray);
  padding: 1.5rem;
}
.widget-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--light-gray);
}
.widget-card ul { list-style: none; }
.widget-card ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.84rem;
}
.widget-card ul li:last-child { border-bottom: none; }
.widget-card ul li a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s;
}
.widget-card ul li a:hover { color: var(--steel); }
.widget-cat-count {
  float: right;
  font-size: 0.72rem;
  color: var(--mid-gray);
  font-weight: 500;
}
.about-widget-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.about-widget-link {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,169,110,0.4);
}

/* =============================================
   SINGLE BLOG POST
   ============================================= */
.single-post-hero {
  background: var(--navy);
  padding: 100px 0 60px;
}
.single-post-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 3rem;
}
.single-post-hero .post-meta { margin-bottom: 1.25rem; }
.single-post-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.75rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.post-author-line {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}
.post-author-line strong { color: rgba(255,255,255,0.65); font-weight: 500; }

.single-post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 3rem 5rem;
}

/* Post content typography */
.post-content { font-size: 1rem; line-height: 1.85; color: var(--text-main); }
.post-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2.5rem 0 0.75rem;
}
.post-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2rem 0 0.5rem;
}
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol {
  margin: 0 0 1.25rem 1.5rem;
}
.post-content li { margin-bottom: 0.4rem; font-size: 0.95rem; }
.post-content strong { font-weight: 500; color: var(--navy); }
.post-content a { color: var(--steel); }
.post-content a:hover { color: var(--navy); }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--steel);
}
.post-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  background: var(--light-gray);
  padding: 2px 6px;
  color: var(--navy);
}
.post-content pre {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.82rem;
  line-height: 1.7;
}
.post-content pre code { background: none; padding: 0; color: inherit; }

/* post tags */
.post-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.post-tags-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  font-weight: 500;
  margin-right: 4px;
}

/* back link */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--mid-gray);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}
.back-to-blog:hover { color: var(--navy); }
.back-arrow { font-size: 1rem; line-height: 1; }

/* =============================================
   RESPONSIVE — BLOG
   ============================================= */
@media (max-width: 768px) {
  .blog-container { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; gap: 2.5rem; }
  .blog-sidebar { position: static; }
  .blog-hero { padding: 90px 0 50px; }
  .blog-hero-inner { padding: 0 1.5rem; }
  .blog-hero h1 { font-size: 2.2rem; }
  .single-post-hero { padding: 90px 0 50px; }
  .single-post-hero-inner { padding: 0 1.5rem; }
  .single-post-hero h1 { font-size: 2rem; }
  .single-post-body { padding: 2.5rem 1.5rem 4rem; }
}
