/*
Theme Name: New Concepts in Recovery
Theme URI: https://newconceptsinrecovery.com
Author: New Concepts in Recovery
Author URI: https://newconceptsinrecovery.com
Description: Bilingual (EN/ES) custom theme for New Concepts in Recovery — DOT SAP evaluations, drug & alcohol counseling, and addiction recovery services in San Diego County, CA. Built with a GEO/SEO-first content structure (schema.org markup, FAQ schema, clear entity descriptions) and an online scheduling section for Ky Washington, SAP.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: ncr
Tags: custom-menu, translation-ready, responsive-layout, healthcare, one-column, two-columns
*/

/* ==========================================================================
   0. CSS Variables / Design Tokens
   ========================================================================== */
:root {
  /* Corporate-compliance palette (deep navy + primary blue + a single
     "cleared / compliant" green accent) — modeled after DOT/SAP testing
     provider sites like goMDnow rather than a softer wellness look. */
  --ncr-teal-900: #0b2545;   /* deep navy — header/footer/hero */
  --ncr-teal-700: #1d5fd6;   /* primary blue — buttons, links, accents */
  --ncr-teal-600: #2f6fe0;   /* lighter blue */
  --ncr-teal-100: #eaf1fb;   /* pale blue section tint */
  --ncr-sand-50:  #f7f9fc;   /* near-white page background */
  --ncr-sand-100: #eef2f7;
  --ncr-coral-600:#0f9d58;   /* green accent — "compliant / cleared" signal */
  --ncr-coral-700:#0c7d46;
  --ncr-ink-900:  #17233a;   /* charcoal headings/text */
  --ncr-ink-600:  #55606e;   /* body gray */
  --ncr-line:     #e2e8f0;
  --ncr-white:    #ffffff;

  --ncr-font-head: 'Poppins', 'Segoe UI', sans-serif;
  --ncr-font-body: 'Inter', 'Segoe UI', sans-serif;

  --ncr-radius: 10px;
  --ncr-shadow: 0 10px 30px rgba(11,37,69,0.08);
  --ncr-container: 1160px;
}

/* ==========================================================================
   1. Reset / Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ncr-font-body);
  color: var(--ncr-ink-900);
  background: var(--ncr-sand-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--ncr-font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--ncr-teal-900); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--ncr-container); margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 8px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 2px solid transparent; transition: all .2s ease;
}
.btn-primary { background: var(--ncr-coral-600); color: #fff; }
.btn-primary:hover { background: var(--ncr-coral-700); }
.btn-outline { border-color: var(--ncr-white); color: var(--ncr-white); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-teal { background: var(--ncr-teal-700); color: #fff; }
.btn-teal:hover { background: var(--ncr-teal-900); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--ncr-coral-600); }

/* ==========================================================================
   2. Top bar / Header
   ========================================================================== */
.topbar { background: var(--ncr-teal-900); color: #cfe6e3; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; }
.lang-toggle { display: inline-flex; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; overflow: hidden; }
.lang-toggle a { background: transparent; border: none; color: #cfe6e3; padding: 3px 10px; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-block; }
.lang-toggle a.active { background: var(--ncr-coral-600); color: #fff; }

.site-header { background: var(--ncr-white); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--ncr-line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--ncr-font-head); font-weight: 700; font-size: 19px; color: var(--ncr-teal-900); }
.logo .mark { width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(from 200deg, var(--ncr-teal-600), var(--ncr-coral-600), var(--ncr-teal-600)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; }
.logo small { display: block; font-family: var(--ncr-font-body); font-weight: 500; font-size: 11px; color: var(--ncr-ink-600); text-transform: uppercase; letter-spacing: .08em; }
.main-nav ul { display: flex; gap: 28px; align-items: center; }
.main-nav a { font-weight: 600; font-size: 14.5px; color: var(--ncr-ink-900); }
.main-nav a:hover, .main-nav a.current { color: var(--ncr-coral-600); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 700; color: var(--ncr-teal-700); font-size: 14.5px; }
.nav-toggle { display: none; }

/* ==========================================================================
   3. Hero
   ========================================================================== */
.hero { position: relative; background: linear-gradient(120deg, var(--ncr-teal-900) 0%, var(--ncr-teal-700) 55%, var(--ncr-teal-600) 100%); color: #fff; overflow: hidden; }
.hero::after { content:""; position:absolute; right:-120px; top:-120px; width:420px; height:420px; border-radius:50%; background: radial-gradient(circle, rgba(47,111,224,.35), transparent 70%); }
.breadcrumb { font-size: 12.5px; color: #a9c1ec; margin-bottom: 14px; }
.breadcrumb a { color: #cfe0fb; }
.breadcrumb span { margin: 0 6px; opacity: .6; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; padding-top: 72px; padding-bottom: 72px; align-items: center; }
.hero h1 { color: #fff; font-size: 42px; margin-bottom: .35em; }
.hero .lede { font-size: 17.5px; color: #dcefec; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.trust-strip { display: flex; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.trust-strip .item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #eaf6f4; }
.trust-strip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ncr-coral-600); flex: none; }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: var(--ncr-radius); padding: 26px; backdrop-filter: blur(4px); }
.hero-card h3 { color: #fff; font-size: 18px; }
.hero-card .name { font-size: 22px; font-weight: 700; color: #fff; }
.hero-card .role { color: #cfe6e3; font-size: 13.5px; margin-bottom: 14px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.badge { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 11.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; }

/* ==========================================================================
   4. Section framing
   ========================================================================== */
.section { padding: 76px 0; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: 30px; }
.section-alt { background: var(--ncr-teal-100); }

/* ==========================================================================
   5. Services grid
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { background: #fff; border: 1px solid var(--ncr-line); border-radius: var(--ncr-radius); padding: 26px; box-shadow: var(--ncr-shadow); transition: transform .2s ease; }
.service-card:hover { transform: translateY(-4px); }
.service-card .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--ncr-teal-100); color: var(--ncr-teal-700); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.service-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; color: var(--ncr-ink-600); margin-bottom: 0; }

/* ==========================================================================
   6. About / credibility
   ========================================================================== */
.about-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.about-photo { aspect-ratio: 4/5; border-radius: var(--ncr-radius); background: linear-gradient(160deg, var(--ncr-teal-600), var(--ncr-teal-900)); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--ncr-font-head); font-size: 15px; text-align: center; box-shadow: var(--ncr-shadow); }
.stat-row { display: flex; gap: 28px; margin: 22px 0; flex-wrap: wrap; }
.stat { }
.stat .num { font-family: var(--ncr-font-head); font-size: 28px; font-weight: 700; color: var(--ncr-coral-600); }
.stat .label { font-size: 12.5px; color: var(--ncr-ink-600); font-weight: 600; }

/* ==========================================================================
   7. FAQ / GEO Q&A
   ========================================================================== */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--ncr-line); border-radius: 12px; padding: 18px 22px; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 15.5px; color: var(--ncr-teal-900); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--ncr-coral-600); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 10px; color: var(--ncr-ink-600); font-size: 14.5px; }

/* ==========================================================================
   8. Scheduling section
   ========================================================================== */
.schedule-section { background: var(--ncr-teal-900); color: #fff; border-radius: 24px; margin: 0 24px; }
.schedule-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 56px; }
.schedule-inner h2 { color: #fff; }
.schedule-inner p { color: #cfe6e3; }
.schedule-widget { background: #fff; border-radius: var(--ncr-radius); padding: 22px; color: var(--ncr-ink-900); box-shadow: var(--ncr-shadow); }
.schedule-widget .placeholder { border: 2px dashed var(--ncr-line); border-radius: 10px; padding: 30px; text-align: center; color: var(--ncr-ink-600); font-size: 13.5px; }
.contact-quick { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer { background: var(--ncr-ink-900); color: #cdd6d3; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.site-footer a { color: #b9c4c0; font-size: 13.5px; line-height: 2.1; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: 12.5px; color: #8fa19c; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   9b. Inner page header + generic content (about/services/faq/contact/blog)
   ========================================================================== */
.page-hero { background: linear-gradient(120deg, var(--ncr-teal-900), var(--ncr-teal-700)); color: #fff; padding: 56px 0; }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero p { color: #cfe6e3; max-width: 60ch; margin: 0; }
.entry-content { max-width: 780px; margin: 0 auto; padding: 56px 24px; }
.entry-content h2 { margin-top: 1.4em; }
.entry-content p { color: var(--ncr-ink-600); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card { background: #fff; border: 1px solid var(--ncr-line); border-radius: var(--ncr-radius); padding: 26px; box-shadow: var(--ncr-shadow); }
.contact-card h3 { font-size: 16px; }
.form-row { margin-bottom: 14px; }
.form-row label { display:block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ncr-ink-900); }
.form-row input, .form-row textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--ncr-line); border-radius: 8px; font-family: var(--ncr-font-body); font-size: 14px; }
.form-row textarea { min-height: 110px; resize: vertical; }

/* ==========================================================================
   11. Highlight / "what's included" box (goMDnow-style summary card)
   ========================================================================== */
.highlight-box { background: #fff; border: 1px solid var(--ncr-line); border-left: 5px solid var(--ncr-teal-700); border-radius: var(--ncr-radius); padding: 26px 28px; box-shadow: var(--ncr-shadow); }
.highlight-box h3 { font-size: 16px; margin-bottom: 12px; }
.highlight-box ul { display: flex; flex-direction: column; gap: 10px; }
.highlight-box li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ncr-ink-600); }
.highlight-box li .check { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ncr-coral-600); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }

/* ==========================================================================
   12. Numbered process steps
   ========================================================================== */
.process-steps { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.process-step { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--ncr-line); }
.process-step:last-child { border-bottom: none; }
.process-step .num { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ncr-teal-700); color: #fff; font-family: var(--ncr-font-head); font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.process-step h4 { font-size: 16px; margin-bottom: 4px; }
.process-step p { font-size: 14.5px; color: var(--ncr-ink-600); margin-bottom: 0; }

/* ==========================================================================
   13. Employer responsibilities / compliance checklist
   ========================================================================== */
.responsibility-panel { background: var(--ncr-teal-900); color: #fff; border-radius: 18px; padding: 46px; }
.responsibility-panel h2 { color: #fff; }
.responsibility-panel > p { color: #c9d8f5; max-width: 62ch; }
.responsibility-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin-top: 22px; }
.responsibility-list li { display: flex; gap: 10px; font-size: 14px; color: #dfe9fb; align-items: flex-start; }
.responsibility-list li .check { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ncr-coral-600); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }

/* ==========================================================================
   14. Trust badges strip
   ========================================================================== */
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.trust-badges .tb { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--ncr-line); border-radius: 999px; padding: 10px 18px; font-size: 13px; font-weight: 700; color: var(--ncr-ink-900); box-shadow: var(--ncr-shadow); }
.trust-badges .tb .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ncr-coral-600); }

/* ==========================================================================
   15. Related services / related content tiles
   ========================================================================== */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: #fff; border: 1px solid var(--ncr-line); border-radius: var(--ncr-radius); padding: 22px; }
.related-card .eyebrow { display: block; margin-bottom: 6px; }
.related-card h4 { font-size: 15.5px; margin-bottom: 6px; }
.related-card p { font-size: 13.5px; color: var(--ncr-ink-600); margin-bottom: 10px; }
.related-card a.link { font-size: 13px; font-weight: 700; color: var(--ncr-teal-700); }

.content-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.content-tile { display: block; background: #fff; border: 1px solid var(--ncr-line); border-radius: var(--ncr-radius); overflow: hidden; }
.content-tile .thumb { height: 110px; background: linear-gradient(135deg, var(--ncr-teal-700), var(--ncr-teal-900)); }
.content-tile .body { padding: 18px 20px; }
.content-tile .kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ncr-coral-600); }
.content-tile h4 { font-size: 15px; margin: 6px 0; }
.content-tile p { font-size: 13.5px; color: var(--ncr-ink-600); margin-bottom: 0; }

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; }
  .schedule-inner { grid-template-columns: 1fr; padding: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .content-tiles { grid-template-columns: 1fr; }
  .responsibility-list { grid-template-columns: 1fr; }
  .responsibility-panel { padding: 30px; }
}
@media (max-width: 620px) {
  .main-nav { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .process-step { gap: 14px; }
}
