/*
Theme Name: Kuzyk Private Wealth
Theme URI: https://kuzykprivatewealth.com
Author: VoltCentre
Author URI: https://voltcentre.com
Description: Custom WordPress theme for Kuzyk Private Wealth at Harbourfront Wealth Management. Midnight Harbour design system.
Version: 1.0.0
License: Proprietary
Text Domain: kpw
*/

/* ============================================================
   KPW MIDNIGHT HARBOUR DESIGN SYSTEM — GLOBAL STYLES
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --ocean-dark: #0a1628;
  --ocean-medium: #0d1b2a;
  --ocean-light: #162336;
  --gold: #c9a96e;
  --gold-light: #e8d5a8;
  --gold-dark: #a08550;
  --teal: #0e4d5c;
  --teal-bright: #2dd4bf;
  --neutral-gray: #8b9fad;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--ocean-dark);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ocean-dark); }
::-webkit-scrollbar-thumb { background: rgba(14, 77, 92, 0.6); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(14, 77, 92, 0.9); }

/* --- Typography Utilities --- */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-mono { font-family: var(--font-mono); }

/* --- Gold Gradient Text --- */
.gold-text {
  background: linear-gradient(135deg, #c9a96e 0%, #e8d5a8 50%, #c9a96e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Gold Glow --- */
.glow-gold {
  box-shadow: 0 0 30px rgba(201, 169, 110, 0.15), 0 0 60px rgba(201, 169, 110, 0.05);
}

/* --- Glass Card System --- */
.glass-card {
  background: rgba(13, 27, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card-light {
  background: rgba(13, 27, 42, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Scroll-Triggered Animations --- */
.kpw-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.kpw-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.kpw-fade-in {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.kpw-fade-in.is-visible {
  opacity: 1;
}

.kpw-slide-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.kpw-slide-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.kpw-slide-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.kpw-slide-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.kpw-scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.kpw-scale-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-100 { transition-delay: 100ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-400 { transition-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; }
.delay-600 { transition-delay: 600ms !important; }
.delay-700 { transition-delay: 700ms !important; }
.delay-800 { transition-delay: 800ms !important; }

/* --- Hero Parallax --- */
.kpw-parallax {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* --- Grain Overlay --- */
.grain-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

/* --- Gold Divider --- */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 169, 110, 0.3) 0%, transparent 100%);
}

/* --- Scroll Progress Bar --- */
#kpw-scroll-progress {
  position: fixed;
  top: 72px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 9999;
  width: 0%;
  transition: width 0.15s linear;
}

/* --- Nav Styles --- */
#kpw-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#kpw-nav.scrolled {
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

#kpw-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
  font-size: 13px;
  letter-spacing: 0.05em;
}

#kpw-nav a:hover {
  color: rgba(255, 255, 255, 0.9);
}

#kpw-nav .nav-active {
  color: var(--gold) !important;
}

/* --- CTA Button --- */
.kpw-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--ocean-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.kpw-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.3);
  color: var(--ocean-dark);
}

.kpw-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.05em;
  border-radius: 6px;
  border: 1px solid rgba(201, 169, 110, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.kpw-btn-outline:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.08);
  color: var(--gold);
  transform: translateY(-2px);
}

/* --- Container --- */
.kpw-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 640px) {
  .kpw-container { padding: 0 40px; }
}

@media (min-width: 1024px) {
  .kpw-container { padding: 0 48px; }
}

/* --- Mobile Nav --- */
#kpw-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 9998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#kpw-mobile-menu.open {
  display: flex;
  opacity: 1;
}

#kpw-mobile-menu a {
  font-family: var(--font-display);
  font-size: 28px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

#kpw-mobile-menu a:hover {
  color: var(--gold);
}

/* --- Hamburger --- */
.kpw-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 10001;
}

.kpw-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .kpw-hamburger { display: flex; }
  .kpw-nav-links { display: none !important; }
  .kpw-nav-cta { display: none !important; }
}

/* --- Hover Card Lift --- */
.card-hover {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(201, 169, 110, 0.08);
}

/* --- Selection --- */
::selection {
  background: rgba(201, 169, 110, 0.3);
  color: white;
}

/* ============================================================
   BOOK A CALL PAGE — ADDITIONAL STYLES
   ============================================================ */

/* Trust strip items */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-strip-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(201, 169, 110, 0.06);
  border: 1px solid rgba(201, 169, 110, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-strip-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  .trust-strip {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

/* Calendly embed container */
.calendly-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(13, 27, 42, 0.4);
}

.calendly-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 2;
}

/* Override Calendly inline widget background */
.calendly-inline-widget {
  min-width: 320px;
  border-radius: 16px;
}

/* --- Bounce Arrow --- */
@keyframes kpwBounce {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50% { transform: translateY(-12px) translateX(-50%); }
}

.kpw-bounce {
  animation: kpwBounce 2.5s ease-in-out infinite;
}

/* --- Section Number Pattern --- */
.section-number {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.section-number .number {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 64px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
}

.section-number .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 169, 110, 0.3) 0%, transparent 100%);
}

.section-number .label {
  color: rgba(201, 169, 110, 0.6);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-family: var(--font-body);
}

/* ============================================================
   ABOUT PAGE — ADDITIONAL STYLES
   ============================================================ */

/* Team photo treatment */
.team-photo-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.team-photo-container img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.95);
  transition: filter 0.6s ease;
}

.team-photo-container:hover img {
  filter: brightness(1);
}

.team-photo-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(10, 22, 40, 0.4) 100%);
  pointer-events: none;
}

/* Phil bio editorial layout */
.phil-bio-text p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.9;
  margin-bottom: 20px;
}

.phil-bio-text p:last-child {
  margin-bottom: 0;
}

/* Philosophy cards */
.philosophy-card {
  position: relative;
  padding: 40px 32px;
  border-radius: 16px;
}

.philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* Team member cards */
.team-card {
  border-radius: 16px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.team-card .card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  z-index: 2;
}

/* Team card photo */
.team-card-photo {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(13,27,42,0.8) 0%, rgba(10,22,40,0.6) 100%);
}

.team-card-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.92);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.team-card:hover .team-card-photo img {
  filter: brightness(1);
  transform: scale(1.02);
}

.team-card-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(13,27,42,0.6) 0%, transparent 100%);
  pointer-events: none;
}

/* Team card content area */
.team-card-content {
  padding: 28px 32px 36px;
}

.team-card-name {
  font-family: var(--font-display);
  font-size: 22px;
  color: white;
  font-weight: 500;
  margin-bottom: 4px;
  padding: 0 32px;
  padding-top: 28px;
}

.team-card-title {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 500;
  padding: 0 32px;
}

.team-card-bio {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.8;
  padding: 0 32px;
  padding-bottom: 36px;
}

/* Responsive team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SERVICES PAGE — ADDITIONAL STYLES
   ============================================================ */

/* Service pillar card */
.service-card {
  position: relative;
  border-radius: 16px;
  padding: 48px 36px 40px;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.service-card-number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(201, 169, 110, 0.4);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.service-card-icon {
  margin-bottom: 24px;
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: white;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.3;
}

.service-card-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  margin-bottom: 28px;
}

.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(201, 169, 110, 0.7);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.3s ease, gap 0.3s ease;
}

.service-card-cta:hover {
  color: var(--gold);
  gap: 12px;
}

.service-card-cta svg {
  transition: transform 0.3s ease;
}

.service-card-cta:hover svg {
  transform: translateX(3px);
}

/* Services grid layout: 3 columns top, 3 columns middle, 1 centered bottom */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.services-grid .service-card:nth-child(7) {
  grid-column: 2 / 3;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid .service-card:nth-child(7) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Trust bar */
.trust-bar-item {
  text-align: center;
  padding: 0 24px;
}

.trust-bar-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  color: white;
  margin-bottom: 6px;
}

.trust-bar-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Independence section quote styling */
.independence-quote {
  position: relative;
  padding-left: 32px;
}

.independence-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* --- WordPress-Specific Overrides --- */
/* Remove default WP margins/padding */
.entry-content,
.page-content,
.post-content {
  padding: 0;
  margin: 0;
}

/* Remove default WP link styles */
a { color: inherit; }

/* Ensure WordPress admin bar plays nice with fixed nav */
body.admin-bar #kpw-nav {
  top: 32px;
}

body.admin-bar #kpw-scroll-progress {
  top: 104px;
}

@media (max-width: 782px) {
  body.admin-bar #kpw-nav {
    top: 46px;
  }
  body.admin-bar #kpw-scroll-progress {
    top: 118px;
  }
}
