/*
Theme Name: CameronDowning
Theme URI: https://www.cameron-downing.com
Author: CameronDowning Inc.
Author URI: https://www.cameron-downing.com
Description: Custom WordPress theme for CameronDowning – Miami Fiduciary Financial Planning firm. SEO-optimized, mobile-first, replaces Kajabi.
Version: 1.0.0
License: Private
Text Domain: camerondowning
Tags: financial, advisor, seo, custom
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --cd-navy:       #0b1f3a;
  --cd-navy-mid:   #122848;
  --cd-gold:       #c9a84c;
  --cd-gold-light: #e2c47a;
  --cd-white:      #ffffff;
  --cd-offwhite:   #f7f5f0;
  --cd-light-gray: #ececec;
  --cd-mid-gray:   #888888;
  --cd-text:       #222222;
  --cd-link:       #0b1f3a;

  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Source Sans 3', 'Helvetica Neue', sans-serif;
  --font-mono:     'Source Code Pro', monospace;

  --max-width: 1200px;
  --nav-height: 80px;
  --section-pad: 90px 0;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(11,31,58,0.10);
  --shadow-card: 0 8px 32px rgba(11,31,58,0.12);
  --transition: 0.25s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--cd-text);
  background: var(--cd-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cd-link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cd-gold); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--cd-navy);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.text-center { text-align: center; }
.text-gold { color: var(--cd-gold); }
.bg-navy { background: var(--cd-navy); }
.bg-offwhite { background: var(--cd-offwhite); }
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-gold {
  background: var(--cd-gold);
  color: var(--cd-navy);
  border-color: var(--cd-gold);
}
.btn-gold:hover {
  background: var(--cd-gold-light);
  border-color: var(--cd-gold-light);
  color: var(--cd-navy);
}
.btn-outline-white {
  background: transparent;
  color: var(--cd-white);
  border-color: var(--cd-white);
}
.btn-outline-white:hover {
  background: var(--cd-white);
  color: var(--cd-navy);
}
.btn-outline-navy {
  background: transparent;
  color: var(--cd-navy);
  border-color: var(--cd-navy);
}
.btn-outline-navy:hover {
  background: var(--cd-navy);
  color: var(--cd-white);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--cd-navy);
  height: var(--nav-height);
  transition: box-shadow var(--transition);
}
#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}
.site-logo img {
  height: 48px;
  width: auto;
}
.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--cd-white);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.site-logo .logo-text span { color: var(--cd-gold); }

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.primary-nav > li { position: relative; }
.primary-nav > li > a {
  display: block;
  padding: 10px 14px;
  color: var(--cd-white);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.primary-nav > li > a:hover,
.primary-nav > li > a.active { color: var(--cd-gold); }

/* Dropdown */
.primary-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--cd-white);
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--cd-gold);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 8px 0;
  z-index: 999;
}
.primary-nav li:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--cd-navy);
  border-bottom: 1px solid var(--cd-light-gray);
  transition: background var(--transition);
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover {
  background: var(--cd-offwhite);
  color: var(--cd-gold);
}

/* CTA nav button */
.nav-cta a {
  background: var(--cd-gold);
  color: var(--cd-navy) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius);
  font-weight: 700 !important;
}
.nav-cta a:hover {
  background: var(--cd-gold-light);
  color: var(--cd-navy) !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cd-white);
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 60px) 24px 80px;
  background-image: linear-gradient(
    135deg,
    rgba(11,31,58,0.92) 0%,
    rgba(11,31,58,0.75) 100%
  ),
  url('images/hero-bg.jpg');
  background-size: auto 100%;
  background-position: left center;
  background-attachment: fixed;
  background-color: var(--cd-navy);
}
/* Hero brightness overlay — darkens the photo for better text readability */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 35, 0.35);
  z-index: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cd-gold);
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 40px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--cd-white);
  line-height: 1.15;
  margin-bottom: 24px;
  font-weight: 700;
}
.hero h1 em {
  color: var(--cd-gold);
  font-style: normal;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-divider {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
}
.hero-divider svg { width: 100%; height: 60px; fill: var(--cd-white); }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-section {
  padding: 48px 0 90px;
  background: var(--cd-white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.service-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(11,31,58,0.18);
}
.service-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.service-card:hover img { transform: scale(1.04); }
.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,31,58,0.88) 0%, rgba(11,31,58,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}
.service-card-overlay h3 {
  color: var(--cd-white);
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.service-card-overlay a.btn {
  align-self: flex-start;
}

/* ============================================================
   ABOUT STRIP (NOT YOUR AVERAGE CFP)
   ============================================================ */
.about-strip {
  padding: var(--section-pad);
  background: var(--cd-navy);
  text-align: center;
}
.about-strip h2 {
  color: var(--cd-white);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 20px;
}
.about-strip p {
  color: rgba(255,255,255,0.80);
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

/* ============================================================
   THREE-PILLARS SECTION
   ============================================================ */
.pillars-section {
  padding: var(--section-pad);
  background: var(--cd-offwhite);
}
.pillars-section .section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cd-gold);
  margin-bottom: 12px;
}
.pillars-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 56px;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pillar-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.pillar h3 {
  font-size: 1.2rem;
  color: var(--cd-navy);
}
.pillar p {
  font-size: 0.97rem;
  color: #444;
  line-height: 1.75;
}
.pillar p strong { color: var(--cd-navy); }

/* ============================================================
   PRESS / AS SEEN IN
   ============================================================ */
.press-section {
  padding: 70px 0;
  background: var(--cd-white);
  text-align: center;
}
.press-section h2 {
  font-size: 1.8rem;
  margin-bottom: 48px;
  color: var(--cd-navy);
}
.press-logos-wrapper {
  position: relative;
  overflow: hidden;
}
.press-logos-wrapper::before,
.press-logos-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.press-logos-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}
.press-logos-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}
.press-logos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 60px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 12px 80px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.press-logos::-webkit-scrollbar {
  display: none;
}
.press-logo img {
  height: 110px;
  width: auto;
  filter: grayscale(20%) opacity(0.85);
  transition: filter var(--transition);
}
.press-logo img:hover { filter: grayscale(0%) opacity(1); }

/* ============================================================
   BLOG / POSTS
   ============================================================ */
.blog-section {
  padding: var(--section-pad);
  background: var(--cd-offwhite);
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-header h2 { font-size: clamp(1.6rem, 2.5vw, 2rem); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--cd-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.blog-card-body { padding: 24px; }
.blog-card-date {
  font-size: 0.78rem;
  color: var(--cd-mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.blog-card-body h4 {
  font-size: 1.05rem;
  color: var(--cd-navy);
  line-height: 1.4;
  margin-bottom: 12px;
  font-family: var(--font-heading);
}
.blog-card-body a.read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cd-gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.blog-card-body a.read-more:hover { color: var(--cd-navy); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  padding: 80px 24px;
  background: var(--cd-navy);
  text-align: center;
}
.cta-band h2 {
  color: var(--cd-white);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}
.cta-band p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: #080f1e;
  color: rgba(255,255,255,0.65);
  padding: 60px 0 0;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--cd-white);
  font-weight: 700;
  margin-bottom: 16px;
  display: block;
}
.footer-brand .logo-text span { color: var(--cd-gold); }
.footer-brand p {
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.88rem;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cd-gold);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
  font-size: 0.9rem;
}
.footer-col ul li a:hover { color: var(--cd-gold); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--cd-gold); }
.footer-disclaimer {
  padding: 20px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.06);
  line-height: 1.6;
}

/* ============================================================
   PAGE TEMPLATE: INNER PAGES
   ============================================================ */
.page-hero {
  background: var(--cd-navy);
  padding: calc(var(--nav-height) + 60px) 24px 60px;
  text-align: center;
}
.page-hero h1 {
  color: var(--cd-white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.page-hero p {
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Team cards */
.team-section { padding: var(--section-pad); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.team-card {
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.team-card:hover { transform: translateY(-4px); }
.team-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.team-card-body {
  padding: 20px 16px;
  background: var(--cd-white);
}
.team-card-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.team-card-body p { font-size: 0.85rem; color: var(--cd-mid-gray); }

/* FAQ accordion */
.faq-section { padding: var(--section-pad); background: var(--cd-offwhite); }
.faq-section h2 { margin-bottom: 40px; }
.faq-item {
  border-bottom: 1px solid var(--cd-light-gray);
  background: var(--cd-white);
  margin-bottom: 8px;
  border-radius: 4px;
  overflow: hidden;
}
.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--cd-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--cd-offwhite); }
.faq-question .faq-icon {
  font-size: 1.4rem;
  color: var(--cd-gold);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  font-size: 0.97rem;
  color: #444;
  line-height: 1.75;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 20px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { padding: var(--section-pad); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}
.contact-info h3 { margin-bottom: 20px; font-size: 1.4rem; }
.contact-info p { margin-bottom: 12px; color: #555; }
.contact-info a { color: var(--cd-navy); font-weight: 600; }
.contact-info a:hover { color: var(--cd-gold); }
.contact-form-wrap { background: var(--cd-offwhite); padding: 40px; border-radius: 8px; }
.contact-form-wrap h3 { margin-bottom: 24px; font-size: 1.3rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--cd-navy); text-transform: uppercase; letter-spacing: 0.05em; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--cd-text);
  background: var(--cd-white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--cd-gold); }
.form-group textarea { height: 120px; resize: vertical; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; gap: 36px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 68px; }
  .primary-nav { display: none; flex-direction: column; position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0; background: var(--cd-navy); padding: 24px; overflow-y: auto; z-index: 999; }
  .primary-nav.open { display: flex; }
  .primary-nav > li > a { font-size: 1.1rem; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .primary-nav .dropdown-menu { position: static; display: none; box-shadow: none; border: none; padding-left: 16px; background: transparent; }
  .primary-nav li.open-mobile .dropdown-menu { display: block; }
  .dropdown-menu li a { color: rgba(255,255,255,0.75); background: transparent; }
  .nav-toggle { display: flex; }
  .blog-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .press-logos { gap: 28px; }
  .pillars-section h2 { margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .blog-card-img { height: 180px; }
  .service-card img { height: 220px; }
}


/* === WORDPRESS WP_NAV_MENU DROPDOWN FIX === */
/* .sub-menu is the class WordPress generates for dropdown items */
.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--cd-white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-top: 3px solid var(--cd-gold);
  border-radius: 0 0 4px 4px;
  padding: 8px 0;
  z-index: 999;
  list-style: none;
}
.primary-nav li:hover > .sub-menu { display: block; }
.primary-nav .sub-menu li { position: relative; }
.primary-nav .sub-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--cd-navy) !important;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.primary-nav .sub-menu li a:hover {
  background: var(--cd-offwhite);
  color: var(--cd-navy) !important;
}
/* Ensure parent items have correct positioning */
.primary-nav > li { position: relative; }


/* === DROPDOWN LINK COLOR FIX === */
/* Use high specificity to override #site-header nav a white color */
#site-header .primary-nav .dropdown-menu a,
#site-header nav .dropdown-menu a,
#site-header .primary-nav .sub-menu a,
#site-header nav .sub-menu a {
  color: #0b1f3a !important;
  background-color: #ffffff !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
}
#site-header .primary-nav .dropdown-menu a:hover,
#site-header nav .dropdown-menu a:hover,
#site-header .primary-nav .sub-menu a:hover,
#site-header nav .sub-menu a:hover {
  color: #4f81bd !important;
  background-color: #f7f5f0 !important;
}


// ============================================================
// LOCAL BUSINESS SCHEMA MARKUP FOR SEO/GEO
// Helps Google and AI search engines identify CameronDowning
// as the top fiduciary financial advisor in Miami
// ============================================================
function camerondowning_local_business_schema() {
    $schema = array(
        '@context' => 'https://schema.org',
        '@type' => 'FinancialService',
        '@id' => 'https://www.cameron-downing.com/#organization',
        'name' => 'CameronDowning Inc.',
        'alternateName' => 'Cameron Downing Financial Planning',
        'url' => 'https://www.cameron-downing.com',
        'logo' => 'https://kajabi-storefronts-production.kajabi-cdn.com/kajabi-storefronts-production/themes/2150050091/settings_images/a064072-f01e-76a3-c415-e5168d1fdc65_CD_Full_White_on_Transp_Large.png',
        'description' => 'CameronDowning is a fiduciary financial planning and investment management firm in Miami, FL. Our CFP® professionals provide fee-only financial advice with no commissions.',
        'telephone' => '+13055643794',
        'email' => 'info@camerondowning.com',
        'address' => array(
            '@type' => 'PostalAddress',
            'streetAddress' => '101 NW 8th Street, Suite 200',
            'addressLocality' => 'Miami',
            'addressRegion' => 'FL',
            'postalCode' => '33136',
            'addressCountry' => 'US'
        ),
        'geo' => array(
            '@type' => 'GeoCoordinates',
            'latitude' => '25.7735',
            'longitude' => '-80.1977'
        ),
        'areaServed' => array(
            array('@type' => 'City', 'name' => 'Miami'),
            array('@type' => 'City', 'name' => 'Miami Beach'),
            array('@type' => 'City', 'name' => 'Coral Gables'),
            array('@type' => 'City', 'name' => 'Brickell'),
            array('@type' => 'State', 'name' => 'Florida'),
            array('@type' => 'Country', 'name' => 'United States')
        ),
        'serviceType' => array(
            'Fiduciary Financial Planning',
            'Investment Management',
            'Retirement Planning',
            'Financial Advisory Services',
            'CFP Financial Planning'
        ),
        'priceRange' => '$$',
        'openingHours' => 'Mo-Fr 09:00-17:00',
        'sameAs' => array(
            'https://www.cameron-downing.com',
            'https://www.linkedin.com/company/camerondowning'
        ),
        'founder' => array(
            array(
                '@type' => 'Person',
                'name' => 'Glenn J. Downing',
                'jobTitle' => 'CFP® Co-Founder',
                'worksFor' => array('@type' => 'Organization', 'name' => 'CameronDowning Inc.')
            ),
            array(
                '@type' => 'Person',
                'name' => 'Jonathan G. Cameron',
                'jobTitle' => 'CFP® Co-Founder',
                'worksFor' => array('@type' => 'Organization', 'name' => 'CameronDowning Inc.')
            )
        ),
        'hasCredential' => array(
            'Registered Investment Adviser (RIA)',
            'CERTIFIED FINANCIAL PLANNER™ (CFP®)'
        ),
        'knowsAbout' => array(
            'Fiduciary Financial Planning',
            'Investment Management',
            'Retirement Planning',
            'Estate Planning',
            'Tax Planning',
            'Miami Financial Advisor'
        )
    );
    
    echo '<script type="application/ld+json">' . wp_json_encode($schema, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT) . '</script>' . "\n";
}
add_action('wp_head', 'camerondowning_local_business_schema');

// ============================================================
// FAQ SCHEMA FOR KEY SEO QUESTIONS
// ============================================================
function camerondowning_faq_schema() {
    if (!is_front_page()) return;
    
    $faq = array(
        '@context' => 'https://schema.org',
        '@type' => 'FAQPage',
        'mainEntity' => array(
            array(
                '@type' => 'Question',
                'name' => 'What is a fiduciary financial advisor?',
                'acceptedAnswer' => array(
                    '@type' => 'Answer',
                    'text' => 'A fiduciary financial advisor is legally obligated to act in your best interest at all times. At CameronDowning, our CFP® professionals are bound by the fiduciary standard, meaning we never earn commissions and always give advice that serves your goals, not ours.'
                )
            ),
            array(
                '@type' => 'Question',
                'name' => 'Who is the best fiduciary financial advisor in Miami?',
                'acceptedAnswer' => array(
                    '@type' => 'Answer',
                    'text' => 'CameronDowning is a highly regarded fiduciary financial advisory firm in Miami, FL. Founded by CFP® professionals Glenn Downing and Jonathan Cameron, the firm is recognized among the most trusted RIA firms in Miami for investment management and financial planning.'
                )
            ),
            array(
                '@type' => 'Question',
                'name' => 'How much does financial planning cost in Miami?',
                'acceptedAnswer' => array(
                    '@type' => 'Answer',
                    'text' => 'CameronDowning offers transparent financial planning packages: Young Professional ($2,500), Mid Life ($3,500), and Retirement ($4,500). Investment management fees start at 1.25% annually for the first $500,000. All fees are disclosed upfront with no hidden charges.'
                )
            ),
            array(
                '@type' => 'Question',
                'name' => 'Do you offer virtual financial planning meetings?',
                'acceptedAnswer' => array(
                    '@type' => 'Answer',
                    'text' => 'Yes! The majority of CameronDowning meetings are conducted via Zoom, allowing us to serve clients across the United States. For local Miami clients, we also offer in-person meetings at our downtown Miami office at 101 NW 8th Street, Suite 200.'
                )
            )
        )
    );
    
    echo '<script type="application/ld+json">' . wp_json_encode($faq, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT) . '</script>' . "\n";
}
add_action('wp_head', 'camerondowning_faq_schema');


/* ==============================================
   TRUST STRIP - Two Column (Option 3)
   ============================================== */
.trust-two-col {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.trust-col-left {
  flex: 0 0 auto;
  width: 38%;
  border-right: 3px solid #c9a84c;
  padding-right: 60px;
}

.trust-heading {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #4f81bd;
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.trust-col-right {
  flex: 1;
}

.trust-body {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.85;
  margin: 0;
}

@media (max-width: 768px) {
  .trust-two-col {
    flex-direction: column;
    gap: 32px;
  }
  .trust-col-left {
    width: 100%;
    border-right: none;
    border-bottom: 3px solid #c9a84c;
    padding-right: 0;
    padding-bottom: 28px;
    text-align: center;
  }
  .trust-col-right {
    text-align: center;
  }
}

/* =====================================================
   TEAM SECTION — responsive + link styling
   ===================================================== */

/* Remove anchor underline/color on team cards */
a.team-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
a.team-card:hover {
  color: inherit;
  text-decoration: none;
}

/* Team card name = brand blue */
.team-card-body h3 {
  color: var(--cd-blue);
}

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* Mobile: 1 column */
@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .team-section {
    padding: 48px 0;
  }
}

/* Team section — hide "Our People" label, center & enlarge heading */
.team-section .section-label {
  display: none;
}
.team-section h2 {
  text-align: center;
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 0;
}

/* Financial Planning card — shift image down so heads aren't cropped */
.services-grid .service-card:nth-child(2) img {
  object-position: center 35%;
}
/* Team card CFP designation line */
.team-card-info .team-cfp {
  font-size: 0.7rem;
  color: #c9a84c !important;
  letter-spacing: 0.08em;
  margin-top: 4px;
  font-weight: 700;
  text-transform: uppercase;
}
div.cd-post-body p {
    margin-bottom: 1.2rem !important;
    margin-top: 0.6rem !important;
}
/* ────────────────────────────────────────────────
   MOBILE FIXES (max-width: 768px)
   ──────────────────────────────────────────────── */
@media (max-width: 1024px) {

 /* Fix hero background on mobile */
  section.hero,
  .hero {
    background: red !important;
    min-height: 85vh !important;
    padding: 100px 20px 80px !important;
  }

  /* Fix "Fiduciary Financial Advisor in Miami" section — stack vertically */
  .trust-strip .container > div {
    flex-direction: column !important;
    gap: 24px !important;
  }
  .trust-strip .container > div > div:first-child {
    flex: unset !important;
    width: 100% !important;
    border-right: none !important;
    border-bottom: 3px solid #c9a84c !important;
    padding-right: 0 !important;
    padding-bottom: 20px !important;
    text-align: center;
  }
  .trust-strip .container > div > div:first-child h2 {
    font-size: 1.8rem !important;
  }
  .trust-strip .container > div > div:last-child {
    text-align: center;
  }
  .trust-strip .container > div > div:last-child p {
    font-size: 1rem !important;
  }

  /* Fix "As Seen In" section — horizontal scrolling logo strip */
  .press-logos-wrapper {
    overflow: hidden !important;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  }
  .press-logos {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 40px !important;
    animation: press-scroll 25s linear infinite;
    width: max-content;
  }
  .press-logo {
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 0 20px;
  }
  .press-logo img {
    max-height: 40px;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
  }
}

@keyframes press-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.team-section .team-grid {
  align-items: stretch !important;
}
.team-section .team-card {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
}
.team-section .team-card .team-card-photo {
  flex: 0 0 auto !important;
}
.team-section .team-card .team-card-info {
  flex: 1 1 auto !important;
  min-height: 90px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 16px 12px !important;
}
body.page-template-page-about-us .team-grid {
  align-items: stretch !important;
}
body.page-template-page-about-us .team-card {
  display: flex !important;
  flex-direction: column !important;
}
body.page-template-page-about-us .team-card-info {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}