/* South Jersey Sync Solutions - additions on top of the TechNova look.
   Uses the template's theme variables so light/dark both work. */

/* wide-screen scaling: rem-based type steps up on big monitors */
html { font-size: 100%; }
@media (min-width: 1600px) { html { font-size: 112.5%; } }
@media (min-width: 2200px) { html { font-size: 131.25%; } }

/* skip link */
.skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: .6rem 1rem; background: var(--accent); color: #fff; }
.skip:focus { left: 0; }

/* header language + theme controls: simple link instead of the template's <select> */
.lang-link { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border-radius: 999px;
  border: 1px solid var(--ctrl-border); background: var(--ctrl-bg); color: var(--ctrl-text); font-size: .85rem; font-weight: 600; text-decoration: none; }
.lang-link:hover { border-color: var(--ctrl-hover-border); background: var(--ctrl-hover-bg); }
.lang-link [aria-current="true"] { opacity: .55; }

/* brand mark */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text-primary); font-weight: 700; letter-spacing: .01em; }
.brand-logo { height: 3.1rem; width: auto; display: block; }
/* two transparent PNGs, no background plate: the dark one has the black outline turned white and the deepest blues lightened */
.brand-logo--dark { display: none; }
html.dark-mode .brand-logo--light { display: none; }
html.dark-mode .brand-logo--dark { display: block; }
@media (max-width: 30rem) { .brand-logo { height: 2.35rem; } }

/* Spanish/English notice */
.lang-hint { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; max-width: 34rem; margin: 0 auto;
  padding: .85rem 1rem; border-radius: .75rem; background: var(--bg-glass); border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(12px); display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.lang-hint[hidden] { display: none; }
.lang-hint a, .lang-hint button { color: var(--accent); font-weight: 600; background: none; border: 0; cursor: pointer; font: inherit; text-decoration: underline; }

/* inner pages */
.page-top { padding-top: 9rem; padding-bottom: 1rem; }
.page-card { background: var(--bg-glass); border: 1px solid var(--bg-glass-border); border-radius: 1.25rem; padding: 2rem; box-shadow: var(--shadow-card); backdrop-filter: blur(10px); }
@media (min-width: 40rem) { .page-card { padding: 2.75rem; } }
.prose-sj { max-width: 46rem; color: var(--text-secondary); line-height: 1.7; }
.prose-sj h2 { color: var(--text-primary); font-size: 1.35rem; margin: 2rem 0 .5rem; font-weight: 700; }
.prose-sj h3 { color: var(--text-primary); font-weight: 600; margin: 1.2rem 0 .3rem; }
.prose-sj p, .prose-sj li { color: var(--text-secondary); }
.prose-sj ul { padding-left: 1.2rem; list-style: disc; margin: .5rem 0 1rem; }
.prose-sj a { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.prose-sj blockquote { margin: .8rem 0; padding: .8rem 1.1rem; border-left: .25rem solid var(--accent); background: var(--bg-glass); border-radius: 0 .75rem .75rem 0; }
.updated-sj { color: var(--text-muted); font-size: .95rem; }
.note-sj { margin-top: 1.5rem; padding: .9rem 1.1rem; border-radius: .75rem; border: 1px dashed var(--bg-glass-border); color: var(--text-muted); font-size: .92rem; }

/* generic forms (contact, SMS opt-in) */
.sj-form { display: grid; gap: 1rem; }
.sj-form label { display: grid; gap: .3rem; font-weight: 600; color: var(--text-primary); }
.sj-form label.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; color: var(--text-secondary); }
.sj-form label.check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; }
.sj-form input[type=text], .sj-form input[type=email], .sj-form input[type=tel], .sj-form textarea {
  width: 100%; padding: .8rem 1rem; border-radius: .6rem; border: 1px solid var(--ctrl-border); background: var(--bg-input);
  color: var(--text-primary); font: inherit; font-weight: 400; }
.sj-form textarea { min-height: 8rem; resize: vertical; }
.sj-form input:focus, .sj-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.hp-sj { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.small-sj { font-size: .9rem; color: var(--text-muted); }
.btn-sj { display: inline-block; padding: .85rem 1.6rem; border-radius: .6rem; font-weight: 700; cursor: pointer; text-decoration: none; border: 0; font-size: 1rem; }

/* Mission wizard */
.mw { max-width: 46rem; margin: 0 auto; }
.mw-progress { height: .4rem; border-radius: 999px; background: var(--bg-glass); border: 1px solid var(--bg-glass-border); overflow: hidden; margin-bottom: 1rem; }
.mw-progress__fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4); transition: width .3s ease; }
.mw-step { color: var(--accent); font-size: .85rem; margin: 0 0 .5rem; letter-spacing: .06em; text-transform: uppercase; }
.mw-title { font-size: clamp(1.5rem, 1.5vw + 1.1rem, 2.1rem); font-weight: 700; margin: 0 0 .5rem; color: var(--text-primary); outline: none; }
.mw-help { color: var(--text-secondary); margin: 0 0 1.5rem; max-width: 40rem; }
.mw-form { display: grid; gap: 1.4rem; }
.mw-field { display: grid; gap: .5rem; }
.mw-label { font-weight: 600; color: var(--text-primary); }
.mw-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.mw-fieldset .mw-label { margin-bottom: .6rem; display: block; padding: 0; }
.mw-options { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.mw-option { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border-radius: .75rem; cursor: pointer;
  border: 1px solid var(--bg-glass-border); background: var(--bg-glass); color: var(--text-secondary); }
.mw-option:hover { border-color: var(--accent); }
.mw-option input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--accent); }
.mw-option:has(input:checked) { border-color: var(--accent); background: var(--accent-glow); color: var(--text-primary); }
.mw-input { width: 100%; padding: .8rem 1rem; border-radius: .6rem; border: 1px solid var(--ctrl-border); background: var(--bg-input); color: var(--text-primary); font: inherit; }
.mw-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.mw-nav { display: flex; gap: .75rem; justify-content: space-between; flex-wrap: wrap; margin-top: .5rem; }
.mw-btn { padding: .85rem 1.6rem; border-radius: .6rem; font-weight: 700; cursor: pointer; font-size: 1rem; }
.mw-btn--ghost { background: transparent; border: 1px solid var(--ctrl-border); color: var(--text-secondary); }
.mw-btn--ghost:hover { border-color: var(--accent); color: var(--text-primary); }
.mw-link { display: inline-block; text-decoration: none; margin-top: 1rem; }
.mw-error { color: #f87171; min-height: 1.2em; margin: 0; font-weight: 600; }
.mw-brief { white-space: pre-wrap; word-break: break-word; font-family: inherit; line-height: 1.6; padding: 1.1rem 1.25rem; border-radius: .75rem;
  border: 1px solid var(--bg-glass-border); background: var(--bg-glass); color: var(--text-primary); margin: 0 0 1rem; }
.mw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mw-card { background: var(--bg-glass); border: 1px solid var(--bg-glass-border); border-radius: 1.25rem; padding: 1.5rem; box-shadow: var(--shadow-card); backdrop-filter: blur(10px); }
@media (min-width: 40rem) { .mw-card { padding: 2.5rem; } }

/* Our-brands row + small helpers */
.mini-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .6rem; border-radius: 999px;
  color: var(--accent); border: 1px solid var(--bg-glass-border); background: var(--bg-glass); }
.steps-sj { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps-sj li { counter-increment: s; padding: 1.6rem; border-radius: 1rem; background: var(--bg-glass); border: 1px solid var(--bg-glass-border); }
.steps-sj li::before { content: counter(s); display: flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #fff; font-weight: 700; margin-bottom: .8rem; }
.steps-sj b { display: block; font-size: 1.1rem; margin-bottom: .3rem; color: var(--text-primary); }
.steps-sj span { color: var(--text-secondary); }
.contact-row { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: .9rem; border: 1px solid var(--bg-glass-border); background: var(--bg-glass); }
.contact-row .ico { width: 2.75rem; height: 2.75rem; border-radius: .6rem; display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.contact-row b { display: block; color: var(--text-primary); }
.contact-row a, .contact-row span { color: var(--text-secondary); overflow-wrap: anywhere; }
.contact-row > div:last-child { min-width: 0; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
.foot-legal a { text-decoration: none; }

/* "Plan this" flows */
.fit-options { grid-template-columns: 1fr; }
.fit-opt-label { display: block; color: var(--text-primary); }
.fit-opt-note { display: block; margin-top: .25rem; font-size: .88rem; color: var(--text-muted); }
.fit-chip { display: inline-block; margin-top: .35rem; padding: .1rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border: 1px solid transparent; }
.fit-chip--covered { color: #16a34a; background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.35); }
.fit-chip--setup   { color: #2563eb; background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.35); }
.fit-chip--custom  { color: #b45309; background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.4); }
.fit-chip--info    { color: var(--text-muted); background: var(--bg-glass); border-color: var(--bg-glass-border); }
html.dark-mode .fit-chip--covered { color: #4ade80; } html.dark-mode .fit-chip--setup { color: #60a5fa; } html.dark-mode .fit-chip--custom { color: #fbbf24; }
.fit-group { margin: 0 0 1.1rem; padding: 1.1rem 1.25rem; border-radius: .9rem; border: 1px solid var(--bg-glass-border); background: var(--bg-glass); }
.fit-group__title { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.fit-group--covered { border-left: .3rem solid #22c55e; } .fit-group--setup { border-left: .3rem solid #3b82f6; }
.fit-group--custom { border-left: .3rem solid #f59e0b; } .fit-group--not { border-left: .3rem solid #94a3b8; } .fit-group--price { border-left: .3rem solid #8b5cf6; }
.fit-list { margin: 0; padding-left: 1.2rem; list-style: disc; color: var(--text-secondary); display: grid; gap: .35rem; }
.fit-deposit { margin: -.4rem 0 1.1rem; padding: .8rem 1rem; border-radius: .75rem; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.4); color: var(--text-primary); font-weight: 600; }
.fit-small { color: var(--text-muted); font-size: .92rem; margin: .5rem 0; }
.fit-demo { margin: 1rem 0; color: var(--text-secondary); } .fit-demo a { color: var(--accent); font-weight: 700; }
.fit-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.fit-start { margin-top: .5rem; }
.fit-ext { display: inline-block; margin-top: .5rem; color: var(--accent); font-weight: 700; }