/*
 * Company profile page (single-company.php). Scoped under .thc so nothing leaks
 * to other templates. Enqueued after the compiled Tailwind output
 * (functions/scripts.php), version ThemeConstants::COMPANY_VERSION.
 * Palette: secondary #0D3659, primary #8F3985, light #F5F7FF.
 */
.thc{font-family:Inter,system-ui,sans-serif;color:#0D3659;-webkit-font-smoothing:antialiased;line-height:1.5}
.thc *,.thc *::before,.thc *::after{box-sizing:border-box}
.thc h1,.thc h2,.thc h3,.thc p{margin:0}
.thc ul{list-style:none;margin:0;padding:0}
.thc a{color:#8F3985;text-decoration:none}
.thc a:hover{color:#0D3659}
.thc img{display:block;max-width:100%}
.thc svg{flex:none}
.thc .wrap{max-width:1200px;margin:0 auto;padding:0 32px}
.thc .muted{color:#5B6B82}
.thc .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Buttons */
.thc .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 22px;border-radius:10px;font-weight:600;font-size:15px;line-height:1;text-decoration:none;border:1px solid transparent;cursor:pointer;font-family:inherit;transition:background .2s,color .2s,border-color .2s}
.thc .btn-p{background:#8F3985;color:#fff}
.thc .btn-p:hover{background:#6E2B66;color:#fff}
.thc .btn-o{background:#fff;color:#0D3659;border-color:#CBD2E0}
.thc .btn-o:hover{border-color:#0D3659;color:#0D3659}
.thc .btn-w{background:transparent;color:#fff;border-color:rgba(255,255,255,.45)}
.thc .btn-w:hover{background:rgba(255,255,255,.1);color:#fff}
.thc .btn-n{background:#0D3659;color:#fff}
.thc .btn-n:hover{background:#8F3985;color:#fff}
.thc .btn-lg{height:52px;padding:0 28px;font-size:16px}
.thc .btn:focus-visible,.thc a:focus-visible,.thc button:focus-visible,.thc input:focus-visible{outline:3px solid #F59E0B;outline-offset:2px}

/* Hero */
.thc-hero{background:#0D3659;color:#fff;padding:28px 0 96px}
.thc-crumb{display:flex;gap:8px;flex-wrap:wrap;font-size:13px;color:#C9D6F5;margin-bottom:28px}
.thc-crumb a{color:#C9D6F5}
.thc-crumb a:hover{color:#fff}
.thc-crumb b{color:#fff;font-weight:600}
.thc-hero-grid{display:flex;gap:48px;align-items:center}
.thc-hero-main{flex:1 1 480px;min-width:0;display:grid;gap:16px}
.thc-hero-top{display:flex;gap:18px;align-items:center}
.thc-logo{width:88px;height:88px;border-radius:18px;background:#fff;display:flex;align-items:center;justify-content:center;flex:none;overflow:hidden}
.thc-logo img{width:78px;height:78px;object-fit:contain}
.thc-chips{display:flex;gap:8px;flex-wrap:wrap}
.thc-chip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:999px;font-size:13px;font-weight:600;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.1);color:#fff;white-space:nowrap}
.thc-chip.is-ok{background:#1A7F37;border-color:#1A7F37}
.thc h1.thc-title{font-size:52px;line-height:1.05;font-weight:800;letter-spacing:-.025em;color:#fff}
.thc-lede{font-size:18px;line-height:1.5;color:#C9D6F5;max-width:560px}
.thc-meta{display:flex;gap:22px;align-items:center;flex-wrap:wrap;font-size:15px}
.thc-meta a{color:#fff;display:inline-flex;align-items:center;gap:8px}
.thc-meta .addr{display:inline-flex;align-items:center;gap:8px;color:#C9D6F5}
.thc-ctas{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.thc-collage{width:460px;flex:none;display:grid;grid-template-columns:1.3fr 1fr;grid-template-rows:170px 170px;gap:10px;position:relative}
.thc-collage a,.thc-collage .one{border-radius:14px;overflow:hidden;background:#1E3A5F;display:block}
.thc-collage .lead{grid-row:span 2;border-radius:18px}
.thc-collage img{width:100%;height:100%;object-fit:cover}
.thc-collage.solo{grid-template-columns:1fr;grid-template-rows:350px}
.thc-collage .all{position:absolute;right:12px;bottom:12px;height:38px;padding:0 14px;font-size:13.5px}

/* Stat tiles */
.thc-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:-56px;position:relative}
.thc-stat{background:#fff;border:1px solid #E3E7EF;border-radius:16px;padding:20px 22px;display:flex;gap:14px;align-items:center;box-shadow:0 10px 30px rgba(13,54,89,.08)}
.thc-stat .ic{width:44px;height:44px;border-radius:12px;background:#F1E7F0;display:flex;align-items:center;justify-content:center;flex:none}
.thc-stat .ic svg{width:22px;height:22px}
.thc-stat b{display:block;font-size:24px;font-weight:800;line-height:1;letter-spacing:-.02em}
.thc-stat span.l{display:block;font-size:13px;color:#5B6B82;margin-top:4px;line-height:1.3}

/* Sticky tab bar */
.thc-tabs{position:sticky;top:var(--thc-hdr,86px);z-index:20;background:#fff;margin-top:28px;border-bottom:1px solid #E3E7EF}
.thc-tabs .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px}
.thc-tabs nav{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.thc-tabs nav::-webkit-scrollbar{display:none}
.thc-tabs nav a{padding:18px 14px;font-size:14.5px;font-weight:600;color:#5B6B82;white-space:nowrap;border-bottom:2px solid transparent;margin-bottom:-1px}
.thc-tabs nav a:hover{color:#0D3659}
.thc-tabs nav a.on{color:#8F3985;border-bottom-color:#8F3985}
.thc-tabs .acts{display:flex;gap:8px;align-items:center;flex:none}
.thc-tabs .acts .btn{height:40px;padding:0 16px;font-size:14px}
.thc [id]{scroll-margin-top:calc(var(--thc-hdr,86px) + 64px)}

/* Cards and headings */
.thc .card{background:#fff;border:1px solid #E3E7EF;border-radius:18px}
.thc .kicker{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8F3985;margin:0 0 6px}
.thc h2.h2{font-size:28px;font-weight:800;line-height:1.15;margin:0 0 20px;letter-spacing:-.02em;color:#0D3659}
.thc h3.h3{font-size:18px;font-weight:700;margin:0 0 14px;color:#0D3659}
.thc .sec{padding-top:56px}
.thc .g12{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:20px}
.thc .s12{grid-column:span 12}.thc .s3{grid-column:span 3}.thc .s4{grid-column:span 4}.thc .s5{grid-column:span 5}.thc .s7{grid-column:span 7}.thc .s8{grid-column:span 8}
.thc .row{display:flex;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid #EDF0F5;font-size:14.5px}
.thc .row:last-child{border-bottom:0}
.thc .ok{width:24px;height:24px;border-radius:999px;background:#1A7F37;display:flex;align-items:center;justify-content:center;flex:none}
.thc .no{width:24px;height:24px;border-radius:999px;background:#E6E9F0;display:flex;align-items:center;justify-content:center;flex:none}
.thc .ok.sm{width:20px;height:20px}
.thc .about-text{font-size:16px;line-height:1.65;color:#444;overflow-wrap:anywhere}
.thc .about-text p+p{margin-top:12px}
.thc .pills{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px}
.thc .pill{display:flex;gap:10px;align-items:center;padding:12px 14px;border-radius:12px;background:#F5F7FF;font-size:14px;font-weight:600}
.thc .svc{display:flex;gap:14px;align-items:flex-start;padding:16px;border-radius:14px;border:1px solid #BFE5CB;background:#F6FCF8}
.thc .svc.off{border-color:#E3E7EF;background:#FAFBFE;color:#7A8699}
.thc .svc b{display:block;font-size:15.5px}
.thc .svc span.d{font-size:13.5px;line-height:1.5;color:#5B6B82}
.thc .cred-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
.thc .cred-grid .row.off{color:#7A8699}

/* Reviews */
.thc-reviews{background:#F5F7FF;margin-top:48px;padding:56px 0}
.thc-reviews .head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.thc-reviews .head h2{margin:0!important}
.thc .score{display:flex;gap:18px;align-items:center}
.thc .score .n{font-size:56px;font-weight:800;line-height:1;letter-spacing:-.03em}
.thc .bar{display:flex;align-items:center;gap:10px;font-size:13px;color:#5B6B82}
.thc .bar i{flex:1;height:8px;border-radius:99px;background:#E3E7EF;overflow:hidden;display:block}
.thc .bar i b{display:block;height:100%;background:#F59E0B;border-radius:99px}
.thc .bars{display:grid;gap:8px;margin-top:18px}
.thc .rev-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-content:start}
.thc .rev{padding:22px;background:#fff;border:1px solid #E3E7EF;border-radius:16px;display:grid;gap:12px;align-content:start}
.thc .rev-head{display:flex;gap:12px;align-items:center}
.thc .ava{width:42px;height:42px;border-radius:999px;color:#fff;font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:center;flex:none;overflow:hidden;background:#0D3659}
.thc .ava img{width:100%;height:100%;object-fit:cover}
.thc .rev-head b{display:block;font-size:15px;line-height:1.2}
.thc .rev-head div span{font-size:12.5px;color:#5B6B82}
.thc .rev p{font-size:14.5px;line-height:1.6;color:#444;overflow-wrap:anywhere}
.thc .rev p.clamp{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.thc .rev .more{background:none;border:0;padding:0;font:inherit;font-size:13.5px;font-weight:600;color:#8F3985;cursor:pointer;justify-self:start}
.thc .rev-page[hidden]{display:none}
.thc .pager{display:flex;justify-content:space-between;align-items:center;margin-top:20px;gap:12px;flex-wrap:wrap}
.thc .pager .nums{display:flex;gap:6px;flex-wrap:wrap}
.thc .pgn{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;border-radius:10px;border:1px solid #DDE3EE;font-weight:600;font-size:14px;color:#0D3659;background:#fff;font-family:inherit;cursor:pointer;padding:0 8px}
.thc .pgn.on{background:#0D3659;color:#fff;border-color:#0D3659}
.thc .pgn:disabled{opacity:.4;cursor:default}

/* Photos */
.thc .gal{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:160px;gap:12px}
.thc .gal .ph{border-radius:12px;overflow:hidden;background:#EDF0F5;display:block;border:0;padding:0;cursor:zoom-in;width:100%;height:100%}
.thc .gal .ph.tall{grid-row:span 2}
.thc .gal .ph img{width:100%;height:100%;object-fit:cover}
.thc .gal .ph[hidden]{display:none}
.thc .gal .more{display:flex;align-items:center;justify-content:center;background:#0D3659;color:#fff;font-weight:700;font-size:18px;cursor:pointer;border-radius:12px;border:0;font-family:inherit}

/* Hours, map, payment */
.thc .hrs{display:grid;grid-template-columns:1fr auto;font-size:14px}
.thc .hrs div{padding:9px 0;border-bottom:1px solid #EDF0F5}
.thc .hrs .d{font-weight:600}
.thc .hrs .today{color:#8F3985}
.thc .open-now{display:flex;align-items:center;gap:8px;padding:12px 0 6px;font-size:13.5px;font-weight:600;color:#166534}
.thc .open-now.closed{color:#5B6B82}
.thc .open-now i{width:8px;height:8px;border-radius:99px;background:#1A7F37;display:block}
.thc .open-now.closed i{background:#9AA6B8}
.thc .map{overflow:hidden;position:relative;min-height:320px;background:#EEF1F6;border:1px solid #E3E7EF;border-radius:18px;z-index:0}
.thc .map .leaflet-container{position:absolute;inset:0;height:100%!important;width:100%}
.thc .map .tag{position:absolute;left:14px;bottom:14px;right:14px;background:#fff;border:1px solid #E3E7EF;border-radius:12px;padding:12px 14px;z-index:500}
.thc .map .tag b{display:block;font-size:14.5px}
.thc .map .tag span{font-size:13px;color:#5B6B82}
.thc .pay{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #EDF0F5;font-weight:600;font-size:14.5px}
.thc .pay:last-child{border:0}
.thc .pay img{width:auto;height:22px;max-width:90px;object-fit:contain}

/* FAQ */
.thc .faqg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.thc .faq{border:1px solid #E3E7EF;border-radius:14px;padding:4px 20px;background:#fff}
.thc .faq .item{border-bottom:1px solid #EDF0F5}
.thc .faq .item:last-child{border-bottom:0}
.thc .faq .q{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;font-weight:600;font-size:15.5px;background:none;border:0;width:100%;text-align:left;font-family:inherit;color:#0D3659;line-height:1.35;cursor:pointer}
.thc .faq .q .pm{position:relative;width:18px;height:18px;flex:none;color:#5B6B82}
.thc .faq .q .pm::before,.thc .faq .q .pm::after{content:"";position:absolute;left:2px;right:2px;top:8px;height:2px;border-radius:2px;background:currentColor}
.thc .faq .q .pm::after{transform:rotate(90deg);transition:transform .2s}
.thc .faq .q[aria-expanded="true"] .pm{color:#8F3985}
.thc .faq .q[aria-expanded="true"] .pm::after{transform:rotate(0)}
.thc .faq .a{padding:0 0 16px;font-size:14.5px;line-height:1.6;color:#444;overflow-wrap:anywhere}
.thc .faq .a[hidden]{display:none}

/* Quote band */
.thc .qband{background:#0D3659;border-radius:24px;padding:40px;color:#fff;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:40px;align-items:center}
.thc .qband .kicker{color:#F59E0B}
.thc .qband .big{font-size:32px;font-weight:800;letter-spacing:-.02em;line-height:1.1;color:#fff}
.thc .qband p.t{margin-top:12px;color:#C9D6F5;font-size:15px;line-height:1.55}
.thc .qform{display:grid;gap:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);border-radius:18px;padding:22px}
.thc .qform .t2{font-weight:700;font-size:16px}
.thc .qform .two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.thc .qform label{display:block;font-size:12.5px;font-weight:600;color:#C9D6F5;margin:0 0 6px}
.thc .qform input{width:100%;height:50px;border:2px solid transparent;border-radius:10px;padding:0 14px;font-size:14px;font-family:inherit;color:#0D3659;background:#fff}
.thc .qform input.err{border-color:#F87171}
.thc .qform input::placeholder{color:#8A96A8}
.thc .qform .e{font-size:12px;color:#FCA5A5;margin-top:4px}
.thc .qform .e[hidden]{display:none}
.thc .qform .api{font-size:13px;color:#FCA5A5}
.thc .qform .api[hidden]{display:none}
.thc .qform button[type=submit]{width:100%;height:50px;background:#fff;color:#0D3659;border:0;border-radius:10px;font-weight:600;font-size:15px;font-family:inherit;cursor:pointer}
.thc .qform button[type=submit]:hover{background:#F1E7F0}
.thc .qform button[type=submit]:disabled{opacity:.6;cursor:default}
.thc .qform .fine{font-size:12px;line-height:1.5;color:#C9D6F5;text-align:center}
.thc .qdone{text-align:center;padding:30px 10px}
.thc .qdone[hidden]{display:none}
.thc .qdone b{display:block;font-size:20px;margin-bottom:6px}
.thc .claim{text-align:center;margin-top:16px;font-size:13.5px}
.thc .claim button{background:none;border:0;padding:0;font:inherit;font-weight:600;color:#8F3985;cursor:pointer;text-decoration:underline}

/* Stars: grey row with a yellow row clipped to the rating */
.thc .stars{position:relative;display:inline-flex;vertical-align:middle;width:max-content;justify-self:start}
.thc .stars .b,.thc .stars .f{display:inline-flex;gap:2px}
.thc .stars .b{color:#E3E7EF}
.thc .stars .f{position:absolute;left:0;top:0;overflow:hidden;color:#F59E0B;white-space:nowrap}
.thc-hero .stars .b{color:#3D5F80}

/* Phone sticky action bar (replaces the global Book Now bar on this page) */
.thc-bar{display:none}
body.single-company .th-global-book-bar{display:none}

@media (max-width:1023px){
  .thc-hero-grid{flex-direction:column;align-items:stretch}
  .thc-collage{width:100%}
  .thc-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .thc .g12{grid-template-columns:repeat(6,minmax(0,1fr))}
  .thc .s3,.thc .s4,.thc .s5,.thc .s7,.thc .s8,.thc .s12{grid-column:span 6}
  .thc .qband{grid-template-columns:minmax(0,1fr)}
  .thc-tabs .acts{display:none}
}
@media (max-width:767px){
  .thc .wrap{padding:0 16px}
  .thc-hero{padding:20px 0 64px}
  .thc-crumb{margin-bottom:18px}
  .thc h1.thc-title{font-size:32px}
  .thc-lede{font-size:15px}
  .thc-hero-top{align-items:flex-start}
  .thc-logo{width:72px;height:72px;border-radius:16px}
  .thc-logo img{width:62px;height:62px}
  .thc-ctas .btn{flex:1 1 100%}
  .thc-collage{grid-template-columns:1.3fr 1fr;grid-template-rows:120px 120px}
  .thc-collage.solo{grid-template-rows:200px}
  .thc-stats{gap:10px;margin-top:-44px}
  .thc-stat{padding:14px;gap:10px;border-radius:14px}
  .thc-stat .ic{width:36px;height:36px}
  .thc-stat .ic svg{width:18px;height:18px}
  .thc-stat b{font-size:19px}
  .thc-stat span.l{font-size:11.5px}
  .thc-tabs{margin-top:20px}
  .thc-tabs nav a{padding:14px 12px;font-size:13.5px}
  .thc .sec{padding-top:36px}
  .thc h2.h2{font-size:22px;margin-bottom:14px}
  .thc .pills{grid-template-columns:minmax(0,1fr)}
  .thc .cred-grid{grid-template-columns:minmax(0,1fr)}
  .thc-reviews{padding:36px 0;margin-top:36px}
  .thc .score .n{font-size:40px}
  .thc .rev-list{grid-template-columns:minmax(0,1fr)}
  .thc .rev{padding:16px}
  .thc .gal{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:112px;gap:6px}
  .thc .gal .ph.tall{grid-row:auto}
  .thc .gal .ph:first-child{grid-column:span 2;grid-row:span 2}
  .thc .faqg{grid-template-columns:minmax(0,1fr)}
  .thc .qband{padding:22px 18px;border-radius:18px;gap:22px}
  .thc .qband .big{font-size:24px}
  .thc .qform{padding:16px}
  .thc .qform .two{gap:10px}
  .thc .map{min-height:230px}
  .thc-bar{display:flex;gap:10px;position:fixed;left:0;right:0;bottom:0;z-index:30;background:#fff;border-top:1px solid #E3E7EF;box-shadow:0 -8px 24px rgba(13,54,89,.08);padding:12px 16px calc(14px + env(safe-area-inset-bottom))}
  .thc-bar .btn{flex:1;font-size:14px;padding:0 10px;white-space:nowrap}
  .thc-bar .btn-p{flex:1.3}
  .thc{padding-bottom:84px}
}
