/**
 * Client-Specific Theming & Customizations
 *
 * This file contains CSS variables for easy color/theme customization
 * and any client-specific CSS overrides.
 *
 * USAGE:
 * 1. Update the CSS variables below to match your client's brand colors
 * 2. Add any additional client-specific CSS at the bottom of this file
 * 3. Do not modify bootstrap.css, platforma.css, or clue.css directly
 */


/* ========================================================================
   CSS VARIABLES - CUSTOMIZE THESE FOR EACH CLIENT
   ======================================================================== */

/*
 * PPC palette — derived from the brand logo (src/img/logo.svg).
 *
 * The logo's only brand fill is #183b66 (a deep navy blue, hue ~213°);
 * the wordmark is black. This palette is built as a hue-matched tonal
 * scale anchored on that navy, so the whole site reads as one family:
 *
 *   #183b66 — LOGO NAVY (anchor) → headings, footer, dark sections, sidebar
 *   #20549a — primary interactive blue (buttons, links)  [7.5:1 on white]
 *   #173f78 — primary dark (hover/active)
 *   #4b7cc0 — primary light (illustrative accents)
 *   #6aa5dc — bright highlight (eyebrows, icons on dark)
 *   #eef3f9 — light blue-gray surface (hero/section backgrounds)
 *   #5a6675 — cool slate (secondary text), #1c2433 cool charcoal (body)
 *   font-family: 'Lato'
 *
 * To re-theme, edit the tokens below — clue.css and the header CSS are
 * fully variable-driven, so changes propagate site-wide.
 */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

:root {
  /* ===== PRIMARY BRAND COLORS (logo-derived, hue ~213°) ===== */
  --primary-color: #20549a;              /* Interactive blue — buttons/links */
  --primary-color-dark: #173f78;         /* Hover/active */
  --primary-color-light: #4b7cc0;        /* Lighter accents */
  --primary-color-bright: #6aa5dc;       /* Bright highlight on dark */

  /* Override Bootstrap's primary color to match PPC brand */
  --bs-primary: #20549a;
  --bs-primary-rgb: 32, 84, 154;


  /* ===== SECONDARY COLORS ===== */
  --secondary-color: #183b66;            /* PPC logo navy (brand anchor) */
  --accent-color: #6aa5dc;               /* Bright blue accent */


  /* ===== UI ELEMENT COLORS ===== */
  --link-color: var(--primary-color);
  --link-hover-color: var(--primary-color-dark);
  --button-color: var(--primary-color);
  --button-hover-color: var(--primary-color-dark);


  /* ===== BACKGROUND COLORS ===== */
  --bg-primary: var(--primary-color);
  --bg-secondary: #fafafa;
  --bg-light: #eef3f9;                   /* Light blue-gray (navy tint) */
  --hero-bg-color: #eef3f9;              /* Homepage hero section background */
  --sidebar-bg: rgba(24, 59, 102, 0.96); /* Mobile sidebar — PPC logo navy */


  /* ===== TEXT COLORS ===== */
  --text-primary: #1c2433;               /* Main body text (cool charcoal) */
  --text-secondary: #5a6675;             /* Cool slate secondary text */
  --text-light: #5a6675;                 /* Light slate text */
  --text-white: #ffffff;                 /* White text */


  /* ===== TYPOGRAPHY ===== */
  --font-family-base: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI",
                      Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-headings: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI",
                      Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;

  /* Heading font weights */
  --heading-font-weight: 700;            /* Lato Bold for confident B2B headings */


  /* ===== SPACING ===== */
  --section-padding: 4rem;               /* Vertical padding for major sections */
  --section-padding-mobile: 2rem;        /* Vertical padding on mobile */


  /* ===== BORDER RADIUS ===== */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.375rem;
  --border-radius-lg: 0.5rem;
  --border-radius-pill: 30px;            /* For rounded buttons */


  /* ===== SHADOWS ===== */
  --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}


/* ========================================================================
   DARK MODE SUPPORT (OPTIONAL)
   Uncomment this section if you want to support dark mode
   ======================================================================== */

/*
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-light: #3d3d3d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
  }
}
*/


/* ========================================================================
   CLIENT-SPECIFIC CSS OVERRIDES
   Add any additional custom CSS below this line
   ======================================================================== */

/* Example: Override specific element styling
.custom-header {
  background-color: var(--primary-color);
  color: var(--text-white);
}
*/

/* Example: Client-specific font import
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');
:root {
  --font-family-base: 'Roboto', sans-serif;
}
*/

/* Example: Custom button style
.btn-custom {
  background-color: var(--accent-color);
  color: white;
  border-radius: var(--border-radius-pill);
  padding: 0.75rem 2rem;
}
*/


/* ========================================================================
   USAGE EXAMPLES & NOTES
   ======================================================================== */

/*
HOW TO USE CSS VARIABLES:

1. In your HTML or other CSS:
   background-color: var(--primary-color);
   color: var(--text-primary);

2. To change colors for a specific client:
   - Simply update the hex values in the :root section above
   - All instances throughout the site will update automatically

3. Common customizations by client:
   - --primary-color: Your client's main brand color
   - --sidebar-bg: Match the sidebar to their branding
   - --hero-bg-color: Customize homepage hero section
   - --font-family-base: Use client's preferred font

4. Advanced: Override Bootstrap classes:
   .btn-primary {
     background-color: var(--primary-color);
     border-color: var(--primary-color);
   }

BEST PRACTICES:
- Always use variables instead of hardcoded colors
- Test changes across multiple pages before deploying
- Keep client-specific overrides in this file
- Document any custom CSS you add below
*/


/* ========================================================================
   SERVICE PAGE HELPERS (.svc-*)
   Shared primitives for the standardized service-page skeleton:
   numbered process steps and stat/figure callouts. Namespaced to avoid
   collisions with clue.css / bootstrap.
   ======================================================================== */

/* Numbered "how it works" step */
.svc-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.svc-step-num {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.svc-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.35rem;
}
.svc-step p { margin-bottom: 0; color: #555; }

/* Stat / figure callout */
.svc-stat {
  text-align: center;
  padding: 1.5rem 1rem;
}
.svc-stat-figure {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--primary-color);
}
.svc-stat-label {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.35rem;
}

/* Service-page accordion: brand the open header for a more polished look */
.svc-faq .accordion-button:not(.collapsed) {
  background: #e8eff8;
  color: var(--primary-color);
}
.svc-faq .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(32, 84, 154, 0.25);
}


/* ========================================================================
   HOMEPAGE SPLIT HERO
   Two-column hero content layered over the background video: headline + CTAs
   on the left, a frosted-glass "practice areas" quick-nav card on the right.
   ======================================================================== */

/* In the centered hero, clue.css pads hero <p> by 4rem at md+. The split
   layout uses a narrower left column, so cancel that padding here. */
.hero-lead-col p {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Hero CTAs (Message Us / phone) use btn-outline-light / btn-light, which
   miss the pill radius clue.css applies to .btn-outline-primary, footer
   buttons, etc. Match the site's rounded button shape here. */
.hero-cta-buttons .btn {
  border-radius: var(--border-radius-pill);
}

/* Frosted card */
.hero-card {
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 20px 60px rgba(24, 59, 102, 0.35);
}

.hero-card-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-color-bright);
  margin-bottom: 0.4rem;
}

.hero-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.1rem;
}

.hero-card-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-card-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hero-card-link:hover,
.hero-card-link:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.30);
  transform: translateX(3px);
  color: #fff;
}

.hero-card-link-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  color: #bcd6f1;
  font-size: 1.15rem;
}

.hero-card-link-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  line-height: 1.25;
  text-align: left;
}
.hero-card-link-title { font-weight: 700; font-size: 0.98rem; }
.hero-card-link-sub { font-size: 0.78rem; color: rgba(255, 255, 255, 0.7); }

.hero-card-link-arrow {
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, color 0.2s ease;
}
.hero-card-link:hover .hero-card-link-arrow,
.hero-card-link:focus-visible .hero-card-link-arrow {
  transform: translateX(3px);
  color: #fff;
}

.hero-card-foot {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-card-foot i { color: var(--primary-color-bright); }

@media (max-width: 991.98px) {
  .hero-card { margin-top: 0.75rem; }
}


/* =========================================================
   PARTNERS PAGE — editorial feature rows
   ========================================================= */
.partner-feature { overflow: hidden; }

.partner-portrait {
  position: relative;
  z-index: 0;
}
.partner-portrait .hp-media-frame {
  position: relative;
  z-index: 1;
}
.partner-portrait .hp-media-frame img {
  /* height:auto overrides the img height="" attribute (a presentational hint);
     without it the fixed pixel height wins and aspect-ratio is ignored. */
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}
/* Offset brand-accent block tucked behind each portrait (desktop only) */
@media (min-width: 768px) {
  .partner-portrait::after {
    content: "";
    position: absolute;
    bottom: -18px;
    width: 58%;
    height: 62%;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.14;
    z-index: 0;
  }
  .partner-portrait.is-left::after { left: -18px; }
  .partner-portrait.is-right::after { right: -18px; }
}

.partner-body { max-width: 640px; }

.partner-name {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.85rem;
}

.partner-creds { margin-bottom: 1.1rem; }

.partner-quote {
  border-left: 3px solid var(--accent-color);
  margin: 0 0 1.25rem;
  padding: 0.15rem 0 0.15rem 1rem;
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--primary-color-dark);
}

.partner-focus { margin-top: 1.5rem; }
.partner-focus-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}
.partner-focus .hp-chip {
  background: transparent;
  border: 1px solid #c9d8ea;
  color: var(--primary-color-dark);
}

@media (max-width: 767.98px) {
  .partner-name { font-size: 1.55rem; }
  .partner-body { max-width: none; }
}


/* =========================================================
   INSIDE-HEADER BANNER — readable text on the blue gradient.
   clue.css whitens the h1 but leaves the eyebrow (brand blue)
   and subheading (#555 gray) low-contrast on the blue band.
   ========================================================= */
#inside-header .hp-eyebrow {
  color: rgba(255, 255, 255, 0.8);
}
#inside-header .hp-section-sub {
  color: rgba(255, 255, 255, 0.9);
}


/* ========================================================================
   PREVIOUSLY-SOLD PRACTICES ACCORDION (practices-for-sale page)
   Compact, click-to-expand rows showing the firm's transition track record.
   ======================================================================== */
.sold-item {
  border: 1px solid #dde3e7;
  border-radius: 0.375rem;
  background: #fff;
  overflow: hidden;
}

.sold-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 600;
  color: var(--primary-color-dark, #173f78);
  cursor: pointer;
}

.sold-toggle:hover,
.sold-toggle:focus-visible {
  background: #e8eff8;
}

.sold-toggle .sold-name {
  flex: 1 1 auto;
}

.sold-toggle .sold-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* "Sold" badge — muted slate pill to read as completed/past, not alarming */
.sold-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  background: #636d75;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sold-chevron {
  font-size: 0.85rem;
  color: #636d75;
  transition: transform 0.2s ease;
}

.sold-toggle:not(.collapsed) .sold-chevron {
  transform: rotate(180deg);
}

.sold-details-list {
  padding: 0 0.9rem 0.85rem;
  color: #555;
}

.sold-details-list li {
  margin-bottom: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .sold-chevron {
    transition: none;
  }
}

/* ========================================================================
   HOMEPAGE INTRO — "A Firm Built for the Dental Community"
   Photo + headline split, with a credibility stats row beneath.
   ======================================================================== */

.hp-intro .hp-section-heading {
  line-height: 1.15;
}

/* Supporting copy */
.hp-intro-lede {
  color: #333;
}
.hp-intro-body {
  color: #555;
}

/* Photograph fills its column height on wide screens. */
@media (min-width: 992px) {
  .hp-intro-media,
  .hp-intro-media img {
    height: 100%;
  }
  .hp-intro-media img {
    object-fit: cover;
  }
}

/* Credibility stats row */
.hp-stats {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e2e8f0;
}
.hp-stat {
  text-align: center;
  padding: 0.5rem 0.25rem;
}
.hp-stat-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary-color);
}
.hp-stat-num i {
  font-size: 2rem;
}
.hp-stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #5a6675;
}

@media (max-width: 767.98px) {
  .hp-stat-num { font-size: 2rem; }
}


/* ========================================================================
   CONTACT FORM — split card (navy reassurance aside + form panel)
   A two-column elevated card: brand-gradient panel with context and contact
   details on the left, the restyled inquiry form on the right.
   ======================================================================== */
.contact-shell {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(24, 59, 102, 0.13);
}

/* ----- Left reassurance panel ----- */
.contact-aside {
  position: relative;
  padding: 3rem 2.5rem;
  color: #fff;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(107, 165, 220, 0.28) 0%, rgba(107, 165, 220, 0) 55%),
    linear-gradient(155deg, var(--secondary-color) 0%, #1d4576 55%, #235a9e 100%);
}
.contact-aside-eyebrow { color: var(--primary-color-bright); }
.contact-aside-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  color: #fff;
}
.contact-aside-lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.contact-aside-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.contact-aside-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}
.contact-aside-list i {
  flex: 0 0 auto;
  margin-top: 0.12rem;
  font-size: 1.05rem;
  color: var(--primary-color-bright);
}

.contact-aside-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 0 1.5rem;
}

.contact-aside-info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-aside-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.contact-aside-info > li > i {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.12);
  color: var(--primary-color-bright);
}
.contact-aside-info a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.contact-aside-info a:hover,
.contact-aside-info a:focus-visible { text-decoration: underline; }
.contact-aside-info-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
  margin-right: 0.4rem;
}

/* ----- Right form panel ----- */
.contact-form-panel { padding: 3rem 2.5rem; }

.contact-form .form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--secondary-color);
  margin-bottom: 0.35rem;
}
.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid #d7e0ea;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  background-color: #fbfcfe;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.contact-form .form-control:hover,
.contact-form .form-select:hover { border-color: #b9c8d9; }
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary-color);
  background-color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(32, 84, 154, 0.15);
}
.contact-form .form-control::placeholder { color: #9aa7b5; }

.contact-submit {
  width: 100%;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  font-weight: 700;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(32, 84, 154, 0.3);
}

.contact-privacy { color: var(--text-secondary); }
.contact-privacy i { color: var(--primary-color); }

@media (max-width: 991.98px) {
  .contact-aside { padding: 2.25rem 1.75rem; }
  .contact-form-panel { padding: 2.25rem 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-submit { transition: none; }
  .contact-submit:hover { transform: none; }
}
