/*
Theme Name: Judas Hats Atelier
Theme URI: https://judashats.com
Author: JUDAS HATS
Description: Tema escaparate Dark Western / Artisanal para JUDAS HATS.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: judas-hats-atelier
*/

:root {
  --jh-ink: #11110f;
  --jh-ink-soft: #1c1a17;
  --jh-cream: #f0e7d8;
  --jh-bone: #d9cbb8;
  --jh-muted: #aa9b88;
  --jh-leather: #704b35;
  --jh-red: #8b2226;
  --jh-red-light: #bd4548;
  --jh-line: rgba(217, 203, 184, .22);
  --jh-serif: Georgia, "Times New Roman", serif;
  --jh-sans: "Arial", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--jh-cream);
  background: var(--jh-ink);
  font-family: var(--jh-sans);
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.jh-shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.jh-skip-link { position: absolute; left: -9999px; top: 1rem; z-index: 1000; padding: .75rem 1rem; background: var(--jh-cream); color: var(--jh-ink); }
.jh-skip-link:focus { left: 1rem; }

.jh-header { position: relative; z-index: 10; background: rgba(17,17,15,.96); border-top: 4px solid var(--jh-red); }
.jh-header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--jh-line); }
.jh-brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.jh-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--jh-red-light); border-radius: 50%; color: var(--jh-red-light); font-family: var(--jh-serif); font-size: 23px; line-height: 1; }
.jh-brand-copy { display: grid; line-height: 1.1; }
.jh-brand-name { font-size: 18px; font-weight: 700; letter-spacing: .24em; }
.jh-brand-tag { margin-top: 6px; color: var(--jh-muted); font-size: 9px; letter-spacing: .25em; text-transform: uppercase; }
.jh-brand .custom-logo { width: auto; max-height: 58px; }
.jh-brand:has(.custom-logo) .jh-brand-fallback { display: none; }
.jh-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 42px); }
.jh-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 3vw, 42px); padding: 0; margin: 0; list-style: none; }
.jh-nav a { position: relative; padding: 12px 0; color: var(--jh-bone); text-decoration: none; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.jh-nav a::after { position: absolute; right: 100%; bottom: 3px; left: 0; height: 2px; background: var(--jh-red-light); content: ""; transition: right .2s ease; }
.jh-nav a:hover::after, .jh-nav a:focus-visible::after { right: 0; }

.jh-hero { min-height: 690px; display: grid; grid-template-columns: minmax(0, .95fr) minmax(370px, 1fr); align-items: center; gap: 7%; padding-block: 72px 82px; }
.jh-eyebrow { margin: 0 0 28px; color: var(--jh-red-light); font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.jh-hero h1 { max-width: 660px; margin: 0; color: var(--jh-cream); font-family: var(--jh-serif); font-size: clamp(54px, 6.1vw, 88px); font-weight: 400; letter-spacing: -.04em; line-height: .98; }
.jh-hero h1 em { color: var(--jh-bone); font-weight: 400; }
.jh-rule { width: 62px; height: 3px; margin: 34px 0 24px; background: var(--jh-red); }
.jh-lead { max-width: 500px; margin: 0; color: var(--jh-bone); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.75; }
.jh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 36px; }
.jh-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; background: var(--jh-red); color: #fff8ee; text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: background .2s ease, transform .2s ease; }
.jh-button:hover, .jh-button:focus-visible { background: #a52d31; transform: translateY(-2px); }
.jh-text-link { color: var(--jh-cream); text-decoration-color: var(--jh-muted); text-underline-offset: 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.jh-hero-art { position: relative; min-height: 520px; overflow: hidden; border: 1px solid rgba(217,203,184,.26); background: #2b241d; }
.jh-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jh-hero-art::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(12,12,11,.8)); content: ""; }
.jh-hero-caption { position: absolute; z-index: 1; right: 28px; bottom: 26px; left: 28px; display: flex; justify-content: space-between; align-items: end; gap: 20px; color: #fff4e4; font-size: 10px; letter-spacing: .19em; text-transform: uppercase; }
.jh-hero-caption span:last-child { color: #dfcbb3; text-align: right; }
.jh-image-note { position: absolute; z-index: 2; top: 18px; right: 18px; padding: 7px 10px; background: rgba(17,17,15,.76); color: var(--jh-cream); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }

.jh-pillars { border-block: 1px solid var(--jh-line); background: #181714; }
.jh-pillars-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-block: 30px; }
.jh-pillar { padding-left: 20px; border-left: 2px solid var(--jh-red); }
.jh-pillar strong { display: block; margin-bottom: 3px; color: var(--jh-muted); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.jh-pillar span { color: var(--jh-cream); font-family: var(--jh-serif); font-size: 18px; }

.jh-section { padding-block: clamp(72px, 10vw, 132px); }
.jh-section-heading { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.jh-section-heading .jh-eyebrow { margin-bottom: 14px; }
.jh-section-heading h2 { margin: 0; color: var(--jh-cream); font-family: var(--jh-serif); font-size: clamp(38px, 4.7vw, 62px); font-weight: 400; letter-spacing: -.025em; line-height: 1.08; }
.jh-section-heading p { max-width: 590px; margin: 18px auto 0; color: var(--jh-muted); }
.jh-gallery-content { max-width: 1080px; margin-inline: auto; }
.jh-gallery-content:empty { display: none; }
.jh-gallery-content .wp-block-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.jh-gallery-content .wp-block-image {
  margin: 0;
  height: auto !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
}
.jh-gallery-content img {
  width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  filter: saturate(.8);
  transition: filter .25s ease, transform .35s ease;
}
.jh-gallery-content figure:hover img { filter: saturate(1); transform: scale(1.015); }
.jh-gallery-link { margin-top: 32px; text-align: center; }
.jh-workshop { display: grid; grid-template-columns: .7fr 1fr; gap: 9%; align-items: center; background: #191714; }
.jh-workshop .jh-section-heading { margin: 0; text-align: left; }
.jh-workshop-copy { max-width: 610px; color: var(--jh-bone); font-size: 17px; }
.jh-workshop-copy p { margin-top: 0; }
.jh-workshop-copy .jh-button { margin-top: 10px; }
.jh-contact { position: relative; overflow: hidden; background: #261b19; }
.jh-contact::before { position: absolute; top: -180px; right: -80px; width: 430px; height: 430px; border: 1px solid rgba(189,69,72,.25); border-radius: 50%; content: ""; }
.jh-contact-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.jh-contact h2 { max-width: 680px; margin: 0; font-family: var(--jh-serif); font-size: clamp(40px, 5vw, 66px); font-weight: 400; line-height: 1.05; }
.jh-contact p { color: var(--jh-bone); }
.jh-contact-email { display: inline-block; color: var(--jh-cream); font-size: clamp(18px, 2.2vw, 28px); text-decoration-color: var(--jh-red-light); text-underline-offset: 7px; }
.jh-contact-details { display: grid; justify-items: end; gap: 20px; }
.jh-social-links { display: flex; gap: 18px; color: var(--jh-bone); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.jh-social-links a { text-decoration-color: var(--jh-red-light); text-underline-offset: 5px; }

.jh-page { min-height: 60vh; padding-block: 90px 120px; }
.jh-page h1, .jh-page h2, .jh-page h3 { font-family: var(--jh-serif); font-weight: 400; line-height: 1.1; }
.jh-page h1 { font-size: clamp(42px, 6vw, 76px); }
.jh-page .entry-content { max-width: 850px; color: var(--jh-bone); }
.jh-page .entry-content a { color: #e7b6a7; }
.jh-page .entry-content img { height: auto; }
.jh-footer { padding-block: 26px; border-top: 1px solid var(--jh-line); background: #10100e; color: var(--jh-muted); font-size: 11px; }
.jh-footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.jh-footer a { color: var(--jh-bone); text-decoration: none; }
.jh-footer a:hover { color: #fff; }
.jh-empty-gallery { padding: 28px; border: 1px dashed var(--jh-line); color: var(--jh-muted); text-align: center; }

body.jh-shop-hidden .woocommerce-message,
body.jh-shop-hidden .woocommerce-info { display: none; }
.woocommerce, .woocommerce-page { color: var(--jh-cream); }

@media (max-width: 900px) {
  .jh-header-inner { min-height: 82px; }
  .jh-nav, .jh-nav ul { gap: 16px; }
  .jh-nav a { font-size: 10px; }
  .jh-hero { min-height: auto; grid-template-columns: 1fr 1fr; gap: 5%; padding-block: 60px; }
  .jh-hero-art { min-height: 440px; }
  .jh-workshop { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .jh-shell { width: min(100% - 32px, 500px); }
  .jh-header-inner { align-items: flex-start; flex-direction: column; gap: 16px; padding-block: 20px; }
  .jh-nav, .jh-nav ul { width: 100%; gap: 10px 18px; }
  .jh-nav ul { justify-content: space-between; }
  .jh-nav a { font-size: 9px; letter-spacing: .12em; }
  .jh-hero { grid-template-columns: 1fr; gap: 36px; padding-block: 58px 54px; }
  .jh-hero h1 { font-size: clamp(50px, 15vw, 74px); }
  .jh-hero-art { min-height: 430px; }
  .jh-pillars-inner { grid-template-columns: 1fr; gap: 20px; }
  .jh-gallery-content .wp-block-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .jh-contact-inner, .jh-footer-inner { align-items: flex-start; flex-direction: column; }
  .jh-contact-details { justify-items: start; }
  .jh-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
}
