/*
Theme Name: JupiterOnEarth
Theme URI: https://jupiteronearth.com
Author: KJ
Author URI: https://jupiteronearth.com
Description: A custom portfolio theme for JupiterOnEarth — art, photography, graphic design, and brand work by KJ.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jupiteronearth
*/

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

:root {
  --warm: #f5efe6;
  --cream: #faf8f4;
  --ink: #2c2c2c;
  --gold: #c9943e;
  --gold-light: #e8d5a8;
  --terracotta: #c4705a;
  --sage: #7a8b6f;
  --slate: #5a6872;
  --muted: #9a958e;
  --paper: #ffffff;
  --mono: 'Courier New', 'Courier', monospace;
  --sans: 'Segoe UI', 'Helvetica Neue', sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover {
  color: var(--terracotta);
}

/* ============================================
   LAYOUT
   ============================================ */
.joe-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.joe-container--wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.joe-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gold-light);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
}

.joe-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 3rem;
}
.joe-header-centered {
  justify-content: center;
}

.joe-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: center;
}
.joe-logo em {
  font-style: italic;
  color: var(--terracotta);
  letter-spacing: 0.02em;
}
.joe-logo:hover {
  color: var(--ink);
}

.joe-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.joe-nav-toggle {
  display: none;
}

.joe-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.25s ease;
  padding: 0.25rem 0;
  position: relative;
}
.joe-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.joe-nav a:hover,
.joe-nav .current-menu-item a,
.joe-nav .current_page_item a {
  color: var(--gold);
}
.joe-nav a:hover::after,
.joe-nav .current-menu-item a::after,
.joe-nav .current_page_item a::after {
  width: 100%;
}

/* Mobile nav toggle */
.joe-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

/* ============================================
   HERO (front page)
   ============================================ */
.joe-hero {
  text-align: center;
  padding: 5rem 1rem 4rem;
  position: relative;
}
.joe-hero::after {
  content: '✦';
  display: block;
  font-size: 1.2rem;
  color: var(--gold);
  margin-top: 2.5rem;
  letter-spacing: 0.8rem;
}
.joe-hero-brand {
  font-family: var(--serif);
  font-size: 3.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.3rem;
  line-height: 1.15;
}
.joe-hero-brand em {
  font-style: italic;
  color: var(--terracotta);
  letter-spacing: 0.02em;
}
.joe-hero .joe-subtitle {
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.joe-hero .joe-intro {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.08rem;
  color: #555;
  line-height: 1.8;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.joe-section {
  margin-bottom: 4rem;
}
.joe-section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.joe-section-head h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  white-space: nowrap;
}
.joe-section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-light);
}

/* ============================================
   PORTFOLIO GALLERY — masonry grid
   ============================================ */
.joe-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}
.joe-pill {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border: 1.5px solid var(--gold-light);
  border-radius: 50px;
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  line-height: 1.4;
  text-decoration: none;
}
.joe-pill:hover, .joe-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.joe-gallery {
  columns: 3;
  column-gap: 1.2rem;
}
.joe-gallery-item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: #eee;
}
.joe-gallery-item a {
  display: block;
  text-decoration: none;
  color: #fff;
}
.joe-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.45s ease, filter 0.45s ease;
}
.joe-gallery-item:hover img {
  transform: scale(1.03);
  filter: brightness(0.85);
}
.joe-gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.2rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.joe-gallery-item:hover .joe-gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}
.joe-gallery-overlay .joe-g-title {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 0.15rem;
}
.joe-gallery-overlay .joe-g-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

/* ============================================
   SERVICES / COMMISSIONS
   ============================================ */
.joe-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.joe-service-card {
  background: var(--paper);
  border: 1px solid #e8e4dd;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.joe-service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(201,148,62,0.1);
}
.joe-service-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  display: block;
}
.joe-service-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.joe-service-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.65;
}
.joe-service-card .joe-starts-at {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* ============================================
   NOTABLE WORK / HIGHLIGHTS
   ============================================ */
.joe-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid #e8e4dd;
}
.joe-highlight.reverse {
  direction: rtl;
}
.joe-highlight.reverse > * {
  direction: ltr;
}
.joe-highlight-img img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}
.joe-highlight-text h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0.3rem;
}
.joe-highlight-text .joe-h-client {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.joe-highlight-text p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.7;
}
.joe-h-tags {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.joe-h-tags span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
  background: rgba(122,139,111,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

/* ============================================
   EXPERIENCE
   ============================================ */
.joe-exp-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.joe-exp-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper);
  border-left: 3px solid var(--gold-light);
  border-radius: 0 6px 6px 0;
  transition: border-color 0.3s ease;
}
.joe-exp-item:hover { border-left-color: var(--gold); }
.joe-exp-year {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 0.15rem;
}
.joe-exp-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.joe-exp-info p {
  font-size: 0.88rem;
  color: #666;
}

/* ============================================
   ABOUT BLOCK
   ============================================ */
.joe-about-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  background: var(--warm);
  border-radius: 10px;
}
.joe-about-block img {
  width: 100%;
  border-radius: 6px;
}
.joe-about-text h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0.8rem;
}
.joe-about-text p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.8rem;
  line-height: 1.75;
}

/* ============================================
   CTA / CONTACT BLOCK
   ============================================ */
.joe-cta {
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 10px;
  margin: 2rem 0;
}
.joe-cta h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0.5rem;
}
.joe-cta p {
  color: #aaa;
  max-width: 480px;
  margin: 0 auto 1.8rem;
  font-size: 0.95rem;
}
.joe-cta-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  background: none;
  border: 1.5px solid var(--gold);
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  font-family: inherit;
  margin-bottom: 1rem;
}
.joe-cta-toggle:hover {
  background: var(--gold);
  color: #fff;
}
.joe-cta-chevron {
  transition: transform 0.3s ease;
}
.joe-cta-toggle[aria-expanded="true"] .joe-cta-chevron {
  transform: rotate(180deg);
}
.joe-cta-links-hidden {
  display: none;
}
.joe-cta-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.joe-cta-links a {
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  border: 1.5px solid var(--gold);
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  transition: background 0.3s ease, color 0.3s ease;
}
.joe-cta-links a:hover {
  background: var(--gold);
  color: #fff;
}

/* ============================================
   SINGLE PORTFOLIO PIECE
   ============================================ */
.joe-single-portfolio {
  padding: 3rem 0 4rem;
}
.joe-single-hero-img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 2.5rem;
  background: var(--warm);
}
.joe-single-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.joe-single-meta-item {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.joe-single-meta-label {
  color: var(--muted);
  margin-right: 0.4rem;
}
.joe-single-meta-value {
  color: var(--gold);
  font-weight: 600;
}
.joe-single-title {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.joe-single-content {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.85;
  max-width: 720px;
}
.joe-single-content p {
  margin-bottom: 1.2rem;
}
.joe-single-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gold-light);
}
.joe-single-nav-arrows {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.joe-single-nav-prev,
.joe-single-nav-next {
  max-width: 45%;
  min-width: 0;
}
.joe-single-nav-next {
  text-align: right;
  margin-left: auto;
}
.joe-single-nav-arrows a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.joe-single-nav-arrows a:hover {
  color: var(--gold);
}
.joe-nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
  display: inline-block;
  vertical-align: middle;
}
.joe-nav-label-short {
  display: none;
}
.joe-nav-arrow {
  flex-shrink: 0;
}
.joe-single-nav-all {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(201,148,62,0.15);
}
.joe-single-nav-all a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
}
.joe-single-nav-all a:hover {
  color: var(--gold);
}

@media (max-width: 600px) {
  .joe-nav-label { display: none; }
  .joe-nav-label-short { display: inline; }
}

/* ============================================
   FOOTER
   ============================================ */
.joe-footer {
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  border-top: 1px solid var(--gold-light);
  margin-top: 2rem;
}
.joe-footer span {
  color: var(--terracotta);
}

/* ============================================
   PAGE CONTENT (generic WP content)
   ============================================ */
.joe-page-content {
  padding: 3rem 0 4rem;
}
.joe-page-title {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 2rem;
  text-align: center;
}
.joe-page-body {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.85;
  max-width: 720px;
  margin: 0 auto;
}
.joe-page-body p {
  margin-bottom: 1.2rem;
}
.joe-page-body h2, .joe-page-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  margin: 2rem 0 0.8rem;
}
.joe-page-body h2 { font-size: 1.5rem; }
.joe-page-body h3 { font-size: 1.25rem; }
.joe-page-body ul, .joe-page-body ol {
  margin: 0 0 1.2rem 1.5rem;
}
.joe-page-body img {
  border-radius: 6px;
  margin: 1.5rem 0;
}

/* ============================================
   WP ADMIN BAR FIX
   ============================================ */
body.admin-bar .joe-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .joe-header {
    top: 46px;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .joe-hero-brand { font-size: 2.4rem; }
  .joe-gallery { columns: 2; }
  .joe-highlight { grid-template-columns: 1fr; }
  .joe-highlight.reverse { direction: ltr; }
  .joe-about-block { grid-template-columns: 1fr; text-align: center; }
  .joe-exp-item { grid-template-columns: 1fr; gap: 0.3rem; }
  .joe-single-title { font-size: 1.8rem; }

  .joe-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .joe-section-head h2 {
    white-space: normal;
    font-size: 1.4rem;
  }
  .joe-section-head::after {
    width: 100%;
  }

  .joe-nav { display: none; }
  .joe-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gold-light);
    gap: 0.8rem;
  }
  .joe-nav-toggle { display: flex; }
}

@media (max-width: 600px) {
  .joe-header {
    position: relative;
  }
  .joe-header-inner {
    align-items: center;
  }
  .joe-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
}

@media (max-width: 480px) {
  .joe-gallery { columns: 1; }
  .joe-hero-brand { font-size: 1.8rem; }
  .joe-hero { padding: 3rem 0.5rem 2rem; }
}
