/* =========================================================================
   contact.html — page-specific styles (Contact Us)
   Load AFTER css/site.css. Uses the shared tokens (fonts, gold/rust, lines).
   --c (r,g,b) is the accent colour; contact.js sets it on <body> from the
   chosen topic, so the glow, focus rings and button tint follow the topic.
   ========================================================================= */

body{ --c:227,161,61; overflow-x:hidden; }

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:-999px;top:0;background:var(--gold);color:#1B1206;padding:10px 16px;z-index:200;font-weight:600;border-radius:0 0 6px 0}
.skip-link:focus{left:0}

/* ambient glow that follows the selected topic */
.ct-glow{position:fixed;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(ellipse 70% 55% at 80% 0%,rgba(var(--c),.16),transparent 70%),
             radial-gradient(ellipse 60% 50% at 0% 100%,rgba(192,91,59,.10),transparent 70%);
  transition:background .6s ease}
main,footer{position:relative;z-index:1}

/* ---------------- HERO ---------------- */
.ct-hero{padding:86px 0 34px;text-align:center}
.ct-eyebrow{display:inline-block;font:12px ui-monospace,monospace;letter-spacing:2px;text-transform:uppercase;color:var(--gold-soft);margin-bottom:16px}
.ct-hero h1{font-size:clamp(40px,5.6vw,66px);line-height:1.05;letter-spacing:-.5px;margin-bottom:18px}
.ct-hero h1 span{display:block;font-style:italic;font-weight:300;
  background:linear-gradient(90deg,var(--gold-soft),rgb(var(--c)),var(--gold-soft));background-size:200% 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent;animation:ctshine 6s linear infinite}
@keyframes ctshine{to{background-position:-200% 0}}
.ct-hero p{max-width:640px;margin:0 auto;color:var(--muted);font-size:17.5px}

/* ---------------- LAYOUT ---------------- */
.ct-body{padding:30px 0 100px}
.ct-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:32px;align-items:start}

/* ---------------- FORM CARD ---------------- */
.ct-card{position:relative;border-radius:22px;padding:1px;
  background:linear-gradient(140deg,rgba(var(--c),.55),rgba(243,236,222,.10) 40%,rgba(192,91,59,.35));
  box-shadow:0 40px 90px -40px rgba(var(--c),.45);transition:box-shadow .6s ease}
.ct-form,.ct-success{border-radius:21px;background:linear-gradient(180deg,rgba(29,23,15,.97),rgba(18,14,10,.98));padding:38px 36px}
.ct-form h2,.ct-success h2{font-size:clamp(24px,2.6vw,30px);margin-bottom:6px}
.ct-sub{color:var(--muted);font-size:14px;margin-bottom:26px}
.req{color:rgb(var(--c))}
.opt{color:var(--muted);font-weight:400;font-size:12.5px}

/* topic chips */
.ct-topics{border:0;padding:0;margin:0 0 24px}
.ct-topics legend{font-size:13.5px;font-weight:600;margin-bottom:12px;padding:0}
.ct-chips{display:flex;flex-wrap:wrap;gap:10px}
.ct-chip{position:relative;cursor:pointer}
.ct-chip input{position:absolute;opacity:0;width:1px;height:1px}
.ct-chip span{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:9999px;border:1px solid var(--line-strong);
  font-size:13.5px;font-weight:500;color:var(--muted);background:rgba(243,236,222,.02);transition:all .25s ease}
.ct-chip span::before{content:'';width:8px;height:8px;border-radius:50%;background:rgb(var(--c));box-shadow:0 0 8px rgba(var(--c),.8);opacity:.55;transition:opacity .25s}
.ct-chip:hover span{color:var(--cream);border-color:rgba(var(--c),.6)}
.ct-chip input:checked + span{color:#1B1206;font-weight:700;background:linear-gradient(90deg,rgb(var(--c)),rgba(var(--c),.75));border-color:transparent;box-shadow:0 0 22px rgba(var(--c),.4)}
.ct-chip input:checked + span::before{background:#1B1206;box-shadow:none;opacity:1}
.ct-chip input:focus-visible + span{outline:2px solid rgb(var(--c));outline-offset:3px}

/* fields */
.ct-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.ct-field{margin-bottom:18px}
.ct-field label{display:block;font-size:13.5px;font-weight:600;margin-bottom:8px}
.ct-field input,.ct-field textarea{width:100%;font:inherit;font-size:15px;color:var(--cream);
  background:rgba(15,12,9,.7);border:1px solid var(--line-strong);border-radius:12px;padding:13px 15px;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease}
.ct-field textarea{resize:vertical;min-height:150px;line-height:1.55}
.ct-field input::placeholder,.ct-field textarea::placeholder{color:rgba(169,156,135,.6)}
.ct-field input:hover,.ct-field textarea:hover{border-color:rgba(243,236,222,.32)}
.ct-field input:focus,.ct-field textarea:focus{outline:none;border-color:rgb(var(--c));box-shadow:0 0 0 4px rgba(var(--c),.16);background:rgba(15,12,9,.9)}
.ct-field.invalid input,.ct-field.invalid textarea{border-color:#FF6B5B;box-shadow:0 0 0 4px rgba(255,107,91,.12)}
.ct-err{min-height:0;font-size:12.5px;color:#FF8A7A;margin-top:6px}
.ct-err:empty{margin-top:0}
.ct-meta{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.ct-count{font:11.5px ui-monospace,monospace;color:var(--muted);margin-top:6px;white-space:nowrap}
.ct-count.near{color:var(--gold-soft)}

/* honeypot: off-screen, not display:none (some bots skip hidden fields) */
.ct-hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}

/* submit */
.ct-submit{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;margin-top:6px;
  padding:16px 26px;border:0;border-radius:9999px;cursor:pointer;font:inherit;font-size:16px;font-weight:700;color:#1B1206;
  background:linear-gradient(90deg,var(--gold),#FF5A36,var(--rust),var(--gold)) 0 0/300% 100%;animation:cta-shimmer 5s linear infinite;
  box-shadow:0 0 26px rgba(227,161,61,.4);transition:transform .25s ease,box-shadow .25s ease,opacity .2s}
.ct-submit:hover{transform:translateY(-2px);box-shadow:0 0 40px rgba(255,90,54,.6)}
.ct-submit:active{transform:translateY(0) scale(.99)}
.ct-plane{width:20px;height:20px;transition:transform .35s ease}
.ct-submit:hover .ct-plane{transform:translate(3px,-3px) rotate(-8deg)}
.ct-spinner{display:none;width:18px;height:18px;border-radius:50%;border:2px solid rgba(27,18,6,.25);border-top-color:#1B1206;animation:ctspin .8s linear infinite}
.ct-submit.is-sending{pointer-events:none;opacity:.85}
.ct-submit.is-sending .ct-plane{display:none}
.ct-submit.is-sending .ct-spinner{display:inline-block}
@keyframes ctspin{to{transform:rotate(360deg)}}
.ct-status{margin-top:14px;font-size:14px;text-align:center;color:var(--muted)}
.ct-status.error{color:#FF8A7A}
.ct-status a{color:var(--gold-soft);text-decoration:underline}

/* success */
.ct-success{text-align:center;padding:56px 36px}
.ct-success:focus{outline:none}
.ct-check{width:84px;height:84px;margin:0 auto 22px;display:block}
.ct-check circle{stroke:rgb(var(--c));stroke-width:2.5;stroke-dasharray:151;stroke-dashoffset:151;animation:ctdraw .7s ease forwards}
.ct-check path{stroke:var(--cream);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:40;stroke-dashoffset:40;animation:ctdraw .45s .55s ease forwards}
@keyframes ctdraw{to{stroke-dashoffset:0}}
.ct-success p{color:var(--muted);max-width:420px;margin:10px auto 28px}
.ct-success strong{color:var(--cream)}
.ct-success-links{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.ct-link-btn{padding:12px 22px;border-radius:9999px;border:1px solid var(--line-strong);font-weight:600;font-size:14.5px;transition:all .25s ease}
.ct-link-btn:hover{border-color:var(--gold);color:var(--gold-soft)}
.ct-link-btn.solid{color:#1B1206;background:linear-gradient(90deg,var(--gold),var(--rust));border-color:transparent}
.ct-link-btn.solid:hover{color:#1B1206;box-shadow:0 0 22px rgba(227,161,61,.45)}
.ct-again{margin-top:22px;background:none;border:0;color:var(--muted);font:inherit;font-size:13.5px;text-decoration:underline;cursor:pointer}
.ct-again:hover{color:var(--cream)}

/* ---------------- SIDE COLUMN ---------------- */
.ct-side{display:flex;flex-direction:column;gap:14px}
.ct-tile{display:flex;align-items:center;gap:16px;padding:18px 20px;border-radius:16px;border:1px solid var(--line-strong);
  background:linear-gradient(180deg,rgba(23,18,12,.85),rgba(15,12,9,.9));transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
.ct-tile:hover{transform:translateX(4px);border-color:rgba(var(--c),.7);box-shadow:0 14px 34px -18px rgba(var(--c),.6)}
.ct-ico{flex:none;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,rgb(var(--c)),rgba(var(--c),.55));box-shadow:0 0 18px rgba(var(--c),.4)}
.ct-ico svg{width:21px;height:21px;fill:none;stroke:#1B1206;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ct-tile-text{min-width:0;display:flex;flex-direction:column}
.ct-tile-text small{font:11px ui-monospace,monospace;letter-spacing:1.3px;text-transform:uppercase;color:var(--muted)}
.ct-tile-text strong{font-family:var(--display);font-weight:600;font-size:17px;line-height:1.3;overflow-wrap:anywhere}

.ct-quick{margin-top:6px;padding:22px 22px 12px;border-radius:16px;border:1px dashed var(--line-strong);background:rgba(243,236,222,.02)}
.ct-quick h3{font-size:17px;margin-bottom:8px}
.ct-quick li a{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-top:1px solid var(--line);font-size:14.5px;color:var(--muted);transition:color .2s ease}
.ct-quick li:first-child a{border-top:0}
.ct-quick li a:hover{color:var(--gold-soft)}
.ct-quick .fa-arrow-right{font-size:12px;transition:transform .2s ease}
.ct-quick li a:hover .fa-arrow-right{transform:translateX(4px)}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width:900px){
  .ct-grid{grid-template-columns:1fr}
  .ct-side{display:grid;grid-template-columns:1fr 1fr;gap:14px}
  .ct-quick{grid-column:1 / -1}
}
@media (max-width:600px){
  .ct-hero{padding:60px 0 20px}
  .ct-hero p{font-size:16px}
  .ct-body{padding:20px 0 70px}
  .ct-form,.ct-success{padding:28px 20px}
  .ct-row{grid-template-columns:1fr;gap:0}
  .ct-side{grid-template-columns:1fr}
  .ct-chip span{padding:8px 13px;font-size:13px}
}
@media (prefers-reduced-motion:reduce){
  .ct-hero h1 span,.ct-submit,.ct-spinner{animation:none}
  .ct-check circle,.ct-check path{animation:none;stroke-dashoffset:0}
  .ct-glow,.ct-tile,.ct-submit,.ct-plane{transition:none}
}
