/*
Theme Name: CelebExperts V2
Theme URI: https://celebexperts.com
Author: CelebExperts
Author URI: https://celebexperts.com
Description: A bold, dark, editorial WordPress theme for a celebrity booking & brand consulting agency. Oswald display type on pure black with a burnt-orange (#CC5500) accent, animated marquees, and scroll reveals. Faithful build of the approved CelebExperts page designs — Homepage, About, Corporate Consulting, Celebrity Booking, Campaign Strategy, Case Studies, and News.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
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: celebexperts
*/

/* ---------------------------------------------------------------------------
   Design tokens
--------------------------------------------------------------------------- */
:root {
  --color-accent: #CC5500;
  --color-text:   #F2F1F1;
  --color-muted:  #8a7f7f;
  --color-panel:  #0e0b0b;
  --color-rule:   rgba(242, 241, 241, 0.08);
  --font-display: 'Oswald', sans-serif;
  --font-body:    'Calibri', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------------------------------------------------------------------------
   Base
--------------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: #000;
  -webkit-font-smoothing: antialiased;
}

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

/* Page wrapper — every template opens .ce-wrap in header.php.
   The design markup reads var(--accent, #cc5500) throughout, so pointing
   --accent at --color-accent lets the Customizer accent cascade sitewide. */
.ce-wrap {
  --accent: var(--color-accent, #CC5500);
  font-family: var(--font-body);
  font-size: 16px;
  background: #000;
  color: var(--color-text);
  overflow-x: hidden;
  position: relative;
}

/* Film-grain overlay (from the approved design) */
.ce-grain::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ---------------------------------------------------------------------------
   Keyframes referenced by the design markup
--------------------------------------------------------------------------- */
@keyframes ce-marq   { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes ce-spin   { 100% { transform: rotate(360deg); } }
@keyframes ce-fadeup { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ce-scroll {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes ce-eq    { 0%, 100% { transform: scaleY(0.28); } 50% { transform: scaleY(1); } }
@keyframes ce-grow  { 0% { transform: scaleY(0.12); } 38% { transform: scaleY(1); } 82% { transform: scaleY(1); } 100% { transform: scaleY(0.12); } }
@keyframes ce-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ---------------------------------------------------------------------------
   Fixed header / navigation
--------------------------------------------------------------------------- */
.ce-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  mix-blend-mode: difference;
}

/* Booking page: light hero at the top, so the header swaps blend-mode for
   a JS-driven color flip (see assets/js/main.js). */
.ce-header--adaptive {
  mix-blend-mode: normal;
  transition: color 0.3s;
}

.ce-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.ce-logo span { color: var(--accent, #CC5500); }
.ce-logo img { max-height: 44px; width: auto; display: block; }

.ce-nav {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  flex-wrap: wrap;
}
.ce-nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}
.ce-nav a:hover,
.ce-nav a[data-active] { color: var(--accent, #CC5500); }

/* ---------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */
.ce-footer {
  padding: 5rem 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.ce-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.ce-footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.8rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.ce-footer-brand span { color: var(--accent, #CC5500); }
.ce-footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 300px;
  margin-bottom: 1.5rem;
}
.ce-footer-contact { font-size: 0.82rem; color: var(--color-muted); line-height: 1.6; }
.ce-footer-contact a { color: var(--color-muted); text-decoration: none; }
.ce-footer-contact a:hover { color: var(--color-text); }
.ce-footer-col-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}
.ce-footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--color-muted);
  padding: 0.35rem 0;
  text-decoration: none;
  transition: color 0.3s;
}
.ce-footer-col a:hover { color: var(--color-text); }

.ce-ghost-marquee {
  overflow: hidden;
  border-top: 1px solid var(--color-rule);
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}
.ce-ghost-marquee .ce-track {
  display: flex;
  width: max-content;
  animation: ce-marq 25s linear infinite;
}
.ce-ghost-marquee span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 2rem;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 3rem;
  color: rgba(242, 241, 241, 0.08);
}

.ce-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 2px solid var(--accent, #CC5500);
  font-size: 0.78rem;
  color: var(--color-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ce-legal a { color: var(--color-muted); text-decoration: none; }
.ce-legal a:hover { color: var(--color-text); }

/* ---------------------------------------------------------------------------
   Cards (case studies / work grids)
--------------------------------------------------------------------------- */
.ce-card { transition: transform 0.3s, border-color 0.3s; }
.ce-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent, #CC5500) !important;
}

/* ---------------------------------------------------------------------------
   Generic content (blog fallback, standard pages)
--------------------------------------------------------------------------- */
.ce-plain {
  max-width: 820px;
  margin: 0 auto;
  padding: 10rem 2rem 6rem;
}
.ce-plain-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.ce-plain-title span { color: var(--accent, #CC5500); }
.ce-plain-content { font-size: 1.02rem; line-height: 1.8; color: #cabfbf; }
.ce-plain-content h2,
.ce-plain-content h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text);
  margin: 2.2rem 0 1rem;
}
.ce-plain-content p { margin-bottom: 1.2rem; }
.ce-plain-content a { color: var(--accent, #CC5500); }
.ce-plain-meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #CC5500);
  margin-bottom: 1.2rem;
}
.ce-post-list article {
  border-top: 1px solid var(--color-rule);
  padding: 2.4rem 0;
}
.ce-post-list h2 { margin: 0 0 0.8rem; }
.ce-post-list h2 a { color: var(--color-text); text-decoration: none; }
.ce-post-list h2 a:hover { color: var(--accent, #CC5500); }

/* ---------------------------------------------------------------------------
   WPForms — dark-theme skin (Contact page)
   WPForms ships light-theme defaults (dark text, white inputs) that are
   unreadable on #000. Scoped to .ce-form-shell so only the theme's own form
   panel is restyled. !important is needed throughout: the plugin's stylesheet
   is enqueued after the theme's and carries heavier selectors.
--------------------------------------------------------------------------- */
.ce-form-shell .wpforms-container,
.ce-form-shell .wpforms-form { margin: 0 !important; }

.ce-form-shell .wpforms-head-container,
.ce-form-shell .wpforms-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text) !important;
}
.ce-form-shell .wpforms-description { color: #9a8f8f !important; }

.ce-form-shell .wpforms-field-label {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: #cabfbf !important;
  margin-bottom: 0.6rem !important;
}
.ce-form-shell .wpforms-field-sublabel,
.ce-form-shell .wpforms-field-description {
  color: #8a7f7f !important;
  font-size: 0.8rem !important;
}
.ce-form-shell .wpforms-required-label { color: var(--accent, #CC5500) !important; }

.ce-form-shell input[type="text"],
.ce-form-shell input[type="email"],
.ce-form-shell input[type="tel"],
.ce-form-shell input[type="url"],
.ce-form-shell input[type="number"],
.ce-form-shell input[type="date"],
.ce-form-shell select,
.ce-form-shell textarea {
  background: rgba(242, 241, 241, 0.04) !important;
  border: 1px solid rgba(242, 241, 241, 0.16) !important;
  border-radius: 0 !important;
  color: var(--color-text) !important;
  font-size: 1rem !important;
  padding: 0.9rem 1rem !important;
  box-shadow: none !important;
  transition: border-color 0.3s, background 0.3s;
}
.ce-form-shell textarea { min-height: 150px !important; }

.ce-form-shell input:focus,
.ce-form-shell select:focus,
.ce-form-shell textarea:focus {
  border-color: var(--accent, #CC5500) !important;
  background: rgba(242, 241, 241, 0.07) !important;
  outline: none !important;
}
.ce-form-shell ::placeholder { color: #6f6565 !important; opacity: 1; }

/* select needs an explicit dark option background on Windows browsers. */
.ce-form-shell select option { background: #0e0b0b; color: var(--color-text); }

.ce-form-shell .wpforms-field-radio label,
.ce-form-shell .wpforms-field-checkbox label { color: #cabfbf !important; }
.ce-form-shell input[type="checkbox"],
.ce-form-shell input[type="radio"] { accent-color: var(--accent, #CC5500); }

.ce-form-shell .wpforms-submit,
.ce-form-shell button[type="submit"] {
  font-family: var(--font-display) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #000 !important;
  background: #f2f1f1 !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 1.1rem 2.5rem !important;
  cursor: pointer;
  transition: background 0.3s, color 0.3s !important;
}
.ce-form-shell .wpforms-submit:hover,
.ce-form-shell button[type="submit"]:hover {
  background: var(--accent, #CC5500) !important;
  color: #f2f1f1 !important;
}

.ce-form-shell .wpforms-error,
.ce-form-shell label.wpforms-error { color: #ff6b4a !important; font-size: 0.82rem !important; }
.ce-form-shell input.wpforms-error,
.ce-form-shell textarea.wpforms-error { border-color: #ff6b4a !important; }
.ce-form-shell .wpforms-confirmation-container-full {
  background: rgba(204, 85, 0, 0.08) !important;
  border: 1px solid var(--accent, #CC5500) !important;
  color: var(--color-text) !important;
}

/* ---------------------------------------------------------------------------
   Responsive
   The approved page designs use inline styles, so multi-column grids are
   collapsed here with attribute selectors (attribute + !important beats
   an inline declaration).
--------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .ce-header { padding: 1.1rem 1.25rem; }
  .ce-nav { gap: 0.9rem 1.1rem; justify-content: flex-end; }
  .ce-nav a { font-size: 0.68rem; }

  .ce-wrap section[style*="grid-template-columns"],
  .ce-wrap section div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .ce-wrap section[style*="padding"] {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .ce-footer { padding: 4rem 1.25rem 2rem; }
  .ce-footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}
