/*
Theme Name: BJ Corriveau Voice Talent
Theme URI: https://www.bjcvo.com
Author: BJ Corriveau
Author URI: https://www.bjcvo.com
Description: Custom WordPress theme replicating BJcvo.com — a professional voice talent website with demos, audio samples, contact form, and full responsive layout.
Version: 1.6.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: Private
Text Domain: bjcvo
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — exact from bjcvo.com/css/app.css
   ============================================================ */
:root {
  --purple:       #65558F;   /* branding background */
  --purple-dark:  #4e4070;   /* hover/active */
  --purple-light: #7d6fa8;   /* lighter tint for text on dark */
  --teal:         #5FCAD1;   /* .blue accent */
  --teal-dark:    #3eaeb6;   /* teal hover */
  --teal-light:   #c5eef1;   /* teal tint */
  --off-white:    #f4f6f8;
  --warm-white:   #ffffff;
  --text-dark:    #1e1e1e;
  --text-mid:     #444444;
  --text-light:   #666666;
  --border:       #cfc8e3;   /* purple-tinted border */
  --shadow:       rgba(101,85,143,0.10);
  --shadow-lg:    rgba(101,85,143,0.20);
  --radius:       4px;
  --radius-lg:    20px;      /* matches .rounded in app.css */
  --transition:   0.25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

/* Fonts loaded via functions.php: Open Sans (body) + Jaldi (headings) */
body {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--purple);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--teal-dark); text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: "Jaldi", serif;
  font-weight: 700;
  font-style: normal;
  color: var(--purple);
  line-height: 1.3;
}

h1 { font-size: clamp(1.5rem, 4vw, 2rem);   margin-bottom: 1rem; }
h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); margin-bottom: .85rem; }
h3 { font-size: clamp(1rem, 2.5vw, 1.25rem); margin-bottom: .7rem; }

p  { margin-bottom: 1rem; }

ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }

strong { font-weight: 700; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 60px 0; }

/* ============================================================
   SKIP LINK (ACCESSIBILITY)
   ============================================================ */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--purple);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }

/* ============================================================
   SITE HEADER — purple background, white text (.branding from app.css)
   ============================================================ */
#site-header {
  background: var(--purple);
  border-bottom: 3px solid var(--teal);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 70px;
  gap: 16px;
}

/* Site title — .hevvy from app.css */
.site-branding a {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
}
.site-branding a:hover { text-decoration: none; }

.site-branding .site-title {
  font-family: "Jaldi", serif;
  font-weight: 700;
  font-size: 2rem;     /* matches .hevvy font-size:2rem */
  color: #fff;         /* matches .hevvy color:#fff */
  letter-spacing: 0;
}
.site-branding .site-tagline {
  font-family: "Open Sans", sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-branding a:hover .site-title { color: var(--teal-light); }

/* Header contact strip — white text like .branding a */
.header-contact {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  text-align: right;
  line-height: 1.7;
}
.header-contact a { color: #fff; }
.header-contact a:hover { color: var(--teal-light); text-decoration: underline; }

/* ============================================================
   PRIMARY NAVIGATION — slightly darker purple band
   ============================================================ */
#site-nav {
  background: var(--purple-dark);
  border-bottom: 2px solid var(--teal);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.primary-menu {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}

.primary-menu li a {
  display: block;
  padding: 13px 20px;
  font-family: "Jaldi", serif;
  font-weight: 400;
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.primary-menu li:first-child a { border-left: 1px solid rgba(255,255,255,0.08); }

.primary-menu li a:hover,
.primary-menu li.current-menu-item a {
  background: var(--teal);
  color: #fff;
  text-decoration: none;
}

/* Hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  margin: 10px 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SECTION (Home) — white background, text left / photo right
   ============================================================ */
.hero-white {
  background: var(--warm-white);
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: center;
}

.hero-text h2 {
  color: var(--purple);
  margin-bottom: 1.4rem;
}

.hero-text h3 {
  color: var(--purple);
  margin-top: 1.4rem;
}

.hero-text p {
  color: var(--text-mid);
  font-size: 0.97rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.8rem;
}

.hero-photo { flex-shrink: 0; }

.hero-photo img {
  width: 240px;
  height: 300px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  box-shadow: 0 4px 18px var(--shadow);
}

/* ============================================================
   HERO SECTION (Home) — white background, content flows normally
   Image placed as right-aligned Image block inside the editor.
   ============================================================ */
.hero-white {
  background: var(--warm-white);
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   RIGHT-ALIGNED GUTENBERG IMAGE BLOCKS
   Matches original bjcvo.com: image ~50% wide, text wraps left side.
   In the editor: select Image block → click Align Right in toolbar.
   ============================================================ */

/* The figure wrapper Gutenberg outputs */
.entry-content figure.alignright,
.entry-content .wp-block-image.alignright {
  float: right;
  width: 48%;
  margin: 6px 0 28px 36px;
  clear: right;
}

/* The actual img element */
.entry-content figure.alignright img,
.entry-content .wp-block-image.alignright img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  box-shadow: 0 4px 18px var(--shadow);
}

/* Clearfix — ensures container wraps the floated image */
.entry-content::after {
  content: '';
  display: table;
  clear: both;
}

/* ============================================================
   FULL-WIDTH GUTENBERG BLOCKS (testimonial Group block)
   ============================================================ */
.entry-content .alignfull,
.entry-content .wp-block-group.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left:  calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left:  24px;
  padding-right: 24px;
}



/* ============================================================
   TESTIMONIAL BAND — styled via Gutenberg Group block
   When editor sets background to teal (#5FCAD1), these rules
   apply automatically so text is always readable.
   ============================================================ */
.testimonial-band,
.wp-block-group.testimonial-band {
  background: var(--teal);
  padding: 48px 0;
  width: 100%;
}

/* Full-width Group block with teal background — matches .testimonial-band */
.wp-block-group.has-background {
  padding: 48px 24px;
}

/* Heading inside testimonial band */
.testimonial-band h2,
.wp-block-group.testimonial-band h2 {
  font-family: "Jaldi", serif;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.2rem;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
}

/* Quote text */
.testimonial-band p,
.wp-block-group.testimonial-band p,
.wp-block-group.testimonial-band .wp-block-paragraph {
  font-size: 1.05rem;
  color: #fff;
  font-style: italic;
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

/* Attribution / cite line — use a paragraph with bold in the editor */
.testimonial-band p strong,
.wp-block-group.testimonial-band p strong,
.testimonial-band .testimonial-cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  opacity: 0.9;
}

/* Heading colour override when inside a teal group block */
.wp-block-group[style*="background-color:#5FCAD1"] h2,
.wp-block-group[style*="background-color:#5fcad1"] h2,
.wp-block-group[style*="background-color:rgb(95, 202, 209)"] h2 {
  color: #fff;
}

.wp-block-group[style*="background-color:#5FCAD1"] p,
.wp-block-group[style*="background-color:#5fcad1"] p,
.wp-block-group[style*="background-color:rgb(95, 202, 209)"] p {
  color: #fff;
}

/* ============================================================
   CONNECT SECTION — white bg, two columns: info left / form right
   ============================================================ */
.connect-section {
  background: var(--warm-white);
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.connect-info h2 {
  color: var(--purple);
  margin-bottom: 1rem;
}

.connect-info p {
  color: var(--text-mid);
  font-size: 0.97rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}

.connect-info a {
  color: var(--purple);
}
.connect-info a:hover { color: var(--teal-dark); }

.connect-form {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-family: "Open Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(95,202,209,0.4);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-purple {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}
.btn-purple:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  color: #fff;
  text-decoration: none;
}

/* ============================================================
   TEAL DIVIDER
   ============================================================ */
.gold-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  border: none;
  margin: 0;
}

/* ============================================================
   TWO-COLUMN CONTENT + SIDEBAR LAYOUT (About page)
   ============================================================ */
.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 50px;
  align-items: start;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.bjcvo-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 4px;
  margin-top: 14px;
}
.bjcvo-form label:first-of-type { margin-top: 0; }

.bjcvo-form input[type="text"],
.bjcvo-form input[type="email"],
.bjcvo-form input[type="tel"],
.bjcvo-form textarea,
.bjcvo-form select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: "Open Sans", sans-serif;
  font-size: 0.92rem;
  background: #fafafa;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.bjcvo-form input:focus,
.bjcvo-form textarea:focus,
.bjcvo-form select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(95,202,209,0.2);
}

.bjcvo-form textarea { min-height: 100px; resize: vertical; }
.bjcvo-form .submit-row { margin-top: 16px; }
.bjcvo-form .submit-row .btn { width: 100%; }

.form-success {
  background: #e8f5e9;
  border: 1px solid #81c784;
  color: #2e7d32;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-top: 12px;
  display: none;
}

.form-error {
  background: #ffeaea;
  border: 1px solid #ef9a9a;
  color: #c62828;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-top: 12px;
  display: none;
}

/* ============================================================
   AUDIO PLAYERS — global
   ============================================================ */
audio {
  width: 100%;
  display: block;
  margin: 8px 0 16px;
  border-radius: var(--radius);
}

/* Standalone sample video/play link */
.sample-video-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 16px;
  background: var(--purple);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  transition: background var(--transition);
  text-decoration: none;
}
.sample-video-link:hover {
  background: var(--teal);
  color: #fff;
  text-decoration: none;
}

.audio-section { padding: 50px 0; }

/* ============================================================
   RESOURCE LINKS (Work page)
   ============================================================ */
.resource-links { display: flex; flex-direction: column; gap: 10px; margin-top: 0.5rem; }
.resource-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple);
  font-size: 0.93rem;
}
.resource-links a::before { content: '→'; color: var(--teal-dark); }
.resource-links a:hover { color: var(--teal-dark); }

/* ============================================================
   SITE FOOTER — purple background
   ============================================================ */
#site-footer {
  background: var(--purple-dark);
  border-top: 3px solid var(--teal);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 28px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-col h4 {
  font-family: "Jaldi", serif;
  font-weight: 700;
  color: var(--teal-light);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-col p { font-size: 0.86rem; color: rgba(255,255,255,0.7); line-height: 1.8; }
.footer-col a { font-size: 0.86rem; color: rgba(255,255,255,0.7); line-height: 2; }
.footer-col a:hover { color: var(--teal-light); text-decoration: none; }

.footer-nav-list { list-style: none; padding: 0; margin: 0; }
.footer-nav-list li a {
  display: block;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.7);
  line-height: 2.2;
  transition: color var(--transition);
}
.footer-nav-list li a:hover { color: var(--teal-light); text-decoration: none; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 8px;
}

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */
.page-banner {
  background: var(--purple);
  padding: 38px 0 32px;
  border-bottom: 3px solid var(--teal);
}

.page-banner h1 {
  color: #fff;
  margin-bottom: 0;
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
.bg-off-white { background: var(--off-white); }
.bg-white      { background: var(--warm-white); }
.bg-purple     { background: var(--purple); color: #fff; }

.section-title {
  font-family: "Jaldi", serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--purple);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 10px;
  margin-bottom: 1.4rem;
}

.section-title.light {
  color: #fff;
  border-bottom-color: rgba(95,202,209,0.5);
}

/* ============================================================
   LINKEDIN LINK
   ============================================================ */
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--purple);
  font-size: 0.92rem;
}
.linkedin-link svg { fill: currentColor; }
.linkedin-link:hover { color: var(--teal-dark); }

/* ============================================================
   WP CORE: Screen reader text
   ============================================================ */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 900px) {
  /* Un-float right-aligned images on tablet — go full-width above content */
  .entry-content figure.alignright,
  .entry-content .wp-block-image.alignright {
    float: none;
    width: 100%;
    margin: 0 0 24px 0;
  }
  .connect-grid  { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .header-inner   { flex-direction: column; align-items: flex-start; padding: 12px 20px; min-height: auto; gap: 4px; }
  .header-contact { font-size: 0.78rem; text-align: left; }
  .nav-toggle     { display: flex; }
  .primary-menu   { display: none; flex-direction: column; width: 100%; }
  .primary-menu.open { display: flex; }
  .primary-menu li a { border: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 13px 20px; }
  .footer-inner   { grid-template-columns: 1fr; }
  .footer-bottom  { flex-direction: column; text-align: center; }
  .hero-white     { padding: 36px 0 30px; }
  .section-pad    { padding: 40px 0; }
  .connect-section { padding: 40px 0; }
  .connect-form   { padding: 20px 16px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.2rem; }
}

/* ============================================================
   ENTRY CONTENT — styles for Gutenberg blocks rendered via the_content()
   ============================================================ */
.entry-content h2,
.hero-text h2,
.about-text h2,
.work-main h2,
.demos-main h2 {
  color: var(--purple);
  font-family: "Jaldi", serif;
  font-weight: 700;
}

.entry-content h3,
.hero-text h3,
.about-text h3,
.work-main h3,
.demos-main h3 {
  color: var(--purple);
  font-family: "Jaldi", serif;
  font-weight: 700;
  margin-top: 1.6rem;
}

/* WordPress Audio block */
.wp-block-audio { margin: 8px 0 20px; }
.wp-block-audio audio {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* WordPress Buttons block — styled to match theme */
.wp-block-buttons { margin-top: 1.8rem; gap: 10px; }
.wp-block-buttons .wp-block-button__link {
  background: var(--teal) !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
  font-family: "Open Sans", sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  padding: 10px 24px !important;
  text-decoration: none !important;
  border: 2px solid var(--teal) !important;
  transition: background var(--transition), border-color var(--transition) !important;
}
.wp-block-buttons .wp-block-button__link:hover {
  background: var(--teal-dark) !important;
  border-color: var(--teal-dark) !important;
}

/* WordPress Paragraph block */
.entry-content p,
.hero-text p,
.about-text p,
.work-main p,
.demos-main p {
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* WordPress File / download block */
.wp-block-file {
  margin: 8px 0 20px;
}
.wp-block-file .wp-block-file__button {
  background: var(--purple) !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
  padding: 8px 16px !important;
  font-size: 0.88rem !important;
  text-decoration: none !important;
}
.wp-block-file .wp-block-file__button:hover {
  background: var(--teal) !important;
}
