/*
Theme Name: Copeland Consulting
Theme URI: https://www.charliecopeland.com
Author: Charlie Copeland
Description: Custom minimal theme for Charlie Copeland Consulting - Vistage Chair practice
Version: 1.0
License: Private
Text Domain: copeland
*/

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --navy: #1a2332;
  --navy-light: #243044;
  --charcoal: #2d3748;
  --slate: #4a5568;
  --slate-light: #718096;
  --copper: #b8926a;
  --copper-light: #d4b896;
  --copper-dark: #96744f;
  --cream: #faf8f5;
  --white: #ffffff;
  --border: #e2ddd7;
  --bg-subtle: #f7f5f2;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;

  /* Spacing */
  --section-padding: 100px;
  --container-width: 1100px;
  --container-narrow: 800px;

  /* Transitions */
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--charcoal);
  background-color: var(--white);
}

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

a {
  color: var(--copper-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--copper);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 600;
}

h1 {
  font-size: 2.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-padding) 0;
}

.section--cream {
  background-color: var(--cream);
}

.section--navy {
  background-color: var(--navy);
  color: var(--white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section--navy .copper-line {
  background-color: var(--copper);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(26, 35, 50, 0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo img,
.site-logo svg {
  height: 45px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--copper);
  transition: width var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a:hover {
  color: var(--navy);
}

/* Header CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.5rem;
  background: var(--navy);
  color: var(--white) !important;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
}

.header-cta::after {
  display: none !important;
}

.header-cta:hover {
  background: var(--charcoal);
  color: var(--white) !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--copper {
  background: var(--copper);
  color: var(--white);
}

.btn--copper:hover {
  background: var(--copper-dark);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
}

.btn--white:hover {
  background: var(--cream);
  color: var(--navy);
}

.btn--small {
  padding: 0.625rem 1.5rem;
  font-size: 0.8125rem;
}

/* ===== DECORATIVE ELEMENTS ===== */
.copper-line {
  width: 60px;
  height: 2px;
  background: var(--copper);
  margin-bottom: 1.5rem;
}

.copper-line--center {
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.75rem;
}

/* ===== HERO ===== */
.hero {
  padding: 160px 0 var(--section-padding);
  background: var(--white);
}

.hero--home {
  display: flex;
  align-items: center;
  min-height: 85vh;
  padding-top: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 2.5rem;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  filter: grayscale(15%);
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--copper);
  z-index: -1;
}

/* Page heroes (non-home) */
.hero--page {
  padding: 140px 0 60px;
  background: var(--cream);
  text-align: center;
}

.hero--page h1 {
  margin-bottom: 0.5rem;
}

.hero--page .copper-line {
  margin: 1rem auto 0;
}

/* ===== VALUE PROP / HOW IT WORKS ===== */
.value-section {
  text-align: center;
}

.value-section .container--narrow p {
  font-size: 1.0625rem;
  color: var(--slate);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  border: 1px solid var(--border);
  text-align: left;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--copper-light);
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
}

.testimonial-card p {
  font-style: italic;
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.7;
  padding-top: 1.5rem;
}

.testimonial-author {
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  font-style: normal;
}

.testimonial-placeholder {
  padding: 3rem;
  border: 2px dashed var(--border);
  color: var(--slate-light);
  font-style: italic;
  margin-top: 2rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: var(--slate-light);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

.section--navy .cta-section p {
  color: rgba(255,255,255,0.7);
}

/* ===== GROUP PAGES ===== */
.group-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.group-content h3 {
  margin-top: 3rem;
}

.group-content h3:first-child {
  margin-top: 0;
}

.group-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--cream);
  border-left: 3px solid var(--copper);
}

.group-meta dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper-dark);
  margin-bottom: 0.25rem;
}

.group-meta dd {
  font-size: 0.9375rem;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.cta-pair {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* ===== ABOUT PAGE ===== */
.about-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.about-photo {
  float: right;
  width: 320px;
  margin: 0 0 2rem 3rem;
  position: relative;
}

.about-photo img {
  width: 100%;
  filter: grayscale(15%);
}

.about-photo::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--copper);
  z-index: -1;
}

.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--cream);
  border-left: 3px solid var(--copper);
}

.credential-item {
  font-size: 0.9375rem;
  color: var(--charcoal);
  padding-left: 1rem;
  position: relative;
}

.credential-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background: var(--copper);
  border-radius: 50%;
}

/* Entry points */
.entry-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.entry-card {
  padding: 2rem;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.entry-card:hover {
  border-color: var(--copper);
}

.entry-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.entry-card p {
  font-size: 0.9375rem;
  color: var(--slate);
  margin-bottom: 1.5rem;
}

/* ===== SERVICES PAGE ===== */
.services-grid {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.service-item {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

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

.service-number {
  font-family: var(--font-accent);
  font-size: 3rem;
  font-weight: 300;
  color: var(--copper-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-item p {
  color: var(--slate);
}

/* ===== INSIGHTS / BLOG ===== */
.insights-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--cream);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.post-card {
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.post-card:hover {
  border-color: var(--copper);
}

.post-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.post-card:hover .post-card-image img {
  transform: scale(1.03);
}

.post-card-content {
  padding: 1.5rem;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.post-card-category {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
}

.post-card-date {
  font-size: 0.8125rem;
  color: var(--slate-light);
}

.post-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.post-card h3 a {
  color: var(--navy);
}

.post-card h3 a:hover {
  color: var(--copper-dark);
}

.post-card-excerpt {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.6;
}

/* Single post */
.single-post-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.single-post-content h1 {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 1rem;
}

.post-meta-single {
  text-align: center;
  color: var(--slate-light);
  font-size: 0.875rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.single-post-content .post-body {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.single-post-content .post-body h2 {
  margin-top: 2.5rem;
}

.single-post-content .post-body h3 {
  margin-top: 2rem;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.calendly-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.calendly-card {
  padding: 2rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color var(--transition);
}

.calendly-card:hover {
  border-color: var(--copper);
}

.calendly-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.calendly-card p {
  font-size: 0.9375rem;
  color: var(--slate);
  margin-bottom: 1.5rem;
}

.contact-info {
  margin-top: 2rem;
}

.contact-info-item {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.contact-info-item strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper-dark);
  margin-bottom: 0.25rem;
}

/* Contact form */
.contact-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  margin-bottom: 0.375rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--charcoal);
  background: var(--white);
  margin-bottom: 1.25rem;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--copper);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.footer-brand .site-logo {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.25rem;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-contact p {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: rgba(255,255,255,0.6);
}

.footer-contact a:hover {
  color: var(--copper-light);
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color var(--transition);
}

.footer-linkedin:hover {
  color: var(--copper-light);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8125rem;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 70px;
  }

  h1 {
    font-size: 2.25rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .entry-points {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 50px;
  }

  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero--home {
    min-height: auto;
    padding-top: 120px;
  }

  .hero--page {
    padding-top: 120px;
  }

  /* Mobile nav */
  .main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle {
    display: block;
  }

  .about-photo {
    float: none;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 2rem;
  }

  .credentials {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .calendly-options {
    grid-template-columns: 1fr;
  }

  .group-meta {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
