/* ==========================================================================
   theme.css: "Navy + plotting chart" look (December 2026)
   Load LAST on every page, after styles.css, dx.css and site.css.
   Remove this file's <link> to go back to the previous look.
   ========================================================================== */

/* ---------- Colors ----------
   Tangerine #FF7A1A replaces gold as the accent. The compass logo images
   keep their own gold. --gold-dark is a deeper orange that stays readable
   as text on white (5:1). */
:root{
  --gold:#FF7A1A;
  --gold-dark:#C2410C;
  --gold-soft:#FFE1C7;
  --gold-wash:#FFF4EA;
  --tangerine:#FF7A1A;
  --compass-gold:#D5A846;
  --navy-fade:radial-gradient(circle at 78% 45%, #275C8A 0%, #17405F 36%, #0B1F33 72%, #071524 100%);
  --navy-fade-center:radial-gradient(ellipse at 50% 40%, #275C8A 0%, #0B1F33 66%, #071524 100%);
  --tangerine-glow:0 0 35px rgba(255,122,26,.56), 0 4px 18px rgba(255,122,26,.38);
}

/* ---------- Buttons: tangerine with a soft glow ---------- */
.pill{background:var(--tangerine);color:var(--navy-950);box-shadow:var(--tangerine-glow)}
.pill:hover,.pill:focus-visible{background:#FF8C33;color:var(--navy-950)}
.site nav .pill.sm{box-shadow:0 0 22px rgba(255,122,26,.40), 0 3px 10px rgba(255,122,26,.28)}

/* ---------- Hero (home and Truth Check) ---------- */
.hero{background:var(--navy-fade);position:relative;overflow:hidden;isolation:isolate}
.hero .chart{display:none} /* replaced by the plotting chart below */
.hero > .wrap{position:relative;z-index:1}
/* plotting chart: range rings, dial ticks, eight bearing lines (north in tangerine) */
.hero::after{
  content:"";position:absolute;z-index:0;pointer-events:none;
  width:1500px;height:1500px;left:78%;top:45%;transform:translate(-50%,-50%);
  background:url("assets/chart.svg") center/contain no-repeat;
}
/* faint sea-chart depth contours, bottom-left */
.hero::before{
  content:"";position:absolute;z-index:0;pointer-events:none;
  width:600px;height:420px;left:-140px;bottom:-150px;
  background:url("assets/contours-a.svg") center/contain no-repeat;
}
.hero h1 em{color:#FF8A3D;text-decoration:underline;text-decoration-color:var(--tangerine);text-decoration-thickness:.08em;text-underline-offset:.14em}

/* ---------- Inner page headers (Why, Assess, How, About, Review) ---------- */
.ph{background:radial-gradient(circle at 85% 50%, #275C8A 0%, #17405F 34%, #0B1F33 70%, #071524 100%);color:var(--white);position:relative;overflow:hidden;isolation:isolate}
.ph > .wrap{position:relative;z-index:1}
.ph h1{color:var(--white)}
.ph .lead{color:#D6DEE7;max-width:36em}
.ph .eyebrow{color:var(--tangerine)}
.ph::after{
  content:"";position:absolute;z-index:0;pointer-events:none;
  width:1100px;height:1100px;left:88%;top:50%;transform:translate(-50%,-50%);
  background:url("assets/seal.webp") center/240px 240px no-repeat, url("assets/chart.svg") center/contain no-repeat;
  opacity:.9;
}
.ph::before{
  content:"";position:absolute;z-index:0;pointer-events:none;
  width:600px;height:420px;left:-180px;bottom:-200px;
  background:url("assets/contours-c.svg") center/contain no-repeat;
}
@media (max-width:1279px){
  .ph::after{left:96%;opacity:.75}
}
@media (max-width:820px){
  /* phones: drop the compass image, keep only a faint chart off to the right */
  .ph::after{left:100%;opacity:.5;background:url("assets/chart.svg") center/contain no-repeat}
}
/* Request a Review: tighten the gap above the form */
.band:has(> .wrap.rv){padding-top:clamp(28px,4vw,48px)}

/* ---------- Closing call-to-action box ---------- */
.cta .ctabox{
  position:relative;overflow:hidden;
  background:
    url("assets/contours-b.svg") right -160px top -170px/600px 420px no-repeat,
    url("assets/contours-c.svg") left -180px bottom -190px/600px 420px no-repeat,
    var(--navy-fade-center);
  color:var(--white);
}
.cta p{color:#D6DEE7}

/* ---------- Footer: compass navy ---------- */
footer{background:var(--navy-950);color:#C9D3DD}
footer a{color:var(--white)}
footer a:hover{color:var(--tangerine)}
footer b{color:var(--white)}

/* ---------- Truth Check results: "Go deeper" card ----------
   Was solid gold; a flat block of tangerine is too loud, so it becomes a
   navy card with a tangerine button, matching the rest of the theme. */
.deepcta{
  background:url("assets/contours-b.svg") right -200px top -190px/600px 420px no-repeat, var(--navy-fade-center);
  color:var(--white);position:relative;overflow:hidden;
}
.deepcta .eyebrow{color:var(--tangerine)!important} /* overrides an inline colour in app.js */
.deepcta h3{color:var(--white)}
.deepcta p{color:#D6DEE7}
.deepcta .go{background:var(--tangerine);color:var(--navy-950);box-shadow:var(--tangerine-glow)}
.deepcta .go:hover{background:#FF8C33}

/* Request a Review: link under the form (now on a light background) */
.rv .dx-note a{color:var(--gold-dark);font-weight:600}

/* Copied from site.css (testimonial cards) so the hero never depends on a cached site.css */
/* ---------- home: testimonials in the hero ---------- */
.hero .wrap:has(.tst){padding-block:clamp(36px,5vw,64px);align-items:center}
.tst{position:relative;isolation:isolate}
.tst-seal{position:absolute;z-index:-1;width:min(420px,90%);top:50%;left:50%;transform:translate(-50%,-50%);opacity:.14;pointer-events:none}
.tst-grid{display:grid;gap:14px;margin-top:12px}
.tst-card{margin:0;background:rgba(7,21,36,.72);backdrop-filter:blur(2px);border:1px solid rgba(255,255,255,.1);border-left:3px solid var(--gold);border-radius:var(--r-md);padding:18px 20px 16px 22px;display:flex;flex-direction:column;gap:12px}
.tst-card blockquote{margin:0;font-family:var(--serif);font-size:clamp(15.5px,1.25vw,17px);line-height:1.45;color:#e3e9ef}
.tst-card blockquote p+p{margin-top:8px}
.tst-card blockquote p:first-child::before{content:"\201C";color:var(--gold);margin-right:1px}
.tst-card blockquote p:last-child::after{content:"\201D";color:var(--gold)}
.tst-card figcaption{display:flex;flex-direction:column;gap:1px;font-size:12.5px;color:#9fb0c1}
.tst-card figcaption b{color:var(--white);font-weight:600;font-size:13.5px}
@media (min-width:901px){.hero .wrap:has(.tst) h1{font-size:clamp(40px,5vw,64px)}}

/* ---------- Home: compass above the testimonials ----------
   A visible compass at the top of the right-hand column, with the plotting
   chart radiating from it (replaces the hero-wide chart on the home page). */
.hero:has(.tst)::after{display:none}
.tst{position:relative;isolation:isolate}
.tst-compass{position:relative;width:210px;height:210px;margin:0 auto 30px}
.tst-compass img{position:relative;z-index:1;display:block;width:100%;height:100%;border-radius:50%;filter:drop-shadow(0 18px 40px rgba(0,0,0,.5))}
.tst-compass::before{content:"";position:absolute;z-index:0;pointer-events:none;width:940px;height:940px;left:50%;top:50%;transform:translate(-50%,-50%);background:url("assets/chart.svg") center/contain no-repeat}
.tst > .eyebrow,.tst .tst-grid{position:relative;z-index:1}
.tst .tst-grid{margin-top:18px}            /* space between the label and the cards */
.tst-card figcaption,.rec figcaption{gap:4px}
@media (max-width:900px){
  .tst{margin-top:16px}
  .tst-compass{width:150px;height:150px;margin-bottom:26px}
  .tst-compass::before{width:680px;height:680px}
}
