/*
Theme Name: WESTCA
Theme URI: https://westcasj.com
Author URI: https://westcasj.com
Author: Filipe Carvalho
Description: WESTCA brand block theme — dark, soft gold, tall bold display type. Personal training gym in Downtown San Jose.
Version: 1.0.9
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: westca
*/

/* ===== WESTCA guideline extras (what theme.json can't express) ===== */

/* Tall display headings */
h1, h2, h3, .wp-block-post-title {
  line-height: 0.98;
}

/* Eyebrow label */
.westca-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 12px !important;
  font-weight: 700;
  color: var(--wp--preset--color--gold);
  font-family: var(--wp--preset--font-family--inter) !important;
}

/* Gold check list */
ul.westca-checklist, .westca-checklist ul { list-style: none; padding-left: 0; }
.westca-checklist li { padding-left: 1.5em; position: relative; margin-bottom: .55em; }
.westca-checklist li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--wp--preset--color--gold);
  font-weight: 800;
}

/* Stars */
.westca-stars { color: var(--wp--preset--color--gold); letter-spacing: 2px; }

/* Card */
.westca-card {
  background: var(--wp--preset--color--surface);
  border: 1px solid rgba(207, 158, 85, 0.18);
  border-radius: 14px;
  overflow: hidden;
}

/* Buttons: gold glow + hover lift */
.wp-block-button__link {
  box-shadow: 0 8px 24px rgba(207, 158, 85, 0.28);
  transition: transform .15s ease, box-shadow .2s ease;
}
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(207, 158, 85, 0.42);
  color: #1a1206;
}
.is-style-outline .wp-block-button__link {
  box-shadow: none;
  border-color: rgba(207, 158, 85, 0.4) !important;
}
.is-style-outline .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--gold) !important;
  color: var(--wp--preset--color--gold);
}

/* Header nav (core navigation block) */
.westca-mainnav a {
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  text-decoration: none;
  transition: color .15s ease;
}
.westca-mainnav a:hover { color: var(--wp--preset--color--gold); }
.westca-mainnav { gap: 26px; }

/* Hamburger + mobile overlay */
.westca-mainnav .wp-block-navigation__responsive-container-open,
.westca-mainnav .wp-block-navigation__responsive-container-close {
  color: var(--wp--preset--color--text);
}
.westca-mainnav .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--wp--preset--color--bg) !important;
  padding: 88px 28px 28px;
}
.westca-mainnav .wp-block-navigation__responsive-container.is-menu-open a {
  font-size: 22px;
  letter-spacing: 1.6px;
  color: var(--wp--preset--color--text);
  padding: 10px 0;
}
.westca-mainnav .wp-block-navigation__responsive-container.is-menu-open a:hover { color: var(--wp--preset--color--gold); }

/* Header responsive tuning */
@media (max-width: 782px) {
  .westca-logo img { width: 106px !important; }
  .westca-header-cta .wp-block-button__link { padding: 10px 16px !important; font-size: 12px !important; }
}

/* Hero lead width */
.westca-lead { max-width: 560px; }

/* Divider line under proof numbers */
.westca-proof b { color: var(--wp--preset--color--text); }

/* Footer links (buttons keep their own colors) */
.westca-footer a:not(.wp-block-button__link) { color: var(--wp--preset--color--muted); text-decoration: none; }
.westca-footer a:not(.wp-block-button__link):hover { color: var(--wp--preset--color--gold); }
.westca-footer .wp-block-button__link { color: #1a1206 !important; }
.westca-footer-label {
  text-transform: uppercase; letter-spacing: 2px; font-size: 12px !important;
  font-weight: 700; color: var(--wp--preset--color--gold);
}

/* Blog cards */
.westca-post-card { background: var(--wp--preset--color--surface); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; overflow: hidden; }
.westca-post-card .wp-block-post-title a { text-decoration: none; }
.westca-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--gold); }

/* Keep wide images tidy */
img { height: auto; }

/* ===== Marketing pages (page-full template) ===== */

/* Sans-serif H3 (steps, plan names) */
.westca-h3sans {
  font-family: var(--wp--preset--font-family--inter) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 700 !important;
}

/* Big gold step number */
.westca-step-n {
  font-family: var(--wp--preset--font-family--bebas);
  font-size: 46px !important;
  color: var(--wp--preset--color--gold);
  line-height: 1;
  margin-bottom: 4px !important;
}

/* Pricing cards */
.westca-plan { position: relative; height: 100%; overflow: visible; }
.westca-plan-featured {
  border-color: var(--wp--preset--color--gold) !important;
  box-shadow: 0 0 0 1px var(--wp--preset--color--gold);
}
.westca-flag {
  position: absolute; top: -12px; left: 26px;
  background: linear-gradient(135deg, var(--wp--preset--color--gold-light), var(--wp--preset--color--gold));
  color: #1a1206 !important;
  font-size: 11px !important; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; width: max-content; margin: 0 !important;
}
.westca-amount {
  font-family: var(--wp--preset--font-family--bebas);
  font-size: 56px; line-height: 1;
  color: var(--wp--preset--color--text);
}
.westca-per { color: var(--wp--preset--color--muted); font-size: 16px; font-weight: 600; }
.westca-badge {
  display: inline-block; width: max-content;
  font-size: 12.5px !important; font-weight: 700;
  color: var(--wp--preset--color--gold-light);
  background: rgba(207, 158, 85, .12);
  padding: 4px 12px; border-radius: 999px;
}
.westca-fees { font-size: 12.5px !important; color: var(--wp--preset--color--muted-2); }

/* FAQ accordion (core details block) */
.westca-faq {
  background: var(--wp--preset--color--surface);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 18px 20px;
}
.westca-faq summary {
  cursor: pointer; font-weight: 700; font-size: 15.5px;
  list-style: none; position: relative; padding-right: 30px;
}
.westca-faq summary::-webkit-details-marker { display: none; }
.westca-faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  color: var(--wp--preset--color--gold); font-size: 22px; font-weight: 400;
}
.westca-faq[open] summary::after { content: "–"; }
.westca-faq > :not(summary) { margin-top: 10px; color: var(--wp--preset--color--muted); font-size: 14.5px; }

/* Golden Ticket journey (numbered timeline) */
.westca-journey { position: relative; }
.westca-journey::before {
  content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(var(--wp--preset--color--gold), transparent);
}
.wj-num {
  flex-shrink: 0; width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--wp--preset--color--surface);
  border: 2px solid var(--wp--preset--color--gold);
  color: var(--wp--preset--color--gold);
  font-family: var(--wp--preset--font-family--bebas);
  font-size: 26px !important;
  position: relative; z-index: 1; margin: 0 !important;
}

/* Reward amounts */
.westca-amt { font-family: var(--wp--preset--font-family--bebas); font-size: 40px !important; line-height: 1.05; }
.westca-amt-gold { color: var(--wp--preset--color--gold); font-size: 62px; font-family: var(--wp--preset--font-family--bebas); line-height: 1; }

/* Golden ticket visual */
.westca-goldenticket {
  background: linear-gradient(135deg, var(--wp--preset--color--gold-light), var(--wp--preset--color--gold));
  border-radius: 16px;
  padding: 34px 44px !important;
  text-align: center;
  transform: rotate(-4deg);
  border: 2px dashed rgba(26,18,6,.4);
  width: max-content;
  box-shadow: 0 18px 44px rgba(207,158,85,.25);
}
.westca-goldenticket p, .westca-goldenticket h3 { color: #1a1206 !important; margin: 0 !important; }
.westca-gt-brand { font-family: var(--wp--preset--font-family--bebas); font-size: 20px !important; letter-spacing: 2px; }
.westca-gt-title { font-size: 40px !important; line-height: 1 !important; }
.westca-gt-sub { font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 11px !important; }

/* Pull quote */
.westca-pullquote {
  border: none !important; text-align: center; max-width: 720px;
  margin: 36px auto 0 !important; padding: 0;
}
.westca-pullquote p {
  font-family: var(--wp--preset--font-family--bebas);
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.12; letter-spacing: .4px;
  font-style: normal;
}
.westca-pullquote cite {
  display: block; margin-top: 12px; font-style: normal;
  font-size: 14px; color: var(--wp--preset--color--gold); font-weight: 600;
}

/* Testimonial byline */
.westca-quote-cite { font-size: 13.5px !important; line-height: 1.4; }
.westca-quote-cite span { color: var(--wp--preset--color--muted-2); font-size: 12.5px; }

/* Hours rows */
.westca-hours p {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; margin: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 14px; max-width: 380px;
}
.westca-hours p span:first-child { color: var(--wp--preset--color--muted); }

/* ===== Bottom navigation (mobile / PWA) ===== */
.westca-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 990;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  background: rgba(10, 10, 11, .96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(207, 158, 85, .18);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
}
.wbn-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--wp--preset--color--muted-2);
  text-decoration: none;
  font-size: 10.5px; font-weight: 600; letter-spacing: .4px;
  padding: 4px 2px;
}
.wbn-item svg { width: 22px; height: 22px; fill: currentColor; }
.wbn-item.wbn-active { color: var(--wp--preset--color--text); }
.wbn-item:hover { color: var(--wp--preset--color--gold); }

/* Central booking button */
.wbn-primary {
  position: relative;
  margin-top: -26px;
  color: #1a1206 !important;
}
.wbn-primary svg {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--wp--preset--color--gold-light), var(--wp--preset--color--gold));
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(207, 158, 85, .45);
  box-sizing: content-box;
}
.wbn-primary span {
  color: var(--wp--preset--color--gold-light);
  font-weight: 800;
  margin-top: 2px;
}

@media (max-width: 782px) {
  .westca-bottomnav { display: grid; }
  body { padding-bottom: 86px; }
}

/* Menu e rodapé colados no conteúdo: sem o espaço automático do WP (24px) entre as partes da página */
.wp-site-blocks > header + *,
.wp-site-blocks > footer { margin-block-start: 0; }

/* Seções de largura total encostadas umas nas outras: sem faixa preta entre fundos diferentes */
.alignfull + .alignfull { margin-block-start: 0; }

/* Texto de abertura alinhado com o título (o layout do WP centralizava o bloco de 560px) */
.is-layout-constrained > .westca-lead:not(.has-text-align-center) { margin-left: calc((100% - min(100%, var(--wp--style--global--wide-size))) / 2) !important; }
