/*
Theme Name: StudioHelp
Theme URI: https://studiohelp.com
Author: StudioHelp
Author URI: https://studiohelp.com
Description: Dark, photo-led block theme for StudioHelp - tech support, training, and consulting for studios and stages.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: studiohelp
*/

:root {
  --sh-green: #3FC55F;
  --sh-bg: #0A0A0C;
  --sh-panel: #17171B;
  --sh-line: #26262B;
  --sh-muted: #9A9AA3;
  --sh-text: #F4F4F5;
  --sh-grad: linear-gradient(180deg,#1FCB27 0%,#F4D000 40%,#F0922E 68%,#EE2C12 100%);
}

.wp-site-blocks > footer { margin-block-start: 0; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ---------- Header ---------- */
.sh-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(10,10,12,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sh-wordmark {
  font-family: "Bricolage Grotesque", serif;
  font-weight: 800; letter-spacing: -0.04em;
  color: #fff; text-decoration: none; font-size: 1.45rem; line-height: 1;
}
.sh-wordmark:hover { color: #fff; }
.sh-nav a {
  color: var(--sh-muted); text-decoration: none;
  font-size: 0.94rem; font-weight: 500; transition: color 0.2s ease;
}
.sh-nav a:hover { color: #fff; }
.sh-pill {
  background: var(--sh-green) !important; color: #06210F !important;
  padding: 0.58rem 1.15rem; border-radius: 8px; font-weight: 600; text-decoration: none;
  transition: background 0.18s ease;
}
.sh-pill:hover { background: #4FD970 !important; color: #06210F !important; }

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link {
  font-weight: 600; font-size: 0.97rem; padding: 0.8rem 1.5rem; border-radius: 8px;
  border: 1px solid transparent; transition: 0.18s ease;
}
.wp-block-button.is-style-quiet .wp-block-button__link {
  background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.42);
  backdrop-filter: blur(2px);
}
.wp-block-button.is-style-quiet .wp-block-button__link:hover {
  background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.6); color: #fff;
}

/* ---------- Eyebrow / shared ---------- */
.sh-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #8A8A92; font-weight: 600;
}
.sh-accent-rule { width: 64px; height: 5px; border-radius: 3px; background: var(--sh-grad); }

/* ---------- Hero (split: copy left, photo right) ---------- */
.sh-hero { background: var(--sh-bg); }
.sh-hero .sh-hero-cols { margin: 0; gap: 0; }
.sh-hero-copy { padding: clamp(2.75rem,6vw,5.5rem) clamp(2rem,4vw,4.5rem); }
.sh-hero-copy h1 { font-size: clamp(2.25rem,4.2vw,3.75rem); font-weight: 800; line-height: 1.03; }
.sh-hero-sub { color: #D8D8DD; max-width: 32em; }
.sh-hero-photo {
  background-image: url('assets/images/hero.jpg');
  background-size: cover; background-position: center;
  min-height: 560px; align-self: stretch;
}
@media (max-width: 781px) {
  .sh-hero-photo { min-height: 300px; order: -1; }
}

/* ---------- Partner band (single white section) ---------- */
.sh-partners { background: #FFFFFF; }
.sh-partners-label { text-align: center; color: #6B6B73; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 600; }
.sh-partner-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.25rem 3.5rem; }
.sh-partner-grid span { font-family: "Bricolage Grotesque", serif; font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; color: #1A1A1A; opacity: 0.6; transition: opacity 0.25s ease; }
.sh-partner-grid span:hover { opacity: 1; }

/* ---------- Service cards ---------- */
.sh-cards .wp-block-column {
  background: var(--sh-panel); border: 1px solid var(--sh-line);
  border-radius: 14px; overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease;
}
.sh-cards .wp-block-column:hover { transform: translateY(-4px); border-color: #3A3A44; }
.sh-cards figure.wp-block-image { margin: 0; }
.sh-cards figure.wp-block-image img { width: 100%; height: 188px; object-fit: cover; display: block; }
.sh-card-body { padding: 1.6rem 1.6rem 1.9rem; display: flex; flex-direction: column; flex-grow: 1; }
.sh-card-price { color: var(--sh-green); font-weight: 600; font-size: 0.9rem; }

/* ---------- Why-us ---------- */
.sh-why-media img { width: 100%; border-radius: 16px; border: 1px solid var(--sh-line); aspect-ratio: 4/3; object-fit: cover; display: block; }
.sh-vp { border-top: 1px solid var(--sh-line); padding-top: 1.1rem; }
.sh-vp:first-of-type { border-top: none; padding-top: 0; }

/* ---------- Full-bleed band ---------- */
.sh-band {
  position: relative; min-height: 340px; display: flex; align-items: center;
  border-top: 1px solid var(--sh-line); border-bottom: 1px solid var(--sh-line);
  background-image: linear-gradient(90deg, rgba(7,7,9,0.9) 0%, rgba(7,7,9,0.62) 55%, rgba(7,7,9,0.28) 100%), url('assets/images/band.jpg');
  background-size: cover; background-position: center;
}
.sh-band-inner { max-width: 32em; }

/* ---------- Teaser panel ---------- */
.sh-teaser-panel { background: linear-gradient(160deg,#1D1D23,#141418); border: 1px solid var(--sh-line); border-radius: 18px; }

/* ---------- Team ---------- */
.sh-team-card { text-align: center; }
.sh-avatar {
  width: 116px; height: 116px; border-radius: 50%; margin: 0 auto 0.9rem;
  background: linear-gradient(145deg,#1B1B21,#141418); border: 1px solid var(--sh-line);
  display: flex; align-items: center; justify-content: center;
  font-family: "Bricolage Grotesque", serif; font-weight: 700; font-size: 1.6rem; color: #6B6B73;
  overflow: hidden;
}
.sh-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-team-name { color: #fff; font-weight: 600; }
.sh-team-title { color: var(--sh-muted); font-size: 0.85rem; }

/* ---------- Footer ---------- */
.sh-footer { border-top: 1px solid var(--sh-line); }
.sh-footer img.sh-foot-logo { width: 184px; height: auto; display: block; }
.sh-footer a { color: var(--sh-muted); text-decoration: none; }
.sh-footer a:hover { color: #fff; }

/* ---------- Inner pages ---------- */
.sh-page-head { border-bottom: 1px solid var(--sh-line); }
.sh-shot img { width: 100%; border-radius: 16px; border: 1px solid var(--sh-line); object-fit: cover; display: block; }
.sh-panel { background: linear-gradient(160deg,#1D1D23,#141418); border: 1px solid var(--sh-line); border-radius: 18px; }

/* Plan cards */
.sh-plans .wp-block-column { background: var(--sh-panel); border: 1px solid var(--sh-line); border-radius: 14px; overflow: hidden; }
.sh-plans .wp-block-column.sh-pop { border: 2px solid var(--sh-green); }
.sh-plan-body { padding: 2rem 1.6rem 2.1rem; display: flex; flex-direction: column; flex-grow: 1; text-align: center; }
.sh-plan-price { font-family: "Bricolage Grotesque", serif; font-weight: 800; font-size: 2rem; color: #fff; line-height: 1; }
.sh-plan-price small { font-size: 0.9rem; font-weight: 500; color: var(--sh-muted); }
.sh-pop-badge { display: inline-block; background: var(--sh-green); color: #06210F; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.28rem 0.7rem; border-radius: 20px; }

/* Numbered steps */
.sh-step { display: flex; gap: 1.1rem; align-items: flex-start; }
.sh-step + .sh-step { margin-top: 1.6rem; }
.sh-step-num { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--sh-panel); border: 1px solid var(--sh-line); display: flex; align-items: center; justify-content: center; font-family: "Bricolage Grotesque", serif; font-weight: 700; font-size: 1.15rem; color: var(--sh-green); }
.sh-step h3 { font-size: 1.15rem; margin: 0 0 0.3rem; }
.sh-step p { margin: 0; color: var(--sh-muted); }

/* Dark contact form */
.sh-form label { display: block; font-size: 0.85rem; color: var(--sh-muted); margin: 0 0 0.4rem; }
.sh-form input, .sh-form textarea { width: 100%; background: #17171B; border: 1px solid var(--sh-line); border-radius: 8px; padding: 0.75rem 0.9rem; color: #fff; font-size: 0.95rem; font-family: inherit; box-sizing: border-box; }
.sh-form input:focus, .sh-form textarea:focus { outline: none; border-color: var(--sh-green); }
.sh-form .sh-field { margin-bottom: 1.1rem; }
.sh-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.82rem; color: var(--sh-muted); line-height: 1.5; }
.sh-form button { background: var(--sh-green); color: #06210F; border: none; border-radius: 8px; padding: 0.85rem 1.6rem; font-weight: 600; font-size: 0.97rem; cursor: pointer; }

/* Animations */
.fade-up { opacity: 0; transform: translateY(28px); animation: shFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.fade-up.d1 { animation-delay: 0.08s; } .fade-up.d2 { animation-delay: 0.18s; }
.fade-up.d3 { animation-delay: 0.28s; } .fade-up.d4 { animation-delay: 0.38s; }
@keyframes shFadeUp { to { opacity: 1; transform: translateY(0); } }
.animate-on-scroll { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Equal cards ---------- */
.equal-cards > .wp-block-column { display: flex; flex-direction: column; flex-grow: 0; }
.equal-cards > .wp-block-column > .wp-block-group { display: flex; flex-direction: column; flex-grow: 1; }
.equal-cards .cta-bottom { margin-top: auto; }

@media (max-width: 781px) {
  .sh-cards figure.wp-block-image img { height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Accessibility: visible keyboard focus ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.wp-block-button__link:focus-visible,
.sh-pill:focus-visible,
.sh-nav a:focus-visible {
  outline: 2px solid var(--sh-green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Contact form (native, brand-styled) ---------- */
.sh-cform-wrap { background: linear-gradient(160deg,#1D1D23,#141418); border: 1px solid var(--sh-line); border-radius: 18px; padding: 2rem 2rem 2.2rem; }
.sh-cform .sh-cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.sh-cform .sh-cf-field { margin-bottom: 1.1rem; }
.sh-cform label { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sh-muted); font-weight: 600; margin-bottom: 0.45rem; }
.sh-cform input, .sh-cform select, .sh-cform textarea { width: 100%; background: #101013; border: 1px solid #2A2A30; border-radius: 8px; padding: 0.8rem 0.9rem; color: #F4F4F5; font-family: "Hanken Grotesk", sans-serif; font-size: 1rem; outline: none; transition: border-color 0.18s ease; box-sizing: border-box; }
.sh-cform input:focus, .sh-cform select:focus, .sh-cform textarea:focus { border-color: var(--sh-green); }
.sh-cform input.error, .sh-cform select.error, .sh-cform textarea.error { border-color: #ff6b6b; }
.sh-cform textarea { min-height: 130px; resize: vertical; }
.sh-cform select { cursor: pointer; }
.sh-cform select option { color: #1a1a1a; }
.sh-cform .field-error { display: none; color: #ff6b6b; font-size: 0.8rem; margin-top: 0.4rem; }
.sh-cform .field-error.visible { display: block; }
.sh-cform .sh-cf-intl { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; }
.sh-cform .sh-cf-intl input { width: 16px; height: 16px; accent-color: var(--sh-green); flex-shrink: 0; }
.sh-cform .sh-cf-intl label { text-transform: none; letter-spacing: 0; font-weight: 400; color: #D8D8DD; font-size: 0.9rem; margin: 0; }
.sh-cform .optin-block { display: flex; flex-direction: column; gap: 0.5rem; background: #141418; border: 1px solid #2A2A30; border-radius: 10px; padding: 1rem 1.1rem; margin: 0.4rem 0 1.4rem; }
.sh-cform .optin-block.error { border-color: #ff6b6b; }
.sh-cform .optin-row { display: flex; align-items: flex-start; gap: 0.7rem; }
.sh-cform .optin-row input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--sh-green); flex-shrink: 0; }
.sh-cform .optin-label { text-transform: none; letter-spacing: 0; font-weight: 400; color: #D8D8DD; font-size: 0.85rem; line-height: 1.6; margin: 0; cursor: pointer; }
.sh-cform .optin-label a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.sh-cform .optin-error { display: none; color: #ff6b6b; font-size: 0.8rem; }
.sh-cform .optin-error.visible { display: block; }
.sh-cform .sh-cf-submit { background: var(--sh-green); color: #06210F; border: none; border-radius: 8px; padding: 0.9rem 2rem; font-weight: 600; font-size: 0.97rem; cursor: pointer; font-family: "Hanken Grotesk", sans-serif; transition: background 0.18s ease; }
.sh-cform .sh-cf-submit:hover { background: #4FD970; }
.sh-cform .sh-cf-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.sh-cform .submit-error { display: none; color: #ff6b6b; font-size: 0.85rem; margin-top: 0.9rem; }
.sh-cform .submit-error.visible { display: block; }
.sh-cform .sh-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sh-cf-success { display: none; }
.sh-cf-success.visible { display: block; }
.sh-cf-success h3 { font-size: 1.6rem; margin: 0 0 0.5rem; }
.sh-cf-success p { color: var(--sh-muted); margin: 0; }
.sh-cf-success a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) { .sh-cform .sh-cf-row { grid-template-columns: 1fr; } }

/* ---------- Contact direct-details block ---------- */
.sh-contactinfo { text-align: center; }
.sh-ci-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 4rem; }
.sh-ci-item { display: flex; flex-direction: column; gap: 0.35rem; }
.sh-ci-label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8A8A92; font-weight: 600; }
.sh-contactinfo a { color: #fff; text-decoration: none; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em; transition: color 0.18s ease; }
.sh-contactinfo a:hover { color: var(--sh-green); }
.sh-ci-note { color: #8A8A92; font-size: 0.9rem; margin: 1.5rem 0 0; }

/* ---------- Platforms/tools strip (white pause) ---------- */
.sh-support-row + .sh-support-row { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid #EAEAEA; }
.sh-support .sh-partners-label { margin: 0 0 1.4rem; }

/* ---------- How It Works: remote/on-site tracks ---------- */
.sh-track + .sh-track { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--sh-line); }
.sh-track .sh-eyebrow { margin: 0 0 1.6rem; }

/* ---------- FAQ accordion ---------- */
.sh-faq details { border-bottom: 1px solid var(--sh-line); }
.sh-faq details:first-of-type { border-top: 1px solid var(--sh-line); }
.sh-faq summary { cursor: pointer; list-style: none; padding: 1.3rem 0; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.sh-faq summary::-webkit-details-marker { display: none; }
.sh-faq summary::after { content: "+"; color: var(--sh-green); font-size: 1.5rem; font-weight: 400; line-height: 1; flex-shrink: 0; }
.sh-faq details[open] summary::after { content: "\2013"; }
.sh-faq details > p { color: var(--sh-muted); margin: 0 0 1.4rem; max-width: 66ch; }
.sh-faq details > p a { color: var(--sh-green); }



/* ---------- Responsive: collapse raw inline grids on small screens ---------- */
/* inline grid-template-columns needs !important to override */
@media (max-width: 900px) {
  .sh-team-row { grid-template-columns: repeat(3,1fr) !important; }
  .sh-grid-3 { grid-template-columns: repeat(2,1fr) !important; }
  .sh-footer-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  .sh-team-row { grid-template-columns: repeat(2,1fr) !important; }
  .sh-grid-3, .sh-grid-2 { grid-template-columns: 1fr !important; }
}
