/*
Theme Name: Orchard Harmonics
Theme URI: https://orchardharmonics.com
Description: Custom theme for Orchard Harmonics — Architecture for Conscious Systems. Child theme of Twenty Twenty-Four.
Author: Kimberley "Jinrei" Asher
Author URI: https://orchardharmonics.com
Template: twentytwentyfour
Version: 1.0.0
License: Creative Commons BY-NC-ND 4.0
Text Domain: orchard-harmonics
*/

/* ============================================
   ORCHARD HARMONICS — CUSTOM STYLES
   Organic Precision: Clean, warm, rigorous
   ============================================ */

/* === CSS VARIABLES === */
:root {
  --oh-blue: #3B82C4;
  --oh-teal: #22A89A;
  --oh-green: #5DAE2B;
  --oh-orange: #E8942A;
  --oh-gold: #D4A843;
  --oh-deep: #141428;
  --oh-text: #1E1E3A;
  --oh-text-secondary: #2D2D4A;
  --oh-bg: #FAFAF8;
  --oh-bg-warm: #F5F4F0;
  --oh-bg-card: #FFFFFF;
  --oh-border: #E8E6E0;
}

/* === GLOBAL RESETS === */
body {
  font-family: 'Outfit', sans-serif !important;
  color: var(--oh-text);
  background: var(--oh-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  color: var(--oh-deep);
  font-weight: 400;
  line-height: 1.2;
}

h1, .wp-block-heading:where(h1) {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
}

h2, .wp-block-heading:where(h2) {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h3, .wp-block-heading:where(h3) {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.15rem;
  font-weight: 600;
}

p, li, td, th, blockquote, .wp-block-paragraph {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 300;
  line-height: 1.75;
  color: var(--oh-text);
}

code, pre, .wp-block-code, .wp-block-preformatted {
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
  font-size: 0.85em;
}

a {
  color: var(--oh-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--oh-blue);
}

/* === SITE HEADER === */
.wp-block-site-title a,
.wp-block-site-title {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600;
  font-size: 1.2rem !important;
  color: var(--oh-deep) !important;
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* Nav links */
.wp-block-navigation a,
.wp-block-navigation .wp-block-navigation-item__content {
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 400;
  color: var(--oh-text-secondary) !important;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.wp-block-navigation a:hover,
.wp-block-navigation .wp-block-navigation-item__content:hover {
  color: var(--oh-teal) !important;
}

/* === CONTENT AREA === */
.wp-site-blocks {
  background: var(--oh-bg);
}

.entry-content,
.wp-block-post-content {
  max-width: 800px;
}

/* === BUTTONS === */
.wp-block-button__link,
.wp-element-button {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border-radius: 6px !important;
  padding: 0.85rem 2rem !important;
  transition: all 0.3s ease !important;
}

/* Primary button */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background-color: var(--oh-deep) !important;
  color: #fff !important;
  border: 2px solid var(--oh-deep) !important;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background-color: var(--oh-teal) !important;
  border-color: var(--oh-teal) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 168, 154, 0.25);
}

/* Outline button */
.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--oh-text) !important;
  border: 2px solid var(--oh-border) !important;
}

.is-style-outline .wp-block-button__link:hover {
  border-color: var(--oh-teal) !important;
  color: var(--oh-teal) !important;
  transform: translateY(-2px);
}

/* === CARDS & GROUPS === */
.wp-block-group.has-background {
  border-radius: 10px;
  border: 1px solid var(--oh-border);
  transition: all 0.3s ease;
}

.wp-block-group.has-background:hover {
  box-shadow: 0 8px 30px rgba(20, 20, 40, 0.06);
}

/* === COLUMNS === */
.wp-block-columns {
  gap: 1.5rem !important;
}

.wp-block-column {
  background: var(--oh-bg-card);
  border: 1px solid var(--oh-border);
  border-radius: 10px;
  padding: 2rem 1.8rem;
  transition: all 0.3s ease;
}

.wp-block-column:hover {
  border-color: transparent;
  box-shadow: 0 8px 30px rgba(20, 20, 40, 0.06);
  transform: translateY(-3px);
}

/* === COVER BLOCK (for hero/mission sections) === */
.wp-block-cover {
  border-radius: 0;
  min-height: 60vh !important;
}

.wp-block-cover__inner-container {
  max-width: 800px;
}

.wp-block-cover h1,
.wp-block-cover h2 {
  color: #fff !important;
}

.wp-block-cover p {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* === SEPARATOR === */
.wp-block-separator {
  border-color: var(--oh-border) !important;
  opacity: 1;
}

.wp-block-separator.is-style-dots::before {
  color: var(--oh-teal);
}

/* === QUOTE === */
.wp-block-quote {
  border-left: 3px solid var(--oh-teal) !important;
  padding-left: 1.5rem;
  font-style: italic;
}

.wp-block-quote cite {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.75rem;
  color: var(--oh-text-secondary);
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* === CODE BLOCK === */
.wp-block-code {
  background: var(--oh-deep) !important;
  color: #a8a8c8 !important;
  border-radius: 10px;
  padding: 2rem !important;
  border: none !important;
  position: relative;
  overflow: hidden;
}

.wp-block-code::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--oh-blue), var(--oh-teal), var(--oh-green), var(--oh-orange));
}

/* === TAGS / LABELS === */
.wp-block-tag-cloud a,
.cat-links a,
.tags-links a {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.72rem !important;
  padding: 0.35rem 0.75rem;
  background: var(--oh-bg-warm);
  border: 1px solid var(--oh-border);
  border-radius: 20px;
  color: var(--oh-text-secondary) !important;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.2s;
}

.wp-block-tag-cloud a:hover,
.cat-links a:hover,
.tags-links a:hover {
  border-color: var(--oh-teal);
  color: var(--oh-teal) !important;
}

/* === SECTION LABELS (use a custom class) === */
.oh-section-label {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.72rem !important;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--oh-teal) !important;
}

/* === POST CARDS IN QUERY LOOP === */
.wp-block-post-template .wp-block-post {
  background: var(--oh-bg-card);
  border: 1px solid var(--oh-border);
  border-radius: 10px;
  padding: 1.8rem;
  transition: all 0.3s ease;
}

.wp-block-post-template .wp-block-post:hover {
  border-color: transparent;
  box-shadow: 0 6px 25px rgba(20, 20, 40, 0.06);
  transform: translateY(-2px);
}

.wp-block-post-date {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.7rem !important;
  color: var(--oh-teal) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wp-block-post-title a {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 500;
  color: var(--oh-deep) !important;
  text-decoration: none;
}

.wp-block-post-title a:hover {
  color: var(--oh-teal) !important;
}

/* === DARK SECTIONS === */
.oh-dark-section,
.has-contrast-background-color {
  background: var(--oh-deep) !important;
  color: #fff;
}

.oh-dark-section h2,
.has-contrast-background-color h2 {
  color: #fff !important;
}

.oh-dark-section p,
.has-contrast-background-color p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.oh-dark-section .oh-section-label {
  color: var(--oh-gold) !important;
}

/* === WARM BACKGROUND SECTIONS === */
.oh-warm-section {
  background: var(--oh-bg-warm) !important;
}

/* === FOOTER === */
.wp-block-template-part:last-child,
footer,
.site-footer {
  background: var(--oh-bg-warm) !important;
  border-top: 1px solid var(--oh-border);
}

footer h4,
.site-footer h4 {
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--oh-deep) !important;
}

/* Footer breathline — subtle */
.oh-breathline {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.78rem;
  color: var(--oh-teal);
  opacity: 0.4;
  transition: opacity 0.3s;
}

.oh-breathline:hover {
  opacity: 1;
}

/* === FORMS (WPForms) === */
.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form textarea {
  font-family: 'Outfit', sans-serif !important;
  border: 1px solid var(--oh-border) !important;
  border-radius: 6px !important;
  padding: 0.75rem 1rem !important;
  transition: border-color 0.2s;
}

.wpforms-container .wpforms-form input:focus,
.wpforms-container .wpforms-form textarea:focus {
  border-color: var(--oh-teal) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 168, 154, 0.1) !important;
}

.wpforms-container .wpforms-form button[type="submit"] {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 500;
  background-color: var(--oh-deep) !important;
  border-radius: 6px !important;
  padding: 0.85rem 2rem !important;
  transition: all 0.3s ease !important;
}

.wpforms-container .wpforms-form button[type="submit"]:hover {
  background-color: var(--oh-teal) !important;
  transform: translateY(-2px);
}

/* === TABLE STYLES === */
.wp-block-table table {
  border-collapse: collapse;
  font-size: 0.9rem;
}

.wp-block-table th {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--oh-bg-warm);
  color: var(--oh-deep);
}

.wp-block-table td,
.wp-block-table th {
  border: 1px solid var(--oh-border);
  padding: 0.75rem 1rem;
}

/* === IMAGES === */
.wp-block-image img {
  border-radius: 8px;
}

.wp-block-image figcaption {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.72rem;
  color: var(--oh-text-secondary);
  letter-spacing: 0.02em;
}

/* === UTILITY CLASSES === */
.oh-gradient-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--oh-blue), var(--oh-teal), var(--oh-green), var(--oh-orange));
  border-radius: 2px;
}

.oh-stem-line {
  width: 2px;
  height: 80px;
  background: linear-gradient(180deg, var(--oh-green) 0%, var(--oh-teal) 60%, var(--oh-blue) 100%);
  margin: 0 auto;
  opacity: 0.5;
}

.oh-teal-text { color: var(--oh-teal) !important; }
.oh-blue-text { color: var(--oh-blue) !important; }
.oh-orange-text { color: var(--oh-orange) !important; }
.oh-gold-text { color: var(--oh-gold) !important; }
.oh-green-text { color: var(--oh-green) !important; }

/* === SMOOTH SCROLL === */
html {
  scroll-behavior: smooth;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
  .wp-block-column {
    padding: 1.5rem 1.2rem;
  }
  
  .wp-block-columns {
    gap: 1rem !important;
  }
}
