/* Security First Ltd. — site styles.
   Most layout lives in each page's inline styles; this file holds the shared basics,
   the menu (dropdowns + mobile), the dark/light switch, and light mode. */

/* ---------- Basics ---------- */
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#0B0E13}
a{color:#FF7A4D;text-decoration:none}
a:hover{color:#FFA07F}
h1,h2,h3{font-family:Archivo,Inter,sans-serif;margin:0}
h2,h3{text-transform:uppercase}
p{margin:0}
ul{margin:0;padding:0;list-style:none}
th,td{text-align:left;vertical-align:top}
input,textarea,select,button{font:inherit}
img{max-width:100%}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #E0B23C;outline-offset:2px}
.sf-skip{position:absolute;left:-9999px;top:0}
.sf-skip:focus{left:16px;top:16px;z-index:100;background:#C93F14;color:#FFFFFF;padding:10px 16px;border-radius:6px}
.sf-hp{position:absolute !important;left:-10000px !important;width:1px;height:1px;overflow:hidden;opacity:0}

/* ---------- Home page hero photo ---------- */
.hero-bg{background-color:#0B0E13;background-image:linear-gradient(90deg,rgba(11,14,19,0.92) 0%,rgba(11,14,19,0.80) 50%,rgba(11,14,19,0.45) 100%),url(/assets/img/hero-canada.jpg);background-size:100% 100%,auto 100%;background-repeat:no-repeat;background-position:0 0,right center}
.light .hero-bg{background-color:#FFFFFF !important;background-image:linear-gradient(90deg,rgba(255,255,255,0.94) 0%,rgba(255,255,255,0.84) 50%,rgba(255,255,255,0.5) 100%),url(/assets/img/hero-canada.jpg) !important}

/* ---------- Dropdown menus ---------- */
.sf-dd-menu{display:none}
.sf-dd:hover .sf-dd-menu,.sf-dd:focus-within .sf-dd-menu{display:flex}
.sf-dd-menu a:hover,.sf-dd-menu a:focus{background:rgba(201,63,20,0.16)}

/* ---------- Dark / light switch ---------- */
.sf-tbtn{width:36px;height:36px;padding:0;display:flex;align-items:center;justify-content:center;border:0;border-radius:999px;background:transparent;color:#A9B0BC;cursor:pointer}
.sf-tbtn[aria-pressed="true"]{background:#C93F14;color:#FFFFFF}
.light .sf-tbtn[aria-pressed="false"]{color:#4A505B}

/* ---------- Mobile menu ---------- */
.sf-menu-btn{display:none}
@media (max-width:1000px){
  .sf-menu-btn{display:inline-flex}
  .sf-nav{display:none !important;flex-basis:100%;flex-direction:column;align-items:stretch !important;gap:0 !important;padding:6px 0 8px}
  .sf-header.open .sf-nav{display:flex !important}
  .sf-nav > a,.sf-nav .sf-dd > a{padding:13px 0 !important;border-top:1px solid #1C222C}
  .sf-dd-menu{display:flex !important;position:static !important;box-shadow:none !important;border:0 !important;background:transparent !important;padding:0 0 6px 14px !important;min-width:0 !important}
  .sf-toggle{align-self:flex-start;margin:12px 0}
  .sf-nav > a[href="/contact/"]{text-align:center;border-top:0;margin-top:4px}
  .light .sf-nav > a,.light .sf-nav .sf-dd > a{border-top-color:#E3DFD6}
}

/* ---------- Phones ---------- */
@media (max-width:640px){
  h1{font-size:38px !important;line-height:1.08 !important}
  h2{font-size:28px !important;line-height:1.15 !important}
  main section > div{padding-top:56px !important;padding-bottom:56px !important}
  .hero-bg{background-size:100% 100%,cover;background-position:0 0,30% center}
}

/* ---------- Light mode (dark is the default; .light on <html> switches it) ---------- */
.light{background:#FFFFFF !important;color:#1A1D23 !important}
.light a{color:#B23812}
.light .sf-dd-menu{box-shadow:0 16px 40px rgba(20,23,28,0.12) !important}

.light [style*="background: #0B0E13" i],
.light [style*="background: rgb(11, 14, 19)"]{background:#FFFFFF !important}
.light [style*="background: #06080B" i],
.light [style*="background: rgb(6, 8, 11)"]{background:#F0EEE8 !important}
.light [style*="background: #121720" i],
.light [style*="background: rgb(18, 23, 32)"],
.light [style*="background: rgba(18, 23, 32"]{background:#F5F3EE !important}
.light [style*="background: #1C222C" i],
.light [style*="background: rgb(28, 34, 44)"],
.light [style*="background: #262D38" i],
.light [style*="background: rgb(38, 45, 56)"]{background:#E3DFD6 !important}

.light [style*="#1C222C" i],
.light [style*="rgb(28, 34, 44)"],
.light [style*="#262D38" i],
.light [style*="rgb(38, 45, 56)"]{border-color:#E3DFD6 !important}
.light [style*="#333B48" i],
.light [style*="rgb(51, 59, 72)"]{border-color:#CFC9BE !important}
.light [style*="#3A4250" i],
.light [style*="rgb(58, 66, 80)"]{border-color:#B9B2A6 !important}

.light [style*="color: #FFFFFF" i],
.light [style*="color: rgb(255, 255, 255)"]{color:#14171C !important}
.light [style*="color: #E7E9EE" i],
.light [style*="color: rgb(231, 233, 238)"]{color:#1A1D23 !important}
.light [style*="color: #D3D7DE" i],
.light [style*="color: rgb(211, 215, 222)"]{color:#2B3038 !important}
.light [style*="color: #BCC2CC" i],
.light [style*="color: rgb(188, 194, 204)"],
.light [style*="color: #A9B0BC" i],
.light [style*="color: rgb(169, 176, 188)"]{color:#4A505B !important}
.light [style*="color: #8C94A1" i],
.light [style*="color: rgb(140, 148, 161)"]{color:#5E6470 !important}
.light [style*="color: #E0B23C" i],
.light [style*="color: rgb(224, 178, 60)"]{color:#8A6A12 !important}
.light [style*="color: #FF7A4D" i],
.light [style*="color: rgb(255, 122, 77)"],
.light [style*="color: #FF6B3D" i],
.light [style*="color: rgb(255, 107, 61)"]{color:#B23812 !important}

/* Keep white text on orange and on the dark table header */
.light [style*="background: #C93F14" i][style*="color: #FFFFFF" i],
.light [style*="background: rgb(201, 63, 20)"][style*="color: rgb(255, 255, 255)"],
.light [style*="background: #C93F14" i] [style*="color: #FFFFFF" i]:not([style*="background"]),
.light [style*="background: rgb(201, 63, 20)"] [style*="color: rgb(255, 255, 255)"]:not([style*="background"]),
.light [style*="background: #1A1D23" i][style*="color: #FFFFFF" i],
.light [style*="background: rgb(26, 29, 35)"][style*="color: rgb(255, 255, 255)"]{color:#FFFFFF !important}

