/*
Theme Name: Profit Hammer Gold
Theme URI: https://profithammer.com/
Author: Profit Hammer
Author URI: https://profithammer.com/
Description: A polished, performance-led WordPress block theme for Profit Hammer's gold-focused algorithmic trading service.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.0
Version: 0.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: profit-hammer-gold
Tags: block-patterns, full-site-editing, custom-colors, custom-logo, featured-images, wide-blocks
*/

:root {
  --ph-ink: #07111f;
  --ph-ink-2: #0d1928;
  --ph-ink-3: #142235;
  --ph-steel: #2b3c50;
  --ph-paper: #ffffff;
  --ph-paper-2: #f4f7f8;
  --ph-text: #162233;
  --ph-copy: #526173;
  --ph-muted: #91a0b2;
  --ph-green: #67d648;
  --ph-green-deep: #2f9b34;
  --ph-gold: #d4a83d;
  --ph-gold-soft: #f1d68e;
  --ph-danger: #d85c5c;
  --ph-border-dark: rgba(255,255,255,.10);
  --ph-border-light: #dfe6eb;
  --ph-radius-sm: 12px;
  --ph-radius: 18px;
  --ph-radius-lg: 28px;
  --ph-shadow-sm: 0 12px 32px rgba(7,17,31,.08);
  --ph-shadow: 0 24px 70px rgba(7,17,31,.14);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
body, button, input, textarea, select { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: .2em; }
img { max-width: 100%; height: auto; }
::selection { background: rgba(103,214,72,.30); color: var(--ph-ink); }

/* Accessibility */
:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--ph-gold-soft);
  outline-offset: 3px;
}
.wp-site-blocks { min-height: 100vh; }

/* Header */
.ph-utility-bar {
  border-bottom: 1px solid rgba(212,168,61,.18);
  background: #050c16;
}
.ph-utility-bar p { color: #b8c3cf; }
.ph-utility-bar a { color: var(--ph-gold-soft); }
.ph-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--ph-border-dark);
  background: rgba(7,17,31,.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.admin-bar .ph-site-header { top: 32px; }
.ph-brand a {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  color: #fff !important;
  font-weight: 800;
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}
.ph-brand a::before {
  content: "PH";
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--ph-green), #9ae26f);
  color: var(--ph-ink);
  font-size: .76rem;
  letter-spacing: -.04em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.34), 0 7px 20px rgba(103,214,72,.18);
}
.ph-header-cta { white-space: nowrap; }
.wp-block-navigation a { text-decoration: none; }
.wp-block-navigation .wp-block-navigation-item__content { color: #d6dee7; }
.wp-block-navigation .wp-block-navigation-item__content:hover { color: #fff; }
.wp-block-navigation__responsive-container.is-menu-open {
  padding: 28px;
  background: var(--ph-ink) !important;
  color: #fff !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  color: #fff !important;
  font-size: 1.3rem;
}

/* Shared elements */
.ph-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .52rem;
  margin-bottom: 1rem;
  color: #30642d;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.ph-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ph-green);
  box-shadow: 0 0 0 5px rgba(103,214,72,.13);
}
.ph-eyebrow.is-dark { color: var(--ph-gold-soft); }
.ph-eyebrow.is-dark::before { box-shadow: 0 0 0 5px rgba(103,214,72,.10); }
.ph-gradient-text {
  color: transparent;
  background: linear-gradient(100deg, var(--ph-green) 0%, var(--ph-gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.ph-section-heading { max-width: 760px; }
.ph-section-heading.centered { margin-inline: auto; text-align: center; }
.ph-section-heading.centered .ph-eyebrow { justify-content: center; }
.ph-lead { max-width: 720px; }
.ph-note { font-size: .84rem; line-height: 1.55; }
.ph-chip-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.ph-chip {
  display: inline-flex;
  align-items: center;
  padding: .45rem .72rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: #cbd5df;
  font-size: .78rem;
  font-weight: 700;
}
.ph-card {
  height: 100%;
  border: 1px solid var(--ph-border-dark);
  border-radius: var(--ph-radius);
  background: linear-gradient(145deg, rgba(20,34,53,.96), rgba(13,25,40,.90));
  box-shadow: 0 18px 46px rgba(0,0,0,.14);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.ph-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212,168,61,.30);
  box-shadow: 0 24px 56px rgba(0,0,0,.22);
}
.ph-card-light {
  height: 100%;
  border: 1px solid var(--ph-border-light);
  border-radius: var(--ph-radius);
  background: #fff;
  box-shadow: var(--ph-shadow-sm);
}
.ph-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid rgba(103,214,72,.25);
  background: rgba(103,214,72,.10);
  color: #397d34;
  font-size: .82rem;
  font-weight: 800;
}
.ph-icon.is-dark {
  color: var(--ph-gold-soft);
  border-color: rgba(212,168,61,.24);
  background: linear-gradient(145deg, rgba(103,214,72,.12), rgba(212,168,61,.10));
}

/* Hero */
.ph-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(103,214,72,.12), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(212,168,61,.13), transparent 30%),
    linear-gradient(180deg, #0a1725 0%, #07111f 100%);
}
.ph-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.68) 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.68) 65%, transparent 100%);
}
.ph-hero h1 { max-width: 760px; text-wrap: balance; }
.ph-hero-copy { max-width: 680px; }
.ph-hero .ph-eyebrow { color: var(--ph-gold-soft); }
.ph-dashboard {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--ph-radius-lg);
  background: rgba(10,22,36,.88);
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.ph-dashboard-head {
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.025);
}
.ph-status {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  color: #bdeba9;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ph-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ph-green);
  box-shadow: 0 0 12px rgba(103,214,72,.8);
}
.ph-chart-shell {
  position: relative;
  min-height: 205px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
}
.ph-chart-shell svg { display: block; width: 100%; height: 205px; }
.ph-dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; }
.ph-data-cell {
  min-height: 94px;
  padding: 19px 22px;
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ph-data-cell:nth-child(even) { border-right: 0; }
.ph-data-cell:nth-last-child(-n+2) { border-bottom: 0; }
.ph-data-label {
  display: block;
  margin-bottom: .32rem;
  color: #7f91a5;
  font-size: .70rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ph-data-value { color: #fff; font-size: .98rem; font-weight: 750; }

/* Trust band */
.ph-trust-band {
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #06101c;
}
.ph-trust-item { position: relative; padding-left: 18px; }
.ph-trust-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: linear-gradient(var(--ph-green), var(--ph-gold));
}
.ph-trust-item strong { display: block; color: #fff; font-size: 1rem; }
.ph-trust-item small { color: #8fa0b4; }

/* Section backgrounds */
.ph-dark-section { background: linear-gradient(180deg, #07111f, #0a1725); }
.ph-deep-section { background: #050c16; }
.ph-light-section { background: var(--ph-paper); color: var(--ph-text); }
.ph-light-section :where(h1,h2,h3,h4,h5,h6) { color: var(--ph-text); }
.ph-light-section p, .ph-light-section li { color: var(--ph-copy); }
.ph-soft-section { background: var(--ph-paper-2); color: var(--ph-text); }
.ph-soft-section :where(h1,h2,h3,h4,h5,h6) { color: var(--ph-text); }
.ph-soft-section p, .ph-soft-section li { color: var(--ph-copy); }

/* Comparison */
.ph-comparison {
  overflow: hidden;
  border: 1px solid var(--ph-border-light);
  border-radius: var(--ph-radius-lg);
  background: #fff;
  box-shadow: var(--ph-shadow);
}
.ph-comparison .wp-block-column { padding: clamp(26px, 4vw, 50px); }
.ph-comparison .is-current {
  border-left: 1px solid #dbe6dc;
  background: linear-gradient(145deg, #f5fbf3, #fffaf0);
}
.ph-label {
  display: inline-block;
  padding: .34rem .58rem;
  border-radius: 7px;
  background: #eaf0f3;
  color: #506172;
  font-size: .70rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ph-label.is-current { background: #ddf4d6; color: #2f7130; }
.ph-check-list { padding-left: 0; list-style: none; }
.ph-check-list li { position: relative; padding-left: 1.6rem; margin-bottom: .75rem; }
.ph-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ph-green-deep);
  font-weight: 900;
}
.ph-check-list.is-muted li::before { content: "—"; color: #8492a1; }

/* Performance and process */
.ph-metric-panel {
  border: 1px solid var(--ph-border-light);
  border-radius: var(--ph-radius-lg);
  background: #fff;
  box-shadow: var(--ph-shadow-sm);
}
.ph-metric-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid #e7ecef;
}
.ph-metric-row:last-child { border-bottom: 0; }
.ph-metric-row strong { color: var(--ph-text); }
.ph-metric-badge {
  padding: .42rem .66rem;
  border-radius: 999px;
  background: #eef6eb;
  color: #347333;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.ph-process-line { counter-reset: ph-step; }
.ph-step {
  position: relative;
  height: 100%;
  padding-top: 60px !important;
}
.ph-step::before {
  counter-increment: ph-step;
  content: "0" counter(ph-step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ph-ink);
  color: var(--ph-gold-soft);
  font-size: .78rem;
  font-weight: 800;
}
.ph-account-box {
  overflow: hidden;
  border: 1px solid rgba(212,168,61,.28);
  border-radius: var(--ph-radius-lg);
  background:
    radial-gradient(circle at 10% 20%, rgba(103,214,72,.13), transparent 32%),
    radial-gradient(circle at 90% 80%, rgba(212,168,61,.16), transparent 35%),
    #0d1928;
  box-shadow: var(--ph-shadow);
}
.ph-big-number {
  color: #fff;
  font-size: clamp(3.5rem, 10vw, 6.6rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .95;
}
.ph-risk-box {
  border: 1px solid rgba(216,92,92,.25);
  border-left: 4px solid var(--ph-danger);
  border-radius: var(--ph-radius-sm);
  background: rgba(216,92,92,.06);
}
.ph-light-section .ph-risk-box p,
.ph-soft-section .ph-risk-box p { color: #6a4a4a; }

/* FAQ */
.ph-faq details {
  border-top: 1px solid var(--ph-border-light);
  padding: 20px 0;
}
.ph-faq details:last-child { border-bottom: 1px solid var(--ph-border-light); }
.ph-faq summary {
  cursor: pointer;
  color: var(--ph-text);
  font-weight: 750;
  list-style: none;
}
.ph-faq summary::-webkit-details-marker { display: none; }
.ph-faq summary::after { content: "+"; float: right; color: var(--ph-green-deep); }
.ph-faq details[open] summary::after { content: "–"; }
.ph-faq details p { margin-bottom: 0; }

/* CTA and footer */
.ph-cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212,168,61,.24);
  border-radius: var(--ph-radius-lg);
  background:
    radial-gradient(circle at 14% 18%, rgba(103,214,72,.14), transparent 34%),
    radial-gradient(circle at 90% 80%, rgba(212,168,61,.16), transparent 36%),
    #0d1928;
  box-shadow: var(--ph-shadow);
}
.ph-footer { border-top: 1px solid rgba(255,255,255,.08); }
.ph-footer p, .ph-footer li { color: #93a1b2; }
.ph-footer a { color: #b5c0cc; text-decoration: none; }
.ph-footer a:hover { color: #fff; }
.ph-footer .ph-brand a { color: #fff !important; }
.is-style-plain { list-style: none; padding-left: 0; }
.is-style-plain li { margin-bottom: .58rem; }

/* Blog and content */
.ph-post-card { overflow: hidden; }
.ph-post-card .wp-block-post-featured-image { margin: 0; }
.ph-post-card .wp-block-post-featured-image img { transition: transform .35s ease; }
.ph-post-card:hover .wp-block-post-featured-image img { transform: scale(1.025); }
.ph-post-card-content { padding: 26px; }
.ph-article-shell { max-width: 860px; }
.ph-article-shell .wp-block-post-content > :where(h2,h3,h4) { margin-top: 2.2em; }
.ph-article-shell .wp-block-post-content a { font-weight: 650; }
.ph-breadcrumb { color: #8796a7; font-size: .84rem; }
.ph-breadcrumb a { color: #aeb9c5; }

/* Buttons */
.wp-block-button__link {
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(7,17,31,.14); }
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 1px; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.06); }
.ph-light-section .wp-block-button.is-style-outline .wp-block-button__link,
.ph-soft-section .wp-block-button.is-style-outline .wp-block-button__link { color: var(--ph-text) !important; border-color: #b9c5ce !important; }
.ph-light-section .wp-block-button.is-style-outline .wp-block-button__link:hover,
.ph-soft-section .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #eef2f4; }

/* Responsive */
@media (max-width: 1080px) {
  .ph-header-cta { display: none; }
  .wp-block-navigation { --navigation-layout-justification-setting: flex-end; }
}
@media (max-width: 900px) {
  .ph-dashboard { margin-top: 1.5rem; }
  .ph-comparison .is-current { border-left: 0; border-top: 1px solid #dbe6dc; }
}
@media (max-width: 782px) {
  .admin-bar .ph-site-header { top: 46px; }
  .ph-utility-inner { justify-content: center !important; text-align: center; }
  .ph-utility-secondary { display: none; }
  .ph-dashboard-grid { grid-template-columns: 1fr; }
  .ph-data-cell, .ph-data-cell:nth-child(even), .ph-data-cell:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .ph-data-cell:last-child { border-bottom: 0; }
  .ph-metric-row { grid-template-columns: 1fr; }
  .ph-metric-badge { justify-self: start; }
  .ph-account-box { text-align: left; }
}
@media (max-width: 600px) {
  .ph-brand a::before { width: 32px; height: 32px; border-radius: 9px; }
  .ph-chart-shell, .ph-chart-shell svg { min-height: 170px; height: 170px; }
  .wp-block-buttons > .wp-block-button { width: 100%; }
  .wp-block-buttons > .wp-block-button .wp-block-button__link { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
