/*
 Theme Name:   Power House Studios Child
 Theme URI:    https://thepowerhousestudio.com
 Description:  Divi 5 Child Theme for Power House Studios, LLC. — Concierge Publishing
 Author:       Power House Studios, LLC. — Drs. Stephen and Michelle Everett
 Author URI:   https://thepowerhousestudio.com
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  phs-divi-child
*/

/* ============================================================
   POWER HOUSE STUDIOS — BRAND DESIGN SYSTEM
   Design Philosophy: "Flame & Fire" — Bold Expressionist
   Colors: Burgundy #910d34 | Gold #ffdb00 | Black #0a0a0a
   Typography: Bebas Neue (display) + Merriweather (body)
   ============================================================ */

:root {
  --phs-burgundy:      #910d34;
  --phs-burgundy-dark: #6b0a26;
  --phs-gold:          #ffdb00;
  --phs-gold-dark:     #fed100;
  --phs-black:         #0a0a0a;
  --phs-black-mid:     #111111;
  --phs-black-soft:    #1a1a1a;
  --phs-white:         #ffffff;
  --phs-cream:         #f8f4ef;
  --phs-gray-light:    #e8e8e8;
  --phs-gray-mid:      #aaaaaa;
  --phs-gray-dark:     #555555;

  --phs-font-display:  'Bebas Neue', 'Arial Narrow', sans-serif;
  --phs-font-body:     'Merriweather', Georgia, serif;
  --phs-font-ui:       'Inter', system-ui, sans-serif;

  --phs-radius:        0;
  --phs-transition:    all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  --phs-shadow:        0 4px 30px rgba(0, 0, 0, 0.4);
  --phs-shadow-gold:   0 0 30px rgba(255, 219, 0, 0.2);
}

/* ============================================================
   GOOGLE FONTS — loaded via functions.php enqueue
   ============================================================ */

/* ============================================================
   GLOBAL RESETS & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--phs-font-body);
  background-color: var(--phs-black);
  color: var(--phs-gray-light);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--phs-font-display);
  letter-spacing: 0.05em;
  line-height: 1.05;
  color: var(--phs-white);
}

a {
  color: var(--phs-gold);
  text-decoration: none;
  transition: var(--phs-transition);
}

a:hover {
  color: var(--phs-gold-dark);
}

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

/* ============================================================
   DIVI OVERRIDES — Global Layout
   ============================================================ */

#page-container {
  background-color: var(--phs-black);
}

.et_pb_section {
  padding: 80px 0;
}

.et_pb_row {
  max-width: 1280px;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

#main-header,
#main-header.et-fixed-header {
  background-color: rgba(10, 10, 10, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(145, 13, 52, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

#main-header .et_pb_menu__menu ul li a,
#main-header nav ul li a,
.et_pb_menu .et_pb_menu__menu > nav > ul > li > a {
  font-family: var(--phs-font-display) !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.12em !important;
  color: var(--phs-gray-light) !important;
  text-transform: uppercase;
  transition: var(--phs-transition);
}

#main-header nav ul li a:hover,
.et_pb_menu .et_pb_menu__menu > nav > ul > li > a:hover {
  color: var(--phs-gold) !important;
}

/* Active nav item */
#main-header nav ul li.current-menu-item > a,
#main-header nav ul li.current_page_item > a {
  color: var(--phs-gold) !important;
}

/* Logo sizing */
#logo {
  max-height: 50px;
  width: auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.et_pb_button,
.et_pb_promo_button,
.et_pb_more_button,
a.et_pb_button {
  font-family: var(--phs-font-display) !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  transition: var(--phs-transition) !important;
  font-size: 0.9rem !important;
}

/* Primary / Gold button */
.et_pb_button.phs-btn-gold,
.phs-btn-gold .et_pb_button {
  background-color: var(--phs-gold) !important;
  color: var(--phs-black) !important;
  border: 2px solid var(--phs-gold) !important;
}

.et_pb_button.phs-btn-gold:hover,
.phs-btn-gold .et_pb_button:hover {
  background-color: var(--phs-gold-dark) !important;
  transform: scale(1.03);
}

/* Secondary / Burgundy button */
.et_pb_button.phs-btn-burgundy,
.phs-btn-burgundy .et_pb_button {
  background-color: var(--phs-burgundy) !important;
  color: var(--phs-gold) !important;
  border: 2px solid var(--phs-burgundy) !important;
}

.et_pb_button.phs-btn-burgundy:hover,
.phs-btn-burgundy .et_pb_button:hover {
  background-color: var(--phs-burgundy-dark) !important;
  transform: scale(1.03);
}

/* Outline / Ghost button */
.et_pb_button.phs-btn-outline {
  background-color: transparent !important;
  color: var(--phs-gold) !important;
  border: 2px solid var(--phs-gold) !important;
}

.et_pb_button.phs-btn-outline:hover {
  background-color: var(--phs-gold) !important;
  color: var(--phs-black) !important;
}

/* ============================================================
   HERO / FULLWIDTH HEADER SECTIONS
   ============================================================ */

.phs-hero-section {
  background-color: var(--phs-black) !important;
  position: relative;
  overflow: hidden;
}

.phs-hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--phs-gold), transparent);
}

.phs-hero-section .et_pb_text h1 {
  font-family: var(--phs-font-display) !important;
  font-size: clamp(3.5rem, 9vw, 7rem) !important;
  line-height: 1 !important;
  color: var(--phs-white) !important;
  letter-spacing: 0.03em !important;
}

.phs-hero-section .et_pb_text h1 span.phs-gold {
  color: var(--phs-gold) !important;
}

.phs-hero-section .et_pb_text p {
  font-family: var(--phs-font-body) !important;
  font-size: 1.1rem !important;
  color: #cccccc !important;
  line-height: 1.8 !important;
  max-width: 600px;
}

/* ============================================================
   SECTION LABELS (eyebrow text)
   ============================================================ */

.phs-eyebrow {
  font-family: var(--phs-font-display) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.25em !important;
  color: var(--phs-burgundy) !important;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */

.phs-section-heading {
  font-family: var(--phs-font-display) !important;
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  color: var(--phs-white) !important;
  line-height: 1 !important;
  letter-spacing: 0.05em !important;
}

.phs-section-heading.on-light {
  color: var(--phs-black) !important;
}

.phs-section-heading span.phs-gold {
  color: var(--phs-gold) !important;
}

/* ============================================================
   STATS / NUMBERS BAND
   ============================================================ */

.phs-stats-band {
  background-color: var(--phs-burgundy) !important;
  border-top: 3px solid var(--phs-gold);
  border-bottom: 3px solid var(--phs-gold);
}

.phs-stats-band .et_pb_text h3 {
  font-family: var(--phs-font-display) !important;
  font-size: 3.5rem !important;
  color: var(--phs-gold) !important;
  line-height: 1 !important;
  margin-bottom: 0.25rem;
}

.phs-stats-band .et_pb_text p {
  font-family: var(--phs-font-ui) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.15em !important;
  color: rgba(255, 255, 255, 0.75) !important;
  text-transform: uppercase;
}

/* ============================================================
   BOOK COVER CARDS
   ============================================================ */

.phs-book-card {
  position: relative;
  overflow: hidden;
  transition: var(--phs-transition);
}

.phs-book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.phs-book-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

.phs-book-card .phs-book-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 40%, rgba(10,10,10,0.4) 80%, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.phs-book-card:hover .phs-book-overlay {
  opacity: 1;
}

.phs-book-card .phs-book-overlay h4 {
  font-family: var(--phs-font-display) !important;
  font-size: 1rem !important;
  color: var(--phs-white) !important;
  margin-bottom: 0.25rem;
}

.phs-book-card .phs-book-overlay p {
  font-family: var(--phs-font-body) !important;
  font-size: 0.75rem !important;
  color: #cccccc !important;
  line-height: 1.5 !important;
}

.phs-bestseller-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: var(--phs-gold);
  color: var(--phs-black);
  font-family: var(--phs-font-display);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.5rem;
  text-transform: uppercase;
}

.phs-out-of-print-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(10, 10, 10, 0.92);
  border-top: 2px solid var(--phs-gold);
  padding: 0.5rem;
  text-align: center;
}

.phs-out-of-print-badge span {
  display: block;
  font-family: var(--phs-font-display);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--phs-gold);
  text-transform: uppercase;
}

.phs-out-of-print-badge small {
  display: block;
  font-family: var(--phs-font-ui);
  font-size: 0.55rem;
  color: #aaaaaa;
  line-height: 1.4;
}

/* ============================================================
   AUTHOR SPOTLIGHT CARDS
   ============================================================ */

.phs-author-photo {
  position: relative;
}

.phs-author-photo::before {
  content: '';
  position: absolute;
  inset: -12px;
  background: linear-gradient(135deg, var(--phs-burgundy), var(--phs-gold));
  opacity: 0.25;
  filter: blur(20px);
  z-index: 0;
}

.phs-author-photo img {
  position: relative;
  z-index: 1;
  border: 3px solid rgba(255, 219, 0, 0.3);
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.phs-credential-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--phs-gold);
  background: rgba(255, 219, 0, 0.04);
  margin-bottom: 0.75rem;
}

.phs-credential-item::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--phs-burgundy);
  flex-shrink: 0;
}

/* ============================================================
   TESTIMONIAL CARDS
   ============================================================ */

.phs-testimonial-card {
  background-color: var(--phs-black-mid);
  border-left: 4px solid var(--phs-burgundy);
  padding: 2rem;
  position: relative;
}

.phs-testimonial-card::before {
  content: '\201C';
  font-family: var(--phs-font-display);
  font-size: 5rem;
  color: var(--phs-gold);
  opacity: 0.15;
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  line-height: 1;
}

.phs-testimonial-card blockquote {
  font-family: var(--phs-font-body) !important;
  font-style: italic;
  color: #cccccc !important;
  line-height: 1.8 !important;
  margin: 0 0 1.25rem;
  border: none;
  padding: 0;
}

.phs-testimonial-card cite {
  font-family: var(--phs-font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--phs-gold);
  font-style: normal;
  text-transform: uppercase;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */

.phs-service-card {
  background-color: var(--phs-black-mid);
  border: 1px solid rgba(145, 13, 52, 0.3);
  padding: 2rem 1.75rem;
  transition: var(--phs-transition);
  position: relative;
  overflow: hidden;
}

.phs-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--phs-burgundy), var(--phs-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.phs-service-card:hover::before {
  transform: scaleX(1);
}

.phs-service-card:hover {
  border-color: rgba(255, 219, 0, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.phs-service-card h3 {
  font-family: var(--phs-font-display) !important;
  font-size: 1.4rem !important;
  color: var(--phs-white) !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 0.75rem;
}

.phs-service-card p {
  font-family: var(--phs-font-body) !important;
  font-size: 0.9rem !important;
  color: #aaaaaa !important;
  line-height: 1.7 !important;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */

.phs-step-number {
  font-family: var(--phs-font-display);
  font-size: 4rem;
  color: var(--phs-gold);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.phs-step-title {
  font-family: var(--phs-font-display) !important;
  font-size: 1.2rem !important;
  color: var(--phs-white) !important;
  letter-spacing: 0.1em !important;
}

/* ============================================================
   CTA SECTIONS
   ============================================================ */

.phs-cta-section {
  background-color: var(--phs-burgundy) !important;
  position: relative;
  overflow: hidden;
}

.phs-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 219, 0, 0.05) 0,
    rgba(255, 219, 0, 0.05) 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 20px 20px;
}

.phs-cta-section .et_pb_text h2 {
  font-family: var(--phs-font-display) !important;
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  color: var(--phs-gold) !important;
  line-height: 1 !important;
}

.phs-cta-section .et_pb_text p {
  color: rgba(255, 255, 255, 0.85) !important;
  font-family: var(--phs-font-body) !important;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.phs-contact-form input,
.phs-contact-form textarea,
.phs-contact-form select,
.et_pb_contact_form input,
.et_pb_contact_form textarea {
  background-color: #111111 !important;
  border: 1px solid rgba(145, 13, 52, 0.4) !important;
  color: #eeeeee !important;
  border-radius: 0 !important;
  font-family: var(--phs-font-ui) !important;
  transition: border-color 0.2s ease !important;
}

.phs-contact-form input:focus,
.phs-contact-form textarea:focus,
.et_pb_contact_form input:focus,
.et_pb_contact_form textarea:focus {
  border-color: var(--phs-gold) !important;
  outline: none !important;
}

.phs-contact-form label,
.et_pb_contact_form label {
  font-family: var(--phs-font-display) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.12em !important;
  color: var(--phs-gold) !important;
  text-transform: uppercase;
}

/* ============================================================
   FOOTER
   ============================================================ */

#main-footer,
.et_pb_section.et_pb_footer_section {
  background-color: #0a0a0a !important;
  border-top: 3px solid var(--phs-burgundy);
}

#main-footer .et_pb_widget h4,
#main-footer .widgettitle {
  font-family: var(--phs-font-display) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.15em !important;
  color: var(--phs-gold) !important;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

#main-footer .et_pb_widget ul li a,
#main-footer p,
#main-footer .et_pb_text p {
  font-family: var(--phs-font-ui) !important;
  font-size: 0.85rem !important;
  color: #aaaaaa !important;
  line-height: 1.8;
}

#main-footer .et_pb_widget ul li a:hover {
  color: var(--phs-gold) !important;
}

#footer-bottom,
.et_pb_section.et_pb_bottom_footer_section {
  background-color: #050505 !important;
  border-top: 1px solid rgba(145, 13, 52, 0.3);
}

#footer-bottom p,
.et_pb_section.et_pb_bottom_footer_section p {
  font-family: var(--phs-font-ui) !important;
  font-size: 0.75rem !important;
  color: #666666 !important;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.phs-divider-gold {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--phs-gold), transparent);
  margin: 2rem 0;
}

.phs-divider-burgundy {
  height: 3px;
  background: var(--phs-burgundy);
  margin: 0;
}

.phs-bg-black     { background-color: var(--phs-black) !important; }
.phs-bg-black-mid { background-color: var(--phs-black-mid) !important; }
.phs-bg-burgundy  { background-color: var(--phs-burgundy) !important; }
.phs-bg-cream     { background-color: var(--phs-cream) !important; }

.phs-text-gold    { color: var(--phs-gold) !important; }
.phs-text-white   { color: var(--phs-white) !important; }
.phs-text-burgundy { color: var(--phs-burgundy) !important; }
.phs-text-muted   { color: #aaaaaa !important; }

.phs-border-gold-left { border-left: 3px solid var(--phs-gold) !important; }
.phs-border-burgundy-left { border-left: 3px solid var(--phs-burgundy) !important; }

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 980px) {
  .et_pb_section {
    padding: 60px 0;
  }
  .phs-hero-section .et_pb_text h1 {
    font-size: clamp(2.5rem, 10vw, 4.5rem) !important;
  }
}

@media (max-width: 767px) {
  .et_pb_section {
    padding: 40px 0;
  }
  .phs-stats-band .et_pb_text h3 {
    font-size: 2.5rem !important;
  }
}
